4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Rembrandt on May 20, 2013, 05:24:27 PM
-
This Mod is a example for the Mod: "Additional category fields" with "textarea"
Required, this Mod: Additional category fields (http://www.4homepages.de/forum/index.php?topic=31231.0)
Example Mod with "radio" Button (http://www.4homepages.de/forum/index.php?topic=31232.0)
1.) add in your Database:
ALTER TABLE 4images_categories ADD category_mytext TEXT NOT NULL
2.) add in db_field_definitions.php :
$additional_category_fields['category_mytext'] = array($lang['category_mytext'], "textarea", 0);
3.) add in your lang/main.php:
$lang['category_mytext'] = "View my text:";
4.) add (where ever you want) e.g. in your thumbnail, category or details.html:
{category_mytext}
mfg Andi
-
What does it mean "DB:"?
-
Database
-
Sorry for my English. I have a problem. Additional description of the category appears on the page and the database. But when editing categories the "View My text" is empty. Why?
-
Sorry for my English. I have a problem. Additional description of the category appears on the page and the database. But when editing categories the "View My text" is empty. Why?
Check Step 1.6) and 1.7) from here http://www.4homepages.de/forum/index.php?topic=31231.0
mfg Andi
-
Check Step 1.6) and 1.7) from here http://www.4homepages.de/forum/index.php?topic=31231.0
mfg Andi
Thanks for pointing the error. Works.