Author Topic: [Mod] Example for the Mod: "Additional category fields" with "textarea"  (Read 14400 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
This Mod is a example for the Mod: "Additional category fields" with "textarea"

Required, this Mod: Additional category fields

Example Mod with "radio" Button

1.) add in your Database:
Code: [Select]
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:
Code: [Select]
{category_mytext}

mfg Andi
« Last Edit: September 24, 2013, 05:25:07 AM by Rembrandt »

Offline Pawel_el

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [Mod] Example for the Mod: "Additional category fields" with "textarea"
« Reply #1 on: September 15, 2013, 03:09:35 AM »
What does it mean "DB:"?

Rembrandt

  • Guest
Re: [Mod] Example for the Mod: "Additional category fields" with "textarea"
« Reply #2 on: September 15, 2013, 04:43:20 AM »
Database

Offline Szooguun

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [Mod] Example for the Mod: "Additional category fields" with "textarea"
« Reply #3 on: September 23, 2013, 08:55:28 PM »
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?

Rembrandt

  • Guest
Re: [Mod] Example for the Mod: "Additional category fields" with "textarea"
« Reply #4 on: September 23, 2013, 09:53:34 PM »
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

Offline Szooguun

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [Mod] Example for the Mod: "Additional category fields" with "textarea"
« Reply #5 on: September 23, 2013, 09:57:22 PM »
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.