Jump to content

Best way to output this in a 2 column table


NAmeviolated

Recommended Posts

Hi,

 

Stuck again with the Joomla/K2 coding.  Trying to output this field in a 2 column table but failing badly.  Any help or ideas would be greatly appreciated.

 

  <?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>

  <!-- Item extra fields -->

  <div class="catItemExtraFields">

  <h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>

  <ul>

<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>

<?php if($extraField->value): ?>

<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">

 

 

<?php if ($extraField->name =='Closing date') : ?>

 

                    <span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>

                      <span class="catItemDateCreated"><?php echo JHTML::_('date', $this->item->publish_down ); ?></span>

                    <?php else :?>

                    <span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>

                    <span class="catItemExtraFieldsValue"><?php echo $extraField->value; ?></span>

       

                    <?php endif; ?>

               

</li>

<?php endif; ?>

<?php endforeach; ?>

</ul>

    <div class="clr"></div>

  </div>

  <?php endif; ?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.