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


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

content Type at site collection level using feature.

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :SharePoint
 
I m planning to create a feature to install the content type and site colomun at site collection level. Now my doubt is? 1. what will happen when i de activate a feature with documents already there? 2. what will happen when i de activate a feature without documents? What are points i need to take care? 


View Complete Post


More Related Resource Links

Added Metadata (Taxonomy) to Document Type at Top Level Site Collection; How to break inheritance at

  
Greetings, 

We're really loving the ease with which we can add site columns to content types, and have them propagate through all lower-level sites. This is awesome, especially when combined with taxonomy in the term store!

However, our Intranet is to feature a publishing site with subsites to house inter and intra-departmental, private working groups who develop material outside of the public Taxonomy term store and outside of traditional requirements for taxonomy data. This covers a specific area of navigation; the RED HIGHLIGHTED navigation and sub-navigation (not pictured) should all exist without the taxonomy column requirement required of all other sites and subsites.

Example: http://ctnation.citizenschools.net/DotNetNuke/images/WOW_Sample.jpg 

In building the site template for the Workspaces sites, I want to remove all requirements for all content types for the public-site-wide-taxonomy. However, when I edit the content types at the sub-site level, there seems to be no ability to break inheritance from the parent information, and thus, all content types require the taxonomy column (as defined at the root-site level). 

Given the need to remove the site column from all content types, libraries and lists in this Work

SharePoint 2007 - Consolidating everything as feature into WSP [Content Type, Page Layout, Pages, Ma

  

Hello –

 

Overview – We are building a Mobile Web Site using SharePoint 2007. The big screen site has been already built and we need to integrate the mobile site into same site collection of big screen –

 

·         The Mobile site will use the existing content types of existing big screen site

·         We will build a new custom Master page

Issue with List Definition of same base content type and deployed via same feature

  

I am trying to deploy two custom list definitions using only one single feature.  Below are the details of my issue.

  • Two custom list definitions
  • Each custom list definition has its own custom content type
  • Each custom content type inherits from the base content type Picture (Type = 109)
  • The custom list definitions are grouped together under one single feature
  • The custom content types are grouped together under a seperate single feature

When I deploy my solution in this configuration, the second list definition gets the first custom content type applied to it and the list schema from the first list definition is also applied to the second list definition.

What makes this more interesting, when I seperate both of the list definitions under two seperate features it all works fine.  Custom content types and list schemas get applied correctly.

Can anyone tell me why I can not deploy both list definitions under one single feature?

If you need me to post any of the origional code or XML to this post please let me know.

 

Craig


cross site-collection content query wp

  
Hi,How can i override the Content query wp so i can query data from other site collection? Is it possible?How? Recommended ways? alternatives? references?the site collection is under another site collectioni did some googling and only found a comercial wp for this..tks

Attach site collection data from content databases

  
I have migrated my Sharepoint from a stand-alone installation to a server farm installation by following this article. http://technet.microsoft.com/en-us/library/cc262325%28office.12%29.aspx Every step was completed successfully, except for the last one (4): Install Office SharePoint Server 2007 on a new farm Move databases from the stand-alone server to the server farm Create and attach data from the Shared Services Provider (SSP) Attach site collection data from content databases Whenever I try using the stsadm -o extendvs I get the following message: The IIS Web Site you have selected is in use by SharePoint.  You must select another port or hostname.   The following is the command: STSADM.EXE -o extendvs -url http://dms01 -ownerlogin group\dms -owneremail dms@xxx.com -exclusivelyusentlm -databaseserver jagrb -databasename WSS_Content -apcreatenew -apidname DMS -apidtype configurableid -apidlogin group\dms -apidpwd xxxx   So far, all my efforts to Attach the site collection data from the content databases have failed. Any ideas?

How to all the Subsites and Site Collections under a top level site collection using client object m

  
Hello Everyone, I need to know how to get all the subsites and the site collections under a top level site collection using client object model in SilverLight. When I use WebCollection webcoll= ctx.Web.Webs I'm getting the getting subites but i'm not getting the RootWeb and Othe SiteCollections created under the Top Level site collelction.

Feature Upgrade Functionality - Adding a new Content Type and List Instance

  
I've successfully used the upgrade functionality in SP 2010 to upgrade my list structures as needed. So far, these updates have been adding new fields to existing content types. Now, I have some new fields, content types and list instances to add, and am having trouble getting this accomplished. The scenario is this: - A new content type with a single custom field (also new), and a list instance for this new content type - A new field that is a lookup back to the new list instance defined above. This new field is added as an existing content type. - In my feature.xml, I have the Element Manifest specified with both new fields and an AddContentTypeField element for the new field being added to an existing content type:   <ApplyElementManifests> <ElementManifest Location="V1_04\Elements.xml"/> </ApplyElementManifests> <AddContentTypeField ContentTypeId="0x0100..." FieldId="{8028A1C8-1147-4DF7-B5C3-8A1F84A30360}" PushDown="TRUE"/> The result of running the update on this feature is: - My new field that is part of an existing content type is added - My new field that is part of a new content type/instance is added - My new content type and list instance is NOT created, therefore my lookup is broken Any idea why my new Content Type and List Instance is not being created? Do I need to specify there

Feature Upgrade Functionality - Adding a new Content Type and List Instance

  
I've successfully used the upgrade functionality in SP 2010 to upgrade my list structures as needed. So far, these updates have been adding new fields to existing content types. Now, I have some new fields, content types and list instances to add, and am having trouble getting this accomplished. The scenario is this: - A new content type with a single custom field (also new), and a list instance for this new content type - A new field that is a lookup back to the new list instance defined above. This new field is added as an existing content type. - In my feature.xml, I have the Element Manifest specified with both new fields and an AddContentTypeField element for the new field being added to an existing content type:   <ApplyElementManifests> <ElementManifest Location="V1_04\Elements.xml"/> </ApplyElementManifests> <AddContentTypeField ContentTypeId="0x0100..." FieldId="{8028A1C8-1147-4DF7-B5C3-8A1F84A30360}" PushDown="TRUE"/> The result of running the update on this feature is: - My new field that is part of an existing content type is added - My new field that is part of a new content type/instance is added - My new content type and list instance is NOT created, therefore my lookup is broken Any idea why my new Content Type and List Instance is not being created? Do I need to specify there

Feature Deployment of Inherited Content Type

  
I'm encountering a strange behaviour and I'm not sure of the root cause or solution.  I have a custom content type that inherits from form with a content type id of: 0x0101010056138C818DD3564C95CA65FF3C468A86.  This was created in from the SharePoint UI. I'm attempting to deploy an inherited content type from as a feature.  The feature activates fine but no content type appears in the UI.  From that point forward I get the following error in the UI if I attempt to create a child content type of 0x0101010056138C818DD3564C95CA65FF3C468A86.    "The local device name is already in use. (Exception from HRESULT: 0x80070055) "  In the logs I see the following error 3 times: Failed to find the parent content type ID="ct-1033-0x0101010056138c818dd3564c95ca65ff3c468a86" for content type ID="ct-1033-0x0101010056138c818dd3564c95ca65ff3c468a8601". At this point I uninstall the feature but still can't delete the original custom content type because it says the content type is in use.  Using the SP Manager tool from codeplex shows me that the child content type is still associated with the parent despite the fact that it never showed up in the UI! Failed to find the parent content type ID="ct-1033-0x0101010056138c818dd3564c95ca65ff3c468a86" for content type ID="ct-1033-0x0101010056138c818dd3564c9

Office Sharepoint Server Publishing Infrastructure is missing in site collection feature SharePoint

  
I was trying to activate the Office Sharepoint Server Publishing Infrastructure feature in the site collection features but the feature is simply not there. Is this option not available in SharePoint Foundation 2010?

Site Collection Reporting Feature?

  
Hi I'm wondering if anyone knows or has seen Microsoft documentation on what activating the "Reporting" feature within the Site Collection Features page will do?  The reason I ask is I thought that activating it at the site collection level was required in order to use site collection usage and site usage reports.  That's what MS's site says here:  http://technet.microsoft.com/en-us/library/cc262541(office.12).aspx  However I have one farm where those usage reports are available, but this site collection feature has not been activated.  Usage logging was enabled through CA for the farm and usage reporting was enabled through CA for the SSP). This is a MOSS 2007 environment.  

Is there any way to populate an InfoPath form field with the data from the site content type column?

  

I have a Form library with a form template.

The templat has a field "Office name" which should not be a fixed list of values, but a dynamical list, feeded from a different type of form. I'm a novice with InfoPath - Sharepoint and I want to find out, how can I can give users a possibility to create and maintain a list of offices and also have this list as a selection list inside main library form - ALL inside one library, if possible.

I assumed that if I publish main form (Itinerary) as a library template form and lookup form (OfficeInfo) as a SiteContent, I should be able somehow to connect to siteContent column and it's information. But I cannot see how - Site Content Gallery is not appering as a Connection item.

Can I use SiteConenct for this purpose or there are other ways to create end-user lookup lists?

Thank you!

 


Activating Publishing Infrastructure at the Site Collection level

  

My task is to my company's branding solution to two new sites. I can upload the solution but I cannot activate it. I can't activate it because SharePoint Publishing is turned off on the sites. When I attempt to turn on SharePoint Publishing, I get this error:

Site
The feature being activated is a Site scoped feature which has a dependency on a Site Collection scoped feature which has not been activated. Please activate the following feature before trying again: SharePoint Server Publishing Infrastructure f6924d36-2fa8-4f0b-b16d-06b7250180fa
Web
The Site scoped feature being activated has a dependency on hidden Site scoped feature 'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416' (ID: '22a9ef51-737b-4ff2-9346-694633fe4416'). Hidden features cannot be auto-activated across scopes. There may be one or more visible Site scoped features that auto-activate the dependent hidden feature.

I can't seem to locate the Publishing Infrastructure feature. The Site Collection List provides information about each site collection but no access to their features. How do I turn on Publishing Infrastructure?


URGENT: Document Library Content Type not inheriting some fields from parent Site Content Type

  

I have a situation that has foxed me!! I have a site level content type that has 8 fields... I use this to create more content types at the site level and use these in multiple Document Libraries (I have 40 doc libs).  This works fine for 38 of the libraries.  But for 2 of them... 2 of the columns are not showing up on the document libraries.  These are user lookups fields.  I am not sure why it's not working in these libraries only!  When I use the same content type in another library... the inheritance does not break for these fields!

Anyone please provide some guidance on this?  I am using WSS 3.0 and SPD to do workflows.

On another note... the content type has a template (in excel) attached to it.  When I create the content manually using the content type from the New menu option, the template is used... however, when I try to add it using an SPD workflow, it creates a blank template... the content type template is not being used.

Please help... I am in a fix and need to release this application today!!!


External Content Type - Read List Operation - "Cannot find a collection element of a supported type.

  

I'm trying to define External Content Type Operations for an External Content Type. I can add a Connection, Type "WCF Service" no problem. And I can define a "New Read Item Operation" using that connection.

But I can't define a "Read List Operation". I get the following error message, in the Return Parameter Configuration: "Cannot find a collection element of a supported type..." it goes on to say - see the help documentation for supported types. I can't find any help documentation on this.

I've tried returning different types in the provider web service but keep getting the same error. What are the supported types the web service can return?

The reading I've done suggests that you can connect to a non-MS web service using a connection type of "WCF Service". Is this correct? If it is what's the best soap format the web service provider should use - Doc/Literal?

Thanks,

Glen


cannot register custom edit form through a content type and deploy it as a feature

  

custom edit form through a content type and deploy it as a feature.. the RTM version of sharepoint 2010 does not register the custom forms. the elements.xml is pretty straight forward..

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <!-- Parent ContentType: Workflow Task (0x010801) -->
 <ContentType ID="0x010801007fc29cb23c2049c3985ccdb95fc8331f" Name="ReviewTask" Group="Content Types" Description="Review workflows task purpose" Inherits="TRUE" Version="0">
  <FieldRefs>
   <FieldRef ID="{2C2BE3C6-0EB6-4F53-B612-CF49A7EF4013}" Name="Review Status" />
   <FieldRef ID="{CE1D0566-DDC6-4AA3-80C2-6CEA892F105E}" Name="Review Date" />
   <FieldRef ID="{07CB9AA2-0102-4741-9F9A-AC4A7D62D769}" Name="Review Comments" />
  </FieldRefs>
  <XmlDocuments>
   <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
    <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
     <New>_layouts/My/ReviewTaskEditForm/TaskEditForm.aspx</New>
     <Display>_layouts/My/ReviewTaskEditForm/TaskEditForm.asp

disable top level site collection

  

I saw some compaies when they created sharepoint web application, they do not create a top level site collection.  thety created site collections under managed path. For example, the sharepoint web app called http://MyCompanyNmae.com. users can not access http://MyCompanyNmae.com directly. Instead they have to access through

http://MyCompanyNmae.com/sites/hr

http://MyCompanyNmae.com/sites/it

...

http://MyCompanyNmae.com/sites/accounting

 

Why they disable the top level site collection? for what purpose?

 

Thanks in advance,  

 


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