Slice of array

12 views
Skip to first unread message

Giorgos Tsolakis

unread,
Oct 18, 2022, 1:03:51 PM10/18/22
to Xataface
Hi all,

Is there a way to get a slice of the {$elements}? 

I am trying to get the first ten elements of the array below:

<td valign="top" align="center" class="Dataface_QuickForm-label-cell" >
    {$elements.objects.html}
</td>

Thank you!

Giorgos

Steve Hannah

unread,
Oct 26, 2022, 8:51:26 AM10/26/22
to xata...@googlegroups.com
You should be able to use array_slice in Smarty.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/187e4153-fb01-4953-a531-eaabe8ceba7bn%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.
Reply all
Reply to author
Forward
0 new messages