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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Process css with twig · 10 years ago

    You could just process the CSS "inline" with Twig, for example: <style> #foo h1 { color: {{ page.mainColor }}; } </style> And place that in the relevant templates. More elegant would be as

  • Process css with twig · 10 years ago

    That is my current fall-back option, in fact. The problem is, I have many different container tags which I would have to adjust for this solution to work. My pages have css-classes that all contain b

  • Process css with twig · 10 years ago

    An easy option is to add a class depending on the page type on the body tag (or in a container tag) in base.html.twig, and add the style bits accordingly.

  • Process css with twig · 10 years ago

    In the theme I'm working on, I have two types of pages that differ in their color palette and in the font that is used, i.e. several css-classes need to have different color and font-style properties.

  • How to display an image that is upload via file field of a custom page form · 10 years ago

    Thanks for replying! I am kind of new to grav and I didn't know about the debug functionality. Thanks for that! I finally found a solution thanks to debugging: In my blueprint I changed the destinatio

  • How to display an image that is upload via file field of a custom page form · 10 years ago

    Ahh, sorry. Different destination you save the file to. See here: https://learn.getgrav.org/themes/theme-vars#theme_url-variable And here: https://learn.getgrav.org/themes/twig-filters-functions#url M

  • How to display an image that is upload via file field of a custom page form · 10 years ago

    Have a look here: https://learn.getgrav.org/content/media For your blueprint: {% for img in header.referenties %} {{ page.media[img.image].cache.html('Your Title Text', img.text., 'classname')}} {

  • How to display an image that is upload via file field of a custom page form · 10 years ago

    So I've been working with grav cms lately. Unfortunatly I can't find any answers to some problems I have. I'm trying to upload a image with a custom blueprint form, using the file field. this is my fo

  • How can I replace "Grav" with a logo? · 10 years ago

    Thanks Perlkönig :)

  • How can I replace "Grav" with a logo? · 10 years ago

    Just what I needed, thanks. Should any users need help with this, I modified the line highlighted by isuvar as follows: ---<h3><a href="{{ base_url == '' ? '/' : base_url }}"><img src="