Forums
This topic is locked
Dynamic navigation question
Posted 13 Jul 2007 16:14:17
1
has voted
13 Jul 2007 16:14:17 Doug Geiste posted:
Hello! I'm building a site using ASP pages where I'll be creating templates so that changes can be made with Contribute.Here's my question. My customer would like an announcements section on the home page made up of a series of links to the announcement pages. Easy enough.
However, I was wondering if it were possible to make this navigation dynamic. What I'm thinking is to have the announcement pages placed in a separate folder, and then have code on the home page dynamically pull the title of each page.
I were to create the pages formated with XHTML, and then use an XSLT fragment on the home page, that I can have it loop through all the pages in that folder, extract the title tag, and make links out of them. But, I'm not sure how I would get the filenames from that loop.
My next option would be to use the Filesystem object to loop through the pages to pull the filename, but then I'm not sure how to extract the title tag for the link name.
Or, do I merely use a combination of both to do what I want?
Thoughts?
Thanks!
Doug