<p>There is a <code>Documentation</code> structured section with three entry types.</p>

<ol>
<li><code>Heading Only</code></li>
<li><code>Page</code></li>
<li><code>Link</code></li>
</ol>

<p>The <code>Getting Started</code>, <code>Core Concepts</code>, etc. headers are the <code>Heading Only</code> entry type. The only field is has is a title.</p>

<p>The majority of the docs are using the <code>Page</code> entry type.</p>

<p>The <code>Link</code> entry type is used for the entries like <code>Full Templating Reference</code> and <code>Plugin Development</code> that open into a new window, and those are their own separate structured sections.</p>

CC BY-SA 3.0
2015-03-20T08:10:20.750Z
I'm guessing that `Link` entry type has a checkbox to select whether or not you're linking to an external page. Is this how links such as "Installing and Updating", which links within the same structure, look different than external links like "Full Templating Reference"?
carlcs
CC BY-SA 3.0
2015-03-20T08:16:19.720Z
Or are you doing something more fancy to do those "sub-headings"?  `getDescendants(1).first().url`?
carlcs
CC BY-SA 3.0
2015-03-20T13:21:19.390Z
@RobHodges I think this might be the twig code for that side nav too https://gist.github.com/brandonkelly/9362241
Mike Pepper
CC BY-SA 3.0
2015-03-20T15:22:12.630Z
@carlcs The Link entry type has a `Title` and a `Link Url` (i.e. 'docs/templating'). See the gist that @MikePepper linked to for the template code to pull it out.
Brad Bell
CC BY-SA 3.0
2015-03-26T10:28:49.837Z
Hmm, can I just ask, in the snippet @MikePepper sent, does anyone know what `selEntry` is?
Rob Hodges
CC BY-SA 3.0
2015-03-26T10:49:16.090Z
I think `selEntry` is the entry that's being viewed at the time, so the nav would be included with `{% include "nav.html" with { selEntry: entry } %}`
Mike Pepper
CC BY-SA 3.0
2015-03-26T10:56:11.210Z
Ah, I've got the nav in my master layout (It's a simple site). Just using `entry` on this line e.g. `{% set entryParent = entry.getParent() %}` wouldn't work because it's possible to have a page without an entry?
Rob Hodges
CC BY-SA 3.0
2016-09-28T04:39:47.133Z
@BradBell - are _Installing and Updating_ and _Configuration_ of the Link entry type? If so, how do you indicate whether the link is internal or external, like _Full Templating Reference?_ If not, how do those entries not have their own page content?
Philip Jones
CC BY-SA 3.0
2015-03-20T03:20:30.597Z
2015-03-20T03:20:30.597Z
Brad Bell
<p>The <a href="http://buildwithcraft.com/docs/sections-and-entries#section-types" rel="noreferrer">Craft documentation</a> on Section Types state that they themselves are created using a Structure. Can someone explain the method they used here?</p>

<p>What I'd really like to see is the Twig code for the left hand navigation. Are there multiple Structures here (to account for the headings) and if not, how are the headings set?</p>

<p>Thanks!</p>

<templating><structure><navigation><documentation>
How are the Craft docs created?
# How are the Craft docs created?

(Asked by: username_0 on 2015-03-19)

The [Craft documentation](http://buildwithcraft.com/docs/sections-and-entries#section-types) on Section Types state that they themselves are created using a Structure. Can someone explain the method they used here?

What I'd really like to see is the Twig code for the left hand navigation. Are there multiple Structures here (to account for the headings) and if not, how are the headings set?

Thanks!

**Tags:** templating, structure, navigation, documentation

---

## 1 answers

### Answer by username_1 on 2015-03-20. Score: 6 | Accepted answer

There is a `Documentation` structured section with three entry types.

1. `Heading Only`
2. `Page`
3. `Link`

The `Getting Started`, `Core Concepts`, etc. headers are the `Heading Only` entry type. The only field is has is a title.

The majority of the docs are using the `Page` entry type.

The `Link` entry type is used for the entries like `Full Templating Reference` and `Plugin Development` that open into a new window, and those are their own separate structured sections.

> **Comments:**
> **username_2**: I'm guessing that `Link` entry type has a checkbox to select whether or not you're linking to an external page. Is this how links such as "Installing and Updating", which links within the same structure, look different than external links like "Full Templating Reference"?  
> **username_2**: Or are you doing something more fancy to do those "sub-headings"?  `getDescendants(1).first().url`?  
> **username_3**: @RobHodges I think this might be the twig code for that side nav too https://gist.github.com/brandonkelly/9362241  
> **username_1**: @carlcs The Link entry type has a `Title` and a `Link Url` (i.e. 'docs/templating'). See the gist that @MikePepper linked to for the template code to pull it out.  
> **username_0**: Hmm, can I just ask, in the snippet @MikePepper sent, does anyone know what `selEntry` is?  
> **username_3**: I think `selEntry` is the entry that's being viewed at the time, so the nav would be included with `{% include "nav.html" with { selEntry: entry } %}`  
> **username_0**: Ah, I've got the nav in my master layout (It's a simple site). Just using `entry` on this line e.g. `{% set entryParent = entry.getParent() %}` wouldn't work because it's possible to have a page without an entry?  
> **username_4**: @BradBell - are _Installing and Updating_ and _Configuration_ of the Link entry type? If so, how do you indicate whether the link is internal or external, like _Full Templating Reference?_ If not, how do those entries not have their own page content?  

---

