# Show Subpages

{% hint style="info" %}
Live Demo: <https://candidate.codenation.com/what_i_stand_for>
{% endhint %}

<figure><img src="/files/yx6GqeVlKlbgXa7pw1cf" alt="Candidate Themes Show Subpages Example"><figcaption><p>Candidate Themes Show Subpages Example</p></figcaption></figure>

## Showing the Current Pages Subpages

{% hint style="info" %}
The "Show Subpages" feature displays subpages in order of published date, from newest to oldest. To change their order, update the published date in NationBuilder's backend for that page.
{% endhint %}

1. If subpages are not already configured for a specific page, take a moment to create some.
2. On the parent page to the subpages set up in step 1 add the tag `Admin Show Subpages`.
3. To edit each subpages card, simply hover over it and click the 'Edit Subpage' button or navigate to the subpage in NationBuilders back-end.
   * By default, the ***thumbnail*** image is drawn from the social media share icon of the blog post. If no image is added, a default picture with your logo will be used. You can update the cards thumbnail by navigating to **Your Page > Settings > Social Media**. &#x20;
   * The ***title*** of the subpage card is directly drawn from the headline of the page in NationBuilder.&#x20;
   * The ***content*** of the subpage card is directly drawn from the first 32 words of the page's content in NationBuilder.

## Showing the Subpages of Another Page

{% hint style="info" %}
Live Example: <https://candidate.codenation.com/>
{% endhint %}

<figure><img src="/files/cXIXLKJF3M2MyOJ2C559" alt="Showing the Subpages of Another Page"><figcaption><p>Showing the Subpages of Another Page</p></figcaption></figure>

1. You can show the custom subpage panel by adding the tag  `Admin Show Subpages Panel:[PAGE_SLUG]`.
   * Where `[PAGE_SLUG]` is the slug of the page with the subpages you would like to display.
2. You can follow the steps in [#showing-the-current-pages-subpages](#showing-the-current-pages-subpages "mention")to set up the subpages and learn how to customise each subpage card.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codenation.com/admin-tag-customisations/showing_subpages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
