<p>Assuming you have an 'entry', this should work:</p>
<pre><code>{% for tab in entry.getFieldLayout().getTabs() %}
    &lt;ul&gt;
        &lt;li&gt;{{ tab.name }}
            &lt;ul&gt;
                {% for field in tab.getFields() %}
                    &lt;li&gt;{{ field.name }}&lt;/li&gt;
                {% endfor %}
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
{% endfor %}
</code></pre>
<p>if you don't need the fields then just:</p>
<pre><code>{% for tab in entry.getFieldLayout.getTabs() %}
    &lt;ul&gt;
        &lt;li&gt;{{ tab.name }}&lt;/li&gt;
    &lt;/ul&gt;
{% endfor %}
</code></pre>

CC BY-SA 3.0
2014-12-16T09:23:29.550Z
This worked perfectly. Exactly what I was after. Thank you Douglas :)
Mark Notton
CC BY-SA 3.0
2015-01-28T00:56:17.267Z
How to get the value of a field of tabs?
Vitaliy  Badalov
CC BY-SA 3.0
2015-01-28T01:11:32.067Z
@DouglasMcDonald For example in the tab "gallery" is the field of "image", how to get it? `entry.image` nothing gives, only if "image" was in the first tab
Vitaliy  Badalov
CC BY-SA 3.0
2015-01-28T01:15:38.387Z
@VitaliyBadalov I don't understand your question? What do you mean by a "value of a field of tabs"? Do you mean "value of a field within the tabs"? In the future it might be best to create a new question (with a link to this question).
Douglas McDonald
CC BY-SA 3.0
2015-01-28T01:18:49.797Z
I'll be glad to help, but can you start a new question please. It's hard to give a good answer within comments.
Douglas McDonald
CC BY-SA 3.0
2015-01-28T01:25:36.683Z
@DouglasMcDonald Sorry, i just forgot to put in the field to tab in "Field Layout Design"
Vitaliy  Badalov
CC BY-SA 3.0
2015-01-28T01:27:32.857Z
@VitaliyBadalov OK. Glad you found an answer!
Douglas McDonald
CC BY-SA 4.0
2014-12-14T16:26:45.113Z
2020-09-16T14:44:25.260Z
2020-09-16T14:44:25.260Z
Douglas McDonald
<p><img src="https://i.sstatic.net/uDqhK.png" alt="enter image description here"></p>

<p>I have a few tabs in my "Field Layout Design", and I wondered if there was a way to list the titles of each one, in the frontend? Something basic like:</p>

<pre><code>&lt;ul&gt;
  &lt;li&gt;Services&lt;/li&gt;
  &lt;li&gt;Testimonials&lt;/li&gt;
  &lt;li&gt;Gallery&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Thanks :)</p>

<field-layout-designer>
List out all "Layout Tabs" in the frontend
# List out all "Layout Tabs" in the frontend

(Asked by: username_0 on 2014-12-14)

I have a few tabs in my "Field Layout Design", and I wondered if there was a way to list the titles of each one, in the frontend? Something basic like:

  Services
  Testimonials
  Gallery


Thanks :)

**Tags:** field-layout-designer

---

## 1 answers

### Answer by username_1 on 2014-12-14. Score: 6 | Accepted answer

Assuming you have an 'entry', this should work:
{% for tab in entry.getFieldLayout().getTabs() %}
    
        {{ tab.name }}
            
                {% for field in tab.getFields() %}
                    {{ field.name }}
                {% endfor %}
            
        
    
{% endfor %}

if you don't need the fields then just:
{% for tab in entry.getFieldLayout.getTabs() %}
    
        {{ tab.name }}
    
{% endfor %}

> **Comments:**
> **username_0**: This worked perfectly. Exactly what I was after. Thank you Douglas :)  
> **username_2**: How to get the value of a field of tabs?  
> **username_2**: @DouglasMcDonald For example in the tab "gallery" is the field of "image", how to get it? `entry.image` nothing gives, only if "image" was in the first tab  
> **username_1**: @VitaliyBadalov I don't understand your question? What do you mean by a "value of a field of tabs"? Do you mean "value of a field within the tabs"? In the future it might be best to create a new question (with a link to this question).  
> **username_1**: I'll be glad to help, but can you start a new question please. It's hard to give a good answer within comments.  
> **username_2**: @DouglasMcDonald Sorry, i just forgot to put in the field to tab in "Field Layout Design"  
> **username_1**: @VitaliyBadalov OK. Glad you found an answer!  

---

