Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Create a menu from repository folder structure
sesteban
Hi,
TeamSIte 6.7.1
OS: Windows
I'm trying to create a page in which the menu has to be generated from the repository folder structure. I mean if I have a folder "Information" with subfolders "Media", "Sports" and "Politics" where my DCRs are created, my menu in the page should reflect three menu options dynamically.
As I am quite new to TeamSite I'm not really sure about the best way to do this. What I'm thinking about is to read in the TPL the folder where the DCR is, a go crawling up through the folders, so I could show the folder names in the menu. Is there a way to do this through formAPI? should I use a CGI?
Thanks a lot,
Find more posts tagged with
Comments
Trey
There are several ways to do this.
I think the easiest would be to include an
section in your tpl that crawls and creates the tree. If it is the same for each page you may want to go ahead and generate it once and use SSI to include it on your pages. (Good old web 101)
FormApi is more a function of doing things within the templates that a user is working on (i.e. set this value in a template if a user select this) and not for creating output.