Skip to content
Grav 2.0 is officially stable. Read the announcement →
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 · 653 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 ian russell, 4 days ago
2 121 4 days ago
General · by pamtbaau, 1 month ago
2 378 1 week ago
General · by Hanns Mattes, 1 month ago
2 359 2 weeks ago
General · by Andy Miller, 1 month ago
0 260 1 month ago
General · by Jerry Hunt, 1 month ago
2 401 1 month ago