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


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

custom publishing site definition

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :SharePoint
 

What to do , so that  custom   site definition tab  should appear at site collection level only?

What to do , so that  custom   site definition tab  should appear at subsite level only?

what to do , so that particular site definition tab should not appear at particular subsite level at all.




View Complete Post


More Related Resource Links

Custom site definition for Publishing site

  

 

Hi,

 

I am trying to create a custom site definition based on publishing site definition. But i get following error while trying to create a site collection based on this definition.

 

"The Office SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated."

 

below is my custom webtemp:

Code Snippet
<?xml version="1.0" encoding="utf-8" ?>
<Templates xmlnsSurprisews="Microsoft SharePoint">
<Template Name="CustomPUBLISHING" ID="10001" SetupPath="SiteTemplates\PUBLISHING">
    <Configuration ID="0" Title="CUSTOM PUBLISHING Site" Type="0" Hidden="FALSE" ImageUrl="/_layouts/1033/images/PublishingCollaborationSite.gif"
 Description="This template provides a custom publishing site."
 FilterCategories="PublishingSiteTemp

Creating a new root Site Collection using a custom site definition file (ONET.XML)

  
Using Powershell, I am trying to deploy the our custom solution to SP 2010.  The script is doing the following: Deleting the web application using Remove-SPWebApplication Creating a new web application using New-SPWebApplication Adding and deploying a series of WSP files (one of which has the site definition file in it) using Add-SPSolution and Install-SPSolution Create a root site collection based on the site definition file provided in the WSPs using New-SPSite I get the error "WARNING: Template is not found and is not applied." When I run Get-SPWebTemplate, my site definition does not show up. I saw this: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/5ea46e07-a4b0-4bab-b698-9b6eeb695607 but I want a solution that does not involve me reloading a DLL, as, I feel there is something else I am forgetting. I have also tried: IISReset Resetting the timer service Cleaning the Cache (as described here: http://support.microsoft.com/kb/939308) Nothing seems to work.  Does anyone have any ideas?

Deploying custom 2007 site definition to 2010

  
For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010. After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration. The simplified code for this is: public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)         { SPSite site = null; try { SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail); newSiteCollection.Close(); newSiteCollection.Dispose(); site = GetRootSite(webApp); bool r = (site != null) ? true : false; return r; } catch { return false; } finally { if (site != null) site.Dispose(); }         } The exception is thrown when webApp.Sites.Add() is executed. The user we are logged in as, as wel the appID, are Farm Admin's. The ULS shows this exception: Exception thrown while fetching field by internal name 'Wiki_x0020_Page_x0020

Reg: Does Custom site definition created in SharePoint 2007 works in Sharepoint 2010

  

All,

If one has created a custom site definition in sharepoint 2007, Once the whole site is migrated to sharePoint 2010 will that "custom site definition" created in 2007 will work without breaking in SharePoint 2010?

If No, what has to be done to make it work on 2010.

Thanks,

Srini

 

 

 


Site Provisioning Class in Publishing site definition

  

hi,

    I  have tried different ways to write site provisioing class as follows

First,

I  modified  webtemp

ProvisionAssembly="Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=assemblyguid"
  ProvisionClass="Publishing.CustomPortalProvisioningProvider"

class CustomPortalProvisioningProvider: SPWebProvisioningProvider
    {
        public override void Provision(SPWebProvisioningProperties properties)
        {
            // apply template using a configuration
           // properties.Web.ApplyWebTemplate("LITWAREPORTAL#0");
            // TODO: add extra code here to customize the new site.

            //Microsoft.SharePoint.Publishing.P 
        }
    }

Then I got the error


Failed to instantiate provisioning provider 'PublishingSite.VillageSiteProvision' from assembly 'PublishingSite, Version=12.0.0.0, Culture=neutral, PublicKeyToken=0431

custom Picture Library with site definition

  

How to use Picture Library feature  available at


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\PictureLibrary

to create the custom picture library with  site definition.

custom picture library has one more  column with dropdown values .

After search on google. I found that picture library List to be specified in onel.xml as follows

<configuration >

       <lists>

       -- speciify picture library  list

           <lists>

 here how I can specify my own picture library,Please let me know in exact words

 


Custom site definition with embeded master page

  

Hello All,
I am creating a custom site definition, which is based on STS site definition ( so my site is also a team site, just with the difference of name ). For that I have created a SharePoint 2010 site definition project in VS 2010. It works fine.

Now what I want to do is to create a custom master for this site definition. And I want to keep this master page in same project.  Can someone tell me how to do it ?

Note : I am adding a module to this project ( which adds a feature to the project, when there was no module, there was no feature in the project ). Next I am referring that feature in one.xml file under configuration->site feature node. I do not want to have a feature, I want it to be part of site definition. But can I embed in such way that every time a site is created based on my site definition, master page also get deployed to root site of site collection


Shail

Custom site definition with embeded styles

  

Hello,
I am making a custom site definition. I am able to embed master page in my site definition. This is corresponding thread for it.

Now in same way I want to embed style sheets with site definition. How I can do it ?


Shail

How to set default Image to RichFieldImage control in custom Publishing Page layout in Site defini

  

hi,

 

How to set  default Image to RichFieldImage control  in custom Publishing Page layout in Site definition?

 


How can I delete a custom site definition??

  

 

I created some test custom site definitions but I want to delete them now. How can I do that???

 

Thank you.


Deploying custom 2007 site definition to 2010

  
For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010.
After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration.

The simplified code for this is:
public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)
        {
SPSite site = null;
try
{
SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail);
newSiteCollection.Close();
newSiteCollection.Dispose();
site = GetRootS

Adding custom list to site definition

  

Hello All:

First I will explain what I was trying to achieve.

I wanted to create a site definition or site template with some common features e.g. document library with custom columns and then create many sub sites using that template or site definition.

But the idea is that once all the sites have been created and up and running, if it is required in future to modify the document library to either add or remove some columns then I will simply modify the template/site definition and then apply it globally and all the sites will get updated automatically which were created using that template/definition.

I discovered that I can not get it done using site templates as they are just snap shot of sites and any modifcation can only be applied to new sites created based on template not the ones which were already created.

So, if I go with Site Definition option, what is the best way to do it. Create a custom document library and then create list template based on that and then add it on site definition ?

Or create a feature and do it via code in feature activation.?

Or perhaps there is another better way to do it?

Any help is appreciated

Merci

 


SharePoint Developer

Best method for creating a site definition containing a custom list instance

  

Hi,

I want to create a new site definition which, when provisioned, includes an instance of a custom list. The custom list definition is contained in a feature as part of the site definition project. What's the best method for creating an instance of this custom list?

I can think of a few ways to do it:

- Modify the onet.xml for my site definition to include an instance of the list

- Use feature stapling to enable my custom list defintion feature when a site is provisioned using my new site definition and include a list instance in the feature.

Is there another more suitable method?

Thanks,

Rob


Migrating Custom Site Definition to SharePoint 2010: Do i need to make any changes to existing site

  

Hi,

I am migrating from SharePoint 2007 to Sharepoint 2010.

We hae 2 custom workflows to be migrated.I have deployed the respective wsp which were used in Sharepoint 2007 site.But it did not help and i got errors.

Do i need to change my site definiton or my wso before deploying the same to Sharepoint 2010

Regards

Ram kiran


Create custom blog site definition

  

Hello,

I need to create a custom site definition for Blog(SharePoint 2010) using visual studio 2010. So can anyone please provide the steps to create that? Thanks in advance.


JAMAL

Custom Site Definition or is there a better (easier) way?

  

I have a requirement to create about 40 site collections and want to do them using powershell. That part is not that big of a deal.

But I have a requirement to create a "basic" team site collections template with some branding changes. Namely, replace the image of blond lady in a suit with a company logo and add a web part (contact details) in the right hand column. I will also need to change the welcome text of the left hand column. Also, on these site collection pages I would need to remove the current navigation from the left hand side.

I attempted to make the changes and "save as a template" in the Site Settings menu but I keep getting errors when I attempt to create a new site collection based on it. So I am now trying to decide if a custom site definition would not work better.

So I guess my question is more or less: which route, for the amount of work I need to accomplish, makes better sense?

 

Thanks,

Dan


How to provision a WIKI site as a sub site in a custom Site definition?

  

Hi all,

I have a custom Site definition which is made up of team Site Template(STS). In that I have populated lists and content types according to my requirement. Now I need to provision a WIKI site as a sub site in that Definition. I have used Provision data attribute of Configuration element in webtemp file and defined structure for it. But my site is not being created. The same approach is working with default Publishing sites provided by MOSS 2007(Publishing and collaboration Portals). I suspect that Publishing feature needs to be activated in my template before using provisioning attribute. Is that true. If yes please throw some light on that process. if no, guide me through the next possible solution.

Thanks,




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