Greetings,
I have recently been assigned to a MT project, and I came very close to completing, but I am now facing the MT Markup Language and am looking for some help to define instructions for a sidebar widget.
I am building this website atop the MT Pro site template, and would like to create a widget for the 'Main Sidebar' widget set that lists the subfolders within the top-level folder, and a condition per to-level folder that decides weather the pages are listed or not.
I also am looking for the proper tags and methods to list the contents of the subfolders on an index page.
I have created a top-level folder called "Products", and then i created folders within "Products" which define each product line. I have also created a top-level folder called "Resources" and will define subfolders for various documents, such as white papers, manuals, brochures, etc.
I also need to have a condition so if the user clicks a link that takes them to a folder that has too many documents to list, then they see only links to that folder, with a list.
So the tree will look something like this:
------------------------------------
(Site)
Products (top-level folder):
Hardware:
(hardware product page)
(hardware product page)
(etc...)
Software
(software product page)
(software product page)
(etc...)
Resources (top-level folder):
(too many documents to list in a sidebar, so only display subfolder links:)
White Papers
Technical Pubs
Brochures
PDFs
Etc...
------------------------------------
I am assuming choosing to list the subfolder contents is best done by a condition on the top-level folder? I am looking for a way to define that.
I thank in advance for any help, and also, if i am approaching this the wrong way, I would appreciate any advice on how to do this by MT standards.
Thank you.
-C
Reported on Movable Type 4.3
The page listing widget would be a good place to start since it does 80% of what you're asking:
http://code.sixapart.com/svn/movabletype/tags/mt4.34/default_templates/pages_list.mtml