Joomla article images disable

4 years 1 day ago - 4 years 3 hours ago #1 by Filip
Joomla article images disable was created by Filip
Is it possible to disable the Joomla Article images so that they don't show up in the list, in the PDF, in the Print, in the email,...?
It seems this is only possible bij template override

Please Log in or Create an account to join the conversation.

3 years 11 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Joomla article images disable
Hi Filip.

Yes, that is the correct way to hide images from all lists (site, email, pdf).
Otherwise, if you just want to hide them from the site list, you can add some CSS.

Heads up! MyShortlist may have different layout files for some of the components you use. If you have EasySocial profiles, the layout file to override would be modules/mod_myshortlist/tmpl/es_item.php instead of default_item.php.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!
The following user(s) said Thank You: Filip

Please Log in or Create an account to join the conversation.

2 years 9 months ago #3 by Julie
Replied by Julie on topic Joomla article images disable
Hi Christopher,

Could you please tell me what the css is to remove the image from the list?  I've tried putting .myshortlist_item_image {display: none;} in my template but it has no effect.

Please Log in or Create an account to join the conversation.

2 years 9 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Joomla article images disable
Hello Julie! Thank you for posting.

The CSS you wrote should have worked. You may be viewing a cached version of the template, or there may be some other CSS in place.

However, I would still suggest to create a template override of default_item.php rather than simply adding CSS. You can remove the image HTML, or just write
$item->image = '';
in line 23.

Let me know if you need on that!

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

2 years 8 months ago #5 by Julie
Replied by Julie on topic Joomla article images disable
Perfect! Thank you very much :)

Please Log in or Create an account to join the conversation.

2 years 8 months ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic Joomla article images disable
You are very welcome!

If you like MyShortlist, please take a moment and leave us a review !
It's really appreciated.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros