Share » Forums » General » Related objects

Related objects

Related objects

Friday 10 October 2003 3:04:54 pm - 3 replies

Author Message

David Syers

Monday 13 October 2003 10:05:45 am

Hi there alans

How have you setup the related objects in the about page? Did you just browse for related objects, or did you also copy the

<object id='xx' />

code which appears next to the object into the XML field? If you didn't then it will not show up.

As default the object will show up as a link, but you can control how they are displayed by modifying:

template/content/view/embed.tpl

Also note that related objects only work through the XML field.

Alan Sparkes

Monday 13 October 2003 11:41:34 am

Since I posted on Saturday I have come on considerably!

Thanks for the pointers. I did copy the id code for the object to get a link at the bottom but the embed template is what I am looking for. I also found doing a general search on the site and forums produced really useful info and I was able to target my questions and get answers rather than reading thru the tons of documents. I have found EZPublish really intimidating in th past but as I am longer in the tooth I am ready to wrestle with it a bit more now.

Scary theme code though - extremely off putting for the non-programming users.....

Oh and I am not sue I understand "Also note that related objects only work through the XML field."

What does that mean?

cheers
alans

Paul Borgermans

Monday 13 October 2003 12:34:42 pm

Related objects *do work* outside xml attributes, you can bring them to the surface with the current $node and look for the related objects array

Do

{$node|attribute(show,2)} to find them

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

36 542 Users on board!

Forums menu