Forums / General / Problem with Concat

Problem with Concat

Author Message

Mahesh Arvind

Thursday 11 December 2003 5:12:31 am

Hi,
I am having a problem with concat. I am using the following lines in the code.
{let nodetext=$site.title}
...
...
...
{set nodetext=concat('-', $nodetext, $node.name)}

The concat function is not working here. I get only the $site.title value in nodetext. Can any one tell me whether its possible to concat as mentioned above.

Thanks.

Thanks & Regards
Mahesh

Gunnstein Lye

Friday 19 December 2003 8:23:54 am

I tried this code and it works as expected:
{let leff='leff'}
{set leff=concat('fle: ',$leff,' sldkjf')}
{$leff}
{/let}
(eZ publish 3.2-3)

Are you sure the {set} statement is actually run?

Mahesh Arvind

Saturday 20 December 2003 4:01:03 am

Hi Gunnstein,

Thanks for the reply. It worked :)

Thanks & Regards
Mahesh