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...Getting StartedGetting StartedCompletely empty page with only the module outputCompletely empty page with only the module output
Previous
 
Next
New Post
11/26/2013 10:06 AM
 

I sometimes have the need for a completely custom page, to be used in an iframe, or as download.

For example: I needed a form to submit to a payment provider. That doesn't work as a module, only because every page is included in a form, submitting back to the host and you can't have a form inside a form. Currently I want to provide an iCalender download, which basically is a text file with just a few lines text, which will you download to Outlook. (which apearenlty can re-download it periodically)

I have no problem building a module which outputs the correct output, but when placed on a page, the DNN scaffolding is added, even when I create a template containning nothing more than "<div class=contentpane></div>" (which is even too much for the iCalendar download).

Is it possible to return just the output of the module(s) an a page, nothing else, while still being able to use DNN's authentication and stuff? (know which user is visiting, which portalID is accessed, disallow access based on the roles, database access, etc.)|
It would be most excellent if I could administer the page just like any other page and just place that one module on it.

I could build a proxy at "dnndev.me/proxy/home.aspx?tabid=42" which forwards the request to the original page "dnndev.me/home.aspx?tabid=42" and returns only the contents of the content pane.
Or I could build some script outside DNN to which I pass all data I would like returned, e.g. "dnndev.me/returnthis.cgi?content=<form%20method=post%20url=paymentprovider.example><input%20>type=hidden%20amount=684></form>" which returns only/exactly the content passed to it in the url.
Or use the srcdoc parameter of an iframe to create an iframe with content "<iframe srcdoc='hello world!'>", but that's html5 and not widely supported yet.

I remember I've read somewhere (was it an dream?) it's possible to request a module directly instead of requesting the page the module is on. I can't find what I think I've read again and I doubt it can be used for what I'm looking for.

Where do I get started with this?

 
New Post
11/26/2013 4:50 PM
 
Maybe you're thinking of the Print version of a module?

For example:

http://it.archchicago.org/Home/tabid/3384/mid/13436/dnnprintmode/true/Default.aspx?SkinSrc=%5bG%5dSkins%2f_default%2fNo+Skin&ContainerSrc=%5bG%5dContainers%2f_default%2fNo+Container

 
New Post
11/27/2013 8:25 AM
 
Looks like it, but only visually. I could achieve this using a completely blank (white) template.

But If you look at the page source, it still includes doctype, html-tag, header, scripts, form, viewstate, etc.

It might indeed be the 'thing I saw in my dream', but it does not solve my issue.

I would like to return "Hello world", nothing else.
 
New Post
11/28/2013 3:18 AM
 
there is no "read only" mode, abandoning all client side scripts etc, sorry.
This might force the site to look completely different and client side modules like Journal would stop displaying anything.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/28/2013 4:44 AM
 
I understand that the page would look completely different.

I'm not intending to use this as a regular page, but as a little piece of content I provide as download or inside an iframe.

Is there a way to create a aspx page in which I can benefit from the DNN framework (check if the user is logged in, access portal settings and such) without outputting anything else than what I specify?
I'm not that familiar with .Net.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCompletely empty page with only the module outputCompletely empty page with only the module output


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