Tag Info

Hot answers tagged

8

Firstly, you need to know that Managed Metadata Service can be responsible as a Content Type Hub. Content Type Hub is a location where you can manage and publish content type across site collection, web application and farm. One more terminology you need to know is Content Type Subscriber, which will subscribe to Content Type Hub. Once you publish Content ...


8

So, after a few weeks on and off trying to figure this one out, having no luck with any replies on any forum, I just thought I would have a look at how the UI page was doing this. (Why didn't I think of this earlier?!) That's when the property EnableMetadataPromotion showed up. Having this keyword to search for, it didn't take me long to google the missing ...


6

Ok, this is how I did it: Build a method that enables me to retrieve all items of a certain ContentType (use SPSiteDataQuery for Cross-Site in the same site collection, or simple SPQUery for a single list) - many examples available but look here for a start http://sharepoint-snippets.com/spsitedataquery-examples-for-sharepoint-2010/ (actually i've built my ...


4

You can define a column in a list of type 'Managed Metadata'. This column allows you to set a specific Term Set to use in this column. The TagCloud will not look at this field. Unfortunately it only uses 'I like it' and the tags on the pages (social tagging). As far as I know you have to build your own (or maybe someone did already).


4

SharePoint has no ability to assign meta-data to a Site Collectin or site directly. There are a few approaches to simulating it for the purposes of search and navigation: 1 - Use the Site Directory. although the 2007 Site Directory was deprecated, it still exists on SharePoint 2010 (for upgrade compatability) and you can turn it on and use it the same as ...


4

You cannot completely match the broad feature set of Managed Metadata but you can accomplish a subset of it using the techniques that existed before Managed Metadata was introduced: Define Taxonomic Metadata – Create custom site lists to be used for the management of metadata attributes you want to surface as controlled vocabularies for your site users. ...


4

It is possible to accomplish with OOTB Metadata Navigation and Filtering Feature using Navigation hierarchies control. Navigation hierarchies control allows to select an item in a hierarchy for a managed metadata column with filter for single Term Term with descendant child terms Applying filter in Navigation hierarchies control corresponds to ...


3

We recently moved our term set from test to production simply by attaching the managed metadata database on our production site and moving it along with our content database. The reason this approach was chosen was, that the users had already starting filling in content in the test environment. Be aware that any import/export solution like the one on ...


3

Maybe you would find this helpful: http://termsetimporter.codeplex.com/ To be honest you could probably knock up a PowerShell script to extract a termset using the object model fairly quickly - but if this works then why reinvent the wheel.


3

If you create your own ManagedProperty, e.g. 'Terms' and map it to the crawled property 'ows_taxId_MetadataAllTagsInfo', then you can use in your FullTextSqlQuery a condition like: Terms = '#0[TERM GUID]' For the ManagedProperty make sure you check 'Has Multiple Values' and 'Include values from all crawled properties mapped'. See also on MSDN Querying ...


3

As @PirateEric mentioned, an easy way to set metadata fields using a query string is by using JavaScript. I maintain SPUtility.js which can help with setting and getting SharePoint fields. For example: SPUtility.GetSPField('Document Category').SetValue(urlValue).MakeReadOnly(); You probably won't be able to use an event receiver because it won't have ...


3

The problem is that the SharePoint site is running on http://mysite internally, but is exposed as https://mysite using Microsoft Forefront. This breaks the ValidateTerms AJAX method call, because the call is made to http://mysite while surfing on https://mysite, which violates the same-origin policy of XMLHttpRequest calls. So the JSON AJAX call to ...


3

In your example you are setting the value of the field, then overwriting it when your loop gets to the next keyword. Rather than calling managedField.SetFieldValue every time you should be collecting all your terms in some form of collection, then calling it with this overload : TaxonomyField.SetFieldValue for example var terms = new ...


3

Have you also restored the Metadata Service database to the Production System? I am pretty sure that the metadata fields store GUID of terms as values and even if the NAMES of terms are same both in Model and Prod if they were created by hand their GUIDs will be different and this way in you Prod the system encounters unknown GUIDs and alerts to you with ...


3

Add the following property to ArrayOfProperty <Property> <Name>IsPathRendered</Name> <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value> </Property>


3

I know I'm sidestepping half of your question (others have provided good starting points), but check out this Codeplex project for the implementation of the Tag Cloud itself. Clean, lean interface & reusable: The tag cloud. What I've done recently is build a TaxonomyDataSource class that provides terms in a standard Dictionary property (with some other ...


2

I'm not sure, but I'm pretty sure that the Managed Metadata column is sort of like the Multiple Choice column type - that it can store multiple values, and thus can't be filtered in the CQWP. (If you think about it, the database query would have to match on only part of the value that's serialized into the database field, and hence it would be REALLY slow) ...


2

Term sets from Managed Meta data is one of the types of meta data you can add to your content types, just like a choice list or a date field. With managed meta data you can define hierarchies of highly managed meta data terms(taxonomies) or you can use the term set as a folksonomy or social tagging where the terms typically are managed by the contributors ...


2

I eventually figure this out. The reason I was getting the error message above was I had only enabled MMS service application. (trying to be too memory thrifty). Not sure which service did the trick because I enabled all of them (default). The "Manage Publishing for this Content Type" screen didn't through an error now, ...well not until I click Publish. I ...


2

First you have to check the core results fetched property list, and see if the managed metadata name is listed there. If not, add an entry. If the managed property is named "XYZ", then use this name when adding the fields to the list. Also check that the crawled property is mapped to a managed property. Typically all list properties are prefixed with ows_. ...


2

The term set group is intended as the security boundary for managed metadata. But usually all users can see (read) all the groups; the security applies to permissions to modify and manage the metadata. If you want to make certain termsets hidden from certain users, for example if you have a term set that is confidential, you will have to create a separate ...


2

So it turns out the value you need to pass in for the taxonomy value is the following: lcid;#Term Name|Guid of term e.g.: 1033;#Academics|bc943091-79ac-4f5f-a79b-205e8e717823 The full code to set the metadata column default is here: using (SPSite siteCollection = new SPSite("http://www.yoursite.com")) { using ...


2

There is a new method in the 2010 SP1 API: Microsoft.SharePoint.Taxonomy.TermStore.GetSiteCollectionGroup(SPSite currentSite) you can use like: session = new TaxonomySession(site); //Retrieve all Term stores from site collection termstores = session.TermStores; foreach (TermStore ...


2

First of all you need to make sure that you have created a managed property from your crawled property. In addition make sure that it is also set up as a 'Refiner Property' as well in the managed property creation screen. Then do the following: Go the search results page and edit the refiner web part Make sure that the 'Use Default Configuration' check ...


2

Our solution was to go to SP Central Admin > System Settings > Services on Server and start the "Claims to Windows Token Service". We also found this error in the logs which helped lead us to this as the solution: SPSecurityContext.WindowsIdentity: Could not retrieve a valid windows identity for NTName='PRMM-SP\polyadmin', ...


2

Yes I would customise the "Project" site column. Instead of looking at the 1st level (Client Name) I would start it at the 2nd level (Project name) and then within each site/library ensure that column is configured against the correct Client. This can be done either via the UI or via code (in case you have an event handler that fires when creating a ...


2

If you want to use query string parameters to set metadata, you're going to need some script that parses the query string and sets the field values. I've done this in the past with jQuery and SPServices. Marc has created a dead simple to use query string parser in the SPServices project. Here's an example from a project I worked on that got 2 query ...


2

Just get the field from the list and then cast it to a TaxonomyField like this: SPListItem item = ...; TaxonomyField taxField = item.Fields["FieldName"] as TaxonomyField; TaxonomyFieldValue taxFieldValue = new TaxonomyFieldValue(taxField); taxFieldValue.PopulateFromLabelGuidPair(taxonomyCtrl.Text);


2

You have to add a TaxonomyFieldValue in stead of a Term, something like this: string termString = String.Concat(thisYear.GetDefaultLabel(1033), TaxonomyField.TaxonomyGuidLabelDelimiter, thisYear.Id); TaxonomyFieldValue tagValue = new TaxonomyFieldValue(string.Empty); tagValue.PopulateFromLabelGuidPair(termString); oField.SetFieldValue(i, tagValue);


2

You can connect to ShraPoint Online through the Client Object Model as show here: http://blogs.msdn.com/b/cjohnson/archive/2011/05/03/authentication-with-sharepoint-online-and-the-client-side-object-model.aspx You can download the code sample and build on top of it. Get back to me if you need any help. I agree that you think this is a "hack" but it works ...



Only top voted, non community-wiki answers of a minimum length are eligible