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

display... Pages... Paging... with jquery


Go to End


2 Posts   1384 Views

Avatar
Dr0gaz

Community Member, 37 Posts

11 April 2011 at 9:58pm

hi guys...
I' m want page my <% control Images %> $Attach.Url <% end_control %> but...
i want display first all pages to into html example:

<-Page 1-->
<div>
<img 1/>
<img 2/>
<img 3/>
<img 4/>
<img 5/>
</div>

<-Page 2-->
<div>
<img 6/>
<img 7/>
<img 8/>
<img 9/>
<img 10/>
</div>

<-Page 3-->
<div>
<img 11/>
<img 12/>
<img 13/>
</div>

Sorry my english!

Avatar
Dr0gaz

Community Member, 37 Posts

12 April 2011 at 9:15pm

Well guys what do you think? confused no? but it work! ahhahah but i ave a problem when i' have 20 images don work because i have pos == 10
i'a want for 10, 20, 30, ... ten in ten...

<% control Images %>

<% if First %><div><% end_if %>
$Attachment.SetWidth(500)
<% if Pos == 10 %> </div>
<div>
<% else %>
<% end_if %>
<% if Last %> </div> <% end_if %>

<% end_control %>

solutions?