I used the IFrame Module for the first time this week. I was really glad to see the QueryString Parameter option. It provided me with the functionality I needed for my situation.
But it took me time to get IFrame working for my purposes, mostly because I am new to passing parameters in a URL. I thought I would share my use case as an example for other novice users who want to use the IFrame Module.
Use Case: registered users have a MySpace-like page assigned to them. Registered users have the ability to manage (Edit) modules preconfigured for use on their page. When registered users login, DNN brings them to a 'my page' page, which has on it an IFrame Module that points to their own personal page. Here they may view/edit their personal page from inside an IFrame Module instance.
[DotNetNuke 4.5.5, IFrame Module 3.2.3]
Before using IFrame, for this example, add a custom user profile property called 'UserPage'.
Users > Manage Profile Properties > Add New Profile Property
Property Name: UserPage
Data Value: Page
Property Category: Preferences
View Order: (number; you choose, i.e. 50)
Property Name: User Page:
'Save Localized Text'
Now logged in as Admin, you can 'Manage Profile' for users and select their personal page from the UserPage profile property dropdown list.
Now Add a new page called 'my page' and add the IFrame Module to this page and set the IFrame Module options as follows:
Edit IFrame Options
Name: My Page
Width: (number; you choose, i.e. 800)
Height: (number; you choose, i.e. 1000)
QueryString Parameters > Add QueryString Parameter
Value: Custom User Property : UserPage
Click the 'Save' diskette icon, far left.
'Save' (all IFrame settings)
At your option, you could also choose to have DNN go straight to this page when a registered user logs in.
Users > User Settings > Redirect After Login: my page
Now when a user navigates to 'my page', with the IFrame Module using the querystring 'tabid' with the value from the user’s profile column called UserPage, the user will see their own page in the IFrame Module.
The IFrame Module is using a custom URL querystring pointing to this address:
http://www.yourportal.com/default.aspx?tabid=(value of UserPage)
… and IFrame substitutes the value of UserPage for the user who is currently logged in viewing 'my page'.
For those really new to DotNetNuke, a page is also called a 'tab' in DNN. That’s what the querystring 'tabid' is: the DNN tab or page ID number. You will see the tabid listed in the URL of a DotNetNuke page, usually after '.../tabid/'. So using the querystring 'tabid='
... where ### equals some number automatically assigned by DNN; this URL with querystring will direct you to that page exactly.