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 ExtensionsOther Extension...Other Extension...Linking to Multiple Individual Records in Database in aspx / html?  Linking to Multiple Individual Records in Database in aspx / html?
Previous
 
Next
New Post
5/18/2011 6:20 AM
 
Thank you for your elaborate answers!

At the moment my requirements are not too complicated. (They might get more complicated later on.)

Given the fact that my solution probably will be used by others later on and the slower performance of the Razor Host module, developing a module seems to be the way to go.

Basically I would need the Html (or similar) module with the added functionality of being able to insert links to records in my SQL Server database. (Kind of how fields in Microsoft Word work.) I could develop my own Html module with the database linking functionality, but isn't it possible to extend or overlay the current Html module with the database linking I need (as loosely coupled as possible)?

Or may be extend the set of 'tokens' already included in DotNetNuke?
(Like you have under Admin...Languages...Language Editor. And then for example "Resource Name: EMAIL_BANNER_NOTIFICATION_BODY.Text" which contains [Custom:0], [Custom:1], etc. The tokens are probably coming from a resource file and not from SQL server.)

Both options seem to save a lot of work, but I'm not sure if they can be done and what I'll run into.

Your thoughts are much appreciated!
 
New Post
5/18/2011 6:49 AM
Accepted Answer 
To be honest the code involved in making a working html module is surprisingly small. 

It is not possible to extend the HTML module as such - since dnn modules are not built in such a way as being designed to be extended.

There is nothing wrong however with taking the HTML module code and creating your OWN module based on its code.  The html module can be found in the SOURCE code version. I would suggest that if you do so - you actually create a separate version of the module as opposed to just altering and re-compiling the existing module.  This let the base module receive updates to its version as the core evolves.

With regard to the token system it is not possible to directly extend the token system as such - BUT if you code your own module - you could pass thru custom parameters to the token parsing code in the HTML module.  

The honest easiest approach would be to take the HTML module source code - save a new version of it - make your own changes, compile and go from there.

Westa

 
 
New Post
5/18/2011 6:54 AM
 
Thank you very much!
 
New Post
5/18/2011 12:36 PM
 
Check custom module on this site link 
You can execute SQL query, data are displayed in simple table.
 
New Post
5/19/2011 4:07 AM
 
Bartlomiej Waluszko wrote:
Check custom module on this site link 
You can execute SQL query, data are displayed in simple table.

Thanks for your reply. Aren't you opening up your (Sandbox) DotNetNuke database?
If I type "Select * from Users" I'm probably getting a lot of "dummy" users and e-mail addresses but may be 1 or 2 are real names and addresses.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Linking to Multiple Individual Records in Database in aspx / html?  Linking to Multiple Individual Records in Database in aspx / html?


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