Add extra tab on "add new category" page

Phoca Gallery - image gallery extension
GertK
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 17 Oct 2024, 15:20

Add extra tab on "add new category" page

Post by GertK »

Hi

Is it possible to create another tab on the "Category: [ New ]" page so I can add more information to the category, like a box where I can write wether condition etc. Im aware that I need to add extra rows to the database under the ID for the category (_phocagallery_categories in the DB)

What I would like is this:
https://imgur.com/F195M6f
https://imgur.com/PeCKNIo

What files do I change / add the codes I need?

Hope some one can advice?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add extra tab on "add new category" page

Post by Jan »

Hi, yes, all this is managed by Joomla, so you need to know how Joomla form fields work:

- the fields needs to be defined in XML
administrator/components/com_phocagallery/models/forms/phocagalleryc.xml
- then the view needs to be updated:
administrator/components/com_phocagallery/views/phocagallerycp/tmpl/default.php

and database structure for table category changed. :idea:

Jan
If you find Phoca extensions useful, please support the project
GertK
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 17 Oct 2024, 15:20

Re: Add extra tab on "add new category" page

Post by GertK »

hmmm, checked the 2 files and im not sure how to do it. Do you know where I can get some more information or see some examples, so I can get some ideas on how to do it :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add extra tab on "add new category" page

Post by Jan »

Hi, unfortunately, I didn't do such customization yet, so I don't have any exact advices for this. :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply