Page 1 of 1
new text field
Posted: 22 Jun 2012, 08:19
by singlanhn
I want to add new text field in which user can enter the resolution of the image and it shuld be displayed in the category view.
Please guide
Re: new text field
Posted: 27 Jun 2012, 00:44
by Jan
HI, for now I didn't do such option, so no exact advice, you need to set this as database column in database and then add the form field in place of uploading (frontend or backend) ... but really no specific advice

Re: new text field
Posted: 28 Jun 2012, 08:40
by singlanhn
Hey Jan,
Could you tell me which files needs to be edited so that i can atleast give it a try, I have no idea which files are used in this.
Re: new text field
Posted: 05 Jul 2012, 13:55
by Jan
Hi,
1) you need to add it to database - e.g. create new column for image table
2) edit the view where user will add it - e.g. components/com_phocagallery/views/category/tmpl/ ... for category view
3) in controller of the view: components/com_phocagallery/controllers/category.php you need to get the post data
4) in model you need to work with this data - to save them to database components/com_phocagallery/models/category.php
The same for administration part in case, it should be managed from backend.
Jan