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

Shortcode Section in Listpage

Started by Muut Archive 10 years ago · 1 replies · 344 views
10 years ago

Hi,
in a page-template i use the shortcode core plugin

TWIG
            {{ shortcode.section.datum }}

and i get the correct output, but not in the parent list-page.
Is this a bug, or am i doing something wrong?
Thanks for help.

10 years ago

Well the page.summary() method is generally what's called in the blog list page (depends on the theme though) and it takes a chunk of the content and outputs it. However if that summary cuts within some HTML it closes all the tags. This could potentially change the expected content. You might want to use the === summary indicator to force the location of where the summary is ends.

Without more information though, I can't really say for sure what the problem is or how to fix it.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago