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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

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


Reply


2 Posts   799 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?