Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Is it a way to get the "content - summary" in a twig template ?

Started by FrViPofm 1 day ago · 1 replies · 41 views
1 day ago

Hi,
Trying to make a carousel, my question is "how can I use the best with the content". My idea is to split the content with === for getting easily a summary that can be the opening generic as a first slide, and the part after the `===` for the credits. The images are in page.media or in an array in the header.

Is it a way to get the end of the markdown, the content - summary or at least, to get the pure markdown of them to make the difference ?

Thanks for your suggestions.

last edited 09/20/26 by FrViPofm
18 hours ago

Not sure what you are trying to achieve... A carousel shows multiple media files. How would you store the summary and credits for each image in the content of a page?

Did you have a look at Metafiles

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by stuart young, 1 month ago
3 483 1 month ago
Themes & Styling · by Sebadamus, 2 months ago
5 482 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 460 2 months ago
Themes & Styling · by Justin Young, 2 months ago
1 493 2 months ago
Themes & Styling · by Slebeig, 3 months ago
4 620 3 months ago