Welcome Guest Search | Active Topics | Members | Log In | Register

Drop down Action Items Options
rogers_c
Posted: Sunday, October 23, 2011 5:31:38 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Hey guys,

I am trying to figure out how to create an Action Item list at the top of the screen.

I have successfully created a single action item that shows up at the top of the page, but I would like the variety that had a drop down menu when you press (click) it. such as illustrated below...



Any tips?
rogers_c
Posted: Sunday, October 23, 2011 5:34:22 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Actually, I think I just figured it out... it is created using this bit of template, isn't it?

Quote:

<div id="wcmMenu" style="display:none;">
<xsl:for-each select="EntreeActions/EntreeActionItem">
<xsl:if test="Properties/Property[@name='ActionGroup'] = 'page'">
<a href="javascript:" class="page">
{{$$ClickActionStyle$$}}
<xsl:value-of select="Properties/Property[@name='ActionTitle']" disable-output-escaping="yes"/>
</a>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="EntreeActions/EntreeActionItem">
<xsl:if test="Properties/Property[@name='ActionGroup'] = 'app'">
<a href="javascript:" class="app">
{{$$ClickActionStyle$$}}
<xsl:value-of select="Properties/Property[@name='ActionTitle']" disable-output-escaping="yes"/>
</a>
</xsl:if>
</xsl:for-each>
<div class="sites">
<xsl:for-each select="EntreeActions/EntreeActionItem">
<xsl:if test="Properties/Property[@name='ActionGroup'] = 'site'">
<a class="site">
<xsl:attribute name="href">
<xsl:value-of select="Properties/Property[@name='LinkUrl']"/>
</xsl:attribute>
<xsl:value-of select="Properties/Property[@name='ActionTitle']" disable-output-escaping="yes"/>
</a>
</xsl:if>
</xsl:for-each>
<span></span>
</div>
</div>
joe
Posted: Sunday, October 23, 2011 5:44:50 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
You got it. If you call the Serialize method on the output object in QueryList while you are stepping through you can see the XML that is generated before it is run against the XSLT. You can then use that as a guide to build out your XSL. I will also email you a sample VS solution with some good action item based list item style samples.
rogers_c
Posted: Sunday, October 23, 2011 5:46:53 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Wasn't there also a querystring option for serializing the output for quick viewing?
joe
Posted: Sunday, October 23, 2011 5:48:49 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
only one I know of is ?__d=1 will spit out the computed UserAgentMapping.
rogers_c
Posted: Sunday, October 23, 2011 5:49:20 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
ok, thanks! :)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.