pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3151 posts · 14 topics · 1014 reputation
Badges
Recent posts
-
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
-
Using templates, how to create sub-keys in the page frontmatter?
· 8 years ago
@domsson The following definition for fields in your blueprints/default.yaml will produce what you want: [form + tab definitions omited] fields: header.object.color: name: color type: text