In: Content Management Systems / Seditio / Seditio Tutorials

TPL Plugins

How to code plugins using a TPL file.

Print
Author: Dyllon
Submitted by: Brock   Date: 2008-03-09 19:04
Comments: (0)   Ratings:
Information

This tutorial will walk you through on how to create plugins using tpl files rather than hard coded variables. The download link is at the bottom to get a running preview. Most of the tutorial is inside of the code. I find it's a lot easier learning to code plugins while looking at the code in notepad or your favorite text editor. However, here are some pictures that explain what this will teach.

About the Plugin

This plugin will simply just list 5 users from your website and show their username and user id.

Pictures

This plugin will walk you through on how to setup the look of the tpl file once you have the plugin all coded.



It will teach you step by step with comments everywhere for each addition of code, and tell you what it's doing and how it works.



This is the folder structure of the plugin. Pretty standard and basic.



This is the final outcome of the plugin. It's very basic :)
Download : TPL Plugins
Size: 4KB, downloaded 142 times