Convert {section} to {foreach}

Convert {section} to {foreach}

Tuesday 22 August 2006 1:46:08 am - 4 replies

Author Message

Softriva .com

Tuesday 22 August 2006 2:14:42 am

Thank you all. I figured out where is my problem:

My New Code

{node_view_gui content_node=$SearchResult view=search use_url_translation=$use_url_translation }

My Old Code

{node_view_gui content_node=$SearchResultIndex.name|wash view=search use_url_translation=$use_url_translation }

Pascal von Büren

Tuesday 22 August 2006 2:40:01 am

I guess, you should also change you first line:

{def use_url_translation=ezini('URLTranslator','Translation')|eq('enabled')}

should look like

{def $use_url_translation=ezini('URLTranslator','Translation')|eq('enabled')}

as you can see here: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/variables/def

The defined variable must have the $-Sign.

Marcin Drozd

Tuesday 22 August 2006 3:03:21 am

Hi
Im not sure but Claudia said: <i>there should be no equal sign between the words sequence and array.</i> ( http://ez.no/community/forum/developer/i_can_t_use_user_parameters_on_templates/re_i_can_t_use_user_parameters_on_templates )

and example3 on the http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_control_structures/looping/foreach

http://ez-publish.pl

Softriva .com

Tuesday 22 August 2006 4:19:35 am

Thanks Pascal

I added the $ sign.

Thanks Marcin,

Now, I know why sequence wasn't working ok. I removed the = sign and everything worked ok.

OOzy

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.