Saturday 04 February 2012 6:31:10 pm - 1 reply
Hi,
I'm using the latest version of the community package, with Plain site.
I have created blog posts including images that show fine in the admin site. The template tries to list the available posts with their titles and images, all embedded in hyperlinks. However, the images don't show up. Here is the code in the {foreach $posts as $p} loop:
<a class="post-photo" href={$p.url_alias|ezurl}>{attribute_view_gui image_class="medium" attribute=$p.data_map.image}</a>
Thanks!
PS: how can I edit/mark-as code here (I don't see any code formatting on editor's menu above)?
Answer: well, it didn't because I set the attribute "checkbox/Image show" for the class where the image is and forgot to check it ...
Modified on Monday 06 February 2012 10:00:15 am by Ginger Opariti
Monday 06 February 2012 4:40:08 pm
Hi Ginger,
Thanks for updating the thread with the "self-solution" : might help others.
Concerning your last question : you can embed all sorts of code (PHP, eZ Template, eZ INI, SQL, HTML, XML, javascript) by clicking the small "text page" icon in the rich editor toolbar ( the overlay text reads "insert literal text" ), and select, from the "language" attribute, the one you need.
Cheers,
You must be logged in to post messages in this topic!