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, ...Solpartmenu - no space between menu itemsSolpartmenu - no space between menu items
Previous
 
Next
New Post
8/10/2006 4:47 AM
 
Hi guys,
i have a little problem with the solpartmenu.
At first, my code:
<dnn:SOLPARTMENU RootOnly="false" level="root" MouseOverAction="false" runat="server" id="dnnSOLPARTMENU" /> 

Ok, i wrote in the solpartmenu.vb, that it only show me pictures without text as menu items:

---
Private Sub BuildNodes(ByVal objNode As WebControls.DNNNode)
            Dim objNodes As DNNNodeCollection
            objNodes = GetNavigationNodes(objNode)         

            For Each TmpNode As DNNNode In objNodes 
                ' Delete Text value            
                If Not String.IsNullOrEmpty(TmpNode.Image) Then
                    TmpNode.Text = ""
                End If
            Next

            Me.Control.ClearNodes()          'since we always bind we need to clear the nodes for providers that maintain their state
            Me.Bind(objNodes)
        End Sub

---

all right! My solpartmenu works fine! It shows me only pictures as menu items. But between every menu item, there is a small space:
Screenshot

Ok, my question is, how to remove this blank space between the menu items?

Thanks
 
New Post
8/10/2006 9:20 AM
 
All right man! Its done!
This space was the text from the menu-item.
i kill them with this line:

<dnn:SOLPARTMENU menuitemcssclass="menu" ....>

class menu:

.menu{
    font-size: 0px;
}

okidoki.
close please
 
New Post
8/13/2006 8:55 AM
 

This space comes from the solpart.js. Cause of this behaviour is the function call on line 453 in the solpart.js file:

spm_getItemHTML(oNode, 'left', '&nbsp;').

The value
'&nbsp;'
should be empty, which is perfectly valid if one looks at the function on line 1840:

function spm_getItemHTML(oNode, sSide, sDef)

{

if (sDef == null) sDef = '';

return spm_getAttr(oNode, sSide + "html", sDef);

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
8/14/2006 5:48 PM
 

schotman, I too need to remove the space but I'm using text in my main menu. I can't seem to find that .js file you mentioned (did a search with no results). Could you enlighten me ? I'm on dnn 4.0.3.

 
New Post
8/14/2006 6:08 PM
 

it is in controls\SolpartMenu\spmenu.js

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Solpartmenu - no space between menu itemsSolpartmenu - no space between menu items


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