thoughts & working experiments connected to our work

Joomla K2 extrafields as bootstrap accordion

Ever wanted to use some simple accordions for your K2 extrafields? You can get a plugin to do this. But if you are using a bootstrap based template like Joostrap you can simply drop some code into your K2 template

Find your item.php file and locate the extrafields section of the template. Then you add code like shown below  [had to make this an image as the code snippet will not render pre code in a bootrap template - the attachment shows the snippet code fro item.php] :


 What does it look like in practice?

The extrafields below show what it looks like in practice on this item

Curabitur tortor. Pellentesque nibh.Fusce nec tellus sed augue semper porta. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit.
  3. Quisque volutpat condimentum velit. Class aptent

Curabitur tortor. Pellentesque nibh.Fusce nec tellus sed augue semper porta. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit.
  3. Quisque volutpat condimentum velit. Class aptent
option2, option3

Recent clients

This site is Powered by Joomla!. Joomla!™ name is used under a limited license from Open Source Matters in the United States and other countries. Joomkit is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.