Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Applying a blueprint to a partial

Solved by Micah Shaw Guttman View solution

Started by Micah Shaw Guttman 6 years ago · 1 replies · 550 views
6 years ago

I created a blueprint for my footer, a partial included in my base.html like this
{% block footer %} {% include 'partials/footer.html.twig'
with {'page': page.find('/footer', true)} %} {% endblock %}
and have been unable to get grav admin to pick it up. I tried placing it in the themes/blueprints folder, in themes/blueprints/modular, in themes/blueprints/partials and none of those worked. Here is a copy of my blueprint, named footer.yaml
title: Footer
'@extends': default

YAML
form:
  fields:
    tabs:
      fields:
        footer:
          type: tab
          title: Footer
          fields:
            header.footer:
              name: footer
              type: list
              label: Footer

              fields:
                .icon:
                  type: iconpicker
                  label: Icon
                .colorpicker:
                  type: colorpicker
                  label: Icon Color
                .url:
                  type: text
                  label: Link
6 years ago Solution

Self solved: the footer.md page's template had to be set to footer

👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 43 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago