Author Topic

Trond Åge Kvalø

Wednesday 18 August 2004 5:52:26 am

Comment16293

Thanks for replying, Bård.

You're probably right about your solution. But this is how I solved it:

<table>
{section show=and($node.data_map.bilde1.has_content, $node.data_map.bilde2.has_content) }
  <tr>
    <td>picture1</td>
    <td>text</td>
    <td>picture2</td>
  <tr>
{section-else}
  {section show=and($node.data_map.bilde1.has_content, $node.data_map.bilde2.has_content|not) }
    <tr>
      <td>picture1</td>
      <td colspan="2">text</td>
    <tr>
  {section-else}
    {section show=and($node.data_map.bilde1.has_content|not, $node.data_map.bilde2.has_content) }
      <tr>
        <td colspan="2">text</td>
        <td>picture2</td>
      <tr>
    {section-else}
      <tr>
        <td colspan="3">text</td>
      <tr>
    {/section}
  {/section}
{/section}
</table>

Hmm... It seems that this is actually a mix of my first post and your reply.

Anyway it works as expected now, and if it works..... don't fix it. Right? :-)

trondåge