Forum Moderators: coopster
I figure I would create two templates. One for the main page and one for the subsequent story pages. Use PHP includes for the common elements and a $content variable for the actual information. Would this be a good move? If so,
How should I start thinking about feeding the information into these templates. The front page will have constant navigational elements that link to the stories of the day or week. For example, if story #1 in the first spot is about speakers, where is the best place to pull this story from? A DB? The story about speakers might only be there for a week, it needs to be replaced by the next story about microphones...is there a way to automate this process efficiently. Or should I just create regular .html files and link to them as I normally would?
I'll have few more questions, but I'll start with these and see if they make sense;) I appreciate any help on this!
M
As for static versus dynamic for the news stories. I'd go with dynamic (db) for the current news and then archive the stories as html files after a certain date. You could automate the archiving process within an Admin area ("click here to archive stories" or some such to trigger the process).
I'd think that in order to ensure the spiders get enough food you'd want to be sure there's a good proportion of static content on that top page as well.
A couple thick questions...When using PostNuke or Smarty, do you build your website the way you want it and then integrate it with the (program?) To me the websites failed at showing good introductions on how to get started from scratch. Perhaps I didn't find the right docs but I'm coming from out of the blue here.
What are some other advantages to using a CMS that you can't provide when coding the whole thing by hand?
>> I'm asking because I need to know if I should go ahead and create the CSS/Table layout and all the elements, then worry about the aspect of feeding in the information from the DB.
Thanks again...