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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[ACTIONBUTTON] inserting HTML when aciton is disabled[ACTIONBUTTON] inserting HTML when aciton is disabled
Previous
 
Next
New Post
3/8/2006 2:23 AM
 

Building a specialized container. When going thru my testing of different setting, I've noticed a strange problem with my container. When I disable print, I still get HTML generated, which causes a blank line to appear, and being a bit of a perfectionist, it's driving me crazy.

container.xml snippet:

 <Object>
  <Token>[ACTIONBUTTON:2]</Token>
  <Settings>
   <Setting>
    <Name>CommandName</Name>
    <Value>SyndicateModule.Action</Value>
   </Setting>
   <Setting>
    <Name>DisplayIcon</Name>
    <Value>True</Value>
   </Setting>
   <Setting>
    <Name>DisplayLink</Name>
    <Value>False</Value>
   </Setting>
  </Settings>
 </Object>

Container HTML snippet:

<td valign="center" nowrap="nowrap" align="right">[ACTIONBUTTON:2]</td>

Symptom matrix:

Module Settings / Allow Print checked .. generated HTML:

    <img title="Print" src="/DNN3/images/print.gif" alt="" border="0" /></a>&nbsp;&nbsp;

Module Settings / Allow Print unchecked... generated HTML:

    &nbsp;&nbsp;

From what I can determine, this is the only module.actions component that generates the nbsp tags when not selected to display. Tried with RSS and when Module Settings / Allow Syndication was unchecked, NO HTML was generated. The row containing the "print" tag, should collapse when there are no objects to be displayed (the usual case). However, when you imbed the print command (via [ACTIONBUTTON]), you always get the &nbsp;&nbsp;. Net effect, and extra blank line in the HTML output, which in my case changes the format I want. As a bypass, I am removing the print action from the container.htm file.

Quick question:

1) Is there a quick fix to cause "no print" selection to generate "no html"? or is this a code change?

This is a bug, although comparatively, a minor bug, but I'm hoping for a fix that would allow the person designing the web page to have the flexibility of enabling or disabling print, and when disabling print not have an extra blank line on the page.

When you say "no feature", you should no HTML fallout.

Thanks in advance for any thoughts on a workaround other than not supporting the print function in this case.

--Paul

 
New Post
3/8/2006 9:15 PM
 

A solution is to use font-size:0 for the cell you put the actionbuttons

<td valign="center" nowrap="nowrap" align="right" style="font-size:0;">[ACTIONBUTTON:2]</td>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[ACTIONBUTTON] inserting HTML when aciton is disabled[ACTIONBUTTON] inserting HTML when aciton is disabled


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