Monday 30 October 2006 9:01:54 am - 2 replies
Claudia Kosny
Wednesday 01 November 2006 9:06:46 am
Hi Laurent
I would try to add an attribute filter that filters by owner. See example 16 on http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list
Claudia
laurent le cadet
Thursday 02 November 2006 2:19:24 am
Thanks again Claudia,
This code do the trick :
{def $count=fetch( 'content', 'list_count', hash( 'parent_node_id', 153, 'attribute_filter', array( array( 'owner', '=', $current_user.contentobject_id ) ) ) )} {section show=$count|eq(0)} <form method="post" action={"content/action"|ezurl}> <input type="hidden" name="ClassIdentifier" value="cv" /> <input type="hidden" name="NodeID" value="153" /> <input class="searchbutton" type="submit" name="NewButton" value="Create CV" /> </form> {/section} {undef $count}
Laurent
You must be logged in to post messages in this topic!