Forums / Setup & design / Basic question about node name
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
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_eteso $nomavectiret contains:
0 array Array(3) >0 string 'ecouter' >1 string 'claude_nougaro' >2 string 'nougayork_c_est_pout_l_ete'