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, ...Using DDR menu to create team member directoryUsing DDR menu to create team member directory
Previous
 
Next
New Post
11/13/2014 12:01 PM
 

Maybe I'm crazy for it, but I am trying to develop a page like this: http://demo.dnnrox.com/flatna2/Pages/OurTeam.aspx (I am using a modified version of the Flatna2 skin) using the DDR menu system. (I know there are better ways to make user directories, but we don't want to use our DNN user database due to some issues currently going on with it...plus we really like this Flatna2 team directory look.) Every team member will have his/her own page with a bio, and I want the "Follow on ___" links that appear when you hover over the person's pic to link to that instead. I am using the keywords field of each page to put the team member's job title. (I have removed the social media icons as we won't need those.)

Every team member's page is housed beneath a parent page that represents his/her department. And I want to set up each department as an "accordion" like this: http://demo.dnnrox.com/flatna2/Elements/AccordionsToggles.aspx

(Sorry I can't just link you to my actual website; it's on a testing server not accessible to the www.)

So basically, the first level of nodes need to be accordions, and the next level of nodes need to be team members.

I'm pretty new to XSLT. Something is wrong, because it's throwing this error:

Error: DDR Menu is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'RCUstafflisting': System.ApplicationException: Can't find processor for manifest D:\Web\DNN\DesktopModules\DDRMenu\RCUstafflisting\menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style 'RCUstafflisting': System.ApplicationException: Can't find processor for manifest D:\Web\DNN\DesktopModules\DDRMenu\RCUstafflisting\menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuView.OnPreRender(EventArgs e) --- End of inner exception stack trace ---

 

Here is my XSLT code. I modified it from a working DDR menu template:

 

<?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:template match="/*">

<xsl:apply-templates select="Root" />

</xsl:template>

<xsl:template match="Root">

<xsl:apply-templates select="node" mode="TopLevel" />

</xsl:template>

<xsl:template match="node" mode="TopLevel">

<div>

<xsl:attribute name="class">

<xsl:text>panel-group</xsl:text>

</xsl:attribute>

<xsl:attribute name="id">

<xsl:text>accordion</xsl:text>

</xsl:attribute>

<div>

<xsl:attribute name="class">

<xsl:text>panel&#32;panel-default</xsl:text>

</xsl:attribute>

<div>

<xsl:attribute name="class">

<xsl:text>panel-heading</xsl:text>

</xsl:attribute>

<h4>

<xsl:attribute name="class">

<xsl:text>panel-title</xsl:text>

</xsl:attribute>

<a>

<xsl:attribute name="class">

<xsl:text>accordion-toggle</xsl:text>

</xsl:attribute>

<xsl:attribute name="data-toggle">

<xsl:text>collapse</xsl:text>

</xsl:attribute>

<xsl:attribute name="data-parent">

<xsl:text>&#35;accordion</xsl:text>

</xsl:attribute>

<xsl:attribute name="href">

<xsl:text>&#35;collapseOne</xsl:text>

</xsl:attribute>

<xsl:value-of select="@text" /> 

</a>

</h4>

</div>

<div>

<xsl:attribute name="id">

<xsl:text>collapseOne</xsl:text>

</xsl:attribute>

<xsl:attribute name="class">

<xsl:text>panel-collapse&#32;collapse</xsl:text>

<div class="panel-body">

<xsl:if test="node">

<xsl:apply-templates select="node" />

</xsl:if>

</div>

</div>

</div>

</xsl:template>

<xsl:template match="node">

<div>

<xsl:attribute name="class">

<xsl:text>team-members&#32;text-center</xsl>

</xsl:attribute>

<ul>

<xsl:attribute name="class">

<xsl:text>ch-grid</xsl:text>

</xsl:attribute>

<li>

<div>

<xsl:attribute name="class">

<xsl:text>ch-item&#32;ch-img-1</xsl:text>

</xsl:attribute>

<div>

<xsl:attribute name="class">

<xsl:text>ch-info</xsl:text>

</xsl:attribute>

<h3><xsl:value-of select="@text" /></h3>

<p><xsl:value-of select="keywords" />

<a>

<xsl:attribute name="href">

{@url}

</xsl:attribute>

<xsl:text>

Read&#32;Bio

</xsl:text>

</a>

</p>

</div>

</div>

</li>

</ul>

<div>

<xsl:attribute name="class">

<xsl:text>box&#32;arrow</xsl:text>

</xsl:attribute>

<h4><xsl:value-of select="@text" /></h4>

<p>xsl:value-of select="keywords" /></p>

</div>

</div>

</xsl:template>

</xsl:stylesheet?>


(I realize will have to make the CSS classes dynamic to show different staff members, and the accordions to open right, but one thing at a time...)

And since the error says something about the manifest, here is menudef.xml:


<?xml version="1.0" encoding="utf-8" ?>

<manifest>

<template>RCUstafflisting.xslt</template>

<stylesheets>

<stylesheet>[MANIFEST]/RCUstafflisting.css</stylesheet>

</stylesheets>

<defaultTemplateArguments>

<templateArgument name="CSSClass" value="RCUstafflisting" />

</defaultTemplateArguments>

 

</manifest>

 

Thanks!

 
New Post
11/13/2014 3:45 PM
 
Hi

from the error its looks like you are missing the menudef.xml in the older where you load the xslt from

but why use ddrmenu I have done setups like this before and I would do it using the 2SXC module http://2dnn7.com/m5/Features/2SexyCon... if you scroll down on this page there is a team listing I did with it

This has no mater detail setup but you can easily set it up that way so that you can show more info about that person



 
New Post
11/13/2014 5:14 PM
 
Hmmm, the menudef.xml file is definitely in the right place.

I came back to that team member listing I was working on just now, but now the error is different:

"An error has occurred. Error: DDR Menu is currently unavailable."

I'll look into 2SXC. Thanks!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Using DDR menu to create team member directoryUsing DDR menu to create team member directory


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