author without email

Author Message

risto CMS user

Monday 06 February 2006 1:02:23 am

hi Im having some problems displaying the author without showing the email.

would someone be so kind and show me how this is done?

{attribute_view_gui attribute=$node.object.data_map.author.name}

Thomas Nunninger

Monday 06 February 2006 2:52:34 am

Hi,

in this case attribute_view_gui calls the template design/standard/templates/content/datatype/view/ezauthor.tpl which contains the following content:

{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{section var=Authors loop=$attribute.content.author_list sequence=array( bglight, bgdark )}
{$Authors.item.name|wash( xhtml )} <{$Authors.item.email|wash( email )}>{delimiter},{/delimiter}
{/section}

So you can create a file design/<your_design>/templates/content/datatype/view/ezauthor.tpl and delete the mail things or put an {if} araound it.

Have a nice day

Thomas

risto CMS user

Monday 06 February 2006 2:56:11 am

:-) thanx this works just perfectly!

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