Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
For multi-lang, how to rename a page file via Admin Panel?
· 10 years ago
You need to add the supported languages. In the admin this is done by editing the System Configruation, but I always use the files :)
-
For multi-lang, how to rename a page file via Admin Panel?
· 10 years ago
Hi rhukster, Thanks for your answer - although I've been working in the software development area over 10 years, and I tried over ten times, I couldn't find where to pick the language for a given page
-
For multi-lang, how to rename a page file via Admin Panel?
· 10 years ago
In the admin panel you don't rename the file, you just pick a language to save it in. The admin panel will rename it appropriately.
-
For multi-lang, how to rename a page file via Admin Panel?
· 10 years ago
Hi, according to the Grav doc (https://learn.getgrav.org/content/multi-language#multi-language-basics), the language of a given page is specified via the file name, eg: docs.en.md docs.cn.md I use th
-
Exclude image from for loop based on name
· 10 years ago
good job!
-
Exclude image from for loop based on name
· 10 years ago
Just got it working, by indeed checking the dump(). profile_image_file returned the filename only whereas image.url ofcourse returned the complete url. image.filename works well, below the final if s
-
Exclude image from for loop based on name
· 10 years ago
Once again, I can't test it right now but here is another thing you might try: {% for image in page.media.images if image is not == page.header.profile_image_file %} <div data-src="{{ image.
-
Exclude image from for loop based on name
· 10 years ago
I just tried the below, but also not working. Eventhough im 99% sure that for the image im targeting the image.urland page.media['profile_image_file'].url are identical. {% if image.url == page.media
-
Exclude image from for loop based on name
· 10 years ago
Error is gone, but unfortunately it still shows the profile_image_file as well.. tried clearing cache etc. without avail. Will go over it once more.. I'm pretty sure it should be a relatively easy so
-
Exclude image from for loop based on name
· 10 years ago
oh, change image = profile_image_file for image == profile_image_file