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

  • Convert HTML into a YAML sting · 11 years ago

    Grrr I just spent a half hour typing a how-to and sharing my code and I lost it.

  • Convert HTML into a YAML sting · 11 years ago

    Maybe I am going about this wrong. What I am doing is making an accordion using bootstrap markup. I am pulling all the text out of the YAML of the section page.md file. Would it be possible have a

  • Convert HTML into a YAML sting · 11 years ago

    I am wondering if anybody has a strategy for dealing with YAML stings that contain HTML. I have found I can minify HTML easily using http://codebeautify.org but I still need to manually fix double qu

  • Some problems with many images (cache and timeouts) · 11 years ago

    We currently don't have a way to clear cache for a specific page as this requirement just not really come up before. You can however, clear images only (which is where the thumbs are generated into):

  • Some problems with many images (cache and timeouts) · 11 years ago

    Hi, I extended the default blog item page to create a gallery with all the images from the page. However initially the post did not have the images. When I added the 540 images nothing happened and I

  • Html() *feature enhancement req* · 11 years ago

    As rhukster said, Twig supports named arguments. For me it seems to be support it "automagically" without any modifications to custom filters and extensions (correct me if I'm wrong). For a usage exam

  • Html() *feature enhancement req* · 11 years ago

    That said, it appears Twig does support passing in via named parameters, so maybe they are doing some matching with variable names. This needs to be tested and performance implications examined.

  • Html() *feature enhancement req* · 11 years ago

    PHP does not provide support for named arguments at this time. There is/was a proposal to add this functionality, but it was pretty much 50/50 voting last time I checked.

  • Html() *feature enhancement req* · 11 years ago

    Do named parameters exist? I think I'd prefer write html(alt="whatever") anyway, I've already forgotten the positional ones.

  • Html() *feature enhancement req* · 11 years ago

    It's not as simple as it sounds. The biggest issue is knowing when to do this and when not. Certainly it could not be a global setting because more often than not, images are used in responsive layo