Warning: Expiry date cannot have a year greater then 9999 in /home/kilandor/seditioforge.com/system/common.php on line 244
Enables non-standard fields in pages - More Page Fields - Seditio Forge
Enables non-standard fields in pages
Author: Trustmaster
Submitted by: Trustmaster
Date: 2008-10-21 18:46
Comments: (0)
Ratings:
 
This plugin enables non-standard fields of sed_pages table in page.php. In fact,
it is for experienced admins only, who know what they are doing.

Usage:
1. Install this plugin.

2. Add more columns to your sed_pages table in Seditio database with phpMyAdmin
or other database management tool. See details on ALTER TABLE syntax in MySQL
reference: http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
A usual example would look like this:
ALTER TABLE sed_pages ADD page_my_customcol VARCHAR(255);
Note: the column name should contain page_ prefix.

3. Enable the new column by adding it to the custom field list in plugin
configuration (Admin => Configuration => pagefields). The list is comma
separated, without the prefix. So if you have just one extra column as added in
the query above, it would be set there like this: my_customcol. If you had another
column called page_anothercol, the option value would look like this:
my_customcol,anothercol

4. Add more tags to your page.tpl. They are the same as column names but upper
case, so the above example is {PAGE_MY_CUSTOMCOL}.

TODO:
Yes, I know, the add/edit part for the columns is missing. Though I didn't have
time to implement it, and it hasn't been requested. Yet.



Download : More Page Fields
Size: 2KB, downloaded 167 times
Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.217 seconds