Related Items Extended - Slideout Box

Hello i have just bought the module Related Items Extended, i would like to know if with a little edit i can also show latest item. Cause i realy need the slideout box to show Latest News. I hope you can help me. I think there is something to edit here:

// select the meta keywords from the item

$query->select('metakey');
$query->from('#__content');
$query->where('id = ' . (int) $id);
$db->setQuery($query);

if ($metakey = trim($db->loadResult()))
{
// explode the meta keys on a comma
$keys = explode(',', $metakey);
$likes = array ();

// assemble any non-blank word(s)
($keys as $key)
{
$key = trim($key);
if ($key) {
$likes[] = $db->escape($key);
}
}

if (count($likes))
{
Have a nice day,
Thanks in Advance,
Anna
11 years 4 months ago #1 by Anna

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

Hi Anna, as its name suggest, related item extended is intended for related item function only, so it's not for showing latest articles.
It's not as easy as to change small part of the code you mentioned, but it will need a quite major changes to the code. Sorry about that
11 years 4 months ago #2 by andy

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

ok i have edited it by myself, now i have 2 different modules, the only problem is when i run them together. Please, could you help me? i think there is a conflit 'cause they load the same file
11 years 4 months ago #3 by Anna

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

Anna

...now you understand why we said "it's not as easy as change small part of code you mentioned" before ;)
We're afraid we still don't have such a time and resource to add this latest news as an additional feature on this relateditems plugin at the moment. Sorry...
11 years 4 months ago #4 by erwinschro

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

Powered by Kunena Forum