Home > development, Sharepoint > That Todd Bleeker

That Todd Bleeker

menupart.jpg 

Whilst poking about on sharepoint sites I was looking at Todd’s site again, and stumbled across another of his CEWP again, this one was for a menu part, its great , as they always are leveraging the power of sharepoints built-in functionality but what I never knew before was just how easy it was to generate sharepoint menus.

This is the html for two menu items and its opening link

<menu id=”myLinks” class=”ms-SrvMenuUI”>

<ie:menuitem

iiconSrc=”http://www.highdots.com/website-ranking-checker/images/search_engines/google.gif”

onMenuClick=”window.location.href=’http://google.com’;”

>Google</ie:menuitem>

<ie:menuitem

iiconSrc=”http://www.highdots.com/website-ranking-checker/images/search_engines/msn.gif”

onMenuClick=”window.location.href=’http://msn.com’;”

>MSN</ie:menuitem>

</menu>

<div class=”ms-HoverCellInActive”

onmouseover=”this.className=’ms-HoverCellActive’”

onmouseout=”this.className=’ms-HoverCellInActive’”>

<a id=”menuLink”

style=”CURSOR: hand”

onclick=”JavaScript: if(!myLinks.isOpen())

myLinks.show(this, true, 0, 0, 0);”

tabindex=”0″>

Search Engines

</a>

</div>

 Taken from http://mindsharpblogs.com/todd/archive/2006/08/15/1242.aspx

Now because I spend my time writing dynamic webparts (ie not fixed content) I can name the menu based on the webparts clientId and have these littered all over a page.

Must think up some use for it now.

Technorati tags: , ,

Categories: development, Sharepoint Tags:
  1. No comments yet.
  1. No trackbacks yet.