Like me on Facebook Follow me on Twitter Register or    (Why?)
You are here Articles

All modules are now open sourced, please see the announcement here

 

Articles

15

Editor: 05/Jan/2009 - This functionality is now a fully supported feature of the Aggregator module. Within the edit tab portion of the setup screen, there are now two urls at the bottom of the screen which provide both client and server side tab selection urls. You can also see the demo of this feature at the following page, http://www.dnnstuff.com/Modules/AggregatorTabbedModules/AggregatorDemos/LinkingDirectlyToATab/tabid/342/language/en-US/Default.aspx

 

Original article follows below:

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'

 

 

Posted in: FAQ, Aggregator

Post Rating

Comments

Duncan Watson
# Duncan Watson
Saturday, October 20, 2007 6:18 PM
Thanks, just what I need to know.
Bet Zimmerman
Thursday, November 15, 2007 10:11 AM
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.
Richard Edwards
# Richard Edwards
Friday, November 16, 2007 4: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.
Bet
# Bet
Monday, December 17, 2007 11:06 AM
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!
Richard Edwards
# Richard Edwards
Monday, December 17, 2007 11:42 AM
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
tourproject
# tourproject
Thursday, July 15, 2010 5:26 AM
For those with Turkish interface there is a problem with Turkish lowercase i character. At least in our tries with demo page for a tour booking in Turkey portal. replacing upper I to lower i solves the problem at most cases.

Post Comment

Only registered users may post comments.
Privacy StatementTerms Of UseCopyright (c) 2004-2015 DNNStuff
Page generated in 0.3124837 seconds!