Administration
  Home arrow Administration arrow Page 5 - 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 
 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: An Introduction
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2005-09-14

    Table of Contents:
  • Building a Barebones Content Management System: An Introduction
  • yaapi and patTemplate and patUser = A barebones CMS
  • Getting Started with yaapi
  • Setting it up
  • First Glance

  • 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
     
     
    Building A Barebones CMS - Video Tutorial
     
    ADVERTISEMENT

    Free companion video tutorial for this article! Click Here!

    Building a Barebones Content Management System: An Introduction - First Glance
    (Page 5 of 5 )

    Now that I’ve set up the application, it is time to take yaapi for a quick test ride. Well, not so fast; it is pointless to have a CMS without any content.

    Time to rectify this little anamoly. I load the yaapi admin module by pointing my browser to the following URL - http://localhost/yaapi/admin/. You should view the following screen in your browser.

    Note that you may have to replace "localhost" with the name of the server where you’ve installed the application. For my initial demonstration, I click on the "New" button in the "Categories" section to load the following screen that allows me to add categories and ...

    .... then, I click the "New" control of the "Articles" section to add an "Article" using the following form:

    Note that you have to set the "Approved" flag to "Y," otherwise the article will not be available for display on the website. With the insertion of content into the database complete, it's time demonstrate how to display a simple listing of articles using yaapi. And to make things easier -- at least, for me -- the yaapi distribution contains a set of sample scripts in the "demo" directory.

    For example, I can view the article that I’ve just inserted using the following URL: http://localhost/yaapi/demo/intros.php.

    You should view something like this:

    While the output may not appear fancy at first glance, it does serve the purpose of demonstrating the capabilities of yaapi. Some of you might complain that I breezed through the admin screen. However, there’s no reason to despair because all will be unraveled in due course; that’s a promise.

    Same Time, Same Website -- Next Week

    That’s about it for this first part of my tutorial on building a barebones CMS. I started the article by giving a quick introduction to the different APIs that I intend to use. These are yaapi, a useful API to manage content stored in a MySQL database; patTemplate, a versatile templating engine; and patUser, a nifty tool to manage users and permissions developed by the team behind patTemplate.

    Next, I gave you a step-by-step outline of how to install and configure the yaapi application on your web server. Then, I showed you a quick workaround to ensure that you can update your configuration without having to edit the core API files. Finally, I gave you a whirlwind tour of the yaapi admin module, followed by a demonstration of the yaapi APIs.

    In the next part, I shall explain the twin concepts of "categories" and "articles" in the context of "yaapi." It is critical to understand these concepts in order to leverage the capabilities provided by yaapi. Next, I will also demonstrate the true power of yaapi: the properties and methods of the "article" class that help to retreive content from the database and display it on the web page.

    Till then, enjoy!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Looking forward to the rest of the articles in this series. It would be great if you...
       · Hi,:lol: This tutorial has excellent timings. Good work Harish..Regards
       · Yes - this is a good point. By default, yaapi allows you to add a single image to...
       · hi, I'm wondering what you mean by execute command in the 3 last line. what am I...
       · Hi,With respect to your query, you have to execute the command from the command...
       · Hi, thanks the help. I'm getting an error when I try to run that line. I've tried...
     

       

    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




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