View Single Post
  #2  

Adding Templates

« Previous Chapter   Templates
  Next Chapter »

This Wiki entry will describe how to add a new template to your Pligg website.
 

Templates - Contents

First steps to do before starting a template.


This step will include your template in the settemplate.php file so that it can be selected.
Open: /templates/templates.tpl
Add to the last line:
HTML Code:
TemplateName

Create: /templates/TemplateName/ directory, replacing TemplateName with your own template title.
Copy: The contentes of a preexisting template of your choice. (ex. /templates/mollio/)
Paste: The copied template contents of your choice into the new /templates/TemplateName/ directory. This will function as a starting point for creating your new template and it will make the process a lot easier than trying to figure it out and write a template from scratch.

Let's take for example Digital nature, now the default template for the pligg beta 9.
The main file is pligg.tpl.
header.tpl and footer.tpl are, as you may guess the commun header and footer for all you site. the main content is index_center.tpl.
Each entry is located in the file link_summary.tpl
sidebar.tpl contain the modules located in the directory sidebar_modules

« Previous Chapter   Templates
  Next Chapter »

Contributors: Yankidank
Created by Yankidank, 09-03-2007 at 03:16 PM
Last edited by Yankidank, 09-12-2007 at 08:31 PM
1 Comments , 1402 Views