Welcome To My Website!
Howdy! My name is Duc Hoang Le and you're viewing my personal website at Pijaja.Com - Innovative Site Builder. On this site, you'll find articles which focus (mainly) on DotNetNuke. As I'm not (yet) a professional developer, my articles will cover advanced topics for DNN users to make the framework more usable and user-friendly. In addition, you'll also find my Photo Album and Personal Profile here. Enjoy!
Technical Blog
Sunday, June 08, 2008
Launch A Live Content Element Through Querystring
bởi Lê Hoàng Đức @ 7:48 AM :: 118 Lượt xem :: 0 Comment :: :: DNN :: All Posts, DNN :: Tips & Tricks
 

What Is Launching An Element Through Querystring?

That means when a user visits a specific URL, a Live Content element will automatically pop out. He will not have to click the item manually.
 

Why Is This Technique Useful?

Sometimes we want to refer to an exact element in a bigger set. Because Live Content's element does not have an URL, visitors'll have to search for the correct element in that page. This is sometimes cumbersome, especially when there are too many elements on a page.

For example. I'm setting up a video repository using Live Content. Each page contains 10 clips. Then instead of telling users to go to that page and find the video, I just have to give them the URL with querystring.
 

How Do I Do That?

You can use this URL structure to launch an element on page load: (remember to configure ElementId & modId)
http://www.domain.com/Default.aspx?AutoLaunchElementId=...&modId=...
 

How To Identify Corresponding IDs?

Just go to the edit page of an element, you'll find what you need. For example:
 
 
So the ModuleID is 943 and ElementID is 4. The URL will look like this:
http://www.domain.com/VideoRepository/tabid/69/Default.aspx?AutoLaunchElementId=4&modid=943
 
Hope you find this handy!

digg digg | del.ico.us del.ico.us | facebook facebook | facebook stumbleupon | reddit reddit

Cho Điểm
Comment
Hiện giờ vẫn chưa có comment nào. Hãy là người "bóc tem" cho entry!
Click vào đây viết comment.
Archive


Links

People

Social Spaces