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 · 718 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 jean-louis67, 3 weeks ago
2 306 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 3 weeks ago
0 263 3 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago