Adding YouTube iframe to Phoca Category

Phoca Gallery - image gallery extension
Paul Active NZ
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 Mar 2014, 21:56

Adding YouTube iframe to Phoca Category

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adding YouTube iframe to Phoca Category

Post 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
If you find Phoca extensions useful, please support the project
Sidney
Phoca Member
Phoca Member
Posts: 10
Joined: 29 Jun 2010, 10:04

Re: Adding YouTube iframe to Phoca Category

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adding YouTube iframe to Phoca Category

Post 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" />
If you find Phoca extensions useful, please support the project
Post Reply