Hi Lefteris,
I have another question. With Joomla 3 we used Helix Ultimate Template and its Article Gallery function and were able to get the first image of the gallery in the category blog layout. So we could display it next to the text.
This was really cool because our customer can create the articles by himself and the image in the category does not have to be selected or uploaded into the article intro image.
I was trying to reach this with your plugin (plugin_showtime_fields). I made an override for the carousel layout that is correctly displayed in the article details. But if I try to get the first picture in the category block by "$this->item->jcfields['ID of the field'], there the value is the whole gallery like in my carousel override and the rawvalue is just the ID of the gallery.
I am able to get the image path, when I put a span with a class and two special glyphs at the beginning of the override, like this:
echo '<span class="first-image">♥'.$gallery->images[0]->preview.'♥</span>';
Then I can explode the value of the custom fiels at the ♥ and have the correct path to the image. But then the span is also at the article details page where I have to hide it with CSS. I am not that happy with this solution.
Can you think of a more clever way how I can get the single images paths? Or maybe just the first, that would be sufficient.
Kind regards,
Tanja
I have another question. With Joomla 3 we used Helix Ultimate Template and its Article Gallery function and were able to get the first image of the gallery in the category blog layout. So we could display it next to the text.
This was really cool because our customer can create the articles by himself and the image in the category does not have to be selected or uploaded into the article intro image.
I was trying to reach this with your plugin (plugin_showtime_fields). I made an override for the carousel layout that is correctly displayed in the article details. But if I try to get the first picture in the category block by "$this->item->jcfields['ID of the field'], there the value is the whole gallery like in my carousel override and the rawvalue is just the ID of the gallery.
I am able to get the image path, when I put a span with a class and two special glyphs at the beginning of the override, like this:
echo '<span class="first-image">♥'.$gallery->images[0]->preview.'♥</span>';
Then I can explode the value of the custom fiels at the ♥ and have the correct path to the image. But then the span is also at the article details page where I have to hide it with CSS. I am not that happy with this solution.
Can you think of a more clever way how I can get the single images paths? Or maybe just the first, that would be sufficient.
Kind regards,
Tanja