We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Display custom fields into Tabs ??

How Do I?

rsantos's avatar
rsantos
5 posts
9 years ago
rsantos's avatar rsantos

Hi all!

I’m new to EE and coming from a Drupal background. I’m enjoying learning EE.

Question: How do i display the fields from a custom channel into tabs?

For example in my channel if i have 3 custom fields, I would like to display those three custom fields each into their own tab within the template. Another question is, how do I make it responsive?

A perfect example i would like to replicate is this page here:

http://www.genuinehealth.com/store/greens-daily-detox#.VuwFlpMrJTY

You will notice that there are 4 tabs below the product and when in a mobile view, the tabs are compressed to a mobile like menu.

Can EE do anything similar ??

Thanks in advanced! Rob

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

You can definitely display your custom fields in tabs on your front end. The specifics will greatly depend on your site’s CSS and JS, but in general you’d have something like:

<ul class="nav nav-tabs">
    <li class="active"><a href="#tab1">Tab One</a></li>
    <li><a href="#tab2">Tab Two</a></li>
    <li><a href="#tab3">Tab  Three</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div class="tab-pane active" id="tab1">...</div>
    <div class="tab-pane" id="tab2">...</div>
    <div class="tab-pane" id="tab3">...</div>
  </div>

As to how to make it responsive that’ll depend on your site’s structure and CSS, but the general practice is to use a grid. It’s a broad topic and there are quite a lot of resources available, just search for “responsive grid” in your favorite search engine. 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.