Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module Settings based on QueryStringCustom Module Settings based on QueryString
Previous
 
Next
New Post
5/18/2012 8:50 PM
 

I have a page on a video site called channels. The videos on this page are dynamically populated by the channel parameter passed in the url: http://hostname/tabid/xx/channel/xxx/default.aspx

This works fine, however, the client wants a side bar that has "Featured Videos" on each channel page. My first thought was to create a setting in my feature video module that allows them to put the querystring key name they wish to use and then append that to the videoID setting name when I save it...

Example: They are on http://......channel/5/default.aspx and click settings on the feature video module....

when the settings page opens I want it to look at the VideoKey setting, see that is is set to "channel", see that they are on channel=5 and look up the videoID setting key as videoID_5.

They problem is that, while this works great in view mode, when you click settings, the channel is not passed to the settings page and so it does not see the querystring parameter and thus simply looks up the setting key of videoID instead of videoID_xx (I set it to default to videoID for when users simply go to channels.aspx they get some default feature videos).

This is an urgent matter as this project is overdue. Any advice you can offer would be greatly appreciated.

 
New Post
5/24/2012 9:06 AM
 
So each channel can have multiple featured video's?

Perhaps it's time for you to start using an SQL-table (named something like 'ChannelVideos', with (at least) 2 columns; ChannelID and VideoID. Then you can easily look up all the necessary video-id's for the current channel.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module Settings based on QueryStringCustom Module Settings based on QueryString


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out