Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Change date() localization for non-English sites
· 10 years ago
strangely enough, it seems that the date and time are translated in my language :) ... I have played quite a while but its working now (can't remember what exactly did it but you can check the files a
-
Change date() localization for non-English sites
· 10 years ago
I asssume this only works if Twig were to use strftime() instead of date(), at least the PHP date() doesn't support outputting the date in other languages. (See also this StackOverflow post)
-
Change date() localization for non-English sites
· 10 years ago
Hi - same interesting issue here, I've created my translations into the user/config/languages so now I have only my language in the folder. in the theme template i also tried with language.yaml contai
-
Change date() localization for non-English sites
· 10 years ago
Would be awesome! I would like to solve this problem myself. But i didn't found comparable questions...
-
Change date() localization for non-English sites
· 10 years ago
To be honest i've not done a lot of date handling in other languages. Really hoping someone else can pipe in with some advice for you :)
-
Change date() localization for non-English sites
· 10 years ago
Hey there! My problem is: I want to have the correct german localized for dates like the following: {{ blog_post.date|date("l, d. F Y") }} Like in the docs ( http://learn.getgrav.org/content/multi-lan
-
Breadcrumb Help
· 10 years ago
Or you can use something like: {{ crumb.menu|length > 50 ? crumb.menu|slice(0, 50) ~ '...' : crumb.menu }} It will crop the length of the breadcrumb title to 50 symbols and add three dots.
-
Breadcrumb Help
· 11 years ago
Hi Thanks for the reply, the first option suites my needs perfectly :) I looked at the code for ages and could not see how it was getting the title when t looks for menu but never tried adding the m
-
Breadcrumb Help
· 11 years ago
This is very easy with Grav :) Breadcrumbs is already looking for a menu setting, that in turn defaults to title, but you can simply add a: menu: Short Title In your content and it will use this rat
-
Breadcrumb Help
· 11 years ago
Hi, I have breadcrumbs on my site and my main issue is on some pages I have a descriptive page title. So on these pages with the breadcrumb the titles are very long. I was wondering how I could add in