Forums / Developer / using treemenu with limit

using treemenu with limit

Author Message

akiL Mussa

Friday 08 April 2005 6:34:11 am

Hello,

It's possible use the treemenu function with limit parameter?

I would like to fetch only the first 7 nodes and their children.

I see the treemenu syntax and there is not a limit parameter.

treemenu( path, 
              node_id,
              [ class_filter, ]
              [ depth_skip, ]
              [ max_level ] )

Has someone use the treemenu with limit parameter?

Mark Marsiglio

Friday 08 April 2005 12:46:01 pm

To my knowledge this is not possible with the existing operator. However, you can manually construct a tree menu with the fetch operator, which support "limit". If you search for treemenu, you should get some code examples of how it was done before the treemenu operator was available.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

akiL Mussa

Monday 11 April 2005 4:36:38 am

Ok Mark,

I'll see what I can do. Thanks.

AkiL

Luc Chase

Saturday 16 April 2005 10:01:33 am

Try this...

{let limitedTree=treemenu( path, 
              node_id,
              [ class_filter, ]
              [ depth_skip, ]
              [ max_level ] ) depth=1}

{/let}

The Web Application Service Provider