Basic question about node name

Author Message

Pascal France

Friday 08 May 2009 10:02:36 am

Hi,

I have this node name: "c'est l'été"

and I need a variable $name which contains "c_est_l_ete" ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 08 May 2009 10:28:35 am

I have found a solution:

{def $name=array($node.path_identification_string|explode('/'))}
{$nomavectiret.0.[2]}

path_identification_string = ecouter/claude_nougaro/nougayork_c_est_pout_l_ete
so $nomavectiret contains:

0 	array 	Array(3)
>0 	string 	'ecouter'
>1 	string 	'claude_nougaro'
>2 	string 	'nougayork_c_est_pout_l_ete'

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 19:09:53
Script start
Timing: Jan 18 2025 19:09:53
Module start 'layout'
Timing: Jan 18 2025 19:09:54
Module start 'content'
Timing: Jan 18 2025 19:09:54
Module end 'content'
Timing: Jan 18 2025 19:09:54
Script end

Main resources:

Total runtime0.0158 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.0065 589.3438152.6250
Module start 'layout' 0.00650.0031 741.968839.4609
Module start 'content' 0.00960.0043 781.429789.3359
Module end 'content' 0.01390.0019 870.765630.3047
Script end 0.0158  901.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.4677140.0002
Check MTime0.00117.2154140.0001
Mysql Total
Database connection0.00084.986810.0008
Mysqli_queries0.002918.302530.0010
Looping result0.00000.083010.0000
Template Total0.00169.910.0016
Template load0.00085.113510.0008
Template processing0.00074.721210.0007
Override
Cache load0.00053.398010.0005
General
dbfile0.00021.501380.0000
String conversion0.00000.052840.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