Favourites as module

More
12 years 11 months ago #21126 by johnlewisdesign
Hi and thanks for that. PM sent back.

I've been trying to render your code into a custom PHP module to display the favourites table (using mod_php) since we last spoke.

If I'm doing it wrong, I do apologise, but I thought I'd try something at least, not just lean on the forum!

I'm getting

Notice: Undefined property:JDocumentRendererModule::$items

I'm sure its me being really lame at PHP and that I need to change $this for something else.

My code is
Code:
<h2 class="flexicontent favourites"> <?php echo JText::_( 'FLEXI_YOUR_FAVOURED_ITEMS' ).' '; ?> </h2> <?php if (!count($this->items)) : ?> <div class="note"> <?php echo JText::_( 'FLEXI_NO_FAVOURED_ITEMS_INFO' ); ?> </div> <?php endif; ?>

I'm trying to learn from this, so any help is greatly appreciated. But if there is an existing way to implement I would love to know it.

Thanks!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.410 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline