Register   Login
     
  Latest Posts  
RE: NA Latest - Template question
by Blondie on 3/17/2010 9:03 PM
RE: Multiple images in RSS feed
by eyesocketnet on 3/17/2010 8:20 PM
RE: Images/Lightbox on Listing template
by eyesocketnet on 3/17/2010 8:15 PM
Resouce Files
by IMISOFT on 3/17/2010 5:59 PM
RE: BUG So many 404's with rssbutton.gif
by smcculloch on 3/17/2010 4:30 PM
BUG So many 404's with rssbutton.gif
by greenflash on 3/17/2010 2:45 PM
RE: thumbnails and W3C validation
by greenflash on 3/17/2010 2:38 PM
RE: Dual PA modues on site for different levels of access?
by robax on 3/17/2010 1:38 PM
RE: Where is the NA Latest Article Module setting stored?
by ray-isc on 3/17/2010 1:10 PM
RE: Where is the NA Latest Article Module setting stored?
by Declic Video on 3/17/2010 12:46 PM
  Forums  
Subject: Content Rotator as Skin Object?
Prev Next
You are not authorized to post a reply.

Author Messages
Robin TempleUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

1/23/2007 6:42 AM  

Hi,

I love this module - it's so nice to be able to rotate different html rather than just images! Is there any way to use this as a skin object? I'd really like to rotate a series of html within each of my skins. Or is there another way that I'm missing?

The only way I can get this to work as a module is to display it on all pages, but I want a different rotation on each section of our university website.

Thanks so much for your help! - Robin

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


1/24/2007 4:35 AM  
The problem with skin objects is that there is no real way of adding content for the skin object to use.

How about having it on those pages and no container on the module?

Scott McCulloch
Site Administrator
Matt BunceUser is Offline
Silver Membership
Ventrian Super Newbie
Ventrian Super Newbie
Posts:11

2/08/2010 3:21 AM  

I have just started looking at the Content Rotator and I also had the needed to inject content directly into the skin.

I am pretty sure the way I have done this is proably a little messy, so I would welcome any comments.

The principle behind my change was to allow us to add the Content Rotator control to a skin.ascx, and pass in a module ID as the content rotator you wanted to use.

To do this I created a property in Default.ascx.vb and used this if it were specified throughout the rest of the code.  If it was not specified (for example when the module if use in the usual way) then the module continues to work out it's module ID for itself (through me.ModuleID).

After making the changes this is how I now use the Content Rotator:

  1. Add a CR module to an admin only, hidden page (this is where we will configure the module)
  2. When editing the content, work out what the module ID is for the CR module (eg look at the URL in the browser - http://dotnetnuke/Testing/Toolbar/tabid/190/ctl/Edit/mid/769/Default.aspx)
  3. Register a new tag for CR at the top of your skin file:

  4. Add a tag later in your skin where you would like the Content Rotator to display content:

I hope this makes sense - Scott, am I allowed to post the modified source code / dll to help folks out?

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


2/09/2010 7:01 AM  
Sure - if people contact you through a private message.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Content Rotator > Content Rotator as Skin Object?



ActiveForums 3.7