Skip to the content
Documentation

Delimiter ?

No ratings yet

is the {delimiter} statement deprecated ? It doesn't seem to work with foreach.

Comments (3 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Delimiter ?

    Lenara Anafieva ·

    It works as expected.
    Tested using an example:
    foreach<br>
    {let $b=array( 1, 2, 3, 4, 5, 6, 7 )}
    {foreach $b as $bitem}
    {$bitem}
    {delimiter}
    <br>:DEL:<br>
    {/delimiter}
    {/foreach}
    {/let}
    I've got these on the output:
    foreach
    1
    :DEL:
    2
    :DEL:
    3
    :DEL:
    4
    :DEL:
    5
    :DEL:
    6
    :DEL:
    7
    And output results are expected

    1. Are you sure ??

      André ·

       {foreach $module_result.path as $path}  {if $path.url}    [LT]a href={cond( is_set( $path.url_alias ), $path.url_alias,                                        $path.url )|ezurl}[GT]{$path.text|wash}[LT]/a[GT]  {delimiter}  /  {/delimiter}  {else} {$path.text|wash}  {/if}  {/foreach}

      Warning: eZTemplate Oct 18 2006 18:16:03
      Function "delimiter" is not registered

      Exponential 3.8.5

      1. Re: Are you sure ??

        André ·

        update: It's because it's inside an if clause!!!