Forums / Setup & design / Basic question about node name

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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