Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

{{page.content}} in Events plugin using the Helium (gantry) theme

Started by Herbert Liechti 9 years ago · 1 replies · 1309 views
9 years ago

I set up a website with the Helium gantry theme. I installed the Events plugin and my events are displayed. Seems that the content is rendered. After the rendering somewhere happens a quoting of the html. On the website source it looks like this:

HTML
<section class="event-content">
    <h2 class="event-title"><a href="/test/samba/de/agenda/langenthaler-fasnacht">Langenthaler Fasnacht</a></h2>
    &lt;p&gt;Unterwegs in Langenthal mit Start im à la cArte &lt;/p&gt;
</section>

The title is rendered correct, the content is quoted. Here is the code part of the twig file:

TWIG
<section class="event-content">
    <h2 class="event-title"><a href="{{ page.url }}">{{ page.title }}</a></h2>
    {{ page.content }}
 </section>

It should look like the this:

HTML
<section class="event-content">
    <h2 class="event-title"><a href="/test/samba/de/agenda/langenthaler-fasnacht">Langenthaler Fasnacht</a></h2>
    <p>Unterwegs in Langenthal mit Start im à la cArte</p>
</section>

I'm a beginner with grav and hope to get some help to solve this issue.

Thank you very much

👍 1
last edited 02/15/18 by Herbert Liechti
9 years ago

I solved the issue. I had to disable the markdown rendering in the page.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Gantry · by Chris, 1 year ago
1 1336 1 year ago
Gantry · by Sam, 2 years ago
7 1046 2 years ago
Gantry · by Dima, 2 years ago
2 790 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 2583 3 years ago
Gantry · by stani, 6 years ago
2 1474 3 years ago