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, ...DDR errors breaks site completelyDDR errors breaks site completely
Previous
 
Next
New Post
8/6/2011 4:15 PM
 
Hello!
I've been trying to customized a template for the DDR menu, and I am running into all sorts of problems. I am not an expert coder, so I usually rely somewhat on trial and error. But with the DDR menu, even a small error appears to completely destroy the whole portal.

This is my problem -- I want a menu with icons. So I made this simple template based on the samples:

<xsl:template match="node" mode="topLevel">
                <a href="{@url}">
                         <xsl:if test="@icon">
                    <img src="{@icon}" class="rollover" alt="{@text}" />
                </xsl:if>                    
                        </a>                            
    </xsl:template>
   
This seems to work fine, but it's not very practical, as it completely hides the pages in the menu if there is no icon assigned. So I made this:

<xsl:template match="node" mode="topLevel">
 <a href="{@url}">
       <xsl:choose>
        <xsl:when test="@icon != '' ">
          <img src="{@icon}" class="rollover" alt="{@text}" />
        </xsl:when>
        <xsl:otherwise>
         <xsl:value-of select="@text" />
       </xsl:otherwise>
      </xsl:choose>
 </a>
 </xsl:template>

This is where things start to go very wrong. As soon as I put up the skin with this template and try to set the icon for a page, the site completely locks up. I am using DNN6, and I get the exact same result both locally and on my server. It's to the point where I can't bring the portal back to life. I've tried restarting the DNN install, recycling the application pool, and even restarting the server, but nothing is working. All I get on my local install is a Server Application Unavailable message or a timeout.
From what I have seen, the skin displays correctly, and the site works fine, but the second I hit update after selecting a small icon, everything stops working.

Here's another template tried with the same resulting lockup:

<xsl:template match="node" mode="topLevel">
<a>
                        <xsl:attribute name="href">
                                    <xsl:value-of select="@url"/>
                                </xsl:attribute>
                            <xsl:element name="img">
                        <xsl:attribute name="src">
                        <xsl:value-of select="@icon" />
                        </xsl:attribute>
                        <xsl:attribute name="class">
                        rollover
                        </xsl:attribute>
                        <xsl:attribute name="alt">
                        <xsl:value-of select="@text" />
                        </xsl:attribute>
                        </xsl:element>
                        </a>
</xsl:template>

I must have created and deleted over a dozen portals by now, trying to get this to work.
My first question is this - shouldn't there be some soft of safeguard in the DNN system to prevent from happening?  It seems a tiny mistake in one of my skins can render a whole site unrecoverable. Right now I have only been working on new, empty portals, but if this were to happen to a finished site, it would be a big inconvenience.

Secondly - what is wrong my code in #2 and #3 above?

Thanks,
Donald

 
New Post
8/6/2011 10:52 PM
 
Since posting this I have done some more testing, and I don't think this is an issue with my skin. I have the same issues with the official DNN demo using the standard DNN skin. I posted a new topic about this that should appear soon.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR errors breaks site completelyDDR errors breaks site completely


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