eZ Community » Forums » Setup & design » Displaying a related object from an...

Displaying a related object from an XML-field.

Displaying a related object from an XML-field.

Wednesday 02 April 2003 10:52:06 am - 1 reply

I have created an article-class which contains an XML-field. I have created an image and related it to the article, and pasted the code in the XML-field. (<object id='26' />blunk.gif Emoticon

I'm trying do display the XML-field like this:

{let var=fetch('content','node',hash(node_id,28))}

This displays the text, but not the related image ...

Any suggestions?

Regards Bjørn Kaarstein

Thursday 03 April 2003 8:49:40 am

The object relation in the xml fields uses the embed view for content objects, this means that you need to create override templates for embed.tpl for the various classes you create.

See design/standard/templates/content/view/embed.tpl for the original embed template, and design/admin/override/templates/content/view/embed_class_5.tpl for an example template for the image class which is bundled with the kernel clean setup.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from