Link to home
Start Free TrialLog in
Avatar of Isaac
IsaacFlag for United States of America

asked on

Site Action Menu

Hello All,

I'm am using wspbuilder to create a feature that is supposed to add an option to the "Site Actions" menu. The option(Brand Sites) appears in the "Site Action" but when I click on it, I get
The webpage cannot be found  HTTP 404 error


Below is my feature.xml and elements.xml files.

lso, I have a folder called "brandFile" with the siteBranding.aspx in it.

Any guidance would be appreciated.  Thanks.
FEATURE.XML
<?xml version="1.0" encoding="utf-8"?>
<Feature  Id="d733c5d3-3d61-4e0c-af9e-864600fdb9dd"
          Title="BrandingFeature"
          Description="Branding of site and sub sites"
          Version="12.0.0.0"
          Hidden="FALSE"
          Scope="Site"
          DefaultResourceFile="core"
          xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    <ElementFile Location="BrandingFeature.webpart" />
    <ElementFile Location="brandFile/siteBranding.aspx" />
  </ElementManifests>
</Feature>


ELEMENTS.XML
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="WebPartPopulation" Url="_catalogs/wp" RootWebOnly="TRUE">
    <File Url="BrandingFeature.webpart" Type="GhostableInLibrary">    
      <Property Name="Group" Value="MyGroup"></Property>
      <Property Name="QuickAddGroups" Value="MyGroup" />
    </File>
    <File Url="brandFile/siteBranding.aspx"
      Type="Ghostable"
      IgnoreIfAlreadyExists="FALSE"/>
  </Module>
  <CustomAction Id="SiteActionsToolbar"
                GroupId="SiteActions"
                Location="Microsoft.SharePoint.StandardMenu"
                Sequence="10000"
                Title="Brand Sites">
    <UrlAction Url="brandFile/siteBranding.aspx"/>
    
  </CustomAction>
    </Elements>

Open in new window

Avatar of Minesh Shah
Minesh Shah
Flag of India image

ok, have you deployed the feature...
can you see it in central admin.... also share which sp version u are using...
Avatar of Isaac

ASKER

it's deployed and it's in CA.
Sharepoint 2007 is what I am using.
can you see the same feature in site collection features of site in which you are clicking site actions..
ASKER CERTIFIED SOLUTION
Avatar of Minesh Shah
Minesh Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Isaac

ASKER

Yes...

It looks like I have to place my file in the _layout folder. hmmm......  That does not seem right but I'll give it a try.