Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » display... Pages... Paging... with jquery

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 736 Views
  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    display... Pages... Paging... with jquery Link to this post

    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!

  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Re: display... Pages... Paging... with jquery Link to this post

    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?

    736 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.