Glade to help. Just a final note. It's not easy to implement recursive
calls with velocity. I am not a expert in VTL, but from what I know u
need ot use local variables in your calls. This link may help you. It
talks about recursion in page 30.
http://click.sourceforge.net/docs/velocity/VelocityUsersGuide.pdf
good luck.
Michael Binette wrote:
Thanks for the direction. I created my own theme by copying the one I was
using and now will start working on a new macro to do this.
--
Michael
On Sat, Sep 6, 2008 at 4:38 PM, Mansour Al Akeel
<[EMAIL PROTECTED]>wrote:
Michael, My understanding you want a navigation tree that displays only
folders.
If this is right, then you were right about editing "decorator-macros.vm".
For trees, it's a good idea to use recursion. Have a look at
#includeTabsNavigation and #includeLinksWithIconNavigation. These two macros
will give you an idea about how to do it. Another one you may find useful is
#includeLinksNavigation.
In general, you will need to iterate through each Tab (folder) and for each
item in that tab include the contained Tabs (folders).
Michael Binette wrote:
Using the default tigris layout, how do I make the left side menu only
show
folders. I have a setup like the following
pages\folder1
{... with some pages under folder 1}
pages\folder2
{... no pages under folder2, just subfolders}
pages\folder2\folderA
{... with some pages under folder2\folderA}
pages\folder2\folderB
{... with some pages under folder2\folderB}
pages\folder3
{... with some pages under folder 3}
What I want on the left side is a link for folder1, a title for folder2, a
link for folderA, a link for folderB, and a link for folder3.
If I use a depth="1" in my menu definition it shows me everything except
for
links to folderA and folderB. But if I switch this to depth="2" to get
those folders I end up with links for all the pages under folder1 and
folder3 which I don't want. I only want folders shown, no matter what
level
deep they are with only the deepest level being a link.
Does this require changing the decorators-macros.vm file? If so, which
macro should I change and how?
--
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]