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

How to add simple links to 1page demo site

Started by Muut Archive 11 years ago · 2 replies · 194 views
11 years ago

looking at page>features>highlights.md there is a useful icon/text layout, or at least it would be if I could add simple links to the icons or indeed the text. Nothing in the documentation/tutorials seems to cover this - can anyone help please?
The text is defined in the YAML section so the usual rules for (links) do not work.
Thanks.

11 years ago

In the YAML header for the features page, you could simply add a link: something at the same level as text:. Then in the theme's templates/modular/features.html.twig add some logic to create a link if the link header element exists.

Just look a the logic for icon to see how this could be done.

11 years ago

Thanks for quick reply - I will investigate.
Will this sort of thing be included in the admin panel when it launches?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1319 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4045 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago