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 →

Converting blog-template to porftolio template?

Solved by pamtbaau View solution

Started by Mikkeli Kerttunen 4 years ago · 1 replies · 746 views
4 years ago

Hi!

Just installed skeleton blog and I'm using Quark-theme.

I would like to make a second "blog-template" as a portfolio.

When I go to user/themes/quark/templates folder and make a copy of "blog.html.twig" as "portfolio.html.twig" I can modify all the needed files in partial folder (for example blog-list-item.html.twig).

There's one problem with this method. When I rename the template file to portfolio I lose the "blog-config" tab in admin panel:
image|690x361

I just want to have breadcrumbs, sidebar and pagination disabled in portfolio.

What is the correct method I lose the blog-config tab in Admin panel to disable those items in new portfolio.html.twig -file? Or can I somehow keep the tab in the Admin panel?

{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}

4 years ago Solution

@mikselli,

@mikselli:
There’s one problem with this method. When I rename the template file to portfolio I lose the “blog-config” tab in admin panel:

You should copy and rename theme's /blueprints/blog.yaml too

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 5 days ago
1 96 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago