getgrav / getgrav/grav-plugin-admin

custom templates when editing pages in Admin

Open
#1,476 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

I created a new page template for use with a plugin, eg., `sequence`

When I tried to make a minor edit to the page in the Admin page, the file name was changed to `blog.en-gb.md`, and consequently, I got errors.

The drop-down menu in the Admin page does not contain `sequence` as a valid template. The template is correctly recognised and rendered in Grav.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Admin page with a page using the custom sequence template, then trace the template selection and save flow that changes the filename to blog.en-gb.md. Done means sequence is available as a valid template in the dropdown, editing preserves the intended filename, and Grav still recognises and renders the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.