.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Why do the aks master pages not get applied if the feature is not activated on the top site collecti

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint
 
Hi

I installed AKS 2.0 and activated AKS feature. The problem I found was the aks master pages do not get applied if the feature is not activated on the top site collection. why is so?

example: If i activate the feature on http://<servername>/sites/<sitename> and apply the master page, I dont see any changes.

              But if i activate the same aks feature on http://<servername/ then everything started working on all sites.

              The reason i found is the CSS reference in the aks master pages.

              It reference should be given as follows:

                 for http://<servername>/sites/<sitename> ->  <link rel="stylesheet" type="text/css" href="../../Style%20Library/AKS/Aks_Band_Blueband.css"/>

                 for http://<servername>/ -><link rel="stylesheet" type="text/css" href="/Style%20Library/AKS/Aks_Band_Blueband.css"/>

So my question is, am i missing anything? am i supposed to activate the AKS feature on top level site collection at any cost? if yes, why is so? 

And after applying aks master pages, i see differnece in font sizes. Why the font size is getting changed?

Also


View Complete Post


More Related Resource Links

Retract custom master page feature and all site pages stop working

  
There is a requirement to apply custom branding on personal sites in a SP 2010 project. For this I have created a feature which uploads and applies the custom master page on creation of any new personal sites.   I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on a team site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master.   Any help on this is appreciated. Regards, Neha

Retract custom master page feature and all site pages stop working

  
I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on the root site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master. Any help on this is appreciated. Regards, Neha    

Retract custom master page feature and all site pages stop working

  

I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on the root site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.

 

I activated

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates

  

Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004


Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page

  

I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?

Shark


Programmatically Hide Master Pages from Site Master Page Settings page?

  

Hi,

I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings page?

Maybe this should be two questions:

  1. How do I programmatically access a Master Page in a Master Page Gallery?
  2. Is there a property that can be set that will hide the page from the Site Master Page Settings page?

The site master page setting currently applied to this site is invalid. Please select a new master p

  
I have defined a new master page and set it as default for the main site.  Any time I create a new subsite it does not apply the new master page and defaults back to the default.master.  The Site Master Page Settings shows this error. The site master page setting currently applied to this site is invalid. Please select a new master page and apply it The system master page setting currently applied to this site is invalid. Please select a new master page and apply it. Now if I select "Inherit site master page from parent of this site" and "Inherit system master page" and click ok the site will use the new master page and everything is fine.  There is only one modification to the master page that was done so I know the master page isn't invalid.  Does anyone know the answer other than recreating the new master page.

WSS 3.0 - Master Pages - Changes not effective across site

  
Hi, I am relatively new to sharepoint and I have inherited a new intranet which I want to develop further. The first thing I notice is that some of the sites (i.e. the IT page) uses one master page (last updated in August) and the other pages use a master default which is different (last updated in December 2009). I want to be able to copy the August version and make it effective across all sites. I am not sure how to achieve this. I have tried making changes to the December 2009 file to see the changes take effect (i.e. change a background from red to blue) and it did not take effect across the site. This is probably basic stuff and I have purchased the Microsoft books to help, but I am at a bit of a loss on this one. Can anyone give me some simple directions on how I can make all the sites within our intranet refer to the same master default page? Thanks in advance

Master Page getting applied to site settings page

  

I want to apply masterpage to my Home.aspx and not on site settings page.

When I apply my custom master page it gets reflected on the site settings page as well, which I dont want.

Please help.

Regards

Anshul M


Hiding Quicklaunch, Master Pages, and Site Administration pages...

  

In most of our SharePoint 2010 solutions we've hidden the QuickLaunch through these CSS modifications attached directly to the v4.master:

#s4-leftpanel {  display:none; }
.s4-ca {  margin-left: 0px;  background: transparent; }

That produces a very good result on content pages not meant for use with QuickLaunch. However, it ruins the Site Administration and Site Collection Administration pages in many places, as you remove useful links, e.g. group memberships. We've fiddled with the idea of creating a separate master for each content page, but we don't know of any automatic way of applying that custom master page to a new page. We know how to do it manually, but we can't expect the customer to edit each page after it's been created and apply the custom.master.

How have you guys dealt with this problem?


Provision/Add custom Layout, Master and Default pages in Site Template

  

I'm attempting to use the onet.xml of a custom Site Template to provision/add (same thing?) a custom Master Page, a Custom Layout page and then reference them in Configurations.

I'm having trouble understanding the steps and order to do this in properly and am getting errors where the Layouts/Master pages cannot be found.  Here is what I have now:

<Module Name="SitesLayout" Url="_catalogs/masterpage" Path="Layouts" RootWebOnly="false">

  <File Url="SitesLayout.aspx" Type="GhostableInLibrary"><Property Name="Title" Value="AEP Sites Layout Template" /></File>

</Module>

<Module Name="AEPMasterPage" Url="_catalogs/masterpage" RootWebOnly="false">

     <File Url="CustomMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="true" />

</Module>

<Module Name="DefaultFunctional" Url="Pages" Path="">

     <File Name="MyDefault.aspx" Url="DefaultOrgFuncHomePage\default.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">

     <Property Name="Title" Val

Running a feature activated code during new site provisioning.

  
I would like to be able to run some simple code that have in a feature whenever a new site is provisioned.  I created the feature and it works just like I want it to.  I left it activated and saved the site template.  Now when I create a new site based on the saved site template the feature activated code no longer runs unless I deactivate and then activate.  I know this isn't suppose to work this way, and after much searching on the internet I am finding the feature stapling (not what I want, that seems to be what I have already done) and SPWebProvisionProvider.  The provider might be what I want but I am not sure how it works and there are no good examples on how to get one created in code and where to place it so that a user can utilize it when creating a new site.  Can someone explain this concept to me in ad nauseum detail.  Thanks in advance.

publishing site & master pages

  

hello,

I have a publishing site for which I am creating a master page. I created a couple of test pages so I could see what my master page looks like.  I created a page layout and some new pages to use for a test. I can view my pages with the master applied in SP Designer 2007, but when I look at it on the web, it's not picking it up.  I approved the master page  and the page layout, but I didn't publish them. ( I get the warning that the local and remote sites are the same- not sure what this means).

I am assuming I don't have to publish the master page to see it on the website. Is this true?

Also, when I look at the pages(aspx) in the MasterPage Gallery folder in SP Designer, I can see that the master pages custom & default options are selected. Also, the page layout's "set as default master page" ( it's an aspx file) is also selected.  Does this sound right?  

Does anybody know what I am missing? 

 

thanks much.


mgallotti

Anonymous Access in site template or feature activated by the site template, is it possible?

  

Hello!

I'm building a custom site template and my question is if it's possible to set the anonymous access level in the deployment action.

I tried to create an EventReceiver (FeatureActivated), but I doesn't change the anonymous access level at deploy time. If I deactivate and reativate the feature from the site it works, but I miss the point, because like this it's the same thing then going to Site Permission and change the permission from there.

I do not want to set Anonymous Access from the Site Administration every time.

Tanks,
Nicola.


MOSS 2007 - Add "Email Page to Friend" feature to Actions menu or to site master page.

  

My Communications Director would like us to add an "Email this Page to a Friend" type of feature to our SharePoint 2007 Intranet.  They would ideally like to have this feature available on every page.  But I was thinking that even if we could add this item to the List Actions menu it would suffice.  Does anyone know of a webpart that will do this or can offer some custom code and instructions on how to make this happen?

Thanks

Sandra


SharePoint Server Publishing feature--Can't activate on site (activated fine at site collection lev

  
I have five site collections and one of them seems to have an issue with the SharePoint server publishing feature, which is activated at the site collection level. On any of the sites underneath that site collection, the Server Publishing feature is not activated and throws this error when I try to activate:

Error

One or more field types are not installed properly. Go to the list settings page to delete these fields.

 Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: f1915aff-39e6-4e99-ba2f-34faf71f3102

If I try to create an Enterprise Wiki, I get the same thing:

One or more field types are not installed properly. Go to the list settings page to delete these fields.

I won't be able to create the wiki until I can get the SharePoint Server Publishing feature activated.

Any one have any ideas? the other 4 site collections are fine.


SharePoint Application and Site Pages - Part 1 of 2

  
In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend