Page 1 of 1

2 Detail Window Modal Box + Modal Box (Image Only)

Posted: 05 Mar 2012, 08:45
by jentabby
Is there a way I can use 2 separate detail windows for 2 different categories?

For example, I want to use Modal Box (Image Only) for some images I have in one category.

In another category, I have videos on YouTube I want to "pop up" in Modal Box.

Is this possible? How can this be done? At this point, I have to use one or the other for ALL categories, which results in:

The image pop-up not showing the entire image or;
The YouTube video not working.

Thank you.

Re: 2 Detail Window Modal Box + Modal Box (Image Only)

Posted: 06 Mar 2012, 23:46
by Jan
Hi, is is possible for menu links (so e.g. for categories too if they will have different links)

Easy in Joomla! 1.5:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

Not so easy in Joomla! 1.6, 1.7, 2.5:
https://www.phoca.cz/documents/16-joomla ... a-25-17-16

Jan

Re: 2 Detail Window Modal Box + Modal Box (Image Only)

Posted: 07 Mar 2012, 05:57
by jentabby
Thank you, Jan!

I added the following code from administrator/components/com_phocagallery/config.xml

Code: Select all

<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">
	<option value="1">COM_PHOCAGALLERY_STANDARD_POPUP_WINDOW</option>
	<option value="0">COM_PHOCAGALLERY_MODAL_POPUP_BOX</option>
	<option value="2">COM_PHOCAGALLERY_MODAL_POPUP_BOX_IMAGE_ONLY</option>
	<option value="3">COM_PHOCAGALLERY_SHADOWBOX</option>
	<option value="4">COM_PHOCAGALLERY_HIGHSLIDE</option>
	<option value="5">COM_PHOCAGALLERY_HIGHSLIDE_IMAGE_ONLY</option>
	<option value="6">COM_PHOCAGALLERY_JAK_LIGHTBOX</option>
	<option value="7">COM_PHOCAGALLERY_NO_POPUP</option>
	<option value="8">COM_PHOCAGALLERY_SLIMBOX</option>
	<option value="9">COM_PHOCAGALLERY_BOXPLUS</option>
	<option value="10">COM_PHOCAGALLERY_BOXPLUS_IMAGE_ONLY</option>
</field>
into components/com_phocagallery/views/category/tmpl/default.xml and it worked like a charm!

I am running Joomla! 2.5.2 and Phoca Gallery 3.1.5. Brilliant extension, kudos to you!

Re: 2 Detail Window Modal Box + Modal Box (Image Only)

Posted: 07 Mar 2012, 20:33
by Jan
Great to hear it, don't forget to backup your changes (for possible upgrading, the changes can be lost)

Jan