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.

eZ debug

Timing: Jan 22 2025 02:10:42
Script start
Timing: Jan 22 2025 02:10:42
Module start 'layout'
Timing: Jan 22 2025 02:10:42
Module start 'content'
Timing: Jan 22 2025 02:10:43
Module end 'content'
Timing: Jan 22 2025 02:10:43
Script end

Main resources:

Total runtime1.3246 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1484151.2109
Module start 'layout' 0.00540.0028 740.359436.6484
Module start 'content' 0.00811.3157 777.0078534.1094
Module end 'content' 1.32380.0008 1,311.117211.8594
Script end 1.3246  1,322.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2189160.0002
Check MTime0.00130.0949160.0001
Mysql Total
Database connection0.00120.087210.0012
Mysqli_queries1.281596.7463570.0225
Looping result0.00050.0406550.0000
Template Total1.298498.020.6492
Template load0.00210.157220.0010
Template processing1.296397.865420.6482
Template load and register function0.00010.009510.0001
states
state_id_array0.00110.081510.0011
state_identifier_array0.00110.084020.0006
Override
Cache load0.00160.1232180.0001
Sytem overhead
Fetch class attribute can translate value0.00100.075620.0005
Fetch class attribute name0.00100.077050.0002
XML
Image XML parsing0.00100.077120.0005
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00090.0712220.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs