Site Administration Page 3 - Building a Barebones Content Management System: The Yaapi API |
Last week, I created a category titled "Test." Let’s rename it to something more meaningful, say "PHP" in keeping with my "DevShed" example, outlined in the previous section. Currently, I have one article (created in the previous article) in the database. Let me be practical; it is nonsensical to demonstrate how to display a list consisting of one article. It's time to rectify this discrepancy; I will proceed to add some more test articles using the yaapi administration module. One final bit before I dive into some PHP code. In the last article, I stated that "significant components of a web page are constant." For example, you may have a header with a logo and a banner, a left hand menu of hyperlinks, footer with legal copyright notices and so on. For the reader’s benefit, I have put together a simple HTML outline that may help you visualize such a layout and at the same time, it shoud serve as a framework for my examples. <HTML> Load this HTML template in your browser to view the following output:
I have content. I have an HTML layout. All that remains to be done is to pump in some dynamic content -- using yaapi, obviously.
blog comments powered by Disqus |