Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Summary in module pages: possible?

Started by Muut Archive 10 years ago · 2 replies · 477 views
10 years ago

(First Time Post) Hello and thank you for this fantastic CMS.
I've got one question: I am trying to output page.summary on a modular page template.
I've read the forum and found that it is related to https://github.com/getgrav/grav/issues/991 (on modular pages twig is processed through Twig first).

Unfortunately I don't understand how to output (if even possible) the summary in a modular template; I've just used the default installation with antimatter, copied the modular template "text.html.twig", renamed it to "shortened.html.twig" and changed {{content}} to {{page.summary}} - and it's showing the whole page text.

Sorry, I am new to grav and to Twig, maybe I am missing something.

Thanks in advance,
steppo

10 years ago

Yes it has. The delimiter === doesn't show up on the output but the output is not truncated - {{page.summary}} outputs always the whole page (without the delimiter).

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2947 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago