I am only just getting started with MODx and really like what I see.
The layout for the site I am working on has main navigation to each folder (section) on every page.
Once within a section, a list of links to all it’s subfolders (subsections) is shown on each section page.
I am just using one standard template for all pages at the moment (excluding the home page).
I have a dropmenu snippet for the main nav and that is working fine.
I set up a Template Variable for the sub nav and have set its default value to @INHERIT.
Then I went into the parent page for each section and changed the TV value to:
[[DropMenu? &menuName=`subNav` &startDoc=`n` &levelLimit=`1` &topnavClass=`subNav` &hereClass=`activeLink`]]
I substituted the id of the folder page for n each time, to produce a list of the documents just within that folder.
This is a fairly standard layout structure, so have I approached this in the right way? The only other way I can see is to have a different template for each section - would that be preferable? I am only learning how to use MODx at the moment so would like to know the easiest method of implementing this.
The way things stand with the current implementation, it would be best if the values for the template variable were only editable by administrator level users. I know you can lock the template variable itself, but is it also possible to specify that only users with certain values can edit the values of certain template variables in the documents they are used in?
Thanks,
fizzy.