Monday 22 September 2003 7:27:27 am
I haven't written an override because this code is part of the pagelayout.tpl for my design. The purpose is to have a list of folders appear in the left column without any details about the folders. The code in my original post does that quite well. I also know that if I change $node.node_id to $parent_node.node_id, I'll get a list of what's in the parent folder, which is what I want when I'm viewing an article itself and not a list of what's in a folder. My problem is how to I structure the {section} and {section-else} statements so that essentially ezP is told "If you are displaying a folder that has contents, either sub-folders or articles, show a list of those folder or article titles. But if you're displaying an article, show a list of all the articles or sub-folders that are in the folder the current article is found in." In other words when I've reached the bottom of the folder tree, using the above code the list would be empty, using the $parent_node.node_id code, the list would be populated with a list of articles and sub-folders, one of which being the current article. If {section} and {section-else} is not the way to accomplish this, what is.
Thanks. RWW
|