Self on Default selection item - Object relation

Self on Default selection item - Object relation

Thursday 09 June 2011 10:54:37 am - 3 replies

Author Message

Marko Žmak

Thursday 09 June 2011 11:34:10 am

Hm, maybe you could use the object realtions datatype (note the plural) and then set "Template based, single" for the selection method.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Sao Tavi

Thursday 09 June 2011 11:42:26 am

Thank you, Marko

I didn't knew that that option exists.

Anyway, as I had really close to what I needed, I alredy created the new datatype. On the other hand, wouldn't changing the template change the functionality of these datatype site wide?

Marko Žmak

Thursday 09 June 2011 12:00:18 pm

The template you would be using is:

  • templates/node/view/objectrelationlist.tpl

and since it's a node view templates I suppose the same override keys are applied. So you shold be able to use different templates for different classes.

Maybe also the attribute identifier could be used as the override key, but you should dig a little bit more to find that out.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.