Administration
  Home arrow Administration arrow Page 3 - Building a Barebones Content Managemen...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Building a Barebones Content Management System: The Yaapi API
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2005-09-21

    Table of Contents:
  • Building a Barebones Content Management System: The Yaapi API
  • Under The Hood
  • yaapi -- Getting Started
  • yaapi -- Listing Articles
  • yaapi -- Display An Article
  • yaapi - Display List Of Categories

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Route your faxes to your email inbox. Private, secure fax numbers available from CallWave. Choose your fax number.

    Building a Barebones Content Management System: The Yaapi API - yaapi -- Getting Started
    (Page 3 of 6 )

    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>
    <HEAD>
    <BASEFONT FACE="Arial">
    </HEAD>
    <BODY>
    <TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="5" ALIGN="CENTER"
     VALIGN="TOP" HEIGHT="450" BORDER="1">
    <TR>
     <TD COLSPAN="2" WIDTH="100%" ALIGN="CENTER">
      <P>&nbsp;</P>
      <H1>BB_CMS - A Barebones Content Management System</H1>
      <P>&nbsp;</P>
     </TD>
    </TR>
    <TR HEIGHT="350">
     <TD WIDTH="25%" ALIGN="MIDDLE" VALIGN="TOP">
      <P><A HREF="#">LINK 1</A></P>
      <P><A HREF="#">LINK 2</A></P>
      <P><A HREF="#">LINK 3</A></P>
    <P><A HREF="#">.. and so on.</A></P>
    </TD>
     <TD WIDTH="50%" ALIGN="LEFT" VALIGN="TOP"> Content from database will
    come here.</TD>
    </TR>
    <TR>
     <TD COLSPAN="2" WIDTH="100%" ALIGN="CENTER">
      <H5><A HREF="#">Copyright</A> | <A HREF="#">Privacy Policy</A></H5>
      <BR CLEAR="all" />
      <H6>&copy; 2005 BB_CMS Inc.</H6>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </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.

    More Administration Articles
    More By Harish Kamath


       · I too had gone through the first two stages of your thought process (writing your...
     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway