DNNStuff Documentation WikiVisit DNNStuff
RSS

Contents


Tools




Quick Search
»
Advanced Search »

Tag Cloud

Aggregator DNNStuff Favorites Inject Anything Module Rotator SQLView Pro Welcome


PoweredBy

Aggregator Selecting Tabs

RSS
Modified on 2010/08/19 09:43 by dnnstuffadmin Paths: Aggregator Categorized as Aggregator
In the default configuration, the first tab is always the initial tab to be shown. Sometimes it is desirable to have another tab show instead. There are a couple different ways to accomplish this.

Selecting a tab using a url

To select a tab using a url you will need to add a querystring parameter to your url in a specific format. You can select the tab in one of three ways.

By Tab Number - SelectByNum

Add the following querystring parameter to your url, Module{ModuleId}_SelectByNum={TabNumber} where {ModuleId} is the ModuleId of the Aggregator module and {TabNumber} is the tab number you wish to select.

Example

The original page url is http://localhost/Test/tabid/54/Default.aspx

The module id of the Aggregator module is 370 and you wish to select tab number 3.

The url to select this is, http://localhost/Test/tabid/54/Default.aspx?Module370_SelectByNum=3

By Tab Title - SelectByTitle

Add the following querystring parameter to your url, Module{ModuleId}_SelectByTitle={TabTitle} where {ModuleId} is the ModuleId of the Aggregator module and {TabTitle} is the title of the tab you wish to select.

Example

The original page url is http://localhost/Test/tabid/54/Default.aspx

The module id of the Aggregator module is 370 and you wish to select the tab with a title of 'Page 5'

The url to select this is, http://localhost/Test/tabid/54/Default.aspx?Module370_SelectByTitle=Page 5

Selecting a tab using Javascript

To select a tab using javascript, you simply have to call the proper javascript function for the specific Aggregator module and tab. The syntax for the function is Agg'ModuleId'_SelectTab(tabnumber,ModuleId);

Example

The module id of the Aggregator module is 370 and you wish to select tab 3

<a onclick="javascript:Agg370_SelectTab(3,370);" href="javascript:void(0)">Link To Tab 3</a><br />



ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.