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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHTML templateHTML template
Previous
 
Next
New Post
2/9/2007 2:55 PM
 
I am trying to make some templates (HTML) but I have no idea where to start. Is there a sample or a manual?
 
New Post
2/9/2007 5:15 PM
 
Not at the moment (still working on some documentation), but I can give you an overview, its a very simple system

Basically, the HTML file you upload will be duplicated for each row in the result set and displayed in the View mode of the module. For each row, a replacement is run that replaces the text "[COLUMNNAME]" in the template with the value of the column called 'COLUMNNAME' in the query results. So as a simple example, you could use this query:

SELECT TabID, TabName FROM dnn_Tabs

And this HTML template:

<strong>[TabID]</strong> - <em>[TabName]</em><br/>

To produce a list like this:

1 - Home
2 - Another Tab
3 - Yet another Tab
... etc ...

Unfortunately, there is no way in the current version to setup HTML to be displayed in the header and footer, but I plan to get this into the next version (entering release process very very soon).

I hope that gets you started at least, let me know if you have any other questions!

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
2/19/2007 1:25 PM
 
What about using XSL transformation?

Could you please post an example also for this?

Thanks
 
New Post
2/19/2007 6:01 PM
 
Can I make this template just by creating a text file, renaming it reports.html ( for example) and adding the fields I need? or is there a special process to create this template?
 
New Post
2/19/2007 6:22 PM
 
Yes, you don't need to include HTML tags, but you may find that you need to add a "<br/>" tag to the end of the line because HTML ignores spaces and line breaks.

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHTML templateHTML template


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