No intro or full text in selcted favorites

1 week 2 days ago #1 by MIrko
Hello, I am using a module to add an article to favourite, but, in the favourite list, doesn't see intro or full text of the article, only image and title.
Is it possible to see intro or full text in Favorite list?
Thx

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

6 days 2 minutes ago - 6 days 2 minutes ago #2 by Christopher Mavros
Hi again Mirko.
All parts of MyShortlist are customizable.

If you want to show more details in each item, you need to create a template override of the item php file in your template.
Copy the file
modules/mod_myshortlist/tmpl/default_item.php
to
templates/your_template/html/mod_myshortlist/default_item.php
Then, edit the file in your template directory as much as you want.

To load the intro text and the full text, you may have to write something like the following, in line 14, after the usual Joomla check:
defined( '_JEXEC' ) or die( 'Restricted access' );

$db = JFactory::getDBO();
$db->setQuery('SELECT `introtext`, `fulltext` FROM `#__content` WHERE `id` = "'.$item->object->id.'"');
$texts = $db->loadObject();

Then, print each text by writing
$texts->introtext
or
$texts->fulltext

Thanks again!

Christopher Mavros
mavrosxristoforos@gmail.com
Serving the Joomla! community with extensions since 2008.

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

5 days 22 hours ago #3 by MIrko
Thx.
Sorry for my ignorance but where to add
$texts->introtext
or
$texts->fulltext

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

Moderators: Christopher Mavros