Creating Skins

From Efiction

(Difference between revisions)
(Blocks)
(Template Variables)
Line 6: Line 6:
===Template Variables===
===Template Variables===
 +
 +
Items in curly brackets are variables, i.e. {output} or {authors}. They contains the actual content that will be printed out on the page. You can surround these attributes with any kind of html that you want -- font tags, tables, whatever. Some attributes are required on some of the template pages, and some are optional.
 +
 +
Certain template variables will only be useable on certain pages or within certain [[#Template Blocks|blocks]] while others can be placed anywhere.  The [[Page Links|page links]] are among the variables that can be placed anywhere on any page.
 +
===Template Blocks===
===Template Blocks===

Revision as of 03:41, 14 July 2006

In theory, there is no limit to the number of skins you can create for your site. If you have created skins for eFiction 1.1, you won't find many differences in 2.0 and 3.0. The number and names of the .tpl files have changed some though in later versions.

Contents

The Basics

The .tpl files

Template Variables

Items in curly brackets are variables, i.e. {output} or {authors}. They contains the actual content that will be printed out on the page. You can surround these attributes with any kind of html that you want -- font tags, tables, whatever. Some attributes are required on some of the template pages, and some are optional.

Certain template variables will only be useable on certain pages or within certain blocks while others can be placed anywhere. The page links are among the variables that can be placed anywhere on any page.

Template Blocks

Changes in 2.0

Code Blocks

How to use variables.php

How to use extra_header.php

Converting 1.1 Skins to 2.0

See Converting Skins 1.1 to 2.0

Changes in 3.0

Personal tools