- Posts: 34
COMMUNITY FORUM
Load SIG Pro in K2 template
- ljk
- Topic Author
- Offline
- Junior Member
Less
More
11 years 1 month ago #117078
by ljk
Load SIG Pro in K2 template was created by ljk
Hi,
We have a Joomla 3.1.5 site and have installed K2 2.6.7 with SIG Pro 3.0.2 on it.
I can use the editor SIG Pro button to display the SIG image gallery in the K2 item content area. But what I want to do is display the SIG Pro gallery in a different area of the K2 item details template. What code do I need to add to the K2 item template in order to display a particular SIG Pro album where I want it displayed?
I tried adding:
{gallery}103-33-North-Templeton-LowRes{/gallery}
where I wanted the gallery to be displayed in the template, but that didn't work.
In Joomla 1.5 I had this code to load a K2 plugin:so I tried the following code:but all I get out is: {gallery}103-33-North-Templeton-LowRes{/gallery}
Does anyone know how to get this to work in the template?
Thank you.
We have a Joomla 3.1.5 site and have installed K2 2.6.7 with SIG Pro 3.0.2 on it.
I can use the editor SIG Pro button to display the SIG image gallery in the K2 item content area. But what I want to do is display the SIG Pro gallery in a different area of the K2 item details template. What code do I need to add to the K2 item template in order to display a particular SIG Pro album where I want it displayed?
I tried adding:
{gallery}103-33-North-Templeton-LowRes{/gallery}
where I wanted the gallery to be displayed in the template, but that didn't work.
In Joomla 1.5 I had this code to load a K2 plugin:
$mainframe = &JFactory::getApplication();
JPluginHelper::importPlugin('k2', 'k2vsig');
$dispatcher = &JDispatcher::getInstance();
$item->text = '{k2vsig}' . $gallery_images . '{/k2vsig}';
$item->text = '{gallery}103-33-North-Templeton-LowRes{/gallery}';
$dispatcher->trigger('onK2PrepareContent', array(&$item, &$params, null));
$gallery2 = $item->text;
echo $gallery2;
$mainframe = &JFactory::getApplication();
JPluginHelper::importPlugin('k2', 'gallery');
$dispatcher = &JDispatcher::getInstance();
$item->text = '{gallery}103-33-North-Templeton-LowRes{/gallery}';
$dispatcher->trigger('onK2PrepareContent', array(&$item, &$params, null));
$gallery2 = $item->text;
echo $gallery2;
Does anyone know how to get this to work in the template?
Thank you.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
11 years 1 month ago #117079
by Yiota
Replied by Yiota on topic Re: Load SIG Pro in K2 template
An easy solution would be to add a textarea extrafield for the gallery and put the gallery tags in there. Then you could use the extrafiled value with this code snippet
anywhere in the item.php file you want to show it.
$this->item->extraFields->extraField Alias->value
anywhere in the item.php file you want to show it.
Please Log in or Create an account to join the conversation.
- ljk
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
11 years 2 weeks ago #117080
by ljk
Replied by ljk on topic Re: Load SIG Pro in K2 template
Hi,
Unfortunately, what you suggested is not what I need. If I were to edit hundreds of items and add the {gallery} {/gallery} tags around the media folder then your suggestion will work.
What I would like is to have the template add the {gallery} {/gallery} tags around the media folder to display the image gallery.
Unfortunately, what you suggested is not what I need. If I were to edit hundreds of items and add the {gallery} {/gallery} tags around the media folder then your suggestion will work.
What I would like is to have the template add the {gallery} {/gallery} tags around the media folder to display the image gallery.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
11 years 2 weeks ago #117081
by Yiota
Replied by Yiota on topic Re: Load SIG Pro in K2 template
I'm afraid that this is not possible.
Please Log in or Create an account to join the conversation.