I’ve started making a TV for each sidebar for every template that I make, and ripping out all the content from the sidebar and putting it in the TV. So I’ll have [*left*] and/or [*right*] to go along with [*content*]!
That way it’s easy enough to change the TV if you want to change the default sidebar content, and you can customize the sidebar on a document-by-document basis as well. Sometimes I even do this for top blocks, so headers and banners can be customized. My "Valentine" variation on Greenery does this.
I’m minimizing the actual template as much as possible, keeping it down to just the basic layout and MODx tags for the content.
I’m still a bit confused on the SubMenu build in the Greenery template. if Submenu is called within a subfolder, it should give the children of the document that calls it as far as i can tell, but when I use the greenery template in a subfolder already within a folder, it still lists the children of the top folder in the submenu, not the children of the subfolder.
Perhaps my approach is wrong, but I am trying to generate a submenu for a category that is not meant to be listed globally in the level-1-delimited DropMenu in Greenery. as the category is meant only to appear on the main index page, I made the main index page a fiolder and placed the category within it so that it only appears on the main index page within the submenu. The only problem with this is that i cannot figure out a way to have the user go to the category and then see the children listed in the submenu.
Any advice, as I am a newbie and by no means expert in php, would be greatly appreciated. Is it simply the case that I should make a seperate template for this page? I’ve noticed that I can use DropMenu instead and set the startdocument to the subfolder and that works, but I don’t know how to that up as a TV that would be globally applicable.