Keyword

Display k2 Extrafields in 2 columns

  • Fred heise
  • Fred heise's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago - 11 years 5 months ago #113037 by Fred heise
Display k2 Extrafields in 2 columns was created by Fred heise
Hi guys,


is it possible to display the k2 extrafields in 2 columns ?
Im using 4 Extrafields and all are displayed together. Is it possible to display for example 2 extrafields abreast, like in a table ?

Ive see that k2 is creating odd and even fields. Could i manage it, that for ex. odd is on the left side, and even on the right ?

I hope you have ideas.

thx a lot

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 5 months ago #113038 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Display k2 Extrafields in 2 columns
Hi Fred,

I think this is the same question as your other post in german.

You can use html tables like this
<div class="catItemExtraFields">
<table>
<tr>
<td><?php echo $this->item->extrafields[0]->name . ": " . $this->item->extrafields[0]->name; ?></td>
<td><?php echo $this->item->extrafields[1]->name . ": " . $this->item->extrafields[1]->name; ?></td>
</tr>
<tr>
<td><?php echo $this->item->extrafields[2]->name . ": " . $this->item->extrafields[2]->name; ?></td>
<td><?php echo $this->item->extrafields[3]->name . ": " . $this->item->extrafields[3]->name; ?></td>
</tr>
</table>
</div>

This is the simplest way you can use, although you may need to customize the layout more according to your layout specs.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum