pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3137 posts · 13 topics · 1013 reputation
Badges
Recent posts
-
How to remove enqueued assets
· 5 years ago
@mark-s, Although I've never used it, it sounds logical to me that the file reference used in assets.addJs('<file reference>', options), should also be used to remove it. You can find it in the
-
How to remove enqueued assets
· 5 years ago
@mark-s, Never used it but maybe assets.removeJs() is what you are looking for: See API on Asset Manager: removeJs( string $key ) : \Grav\Common\$this Removes an item from the JS array if set Not su
-
Load partials via ajax
· 5 years ago
@christiana83, to append the partials content on click to a node, so that they just need to be loaded, when needed To recap our needs: you want to asynchronously fetch HTML from the server when the
-
Load partials via ajax
· 5 years ago
@christiana83, The more requirements and context is given in the question the higher the chance are to get a suitable answer... Back to square one: partials with data What are "partials with data"?
-
Load partials via ajax
· 5 years ago
@christiana83, Interesting question. I did some playing. Considering: You want to fetch new html dynamically from the server to add to the DOM. The html is generated using Twig with server data. The
-
How to add automatic 'sizes' attribute for srcset
· 5 years ago
@luap, You could try the following: <section class="image {{ page.header.imagelayout.class }}"> {% for image in page.media.images %} <div class="projectimage projectimage__half">
-
Modular blueprints only work sometimes
· 5 years ago
@gcasalett, Add $ bin/grav cache to your toolbelt and use it whenever changes do not show up.
-
Modular blueprints only work sometimes
· 5 years ago
@gcasalett, but the blueprints are not working for the other 4 "not working" is bit vague to test... Anyway, you may try $ bin/grav cache. It does miracles sometimes.
-
Redirects don't seem to work with umlauts in the old urls
· 5 years ago
@Netzhexe, Try the following without the trailing /: redirects: '/wir-%C3%BCber-uns': '/wir-ueber-uns' -or- '/wir-.*ber-uns': '/wir-ueber-uns' -or- '/wir-.{6}ber-uns': '/wir-ueber-uns' Note:
-
Shortcode-Gallery not functioning with Quark
· 5 years ago
@idna, Your test site is throwing an error in the console at line 124 of the page: Uncaught SyntaxError: Unexpected token ',' Your code is missing values: $("#443266197").justifiedGallery({ rowHei