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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Experienced developer, DNN newbieExperienced developer, DNN newbie
Previous
 
Next
New Post
11/20/2009 8:09 PM
 

Hello.

First off, I'm a .Net programmer.

I've used DNN "out of the box" before for setting up sites for friends (and their wive's workplace) so that I don't have to be called every time they want to make a change.

DNN is a great architecture, and an easily usable CMS. Great job everyone.

Now I would like to use it for my own purposes.

I will be buying the DNN Wrox books so I don't have to come here and ask mundane questions but, for now,  let me throw out an amateur's question: Why can't I use <%= %> in the HTML in HTML modules? 

Someone is going to say "like the module states, it's HTML".

Great, that tells me nothing. So, is it possible to (how do I) put dynamic content into a page?

Thanks in advance,

Mike

 
New Post
11/21/2009 6:31 AM
 

Hi Mike,

The html module reads a text from the database, and injects it as it is. It is even desired for security reasons that the text html module doesn't execute code which is not in control of the super user.  Normally even administrators are not allowed to add new code.

What you are asking for would be different, but manageable: The input needs to be saved as a ascx file and then loaded (via loadcontrol). You can write such a module, though it would be a security nightmare if this would be allowed to anyone else than host users.

Btw, DNN5.2.0 allows the creation of new modules on the fly for super users, maybe this meet your requirements. 

 
New Post
11/21/2009 10:49 AM
 

Hello, Stephan. Thanks for the reply.

In the context of programming DNN, you lost me at "loadcontrol", because nowhere in DNN "out-of-the-box " do I see a place for me to execute such a function.

It sounds like I need to get over to Amazon and buy the Wrox books. Programmer to programmer, what do I need, these?:

http://www.amazon.com/Professional-DotNetNuke-Application-Framework-Programmer/dp/0470438703/ref=sr_1_1?ie=UTF8&s=books&qid=1258818325&sr=1-1

http://www.amazon.com/Professional-DotNetNuke-Programming-Mitchel-Sellers/dp/0470171162/ref=sr_1_5?ie=UTF8&s=books&qid=1258818325&sr=1-5

http://www.amazon.com/DotNetNuke-Skinning-Tutorial-step-tutorial/dp/1847192785/ref=sr_1_9?ie=UTF8&s=books&qid=1258818325&sr=1-9

Thanks again,

Mike

 

 
New Post
11/21/2009 11:05 AM
 

For sure get Mitchel's book ... and consider a subscription to DNNCreative for one year.


pmgerholdt
 
New Post
11/21/2009 11:20 AM
 

Mike,

Stefan was pointing out to you that you need to create a custom module, calling loadcontrol to load the ascx you have to create.

Both, DotNetNuke 5 by Shaun Walker et al. and DotNetNuke Programming by Mitchel Sellers are good resources for developers, IMHO the first is a good intro while the second one describes a number of items more in detail and is more up2date.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Experienced developer, DNN newbieExperienced developer, DNN newbie


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