Page 1 of 1
Template Override for Phoca Gallery Image Module
Posted: 13 Jan 2014, 00:29
by crood
Hello,
I was wondering how I can create a template override for the Phoca Gallery Image Module. I tried to make one, but it seems that it gets its styles from the component. Does anyone what views of the component the module is using?
Thanks in advance,
Chris
Re: Template Override for Phoca Gallery Image Module
Posted: 14 Jan 2014, 22:56
by Jan
Hi, just see the module code:
- there are loaded css classes of the component
- and there are used helper libraries from the component.
Jan
Re: Template Override for Phoca Gallery Image Module
Posted: 15 Jan 2014, 03:16
by crood
Jan,
I just looked at mod_phocagallery_image.php file and noticed that the html for this image is located in this file instead of the layout file. How does own overwrite this html using template overrides? If were to do this then I would have to hack the module or copy the module to my computer rename it and do the modifications that way, so when there is an update I don't lose my code.
Chris
Re: Template Override for Phoca Gallery Image Module
Posted: 18 Jan 2014, 21:12
by Jan
Hi, yes:
- you can do some replacement of the code in the template file
- or directly customize the code in php file
When you will update the module then you need to see both files and compare them for the changes and add the changes to your version.
Jan