Hi,
I have a page using this format: Phoca Gallery » List of Images (Category View). The category I've selected is "New Zealand"
I am showing a number of album thumbnails (albums that sit underneath the "New Zealand" parent category). Before the thumbnails I've added some intro copy straight into the editor. I'm trying to add code for an iframe too, but each time I save it, that code disappears. Is it not possible to add a video to a Phoca category?
Thanks,
Paul
Adding YouTube iframe to Phoca Category
-
Paul Active NZ
- Phoca Newbie

- Posts: 1
- Joined: 06 Mar 2014, 21:56
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Adding YouTube iframe to Phoca Category
Hi, there can be limit in your editor
- in editor - e.g. iframe is not allowed - you should check settings of your editor - go to Joomla! Plugin manager in administration and click on editor to change the settings.
Jan
- in editor - e.g. iframe is not allowed - you should check settings of your editor - go to Joomla! Plugin manager in administration and click on editor to change the settings.
Jan
If you find Phoca extensions useful, please support the project
-
Sidney
- Phoca Member

- Posts: 10
- Joined: 29 Jun 2010, 10:04
Re: Adding YouTube iframe to Phoca Category
Hi Jan! I'm checked it. It's true! We can't insert iframe in category. I'm inserting iframe in any other article and it's work fine.
Phoca Gallery 4.1.1
Joomla! 3.3.1
Phoca Gallery 4.1.1
Joomla! 3.3.1
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Adding YouTube iframe to Phoca Category
Hi, then you need to customize the Phoca Gallery code, see similar posts in this forum, you should remove "safehtml" parameter in XML of categories in Phoca Gallery:
administrator\components\com_phocagallery\models\forms\phocagalleryc.xml
FROM:
TO:
or TO:
administrator\components\com_phocagallery\models\forms\phocagalleryc.xml
FROM:
Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAGALLERY_FIELD_DESCRIPTION_LABEL" filter="safehtml" description="COM_PHOCAGALLERY_FIELD_DESCRIPTION_DESC" /> Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAGALLERY_FIELD_DESCRIPTION_LABEL" description="COM_PHOCAGALLERY_FIELD_DESCRIPTION_DESC" /> Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAGALLERY_FIELD_DESCRIPTION_LABEL" filter="raw" description="COM_PHOCAGALLERY_FIELD_DESCRIPTION_DESC" />If you find Phoca extensions useful, please support the project