Hi Stefan,

 On Thu, 3 Mar 2011 11:02:34 +0700 (GMT+07:00), Stefan Georg 
 <[email protected]> wrote:
> I'm using attribute_view_gui function to load an image. It finds the
> embed template file correctly. I was wondering if there was a way in
> that template file to find the object of the article which included
> it. I'm using ezflow, so I don't want {$#node} as that points to the
> parent page Home. I would want the article which included it. I can
> get it from the reverse_related_contentobject_array, but that could
> have multiple articles in it. Any other suggestions? Would be nice if
> the variables in the calling template were available as namespaced to
> something like $parent_template.variables...

 in the template called by attribute_view_gui you have the variable 
 $attribute which is the eZContentObjectAttribute [1] instance you'd like 
 to display, so you can write something like :

 {$attribute.object}

 to get retrieve the eZContentObject which has the attribute.

 [1] 
 
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezcontentobjectattribute

 Cheers
-- 
 Damien Pobel
 http://pwet.fr/blog
-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to