Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3127 posts · 12 topics · 1010 reputation
Badges
Recent posts
-
Trouble creating a new theme on MAMP on iMAC
· 8 years ago
@normawhite I don't know the root cause of your issue, but to get you going in the meantime, you might want to have a look at the tutorial Theme Inheritance. Inheriting a theme by hand is really, rea
-
How to test equality of two images
· 8 years ago
Try the following: {% if raw_url == image.url %}
-
How to reference hero image in the images file
· 8 years ago
@normawhite If you make changes, don't forget to read about Theme inheritance. If you make changes in Quark itself, your changes will be overridden when installing a new release of Quark.
-
Don't display errors / warnings in production
· 8 years ago
Or maybe fix the exceptions thrown? ;-)
-
How to reference hero image in the images file
· 8 years ago
@normawhite I have never used Quark but had a look at the README and code. The README.md says explicitly: The hero_image should point to an image file in the current page folder And also the code l
-
How to handle form request form in modal window with AJAX request
· 8 years ago
@Pavlo, For the \<form>, I use $this->grav['page']->slug() for the action attribute and add a hidden field with a name unique to my contactform. On submit of the form I check if the name o
-
Media url in multilingual site
· 8 years ago
@nix You have a few options as to where to store and how to fetch your images: Next to the page as you do now. page.media.images|first.url will return /user/pages/35.axismvndi/first-image.jpg. You co
-
Why do html_lang and Language\getDefault() have different values?
· 8 years ago
@hughbris Thanks for your clarification. theme_config (or config.themes.<yourtheme>) does not seem to have the property default_lang defined in a fresh Grav 1.4.5 install with Quark theme (anymo
-
Set Date format for blog posts to standard American mm/dd/yyyy
· 8 years ago
Thanks @Perlkonig The filter localizeddate('long', 'short', html_lang) available form the Intl twig extension does the job to get a localized datetime format.
-
Set Date format for blog posts to standard American mm/dd/yyyy
· 8 years ago
@Perlkonig How can date format be set per supported language?