Forums / Setup & design / How to use delimiter with two lines

"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".

How to use delimiter with two lines

Author Message

Leandro Alves

Monday 20 February 2006 11:49:47 am

Hi

I have the following code:

{let  list_items=fetch( content, list, hash( parent_node_id, 2,
                                sort_by, array( priority, true() ),
                                class_filter_type, include,
                                class_filter_array, array( 'folder' ) ) ) }

   <table>
      <tr>
         {section var=child loop=$list_items}
            <td width="300">
               {node_view_gui view=line content_node=$child}<br/>
            </td>
            {delimiter modulo=6}
      </tr>
      <tr>
          {/delimiter}
          {/section}
      </tr>
   </table>
{/let}

With this code I have an output like this:

| line | line | line | line | line | line |

How should I change this code to have an output like this:

| line | line | line | line | line | line |
| line | line | line | line | line | line |

Please, I don't mean just to change {delimiter modulo=6} to {delimiter modulo=2}. I want two line by item.

The code that I would like to make dynamic is this:

<table>
   <tr>
      <td width="300" height="2" valign="top">
         <img src={"line.png"|ezimage}>
      </td>
   </tr>
   <tr>
      <td width="300" height="17" valign="middle">
         item
      </td>
   </tr>
</table>

Thanks in advance!

Leandro

André R.

Monday 20 February 2006 3:07:58 pm

you mean something like this ??

{let list_items=fetch( content, list, hash( parent_node_id, 2, 
                               sort_by, array( priority, true() ), 
                               class_filter_type, include, 
                               class_filter_array, array( 'folder' ) ) ) } 
 
  <table> 
     <tr> 
        {section var=child loop=$list_items} 
           <td width="300"> 
           <table width="100%"> 
              <tr> 
                  <td height="2" valign="top"> 
                      <img src={"line.png"|ezimage}> 
                  </td> 
               </tr> 
              <tr> 
                <td width="300" height="17" valign="middle"> 
                     item 
                 </td> 
               </tr> 
           </table>
           </td> 
           {delimiter modulo=6} 
     </tr> 
     <tr> 
         {/delimiter} 
         {/section} 
     </tr> 
  </table> 
{/let} 

but the:
<td width="300" height="2" valign="top">
<img src={"line.png"|ezimage}>
</td>

seems like would be better to do with some css

 

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Leandro Alves

Monday 20 February 2006 8:07:42 pm

Hey André,

Thanks a lot for your reply...
It works like a charm!

Cheers,

Leandro