Pages in RedDot

66 views
Skip to first unread message

Andry

unread,
Jul 25, 2011, 6:34:05 AM7/25/11
to RedDot CMS Users
Hi guys,

I have a long list of newsletters. How can I show 10 lists per page
and have pages links on the page.
e.g page 1 will have newletter 1-10, page 2 will have newsletter 11 to
20 and so on...

Cheers mate!

Andry

Tony Gayter

unread,
Jul 25, 2011, 6:38:57 AM7/25/11
to reddot-c...@googlegroups.com
you mean you want pagination? That is dynamic content which will either need some .net/php or live server. The only other way to do it is manually, ie, create teh pages and add 10 links to each, then when you add a new news item, manually shuffle all teh links down. This is horrendous though so unless your only adding 1 or 2 news items a year I would not go down that route.
 
 

Ibrahim Sawadogo

unread,
Jul 25, 2011, 7:50:03 AM7/25/11
to reddot-c...@googlegroups.com
Hi Andry,

we have something similar, you get the idea:
<!IoRangePreExecute>
<% i = 1 %>
    <!IoRangeList>
        <% if i = 1 then %>

        <% elseif i > 1 and i < 5 then %>
            <div class="teaser-news-standardstory floatbox">
                <div class="teaser-graphic">
                    <a href="<%list_news%>" title="<%standard_news_title%>"><img src="<%image_mood_news%>" title="<%standard_news_title%>" alt="<%standard_news_title%>" /></a>
                </div>
                <div class="teaser-content">
                    <span class="news-date"><%standard_news_date%></span>
                    <h3 title="<%standard_news_title%>"><%standard_news_title%></h3>
                    <p><%standard_news_summary%></p>
                    <a class="link-arrow" href="<%list_news%>" title="<%standard_teaser_link_title%>"><%standard_teaser_link_title%></a>
                </div>
            </div>
        <% end if %>

        <% i = i +1 %>
    <!/IoRangeList>
<!/IoRangePreExecute>

Ibrahim


--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.


Jian Huang

unread,
Jul 25, 2011, 10:06:33 AM7/25/11
to RedDot CMS Users
Hi Ibrahim,

Nice solution, but I am not sure if it can be used in Andry's scenario
because if Andry wants to have N paginated pages, he would have to
created N pages and N content classes with slightly different display
range.

Also, I noticed that the code provided skips the first page on the
list.

Andry, like Tony said, either do pagination server side via Delivery
Server, php, asp, C# or what other server side code once content is
published to a server.

OR

You can output all the content with a list and use JavaScript/Jquery
to show/hide selected range.

I do have example ready should you need them.

Best,

-Jian

Damon

unread,
Feb 26, 2013, 3:22:22 PM2/26/13
to reddot-c...@googlegroups.com
Hi Jian, do you have any of those JQuery examples?  I've used verity search via LiveServer in the past but I am struggling to recollect my methods.

Hilmar Bunjes

unread,
Feb 27, 2013, 9:49:35 AM2/27/13
to reddot-c...@googlegroups.com
Hi Damon,
maybe this overview gives some good examples: http://www.jquery4u.com/plugins/10-jquery-pagination-plugins/
 
I really like this one: https://github.com/wesnolte/Pajinate/wiki You can put all your elements into one list and call pajinate on that list. Depending on your requirements you can put the paging whereever you want.
 
Best,
Hilmar

Damon Sit

unread,
Feb 27, 2013, 10:22:43 AM2/27/13
to reddot-c...@googlegroups.com
Thanks Hilmar,

I was looking through some jquery solutions last night while I was waiting. I think the problem I would get is that the "hidden" divs will load each time.  Each div will have a rather large image, about 400x600 px so you can imagine the file size as they add up.

I'm thinking of merging another jquery library that stops the loading of images in divs.  Hopefully that can work.  I was looking up other solutions such as exporting my list into a giant JSON file.  I've only scartched the surface in figuring out the feasibility of that.

Thanks again.  Any other suggestions will be greatly appreciated.


To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.

To post to this group, send email to reddot-c...@googlegroups.com.

Hilmar Bunjes

unread,
Feb 27, 2013, 12:43:44 PM2/27/13
to reddot-c...@googlegroups.com
Damon,
I think in this case you should consider to either use Dynaments to handle the pagination directly in the Delivery Server or Ajax and single pages in the DS. You could also combine both if you want to allow users with Javascript to paginate without page reloading and a fallback solution for the others.

However, as far as I know there is no standard tooling for this case as long as the pages are coming from the MS and not from search or rdb. Thus, this would require some custom development.

Best,
Hilmar
You received this message because you are subscribed to a topic in the Google Groups "RedDot CMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reddot-cms-users/6A8NQ7oobgA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to reddot-cms-use...@googlegroups.com.

Jian Huang

unread,
Feb 27, 2013, 1:09:11 PM2/27/13
to reddot-c...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages