Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Best Approach - Index of articles
Gregg Faus
I've been deciding on the the best approach to generate an index page of articles. This index page would allow you to go to individual articles and would be regenerated any time an article is added or modified (including deletions).
I would like also like to create this in the most reusable way! So with that said, would this be the best approach/algorithm?
1) In the index tpl file, read the files in the directory of articles. Extract the dcr name by running an iwextattr command. If the dcr is located, extract the title and filename and list it in the generated page.
2) To make sure the index page is regenerated any time an article is modified, run an the iwgen command to recompile the index page. This code is put into the individual article tpl file.
Is this the best way? What won't it do?
Find more posts tagged with
Comments
There are no comments yet