Solved

Site Action Menu

Posted on 2011-03-22
5
474 Views
Last Modified: 2012-06-21
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

0
Comment
Question by:Isaac
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Minesh Shah
Comment Utility
ok, have you deployed the feature...
can you see it in central admin.... also share which sp version u are using...
0
 
LVL 5

Author Comment

by:Isaac
Comment Utility
it's deployed and it's in CA.
Sharepoint 2007 is what I am using.
0
 
LVL 10

Expert Comment

by:Minesh Shah
Comment Utility
can you see the same feature in site collection features of site in which you are clicking site actions..
0
 
LVL 10

Accepted Solution

by:
Minesh Shah earned 500 total points
Comment Utility
0
 
LVL 5

Author Comment

by:Isaac
Comment Utility
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.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now