dnnstuff.favorites

A DNN Module that allows a user to manage a list of favorite pages

View the Project on GitHub redtempo/dnnstuff.favorites

Favorites Configuration

The Favorites module is made up of three distinct parts, favorites listing, favorites toggle and favorites toggle skin object.

Favorites Listing

This module is a simple list of the favorites a user has selected. From this module a user can navigate to one of their favorite pages or they can remove a page from their list.

Listing Options

Common

Favorites Toggle

This module allows the user to toggle the current page as a favorite. The specific action of the toggle depends on whether this page is already a favorite or not. If it is, then the user can remove this page from their favorites. If it isn’t already a favorite, then the user can add it to their favorites. This module is essentially identical to the favorites skin object, except it has an options screen so you can easily change the look of the links and of course it will need to be added to every page you want the toggle option.

Toggle Options

Common

In either message you can use only the [IMAGEURL] token

Favorites Toggle Skin Object

The skin object contains the same functionality that the favorites toggle module includes except it’s in the form of a skin object so you can quickly add it to a skin definition and have it appear on any pages that use that skin.

To add the skin object to a skin, you will need to add two elements to the skin ascx file.

​1. Add the reference to the ToggleSkinObject

<%@ Register TagPrefix="dnn" TagName="FAVORITES\_TOGGLE" Src="~/DesktopModules/DNNStuff - Favorites/ToggleSkinObject.ascx" %>

​2. Add a call to the skin object within the html section of the skin ascx file in the location you wish it to appear onscreen. If you wish to customize the look of the toggle button

<dnn:FAVORITES_TOGGLE runat="server" id="dnnFAVORITES" cssclass="CommandButton" />

Skin Object Options