I’ve added the twig file template/maintenance.html.twig as well as the corresponding blueprint file in blueprint/maintenance.yaml
both files are blank at the moment
In the Admin Panel, when i create a page “Temp” using the template, the editing page has nothing on it, and I can’t find how to activate my template file to have access to all of the page options.
I want to create a temporary landing page with very simple style, as I dev my site in the background.
screencap:
@darrylch, There seems to be a bit of confusement…
Probably some typo’s…
- There is a folder called /templates but not /template/
- There is a folder called /blueprints but not /blueprint/
both files (template and blueprint) are blank at the moment … In the Admin Panel, when i create a page “Temp” using the template, the editing page has nothing on it
Confusing to me:
Why do you expect to get a page form in Admin containing page properties when your input is empty?
Basic concepts:
- A template is used to generate a HTML page for the front-end (website) not for Admin. A template can not be activated in Admin.
- A blueprint contains a form definition for all properties of a page (frontmatter and content). In Admin, when creating a page and selecting the name of a template, the matching blueprint is activated to paint a form with the properties for the page.
Have a look at the documentation of Theme Basics to get the basic concepts and Blueprint to learn how to create forms. In section Page Blueprints you’ll find information on how to create a form for a page.
Thanks, I was able to find the answer using the links you provided.