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; ?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.