pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3195 posts · 17 topics · 1020 reputation
Badges
Recent posts
-
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?
-
Why do html_lang and Language\getDefault() have different values?
· 8 years ago
TLDR: Why do html_lang and Language\getDefault() have different values? According the docs: html_lang: This will return the current active language if provided, else use the site.default_lang configu
-
Cheking if translation exists
· 8 years ago
TLDR: Based on some tests I noticed the following Is language supported: html_lang in config.system.languages.supported Is translation available: html_lang == grav.language.getLanguage Does string ha