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, ...Links module hardcode settings discoveredLinks module hardcode settings discovered
Previous
 
Next
New Post
7/11/2006 1:59 AM
 

Dear dnn-fellows

This is not a question. But perhaps somebody can use this and loose not so many hours...
dnn version 4.0.3
I was wondering why the link module looks so bad... when you set the module displaying vertical.
The answer is: there were so many pixel between each link item.
Of course the reason why this happens was the hardcode settings in the module.
Here is the code:
        <itemtemplate>
            <table border="0" cellpadding="4" cellspacing="0">
                <tr>
                    <td nowrap>
                        <asp:HyperLink id="editLink" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server" ><asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%# IsEditable %>" Runat="server" /></asp:hyperlink>
                        <asp:HyperLink CssClass="Normal" Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"Url"),DataBinder.Eval(Container.DataItem,"TrackClicks")) %>' ToolTip='<%# DisplayToolTip(DataBinder.Eval(Container.DataItem,"Description")) %>' Target= '<%# IIF(DataBinder.Eval(Container.DataItem,"NewWindow"),"_blank","_self") %>' runat="server" />
                        &nbsp;
                        <asp:linkbutton Runat="server" CssClass="CommandButton" Text='...' CommandName="Select" Visible='<%# DisplayInfo() %>'/>
                    </td>
                </tr>
            </table>
        </itemtemplate>

First
For instance the cellpadding. Why was this setting to cellpadding="4"? as you can use a style for each item?...
Second
There were so many spaces in the hardcode and when you use this module in a container for instance a menu container then you have perhaps more then 20 px between two hyperlinks.
Third
Of course you must setup two css styles...
You can change the cssClass="Normal" for the hyperlink to a style that you like more.
You can change also the style CommandButton for the hyperlink of the info.
You can also change the hardcode style Text='...' to indicate the info hyperlink.
   Perhaps somebody can use this...


Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
7/14/2006 11:15 AM
 

Gilbert,
      Thanks for pointing this out. I am just starting work on the links module and will look into getting this corrected ASAP. If you would be so kind as to go to http://support.dotnetnuke.com and register this is a bug, for tracking purposes, that would be wonderful.

 

 
New Post
7/15/2006 4:58 AM
 
Dear ncgoose

I did it with pleasure. I've registered this as a bug... (I think...).

Vriendelijke groeten
Gilbert Vanden Borre
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Links module hardcode settings discoveredLinks module hardcode settings discovered


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