Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on August 11, 2020, 18:13:55
-
Is it possible to exclude the article you are currently viewing from a listing of articles produced by the ARTICLES module? e.g. show three most recent items from a category EXCEPT the current/active one.
I found this discussion on the Joomla website: https://forum.joomla.org/viewtopic.php?t=926014
-
Hello,
you could edit the file: /modules/mod_articles/mod_articles.php
Add to line 486 the following line:
if (defined('ELXIS_ARTID')) { $sql .= " AND a.id <> ".ELXIS_ARTID; }
-
Amazing - thank you!
The similar line in module 'latestarticles' seemed to be line 249 so I added the new line there too and it works :-)
-
You're welcome..@seadhna!