My First Modification (shhh don’t tell any Devs)

      Comments Off on My First Modification (shhh don’t tell any Devs)

OK, so I like having the lists of sites on the left-hand side, but when you create a list entry in the Control Panel it gives an option to add a description.  I’ve been adding descriptions, but they don’t show up on the link.  I thought “well that is silly, I want a tool tip to show the description, so people know what the link is for”.  So today I posted on our internal CS distribution list that I wanted to do that and within just a few minutes Ben sent me a reply with the code needed to do it.  WOW, I love our team!!!  As I said before I am using the PaperClip theme, but this should work for them all.  You’ll need to modify the web\themes\blogs\paperclip\themes.master file.  Remove this:

<CSControl:LinkCategoryList runat=”Server”>
    <HeaderTemplate></HeaderTemplate>
         <ItemTemplate>
          <CSControl:LinkCategoryData runat=”server” Property=”Name” Tag=”H3″ />
          <CSControl:LinkList runat=”server” />
         </ItemTemplate>
     <FooterTemplate></FooterTemplate>
 </CSControl:LinkCategoryList>

 And add this:

<CSControl:LinkCategoryList runat=”Server”>
   <HeaderTemplate></HeaderTemplate>
   <ItemTemplate>
     <div class=”CommonSidebarArea”>
     <div class=”CommonSidebarTopRound”><div class=”t1″></div><div class=”t2″></div><div class=”t3″></div><div class=”t4″></div></div>
     <CSControl:LinkCategoryData runat=”server” Property=”Name” Tag=”H3″ />
     <div class=”CommonSidebarContent”>
     <CSControl:LinkList runat=”server”>
     <HeaderTemplate><ul class=”CommonSidebarList”></HeaderTemplate>
     <ItemTemplate>
     <li>
     <CSControl:HelpToolTip runat=”server”>
     <PopupActivatorTemplate>
     <CSControl:LinkData runat=”server” LinkTo=”Link” Property=”Title” />
     </PopupActivatorTemplate>
     <PopupContentTemplate>
     <div style=”background-color: #fff; border: solid 1px #000; padding: 4px; font-size: 80%; width: 140px;”>
     <CSControl:LinkData runat=”server” Property=”Description” />
     </div>
     </PopupContentTemplate>
     </CSControl:HelpToolTip>
     </li>
     </ItemTemplate>
     <FooterTemplate></ul></FooterTemplate>
     </CSControl:LinkList>
     </div>
     </div>
   </ItemTemplate>
  <FooterTemplate></FooterTemplate>
</CSControl:LinkCategoryList>

Restart your app pool and you should now have a tool tip that describes the items in your lists.  I hope this helps someone else.  Thanks, Ben, for working with me to get this in place.

Robba