Tuesday 28 November 2006 2:25:28 am
You override the article template and add a if $current_user.is_logged_in check. like this:
{if $current_user.is_logged_in}
<div class="attribute-tipafriend">
<p>
<a href={concat('/content/tipafriend/',$node.node_id)|ezurl}>{"Tip a friend"|i18n("design/base")}</a>
</p>
</div>
{/if}
about the user object: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/objects/ezuser
about template override: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_override_system PS! There where some issues with forum posting as you can see from the two last posts, but it's fixed now.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|