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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Link text_test.md which is inside a page like a modular from the original text_test.html.twig

admin testing theme

Started by César Aguirre 6 years ago · 0 replies · 572 views
6 years ago

In a page I'm using a {% include 'modular/text_test.html.twig' %}, which inside that text_test.html.twig I have a:
{% markdown %} {% include 'modular/text_test.md' %} {% endmarkdown %}
That really works, and is editable, just only going through folders.
But if I link that md and outside templates folder like:
{% include '../../../../pages/05.test_page/_t1/text_test.md' %}
The page crashes, there's no way to link outside templates with the include function, and it wouldn't be editable.

2|654x212

image|356x57

image|218x140

1|285x279

I don't use the modular anymore for any section on any page because it doesn't add it in my main element
Is there any way to modify the include function or link the md?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 14 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago