Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

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 · 873 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 lynbor, 1 month ago
5 540 5 days ago
General · by Andy Miller, 2 weeks ago
0 230 2 weeks ago
General · by lynbor, 4 weeks ago
7 658 3 weeks ago
General · by Harry, 3 weeks ago
0 233 3 weeks ago
General · by Old Man Umby, 1 month ago
2 367 1 month ago