Keyword

Item Layout - 2 columns

  • Kasper Schuster Haaning Hansen
  • Kasper Schuster Haaning Hansen's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #156399 by Kasper Schuster Haaning Hansen
Item Layout - 2 columns was created by Kasper Schuster Haaning Hansen
Hi guys,

I wanted to hear, how it would be possible to make a 2 column layout in an item, and if its doable or not.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156408 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item Layout - 2 columns
Hello,

It is doable. You can override the item.php file and create the layout you want.
Depending on the front-end framework you are using, you can use its own grid classes.

getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
8 years 2 months ago #156432 by Joe Campbell
Replied by Joe Campbell on topic Item Layout - 2 columns
Hi Kasper,

First you need to determine if the two column layout needs to implemented from a template level or if simply adding the column code within the item fulltext is only required.

If many items need to have a two column layout, I would advise implementing it from a template level. But if only a few items require such a layout, then I would advise simply adding it via the fulltext.

Sample Code: Bootstrap 2
<div class="row">
  <div class="span6">...</div>
  <div class="span6">...</div>
</div>

Sample Code: Bootstrap 3
<div class="row">
  <div class="col-md-6">...</div>
  <div class="col-md-6">...</div>
</div>

Note: you will need to change the column counts based on your existing template. So if body content area is 8 columns wide, you would use span4 or col-md-4.

I hope this helps,

Joe Campbell

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


Powered by Kunena Forum