Search for:
Sign in
Register
Menu
Articles
Questions & Answers
Download
Documentation
Support
Marketplace
Old Forums
Search:
Search text
Best Practices
General
>
Best Practices
>
Macros - Question
View modes:
View mode
Threaded
Flat - newest to oldest
Flat - oldest to newest
Member
czapata
-
2/16/2006 7:52:19 PM
Macros - Question
I'm trying to minimize the number of page templates that I need to design for a site. Basically I'm attempting to have the menus automatically "know" the site section being viewed and to have the menus display the corresponding sub-sections dynamically.That way I can design page templates for the website's "levels" not by specific section.
I guess I can do this using macros but I'm unsure as to how to do it.
Thanks!
czapata
Guest
admin
-
2/18/2006 2:23:16 PM
Re: Macros - Question
Hello,
you may need to use something like this:
CMSMenu1.SelectNodes = Functions.GetPathLevel(Functions.GetAliasPath(), 1) + "/%";
Please let me know if it works for you.
Best Regards,
Member
czapata
-
2/28/2006 9:39:55 PM
Re: Macros - Question
Your suggestion worked great! But the property that worked was CMSMenu1.SelectNodesPath instead of CMSMenu1.SelectNodes
Thanks!
Top