Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Return DataObject from Second Records


Go to End


3 Posts   1031 Views

Avatar
bunheng

Community Member, 78 Posts

15 August 2011 at 9:58pm

Hi,

Is there any possible way to display DataObject Record in template by escape the first record, I mean begin loop from second record till end.

Thanks
Bunheng

Avatar
UncleCheese

Forum Moderator, 4102 Posts

16 August 2011 at 1:27am

<% control YourObjects %>
<% if First %><% else %>
do stuff
<% end_if %>
<% end_control %>

---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

Avatar
bunheng

Community Member, 78 Posts

16 August 2011 at 2:11am

Hi UncleCheese.

Thanks for your replies. I worked now!

Thanks
Bunheng