Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Grav loop: can't use .gif files as title-images. Only jpg
· 11 years ago
As I wrote before: just use image.url without ['title.jpg'] to deliver images independent of their datatype. i just tried myself but it seems to ignore GIF files. It works fine with PNG and JPEG. I'll
-
Grav loop: can't use .gif files as title-images. Only jpg
· 11 years ago
Hi sebbb, thank you very much for your replay! Well, your code works anyway, but bizzarely it still ignores my title.gif. :-( Hmm.... Here's an idea: Is there a way to write <img src="{{ child.med
-
Grav loop: can't use .gif files as title-images. Only jpg
· 11 years ago
Define images inside your loop and then just call the image.url no matter what filetype it is. Here's a simplified example from one of my template files which always shows the first image of a portfol
-
Grav loop: can't use .gif files as title-images. Only jpg
· 11 years ago
Dear coders, i am working on a portfolio site, which has both .gif and .jpg-files as title images to show on the portfolio overview. As you can see, my loop does not provide a possibility to use .gif-
-
Inputting Multiple Values on a Form
· 10 years ago
I'm looking at creating a form that would need to take in an unknown number of strings in an array. An example could be tags given to a blog post. An author may choose to use one, but may choose to us
-
Figure with caption
· 10 years ago
Yes, the <figcaption>-element is only added if a title is found.
-
Figure with caption
· 10 years ago
Trying out this plugin https://github.com/OleVik/grav-plugin-imgcaptions It seems it's easy to control which images plugin includes/excludes by including/omitting image title in markdown ![Upload imag
-
Figure with caption
· 10 years ago
Ignore my last message. ImgCaptions does indeed do its thing only on images in their own pararaphs, not on inline images. I was misled by the theme’s CSS that I am using applying display:block to all
-
Figure with caption
· 10 years ago
Unfortunately ImgCaptions converts all images, instead of only those in their own paragraphs. figure is a block-level element and therefore not appropriate for inline images. Converting only the forme
-
Figure with caption
· 10 years ago
Alternatively, you can save some time and use the ImgCaptions-plugin which: Wraps images in <figure> and captions in <figcaption> based on the title-attribute of the img-element.