Icon before the post title in blocks

Posted in: Newspaper
Post count: 7

Hi, I want to add an icon in front of the record title depending on the content of the record. If there are pictures in the text, then a picture icon, if there is a video, then a video icon.

Such an icon should be displayed in all blocks where there is a record.

How can this be implemented?

Post count: 27744

Hello,

Can you please provide an example about what you want to achieve?

Thank you!

Post count: 7

View post on imgur.com

Like this, add an icon so that wherever there would be a post, the title with the icon would be displayed.

Post count: 27744

Hello,

For this, I recommend creating a custom module and using a custom field type image and setting an image for the posts that you want to have that icon https://we.tl/t-FaHCjj7Nh5

Thank you!

Post count: 7

Thanks, but I have over 100,000 posts on my site and I need to display the icon depending on the content of the post itself.

If the post contains a video, add the Video icon before the title, and if the post contains a photo, then the Image icon.

Are there any other options? For example, rewrite the function for displaying the title?

Can you tell me where to find it?

Post count: 27744

Hi,

Unfortunately, there is no other option.

Have a great day!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.