RQL - to set the maximum number of pages in a list

18 views
Skip to first unread message

Reddotter

unread,
Nov 18, 2011, 6:38:30 AM11/18/11
to RedDot CMS Users
Hi Guys
Trying to find out if there is a alternate way in smart
edit to set the "Maimum number of pages" for a list. THis is usually
done through the smart tree. I am thinking it might be possible to set
it via RQL. Any advise would be appreciated.

Cheers
Reddotter

Tony Gayter

unread,
Nov 18, 2011, 6:43:40 AM11/18/11
to reddot-c...@googlegroups.com
I think you would have to use the 'for' loop to go through each page attatched to teh list and set teh number of times to loop through.

Jian Huang

unread,
Nov 18, 2011, 9:36:40 AM11/18/11
to RedDot CMS Users
Short answer: no, RQL might be the easiest

Long answer: yes, but it is a hack. Prior calling /cms/aspdll/
Templates/ioFrame4166.htm, set session("treetype") to link, set
session("treeguid") to guid of the list or container


Another semi related info, if you want to know how many pages are
connected to element in SmartEdit, you might not want to use a for
loop since that is server side processing intensive. If possible, use
JavaScript/JQuery, like this

$("#mylist li").length;
Reply all
Reply to author
Forward
0 new messages