Page 1 of 1
Adding YouTube iframe to Phoca Category
Posted: 06 Mar 2014, 22:04
by Paul Active NZ
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
Re: Adding YouTube iframe to Phoca Category
Posted: 08 Mar 2014, 20:30
by Jan
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
Re: Adding YouTube iframe to Phoca Category
Posted: 24 Jun 2014, 23:53
by Sidney
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
Re: Adding YouTube iframe to Phoca Category
Posted: 26 Jun 2014, 00:10
by Jan
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:
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" />
TO:
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" />
or TO:
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" />