XF 2.3 Can I set icons or images for articles as well?

Sprony

Active member
Licensed customer
Hello,

I dislike having the first image in an article to be the image people get to see in the overview. I do not wish to start each article with a big header image. For instance, this is my overview page:

1796461038432.webp

And the articles would start like this:

1796461081785.webp

Is it possible to set an icon or image for a post, just like you can with the resource manager?

1796461240726.webp
 
There may be better ways, but you can place an image with zero pixel display dimensions as the first image in a post/article and the system will find and use that for the preview, but it'll render at 0 pixels wide so a visitor won't see it when viewing the actual post/article.
So if you were using an attachment in your post it'd be something like: [ATTACH width="0px" alt="example.jpg"]12345[/ATTACH]

It does seem odd there isn't a way of specifying a discreet image and it then falls back to the first image if nothing is explicitly set. That would seem like an obvious feature to my mind.
 
Last edited:
There may be better ways, but you can place an image with zero pixel display dimensions as the first image in a post/article and the system will find and use that for the preview, but it'll render at 0 pixels wide so a visitor won't see it when viewing the actual post/article.
So if you were using an attachment in your post it'd be something like: [ATTACH width="0px" alt="example.jpg"]12345[/ATTACH]

It does seem odd there isn't a way of specifying a discreet image and it then falls back to the first image if nothing is explicitly set. That would seem like an obvious feature to my mind.
Yeah, it's weird that you do not have that possibility. Maybe I should submit it as a feature request?
 
Back
Top Bottom