Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Is the method ofType usable in a collection defined with twig syntax?
· 10 years ago
Ok found the right syntax :-D {% set latest_classified = page.collection({ 'items': '@root.descendants', 'order': { 'by': 'date',
-
Is the method ofType usable in a collection defined with twig syntax?
· 10 years ago
Ok, this works: {% for child in page.children.order('date', 'desc').ofType('album') %} ... {% endfor %} So seems my issue is more on the way I build my collection before the filter applies.
-
Is the method ofType usable in a collection defined with twig syntax?
· 10 years ago
Also tried from https://github.com/getgrav/grav/issues/1097: {% set latest_classified = page.collection().ofType('classified') %} But no results too :-( :'(
-
Is the method ofType usable in a collection defined with twig syntax?
· 10 years ago
The other syntax that would look good to me would be: {% set latest_classified = page.collection({ 'items': { 'ofType': 'classified', },
-
Is the method ofType usable in a collection defined with twig syntax?
· 10 years ago
Hi, I would like to filter content based on type; I saw the Collection::ofType($type) filter that seems to do what I expect. But I can't manage to use it so far to display the 5 latest classified :
-
Resize images
· 10 years ago
Without the media capabilities, you would need to resize the images before-hand. However, I did write a proof-of-concept plugin to allow resizing of images outside of the pages folders. You can chec
-
Resize images
· 10 years ago
Hi everyone, i have to resize the slider images to the right measurements, because my customer has problems with editing images. I have an upload form, where i can upload all my images and
-
Modifying blueprint for Content tab of admin panel?
· 10 years ago
Silly me, doing a text search of the Grav files not a filename search. I found the default.yaml blueprint and see you call the form field as 'content'. @philjms I suggest copying the default.yaml blue
-
Modifying blueprint for Content tab of admin panel?
· 10 years ago
Similar issue: I'd like to know how to edit the default blueprint or make a custom blueprint with an editor field that writes to the content section of a page.
-
Modifying blueprint for Content tab of admin panel?
· 10 years ago
For some pages on the admin panel, I'd like to remove the markdown editor and replace it with a different field. How can I both hide the markdown editor and add a new field via a blueprint? FYI, I tr