To prove to be typical of a node

Author Message

Rafael Andres Gonzalez Lopez

Thursday 11 August 2005 12:01:26 pm

Good, he wanted to prove to be the author and the date of publication of a file(or node). Manage to show the date of the current object, with this instruction:

{$:node.object.published|l10n(shortdate)}

Nevertheless he wanted to prove to be the author of the above mentioned file (or of the above mentioned node). I imagine that the instruction is similar to that of the date, nevertheless even I have not found it... I am grateful for any help... Thank you.

David Eriksson

Friday 12 August 2005 12:39:15 am

I'm not 100% I'm understanding what you're looking for, but soemthing like this?

{def $current_user=fetch('user', 'current_user')}
{if eq($current_user.contentobject_id, $node.object.owner_id)}
  ...
{/if}

If you just want to print the owner:

{$node.object.owner.name}

/David

Rafael Andres Gonzalez Lopez

Friday 12 August 2005 5:26:57 am

Thank you David this last instruction was the one that he needed.

Now achieve what was searching... Thank you.

Rafael Gonzalez

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 31 2025 04:26:45
Script start
Timing: Jan 31 2025 04:26:45
Module start 'layout'
Timing: Jan 31 2025 04:26:45
Module start 'content'
Timing: Jan 31 2025 04:26:45
Module end 'content'
Timing: Jan 31 2025 04:26:45
Script end

Main resources:

Total runtime0.0125 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1406151.2109
Module start 'layout' 0.00530.0022 739.351636.6484
Module start 'content' 0.00750.0038 776.000090.1719
Module end 'content' 0.01130.0012 866.171929.9922
Script end 0.0125  896.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.3723140.0002
Check MTime0.00118.4824140.0001
Mysql Total
Database connection0.00064.961110.0006
Mysqli_queries0.002620.977430.0009
Looping result0.00000.095210.0000
Template Total0.00097.310.0009
Template load0.00075.728510.0007
Template processing0.00021.573110.0002
Override
Cache load0.00054.066010.0005
General
dbfile0.00064.410780.0001
String conversion0.00000.062840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs