*
*
*
*
Register | Login 
Articles

Current Articles | Categories | Search | Syndication

Thursday, November 15, 2007
Linking Directly to an Aggregator Tab
By dnnstuffadmin @ 8:28 AM :: 1072 Views :: 5 Comments :: :: FAQ, Aggregator
 

Yes, this is available in the current version although it's currently
undocumented because I wasn't really happy with the syntax. Right now
it requires you to know the moduleId of the Aggregator and the moduleId
of the module you want to show. The syntax is shown below.

Basically, you need to add a query string parameter to the page url
that is formatted as
Module[AggregatorModuleId]_SelectById=[ShowModuleId], where
[AggregatorModuleId] is (obviously) the Aggregator ModuleId and the
[ShowModuleId] is the ModuleId of the module contained in the tab you
want to show. To determine the moduleid for each module, just go into
module settings for that module and you'll see ModuleId=xx in the
address bar. Like I said, it's a bit clunky for my liking right now so
the syntax may change in the future but I'll attempt to keep this
syntax around for backward compatibility. Also, if you have more than
one aggregator on the same page, you can specify each individual
parameter using the ampersand syntax &.

For this sample, the Aggregator module (ModuleId = 343) would select the tab containing the module with ModuleId=4.

    Default.aspx?Module343_SelectById=4

Of course, to move to the proper DNN tab, you'll have to add that in as well so you'll have something like,

    Default.aspx?Tabid=123&Module343_SelectById=4

 

Edit: As of 4.5.x I have added two other ways to do the same thing: SelectByNum and SelectByTitle. SelectByNum takes a tab number argument and SelectByTitle takes a text argument.

Examples:

    Default.aspx?Module343_SelectByNum=2     will select the 2nd tab

    Default.aspx?Module343_SelectByTitle=Features     will select the tab with caption entitled 'Features'

 

 

Rating
Comments
By duncanwatson @ Saturday, October 20, 2007 9:18 PM
Thanks, just what I need to know.

ByBet Zimmerman @ Thursday, November 15, 2007 1:11 PM
Is this any easier in version 4.5.2? This is the BIGGEST limitation of tabs (which we use a LOT) - I really need to be able to link not just to pages, but to tabs.

By dnnstuffadmin @ Friday, November 16, 2007 7:42 AM
Hi, I just updated the article to include a couple other ways that were added to select tabs from urls. You can now use SelectByNum to select by tab number or SelectByTtle to select by tab title.

ByBet @ Monday, December 17, 2007 2:06 PM
Another question for you - instead of having to select the tab skin for every aggregator, is there some code I can add to the CSS? E.g., to set the tab skin to XPLunaVarWidth for all aggregators added. Thanks in advance!

By dnnstuffadmin @ Monday, December 17, 2007 2:42 PM
Hi, I just created a new forum post to address this provide follow up. You can find it here,
http://www.dnnstuff.com/Support/Forums/tabid/189/forumid/4/view/topic/postid/1128/Default.aspx

Click here to post a comment

By Category

By Date

DotNetNuke Powered!

Copyright (c) 2005-2008 DNNStuff
*
Terms Of Use   Privacy Statement