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

Page field extending

admin theme

Solved by pamtbaau View solution

Started by Daniel Dobiášovský 4 years ago · 1 replies · 455 views
4 years ago

I don't know what to do anymore.

Please help, work according to this procedure:

https://learn.getgrav.org/17/admin-panel/extending

My goal is this, nothing more:
https://learn.getgrav.org/user/pages/05.admin-panel/08.extending/myPage-customField.jpg

I created page.html.twig with the settings according to the instructions, then in the blueprint folder I created page.yaml again with the appropriate content to add a field: New Text Field

And I can't get the new field to be added.

I also tried to implement the whole process only in the file item.html.twig and therefore item.yaml, but the result is the same, the field is not displayed in the administration when creating a new page as an item.

Please what am I doing wrong? Is there anything else that needs to be implemented?

Thank you for your help.

4 years ago Solution

@Deight, You know that Grav caches a lot of stuff?

With that in mind, try the following:

  • After creating your new page template and page blueprint
    • First run: $ bin/grav cache
    • Then logout of Admin and login again.
  • Further changes to the new blueprint might now be available immediately. If it doesn't, fallback to above procedure.
👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by ian russell, 4 days ago
2 113 3 days ago
General · by pamtbaau, 1 month ago
2 376 1 week ago
General · by Hanns Mattes, 1 month ago
2 356 2 weeks ago
General · by Andy Miller, 1 month ago
0 260 1 month ago
General · by Jerry Hunt, 1 month ago
2 400 1 month ago