scrieler _
|
Monday 31 January 2011 3:30:15 am
I have this problem if I send a mail from embed view, don't know how to get the $collection info... my problem is the $node.contentobject_id from embed object I have another object id, my solution:
{if or(not($collection_id),not($node.contentobject_id))}
{foreach $node.children as $children}
{if eq($children.class_identifier,'feedback_form')}
{def $embedobjectid = $children.contentobject_id}
{/if}
{/foreach}
{def $collection = fetch( content, collected_info_collection, hash( contentobject_id, $embedobjectid ) ) }
{else}
{def $collection = cond( $collection_id, fetch( content, collected_info_collection, hash( collection_id, $collection_id ) ),
fetch( content, collected_info_collection, hash( contentobject_id, $node.contentobject_id ) ) )}
{/if}
|