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...Administration ...Administration ...DDRMenu : Showing page icon in submenuDDRMenu : Showing page icon in submenu
Previous
 
Next
New Post
1/23/2012 11:00 PM
 

Hi guys,

Im trying to get my DDRMenu to show page icons in my 1st tier submenu - without luck.

Here is my URL: http://www.inglewood.org.153.ozpanelh... 

I have setup a small and large icon (test, a blue box) for the olive directory page under directory - but it wont show.

Can anyone suggest anything? Thanks!

 
New Post
1/23/2012 11:03 PM
 

Sorry, this is my ULTokens.txt file...

<div id="dnnMenu">
    <ul class="topLevel">
   [*>NODE-TOP]
    </ul>
</div>
[>NODE-TOP]
<li class="item[?FIRST] first[/?][?LAST] last[/?][?SELECTED] selected[/?][?NODE] haschild[/?]">
[?ENABLED]
<a href="[=URL]"><div>[=TEXT]</div></a>
[?ELSE]
<a><div>[=TEXT]</div></a>
[/?]
[?NODE]
            <div class="subLevel">
   <ul>
   [*>NODE]
   </ul>
            </div>
[/?]
</li>
[/>]
[>NODE]
<li class="item[?FIRST] first[/?][?LAST] last[/?][?SELECTED] selected[/?][?NODE] haschild[/?]">
[?ENABLED]
<a href="[=URL]"><div><img src="[?ICON][=ICON][?ELSE]/portals/_default/skins/Inglewood Blue/dnnstandard/images/StandardLI.png[/?]" /><span>[=TEXT]</span></div></a>
[?ELSE]
<a><div><img src="[?ICON][=ICON][?ELSE]/portals/_default/skins/Inglewood Blue/dnnstandard/images/StandardLI.png[/?]" /><span>[=TEXT]</span></div></a>
[/?]
[?NODE]
            <div class="subLevelRight">
   <ul>
   [*>NODE]
   </ul>
            </div>
[/?]
</li>
[/>]


 
New Post
2/2/2012 8:12 AM
 

I am having the very same issue. After upgrading to 6.1.3. Did you come up with a resolution? I looked at your site and it appears you did not. Looks like you removed the icon altogether. I'm new here, but could you share with me how you removed the icons?

Thanks

 
New Post
2/2/2012 2:37 PM
 

I believe I've figured out what's going on here. In my scenario my DNN site is not in the root folder of my website. It is in a folder under my root called "site". My organization is a non-profit group and they have a very low budget. As a result we went with our hosting vendors economy plan which only allows one root web.

Then the UITokens.txt file that comes stock with the Dark Knight Standard men used /portals/_default... as the URL to the menu icons, assuming my site is under the root. If I change that URL to /site/portals/_default... then my menu icons are rendering as expected. I still have some experimenting to do, but here is a modified version of my UITokens.txt file that does render the icons appropriately.

<div id="dnnMenu">
    <ul class="topLevel">
     [*>NODE-TOP]
    </ul>
</div>
[>NODE-TOP]
 <li class="item[?FIRST] first[/?][?LAST] last[/?][?SELECTED] selected[/?][?NODE] haschild[/?]">
  [?ENABLED]
   <a href="[=URL]"><div>[=TEXT]</div></a>
  [?ELSE]
   <a><div>[=TEXT]</div></a>
  [/?]
  [?NODE]
            <div class="subLevel">
       <ul>
        [*>NODE]
       </ul>
            </div>
  [/?]
 </li>
[/>]
[>NODE]
 <li class="item[?FIRST] first[/?][?LAST] last[/?][?SELECTED] selected[/?][?NODE] haschild[/?]">
  [?ENABLED]
   <a href="[=URL]"><div><img src="[?ICON][=ICON][?ELSE]/site/portals/_default/skins/darkknight/dnnstandard/images/About_16x16_Standard.png[/?]" /><span>[=TEXT]</span></div></a>
  [?ELSE]
   <a><div><img src="[?ICON][=ICON][?ELSE]/site/portals/_default/skins/darkknight/dnnstandard/images/Add_16X16_Standard.png[/?]" /><span>[=TEXT]</span></div></a>
  [/?]
  [?NODE]
            <div class="subLevelRight">
       <ul>
        [*>NODE]
       </ul>
            </div>
  [/?]
 </li>
[/>]

 

 
New Post
3/19/2012 6:24 AM
Accepted Answer 
Had the same problem. Managed to change the ULTokens.txt into a proper stylesheet.


1. Update your DNNStandard-menudef.xml to:

<?xml version="1.0" encoding="utf-8" ?>
<manifest>
  <template>DNNStandard.xslt</template>
</manifest>

2. Create DNNStandard.xslt in same folder as the menudef:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet [
  <!ENTITY space "<xsl:text> </xsl:text>">
  <!ENTITY cr "<xsl:text>
</xsl:text>">
]>
<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:param name="ManifestPath" />
  
  <xsl:template match="/*">
    <xsl:apply-templates select="root" />
  </xsl:template>
  
<xsl:template match="root">
  <div id="dnnMenu">
<ul class="topLevel">
        <xsl:apply-templates select="node">
          <xsl:with-param name="nodeType">root</xsl:with-param>
        </xsl:apply-templates>
</ul>
</div>
</xsl:template>


  <xsl:template match="node">
    <xsl:param name="nodeType" />
    <li>
      <!-- Set the slass of the LI element-->
      <xsl:variable name="nodeClass">
        <xsl:text>item</xsl:text>
        <xsl:if test="@selected = 1"> selected</xsl:if>
        <xsl:if test="@first = 1"> first</xsl:if>
        <xsl:if test="@last = 1"> last</xsl:if>
        <xsl:if test="node"> haschild</xsl:if>
      </xsl:variable>
      <xsl:attribute name="class">
        <xsl:value-of select="$nodeClass"/>
      </xsl:attribute>


      <xsl:choose>


        <!-- Process root menu items -->
        <xsl:when test="$nodeType = 'root'">
          <!-- Menu item enabled? -->
          <xsl:choose>
            <xsl:when test="@enabled = 1">
              <a href="{@url}">
                <div>
                  <xsl:value-of select="@text" />
                </div>
              </a>
            </xsl:when>
            <xsl:otherwise>
              <a>
                <div>
                  <xsl:value-of select="@text" />
                </div>
              </a>
            </xsl:otherwise>
          </xsl:choose>


          <!-- Process children (if any) -->
          <xsl:if test="node">
            <div class="subLevel">
              <ul>
                <xsl:apply-templates select="node">
                  <xsl:with-param name="nodeType">subLevel</xsl:with-param>
                </xsl:apply-templates>
              </ul>
            </div>
          </xsl:if>
        </xsl:when>


        <xsl:when test="$nodeType = 'subLevel'">
          <!-- Menu item enabled? -->
          <xsl:choose>
            <xsl:when test="@enabled = 1">
              <a href="{@url}">
                <div>
                  <xsl:choose>
                    <xsl:when test="@icon">
                      <img src="{@icon}" />
                    </xsl:when>
                    <xsl:otherwise>
                      <img src="{$ManifestPath}Images/StandardLI.png" />
                    </xsl:otherwise>
                  </xsl:choose>
                  <span>
                    <xsl:value-of select="@text" />
                  </span>
                  <xsl:if test="node">
                    <img src="{$ManifestPath}Images/child-arrow.png" style="width:5px;height:5px;float:right;padding-top:10px;"/>
                  </xsl:if>
                </div>
              </a>
            </xsl:when>
            <xsl:otherwise>
              <a>
                <div>
                  <xsl:choose>
                    <xsl:when test="@icon">
                      <img src="{@icon}" />
                    </xsl:when>
                    <xsl:otherwise>
                      <img src="{$ManifestPath}Images/StandardLI.png" />
                    </xsl:otherwise>
                  </xsl:choose>
                  <span>
                    <xsl:value-of select="@text" />
                  </span>
                  <xsl:if test="node">
                    <img src="{$ManifestPath}Images/child-arrow.png" style="width:5px;height:5px;float:right;"/>
                  </xsl:if>                  
                </div>
              </a>
            </xsl:otherwise>
          </xsl:choose>
          
          <!-- Process children (if any) -->
          <xsl:if test="node">
            <div class="subLevelRight">
              <ul>
                <xsl:apply-templates select="node">
                  <xsl:with-param name="nodeType">subLevel</xsl:with-param>
                </xsl:apply-templates>
              </ul>
            </div>
          </xsl:if>
        </xsl:when>


      </xsl:choose>
    
    </li>
</xsl:template>
</xsl:stylesheet>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DDRMenu : Showing page icon in submenuDDRMenu : Showing page icon in submenu


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