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

Converting blog-template to porftolio template?

Solved by pamtbaau View solution

Started by Mikkeli Kerttunen 4 years ago · 1 replies · 411 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 BenLaKnet, 5 days ago
1 120 2 days ago
Support · by BenLaKnet, 1 week ago
5 194 2 days ago
Support · by kskt, 2 days ago
0 44 2 days ago
Support · by David Meissner, 3 days ago
0 43 3 days ago
Support · by David Meissner, 3 days ago
3 92 3 days ago