Kunena Menu
Integrate slideshowck into com_content - article
- mail@bojovicdejan.com
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
1 year 4 months ago #74643
by mail@bojovicdejan.com
I use tag like this
{slideshowck 1211}folder=images/stories/spanija/kosta-brava/ljoret-de-mar/mariner|width=1000{/slideshowck}
and work OK.
I would like to integrate slideshowck into com_content - article
<div class="galerija">
{slideshowck 1211}folder=<?php echo $this->item->jcfields[54]->value; ?>{/slideshowck}
</div>
fields 54 is path to folder
The page displays the code, but not the gallery.
{slideshowck 1211}folder=images/stories/spanija/kosta-brava/ljoret-de-mar/mariner|width=1000{/slideshowck}
What am I doing wrong?
{slideshowck 1211}folder=images/stories/spanija/kosta-brava/ljoret-de-mar/mariner|width=1000{/slideshowck}
and work OK.
I would like to integrate slideshowck into com_content - article
<div class="galerija">
{slideshowck 1211}folder=<?php echo $this->item->jcfields[54]->value; ?>{/slideshowck}
</div>
fields 54 is path to folder
The page displays the code, but not the gallery.
{slideshowck 1211}folder=images/stories/spanija/kosta-brava/ljoret-de-mar/mariner|width=1000{/slideshowck}
What am I doing wrong?
Please Log in or Create an account to join the conversation.
1 year 4 months ago #74649
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Integrate slideshowck into com_content - article
Hi
when it works, where do you add it ? into an article ?
because the tags shall work by default in the articles and you say " into com_content - article" it does not
or may be that
- it works with the tag written manually
- it does not work when you add the php code
Please give me some details
CEd
when it works, where do you add it ? into an article ?
because the tags shall work by default in the articles and you say " into com_content - article" it does not
or may be that
- it works with the tag written manually
- it does not work when you add the php code
Please give me some details
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- mail@bojovicdejan.com
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
1 year 4 months ago #74650
by mail@bojovicdejan.com
Replied by mail@bojovicdejan.com on topic Integrate slideshowck into com_content - article
The site of a travel agency that has several thousand hotels, in order not to create a module with a gallery for each object, the idea is to just add the path to the folder in the field.
I found a solution that works ok
// Get the folder from the custom field
$folder = $this->item->jcfields[54]->value;
// Build the slideshowck plugin tag
$slideshowTag = '{slideshowck 1211}folder=' . $folder . '{/slideshowck}';
// Import the content plugins
JPluginHelper::importPlugin('content');
// Trigger the plugin to process the tag
echo JHtml::_('content.prepare', $slideshowTag);?>
PS.
Please change my username mail@bojovicdejan.com to bojovicdejan
Thanks
I found a solution that works ok
// Get the folder from the custom field
$folder = $this->item->jcfields[54]->value;
// Build the slideshowck plugin tag
$slideshowTag = '{slideshowck 1211}folder=' . $folder . '{/slideshowck}';
// Import the content plugins
JPluginHelper::importPlugin('content');
// Trigger the plugin to process the tag
echo JHtml::_('content.prepare', $slideshowTag);?>
PS.
Please change my username mail@bojovicdejan.com to bojovicdejan
Thanks
Please Log in or Create an account to join the conversation.
1 year 4 months ago #74653
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Integrate slideshowck into com_content - article
ok, great that you have found a solution
for your username, you shoul be able to change that in your account with the Edit button at the top right
for your username, you shoul be able to change that in your account with the Edit button at the top right
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- mail@bojovicdejan.com
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
1 year 3 months ago #74736
by mail@bojovicdejan.com
Replied by mail@bojovicdejan.com on topic Integrate slideshowck into com_content - article
Is it possible to use an external folder from another domain?
Please Log in or Create an account to join the conversation.
1 year 3 months ago #74737
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Integrate slideshowck into com_content - article
Hi
you can not do that, it must be a folder on your server
to load from another domain, this means that you will need to parse the html page rendered by the other domain
CEd
you can not do that, it must be a folder on your server
to load from another domain, this means that you will need to parse the html page rendered by the other domain
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds




