JLayoutHelper and rendering fulltext image in template override

388 views
Skip to first unread message

OLSA

unread,
Oct 9, 2014, 7:08:44 PM10/9/14
to joomla-de...@googlegroups.com
Hello.

How to render fulltext image in custom template override because this
 JLayoutHelper::render('joomla.content.fulltext_image', $this->item); // also tried full_image, image_fulltext etc...
doesn't work.

If we want to render intro_image, this works (Joomla default):
 JLayoutHelper::render('joomla.content.intro_image', $this->item);
 
Also there is always option:
$images = json_decode($this->item->images)
...and other part

But I am really interested why JLayoutHelper with render method not working for fulltext images?

regards

Dimitris

unread,
Oct 9, 2014, 7:28:45 PM10/9/14
to joomla-de...@googlegroups.com
There is no full text image layout. check /layouts/joomla/content for the available ones. Why don’t you just echo $this->item->images[x]; ?
Message has been deleted

OLSA

unread,
Oct 9, 2014, 8:31:03 PM10/9/14
to joomla-de...@googlegroups.com
Thanks Dimitris, yes correct. I was fast on writing but lazy to check render path ;). But also, it would be more elegant if we have and full_text image inside. Thanks and regards.
Reply all
Reply to author
Forward
0 new messages