New custom field in category
Posted: 30 Oct 2010, 11:00
Hello everybody.
I want to place a new field in the categories in Phoca Gallery. I edited the administrator/component/com_phocagallery/views/phocagalleryc/tmpl/form.php. I made a new line in the code, and created a new input field, and I wrote this "<?php echo $this->items->city; ?>" to the input's value, and it worked, because I previously edited the database, made a new column, and write something as value to the category.
My question is, that what file should I edit to can edit this field value in the administrator view of categories(when I want to edit the category)?
Right now Phoca gallery only write the line value to the field, but if I edit this value nothing happen when I saved the category.
Sorry for my English, I hope somebody can help me.
Thanks a lot, bye.
KJ.
I want to place a new field in the categories in Phoca Gallery. I edited the administrator/component/com_phocagallery/views/phocagalleryc/tmpl/form.php. I made a new line in the code, and created a new input field, and I wrote this "<?php echo $this->items->city; ?>" to the input's value, and it worked, because I previously edited the database, made a new column, and write something as value to the category.
My question is, that what file should I edit to can edit this field value in the administrator view of categories(when I want to edit the category)?
Right now Phoca gallery only write the line value to the field, but if I edit this value nothing happen when I saved the category.
Sorry for my English, I hope somebody can help me.
Thanks a lot, bye.
KJ.