Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Applying a blueprint to a partial

Solved by Micah Shaw Guttman View solution

Started by Micah Shaw Guttman 6 years ago · 1 replies · 916 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 themetman, 6 days ago
1 104 3 days ago
Themes & Styling · by AH, 3 weeks ago
1 224 3 days ago
Themes & Styling · by Bruno, 4 years ago
6 1388 3 days ago
Themes & Styling · by TomW, 3 weeks ago
2 227 5 days ago
Themes & Styling · by FrViPofm, 2 months ago
4 687 2 months ago