people on a web 's ez P

Author Message

jb bianchi

Saturday 06 August 2005 11:25:45 am

Konrad Mazurkiewicz

Saturday 06 August 2005 12:37:44 pm

Hi,
use for example in pagelayout.tpl and find groups

{$current_user|attribute(show,2)}

jb bianchi

Saturday 06 August 2005 4:11:54 pm

thank's for your answer but I do it and I try this:

{if eq($main_parent_node_id,13)}
hello 
{elseif eq($main_parent_node_id,199)}
  no
{elseif eq($main_parent_node_id,210)}
yes
{else}
either
{/if}

if i'm anonymous it shows either, if I'm administrator or editor1 or editor2 it shows hello.
never yes or no...

jb bianchi

Saturday 06 August 2005 4:25:47 pm

sorry it's fault.
In fact i do this

{if eq($current_user.main_parent_node_id,13)}
hello 
{elseif eq($current_user.main_parent_node_id,199)}
  no
{elseif eq($current_user.main_parent_node_id,210)}
yes
{else}
either
{/if}

but no change.

jb bianchi

Monday 08 August 2005 1:45:37 am

i have a new prblem. If I do this u=in the pagelayout.tpl :

{$current_user.contentobject.main_parent_node_id}
it shows nothing.

But If I do it in the flat_top.tpl, this code shows the good number of the user.

How can it's possible.

thank's

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 18 2025 11:38:24
Script start
Timing: Jan 18 2025 11:38:24
Module start 'layout'
Timing: Jan 18 2025 11:38:24
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 11:38:25
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 7 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 11:38:25
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 9 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 11:38:25
Module end 'content'
Timing: Jan 18 2025 11:38:25
Script end

Main resources:

Total runtime0.8527 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9063152.6250
Module start 'layout' 0.00690.0032 740.531339.4297
Module start 'content' 0.01010.8414 779.9609491.5234
Module end 'content' 0.85150.0012 1,271.484412.3906
Script end 0.8527  1,283.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3797160.0002
Check MTime0.00140.1654160.0001
Mysql Total
Database connection0.00150.180210.0015
Mysqli_queries0.807894.7295630.0128
Looping result0.00050.0587610.0000
Template Total0.817795.920.4088
Template load0.00200.235620.0010
Template processing0.815795.652520.4078
Template load and register function0.00020.022810.0002
states
state_id_array0.00110.126410.0011
state_identifier_array0.00130.155820.0007
Override
Cache load0.00170.2040240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.055520.0002
Fetch class attribute name0.00140.164550.0003
XML
Image XML parsing0.00020.025720.0001
class_abstraction
Instantiating content class attribute0.00010.006750.0000
General
dbfile0.00060.0710100.0001
String conversion0.00000.001440.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs