I wanted a way to use Phoca Gallery to display pictures and YouTube videos in different categories but within the very same gallery. I had my Phoca Gallery hacked in old versions but I was now running Phoca Gallery 3.1.5 on Joomla!. My old hack wasn't "hacking" it in this new version. If I chose Modal Box, YouTube videos worked fine, but photos weren't becoming completely shown. If I chose Modal Box (Image Only), images worked but YouTube videos weren't loading.
Brief and sweet, there's no "stock" way to have each simultaneously. I am thankful to Jan, the creator from the Phoca Gallery extension for taking time to aid me hunt down a answer. I am going to share that with you correct now. I hope I save you some hairs, because I was close to ripping mine out. Very first off, I'm assuming you might be operating Joomla (2 or 3) and Phoca Gallery 3.1.x or later.
Secondly, I am assuming you might have FTP access and are comfortable editing some Phoca Gallery files.
I am also assuming you already have your gallery setup, ie images inside a category and videos in their own category. Log in to your backend and go into your main menu
Once there, you should notice your Gallery item. This is a link for your Phoca Gallery. Leave it, it's fine... I'm just telling you you're within the right spot. In the upper right of this screen, choose "New".
Now we're going to add a menu item. This can be for our video category. For "Menu Item Type", decide on "List of Images (Category View)" beneath "Phoca Gallery" on your pop up.
Now Joomla! desires you to give it a name inside the Menu Title field. I referred to as mine "Videos". At this point, you may also need choose category (on the correct). Choose the proper, pre-existing, category. Save at this point.
Now the editing files part. FTP into your host and download components/com_phocagallery/views/category/tmpl/default.xml
Open this file in an editor such as Notepad ++ and add the following code:
<field name="phocahead4" type="phocahead" phocaimage="icon-param-dv.png" default="COM_PHOCAGALLERY_CONFIG_DETAIL_VIEW_LABEL" label="" description="" />
<field name="detail_window" type="list" default="0" label="COM_PHOCAGALLERY_FIELD_DETAIL_WINDOW_LABEL" description="COM_PHOCAGALLERY_FIELD_DETAIL_WINDOW_DESC_DESC">
Save, overwrite your original (naturally, you backed up the original file already). Go back to Joomla! exactly where we have been just functioning in the Menu Manager: New Menu Item screen and refresh. Expand "Basic Options" and there's now the alternative to work with What ever detail window you need for the video gallery.
And that's all! You are able to add any choice that's usually only available within the major Phoca Gallery possibilities. Get whatever code chunk you desire from administrator/components/com_phocagallery/config.xml and drop it in to the file we worked with above, components/com_phocagallery/views/category/tmpl/default.xml.
And on a parting note, like all custom adjustments to Phoca Gallery, your changes Will likely be undone once you update the extension. Preserve your newly edited file so it may be effortlessly reuploaded.
Best Joomla Hosting Recommendation
ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $1/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.