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.

Gantry

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

Started by Herbert Liechti 8 years ago · 1 replies · 859 views
8 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
8 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, 11 months ago
1 176 11 months ago
Gantry · by Sam, 1 year ago
7 221 1 year ago
Gantry · by Dima, 2 years ago
2 75 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 1885 3 years ago
Gantry · by stani, 6 years ago
2 832 3 years ago