Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Applying a blueprint to a partial

Solved by Micah Shaw Guttman View solution

Started by Micah Shaw Guttman 6 years ago · 1 replies · 801 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 FrViPofm, 2 weeks ago
4 395 6 days ago
Themes & Styling · by johan thomas, 5 years ago
1 753 2 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 609 2 months ago
Themes & Styling · by Sebadamus, 2 months ago
5 623 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 595 2 months ago