|
|
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?
|
|
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>
|
|
 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.
|
|
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?
|
|
 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.
|
|
Rank: Advanced Member
Joined: 9/21/2010 Posts: 33 Points: 99 Location: Richardson, Tx
|
ok, thanks! :)
|
|
|
Guest |