Current user is loggin and is owner of an object.

Current user is loggin and is owner of an object.

Monday 30 October 2006 9:01:54 am - 2 replies

Author Message

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!

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