Projects/ HOWTO

< Projects‎ |
Revision as of 05:56, 5 October 2006 by Cullmann (Talk | contribs)

Jump to: navigation, search



Capacity is a versatile framework which helps you to construct your page by focusing on the content. Your pages will be simple PHP-files which include predefined header and footer. This header/footer layout the page, you only provide the real content and menu structure.

Example PHP-file

Any normal page just contains:

   $page_title = "Page Title";
   include "";
 Content of the web page
 <?php include ""; ?>

For each subsite, a in the toplevel directory of this page, which would be equal to the later documentroot on the server in many cases, may be created. This include is used by the, it should contain some information about your site, like it's name and the email address of the webmaster, this will be used by header/footer to setup the page correct.

An example would be:

   // promote which subdomain we are
   // we are in this case!
   $site = "www";
   // use new style ;) yeah
   $templatepath = "newlayout/";
   // promote title to use
   $site_title = i18n_var("K Desktop Environment");
   // links in the top bar, right
   $menuright = array ('family/'=>'Sitemap',
     'contact/'=>'Contact Us');

Even in the you can already use the i18n-functions!

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal