Integrate slideshowck into com_content - article

More
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?

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #74649 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #74650 by mail@bojovicdejan.com
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

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #74653 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74736 by mail@bojovicdejan.com
Is it possible to use an external folder from another domain?

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #74737 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.211 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 674 guests and no members online