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, ...Different colour for each page in menuDifferent colour for each page in menu
Previous
 
Next
New Post
4/30/2010 1:54 AM
 

Saramon,

You're welcome. If you run into any problems moving over to one of the other navigation providers let us know and we'll be happy to help out.

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/30/2010 2:21 AM
 
Now, that you said that, i dare asking how good do you think is House Menu. Is it better than NAV?
 
New Post
4/30/2010 5:47 AM
 

Saramon,

I've not used the HouseMenu in DNN5 so unfortunately I can't provide a comparison.

I'll drop a tweet on this and see if anyone can compare/advise on this.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/30/2010 6:03 AM
 

Answering the tweet

altho Housemenu is better then nav because of the cleaner html ouput I would not go for HouseMenu because that is still restricted int he output you require.

I would go for DDRMenu from dnngarden.com its free and better yet its templated so with xsl you can create any output you need. If you find a cool css or jquery menu online you can recreate it with DDRMenu

to answer your one color for each item if you would use DDRMenu you could do something like

 

<a href="{@url}"><xsl:attribute name="class">tab-<xsl:value-of select="@id" /></xsl:attribute><xsl:value-of select="@text" /></a>

then in your css you can do somethihng like

a.tab-45{background-color:red;}

a.tab-69{background-color:lime;}

etc...

 

 
New Post
4/30/2010 8:01 AM
 

 

ok. i tried this, but nothing has changed after a modified the Default Template.xslt like this, and i made the changes to skin.css
 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:param name="ControlID" />
<xsl:param name="Options" />
<xsl:template match="root">
<script type="text/javascript">
DDR.Menu.registerMenu('<xsl:value-of select="$ControlID"/>', <xsl:value-of select="$Options"/>);
</script>
<div id="{$ControlID}">
<ul>
<xsl:apply-templates select="node" />
</ul>
</div>
</xsl:template>
<xsl:template match="node">
<li nid="{@id}">
<xsl:choose>
        <xsl:when test="@selected = 1 and @breadcrumb = 1">
          <xsl:attribute name="class">selected breadcrumb</xsl:attribute>
        </xsl:when>
        <xsl:when test="@selected = 1">
<xsl:attribute name="class">selected</xsl:attribute>
</xsl:when>
<xsl:when test="@breadcrumb = 1">
<xsl:attribute name="class">breadcrumb</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="@enabled = 1">
<a href="{@url}">
<xsl:if test="@icon">
<img src="{@icon}" />
</xsl:if>
<span>
<xsl:value-of select="@text" />
</span>
</a>
          <a href="{@url}">
            <xsl:attribute name="class">tab-<xsl:value-of select="@id" /></xsl:attribute>
            <xsl:value-of select="@text" />
          </a>
        </xsl:when>
<xsl:otherwise>
<xsl:if test="@icon">
<img src="{@icon}" />
</xsl:if>
<span>
<xsl:value-of select="@text" />
</span>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="node">
<ul nid="{@id}">
<xsl:apply-templates select="node" />
</ul>
</xsl:if>
</li>
</xsl:template>
</xsl:stylesheet>
 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Different colour for each page in menuDifferent colour for each page in menu


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