Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Converting blog-template to porftolio template?

Solved by pamtbaau View solution

Started by Mikkeli Kerttunen 4 years ago · 1 replies · 574 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 Marcel, 5 days ago
0 84 5 days ago
Support · by JakobDB, 6 days ago
1 90 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 229 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago