Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Can you implement a "random" feature?
· 12 years ago
works in my testing. I have this in a test.twig.html template: <h1>Random Test</h1> {% set image = random(page.media.images) %} Image: {{ image.html }} And it outputs a random image on e
-
Can you implement a "random" feature?
· 12 years ago
... does not work ...
-
Can you implement a "random" feature?
· 12 years ago
Ah sorry, randomize just randomize's the array, you then still need to grab one. So: {% set showcaseimage = page.media.images|randomize|first %} Another approach is to use the random function from Twi
-
Can you implement a "random" feature?
· 12 years ago
I think I am stupid ... because it doesn't work on my install : cache cleaned / restart apache .... it still doesn't work without error : the picture is just missing ... but the page is generated.
-
Can you implement a "random" feature?
· 12 years ago
No problem, this is actually not documented, you would have to have looked at the code :)
-
Can you implement a "random" feature?
· 12 years ago
oh. Sorry. I'm stupid
-
Can you implement a "random" feature?
· 12 years ago
Actually we already have that filter in our custom Twig extension, it's called randomize: {% set showcaseimage = page.media.images|randomize %}
-
Can you implement a "random" feature?
· 12 years ago
{% set showcase_image = page.media.images|first %} is working. Can you implement {% set showcase_image = page.media.images|random %} to get a random picture in the folder ? Thanks !
-
Create a collection of modular children in a module?
· 9 years ago
Hi I've got a couple of modular pages and at the top of each one I'd like to a have a mini menu of anchor links to the different module sections. On my page modular.twig.html I've got a page collectio
-
Add a more stylish and modern theme
· 9 years ago
Hello, You don't have to wait for a next version to have a custom theme. You can make the theme yourself, or hire a designer to do it for you. ;)