MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

MOSS 2007 B2TR - WCM - Site Action

  Asked By: Darren    Date: Feb 25    Category: MOSS    Views: 1221

I am trying to add a link in the site action (dropdown) to include a recycle bin link.

I have added the following code to the siteaction.xml
<ConsoleNode Action="cms:ManageSiteAction"

However when I tried to change the display text to "Recycle Bin", it complain about "Index was outside the bounds of the array"

So i tried adding an entry to the 2 following files
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG\Resources\cms.en-us.resx
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG\Resources\cms.resx

<data name="siteactions_recyclebin_description" xml:space="preserve">
<value>Recycle Bin</value>

<data name="siteactions_recyclebin_displaytext" xml:space="preserve">
<value>Recycle Bin</value>


That doesn't help either.

Anyone has customize the site action successfully?



9 Answers Found

Answer #1    Answered By: Elisha Abbott     Answered On: Feb 25

You don’t want to make changes to the Site Actions menu this way… you want to do this using a Feature.

Use a CustomAction in your Elements.xml file:

<CustomAction Id="RecycleBi.SiteActionsToolbar"


ImageUrl="/_layouts/images/smt_small.png "



Title="Recycle Bin">

<UrlAction Url="JavaScript: alert('Recycle Bin');"/>


Answer #2    Answered By: Naimish Ranganekar     Answered On: Feb 25

Understood! Thanks!

Got it woorking the way I want it.

Answer #3    Answered By: Caleb Gordon     Answered On: Feb 25

i was looking for something similar. i created a sub
site using "report center" template which causes a "create dashboard"
link under "site actions" to appear for all users even the anonymous
ones. i want to remove that link from the site  actions menu, in fact i
dont want want the menu to appear for anonymous users at all.

any tips on how to do that?

Answer #4    Answered By: Christie Carlson     Answered On: Feb 25

Use a HideCustomAction Feature like this:

Location="Microsoft.SharePoint.SiteSettings" />

Answer #5    Answered By: Dorothy Farmer     Answered On: Feb 25

Seems likes it's pretty easy to accomplish. Any help on how to
use "features" J ? I am a newbie to SharePoint customization. Is
HideCustomAction a built-in feature of sharepoint or is it something I
can create on my own?

Answer #6    Answered By: Jacklyn Burnett     Answered On: Feb 25

Built-in. It must be included in the Elements.xml portion referred to by
the Feature.xml of a WSS v3 Feature.

Answer #7    Answered By: Breann Beach     Answered On: Feb 25

Not that I'm a salesman or anything but you may want to buy Todds book
(as you're new to SharePoint customization) - its really good and will
get you up to speed real quick - you can find it at




Answer #8    Answered By: Timothy Hall     Answered On: Feb 25

Just one more question: what can we accomplish through our own custom
developed features? I am looking to understand the power of features.

Answer #9    Answered By: Ian Powell     Answered On: Feb 25

Features are the penumbra of WSS v3. They encapsulate the essence of how
custom development should be installed and activated.

Didn't find what you were looking for? Find more on MOSS 2007 B2TR - WCM - Site Action Or get search suggestion and latest updates.