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.