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 ForumsRepositoryRepositoryXLST Templates For Dashboard? Displaying an ordered/unordered list...XLST Templates For Dashboard? Displaying an ordered/unordered list...
Previous
 
Next
New Post
3/11/2010 11:32 AM
 

Is there any plan or an exsisting way to display the Dashboard results in an unordered or orderedlist?

If I edit a Dashboard template, it will just repeat the html for each record, which is undesirable:

<ol>
     <li>Record1</li>
</ol>
<ol>
     <li>Record2</li>
</ol>

This seems like very basic functionality. I tried to bypass this using the Reporting module, but obviously you cannot do proper download tracking if you use that module.

Ideas?

Thanks!

 

 

 
New Post
3/11/2010 3:22 PM
 

sure.. that's what's so great about templates :)

as you've seen the template is used to output some HTML for each record.

If you need some tags to be output once before the item output, use the module settings header setting and you can use the footer setting for any closing html you need to be output following the last item

so, let's say you had categories and you wanted to output

<ul>
  <li>Coffeeli>
  <li>Teali>
  <li>Milkli>
ul>

 you would put the

<ul>

In the module settings, header setting, and the 

</ul>

In the module settings, footer setting. Then in the dashboard template you would indicate what you want output for each item

<li>[CATEGORY]li>

At runtime, the output should end up with the html that you want

 
New Post
3/11/2010 4:10 PM
 

Steve, thanks for the prompt reply.

Unfortunately, it didn't quite work as expected.

I added the <ol> and </ol> to to the Repository Dashboard header and footer respectively. And it did add the OL to the module. However, since the Repository Dashboard uses an ASP Datagrid to display the records, it wraps the OL around a table.

Here is the sample output:

<span class="Normal">
<ol>
  </span>
  <div id="dnn_ctr376_ModuleContent" class="Repository DashboardContent">
    <table id="dnn_ctr376_RepositoryDashboard_DashTable" class="normal" cellspacing="0" cellpadding="0" border="0" style="border-width:0px;width:100%;border-collapse:collapse;">
      <tr valign="top" style="width:100%;">
        <td align="left" valign="top" style="width:100%;"><table cellspacing="0" rules="all" border="0" id="dnn_ctr376_RepositoryDashboard_lstObjects" style="border-width:0px;width:100%;border-collapse:collapse;border-collapse: separate;">
            <tr class="normal">
              <td>&nbsp;</td>
            </tr>
            <tr class="normal">
              <td><li><a id="dnn_ctr376_RepositoryDashboard_lstObjects_ctl02_hypDownload" class="normal" href=" __doPostBack('dnn$ctr376$RepositoryDashboard$lstObjects$ctl02$hypDownload','')">File 2</a>: <span class="breadcrumb">3/11/2010</span></li></td>
            </tr>
            <tr class="normal">
              <td><li><a id="dnn_ctr376_RepositoryDashboard_lstObjects_ctl03_hypDownload" class="normal" href=" __doPostBack('dnn$ctr376$RepositoryDashboard$lstObjects$ctl03$hypDownload','')">File 1</a>: <span class="breadcrumb">3/11/2010</span></li></td>
            </tr>
          </table></td>
      </tr>
    </table>
  </div>
  <span class="Normal">
</ol>
</span>

I am using "dashboard.latest" under default as the template, and I have edited the template to only include the following:

<li>[FILENAME]: [DATE]</li>

This is actually what I expected to happen when I edited the module header and footer, because the repository isn't only spitting out a containing div with the markup from the dashboard template, but rather the table markup from the DataGrid.

Any other ideas?

 

 

 
New Post
3/15/2010 4:26 PM
 
No ideas?
 
New Post
3/15/2010 5:27 PM
 

Just to add an example of how I think the repository dashboard should handle record displays, I love the way Active Forums allows you template their "What's New Content."

They give you a true header and footer and template area. And a listing of the available tokens in the module. It was super easy for me to configure the "What's new template to my liking in Active Forums, meanwhile I am struggling with the table output of the Repository module that does not remotely match the Active Forums display with all the muddled tables.

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryXLST Templates For Dashboard? Displaying an ordered/unordered list...XLST Templates For Dashboard? Displaying an ordered/unordered list...


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