Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Paul Massendari Regular
Grav Forum Moderators
@paul · Joined 9 years ago · 143 posts · 0 topics · 53 reputation
Badges
Recent posts
-
How to add common conditional banner image for blog post headers
· 8 years ago
You sure you have an md file in /images folder? Also, you can enable debugger and add {{ dump(page.find('/images).media }} and see what the output is in the debug bar.
-
Images in Antimatter theme
· 8 years ago
As it is a modular page? Did you try clearing the cache?
-
How to add common conditional banner image for blog post headers
· 8 years ago
The twig you posted: {% set blog_image = page.find('/images').media['indivisual-article-banner.jpg'] %} Is correct and should work if you have a md file in /user/pages/images
-
Where would you put favicon's? themes or user/pages/images?
· 8 years ago
for antimatter, you have to put it inside user/themes/antimatter/images/ and you have to name it favicon.png (you will have to replace the existing one)
-
How to add common conditional banner image for blog post headers
· 8 years ago
Hi, Are you sure there is a md file in your /images folder? Because the twig you posted seems correct. If you want this image to be used as a "fallback" you can use the |default filter like this {{ p
-
How to turn indivisual blog page <h1> into <h4> on listing page?
· 8 years ago
If your h1 is the same as your page title, as in your example, why not use {{page.title}} instead and wrap it inside h4 tags? Otherwise, you would have to perform some markdown manipulations to "extra
-
Navigation | A way to create a field/array that replaces the page.title but outputs remaining titles if null
· 8 years ago
hmm, took a quick look but it looks like your loop is not correct. if you loop through child pages, you have to use {% if child.header.event_link %} but in your example you used if header.event_link.
-
A Way to Override Page Media Field within Custom Blueprint or Route media to custom folder?
· 8 years ago
Never used it myself, but maybe this could help too? https://learn.getgrav.org/themes/twig-filters-functions#media-directory
-
A Way to Override Page Media Field within Custom Blueprint or Route media to custom folder?
· 8 years ago
Hi horussky: To complete dmitri response, you can remove the page media field (named header.media_order) by writing: title: Artistes '@extends': type: default context: blueprints://pages form
-
Can the “iconpicker” field be configured to support other/additional icon fonts?
· 8 years ago
Hi @PSG, this is not possible at the moment. If you use another popular icon provider, you could however create and release a plugin for this.