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 ForumsRepositoryRepositoryImage and Thumbnail tag not working on Dashboard.Image and Thumbnail tag not working on Dashboard.
Previous
 
Next
New Post
1/19/2010 1:24 PM
 

I'm having problem in getting the [IMAGE] tag to work for the Repository Dashboard.

I have it working in the template.html, but when I do the same thing for the dashboard.latest.html it doesn't work all I get on the screen is a path to the aspx displayed.

So This is what I'm getting:

 
/DesktopModules/Repository/MakeThumbnail.aspx?tabid=57&id=9 The Journey Issue 3 - December 2009

 

My HTML file (dashboard.lastest.html)

<code>

<table class="normal" width="100%" cellspacing="0" cellpadding="0" borderwidth="0" style="padding-bottom: 4px;">
  <tr width="100%">
    <td class="normal" align="left" valign="top">[IMAGE]</td>
    <td class="SubHead" align="left" valign="top">[FILENAME]</td>
    <td class="breadcrumb" align="left" valign="top">[DATE]</td>
  </tr>
</table>

</code>

The dashboard.lastest.xml file

<code>

<Objects>
 <Object>
  <Token>[FILENAME]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>normal</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[DATE]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>breadcrumb</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[IMAGE]</Token>
 </Object>
 <Object>
  <Token>[THUMBNAIL]</Token>
  <Settings>
   <Setting>
    <Name>Width</Name>
    <Value>30</Value>
   </Setting>
  </Settings>
 </Object>
</Objects>
 

</code>

Can anyone help me get an image on the Dashboard?

 
New Post
1/19/2010 4:31 PM
 

try using the THUMBNAIL token instead of the IMAGE token
 

   1:  <table class="normal" width="100%" cellspacing="0" ...
   2:    <tr width="100%">
   3:      <td class="normal" align="left" valign="top">[THUMBNAIL]td>
   4:      <td class="SubHead" align="left" valign="top">[FILENAME]td>
   5:      <td class="breadcrumb" align="left" valign="top">[DATE]td>
   6:    tr>
   7:  table>


Then you can use the dashboard.latest.xml file to set the size of the image by adding a Width setting to the THUMBNAIL token (in the snippet you posted, you have set the thumbnail image size to 30px wide, if you want it a different size, edit the xml file)

 
New Post
1/19/2010 5:00 PM
 

Steve, thank you for the response, but it's still not working. This is on the "Dashboard" portion of the Repository, and NOT the Repository (template) portion which works fine.

I'm working with DNN Community v 05.02.00 with a 2008 SQL Server Express edition.

Repository Dashboard version 3.1.15

Using the [THUMBNAIL] tag seems to put an additional parameter of &w=30 at the end. The result I see in my "Repository Dashboard" is :

 
/DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&id=9&mid=584&w=30 The Journey Issue 3 - December 2009
/DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&id=8&mid=584&w=30 The Journey Issue 2 - October 2009
/DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&id=7&mid=584&w=30 The Journey Issue 1 - July 2009

 

If I do a view source for the Repository Dashboard, for the first item I see:

<td class="Normal" align="left" valign="top">/DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&id=9&mid=584&w=30</td>

There is no input or img tags around the text.

If I do a view source for the Repository module, I see what I think I'm suppose to see.

<input type="image" name="dnn$ctr584$Repository$lstObjects$ctl03$ctl00" src="/DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&amp;id=9&amp;mid=584&amp;w=100" style="border-width:0px;" />

I'm not sure why the Dashboard is acting differently.

 

 
New Post
1/19/2010 9:30 PM
 

sorry, support for the THUMBNAIL token in the repository dashboard may have been added in 3.1.17. You can download a development build from here...

http://www.gooddogs.com/dotnetnuke/Do...

I tried it with 3.1.17 and it works in the Dashboard

 
New Post
1/20/2010 11:57 AM
 

Steve,

I'm not exactly sure what happens, but it appears the "image" disappears if I start using DNN's copy features to copy the module to multiple locations. It appears that as long as I create the repository on the exact page I want it, things seem to work. When I copy the same module to another page is when images start disappearing. Not sure if this is a bug...

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryImage and Thumbnail tag not working on Dashboard.Image and Thumbnail tag not working on Dashboard.


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