Frage

Ich habe ein Content Type Hub eingerichtet und getestet die Syndizierung ordnungsgemäß funktioniert, indem ein Testinhaltstyp erstellen und beobachten sie an den Client-Website veröffentlicht werden.

Dann entfalteten ich die Inhaltstypen ich wirklich interessiert bin in an der Nabe zu veröffentlichen (über eine Funktion) zusammen mit den Websitespalten sie abhängig sind.

Ich erhalte den Fehler

Content type '...' cannot be published to this site because feature '...' is not enabled.

Ich mag Inhaltstypen mit Funktionen für Aufrüstbarkeit implementieren und die einfache Portierung zwischen Entwickler, qual und prod Umgebungen. Aber ich links nicht zu verstehen, was der Nutzen des Hubs ist.

Wenn ich die Entfaltungsfunktion aktivieren muß, werden die Inhaltstypen auf der Website sein, bereits vor stattfinden zu veröffentlichen. Wenn ich manuell die Inhaltstypen auf dem Hub-Standort mit dem Web-UI (igitt!) Erstellen, habe ich das Problem zu versuchen, drei Landschaften zu halten manuell synchronisiert werden.

Gibt es eine Möglichkeit, um effizient Inhaltstyp-Bereitstellung an den Hub zu verwalten, während immer noch den Hub mit den Inhaltstypen zu veröffentlichen?

War es hilfreich?

Lösung

The advantage of using the Content Type Hub, is that it allows you to use and reuse your Content Types over multiple site collections and Web Applications throughout your farm.

Because all of your site collections are now using instances of the same syndicated content types, if, in the future, you need to add/remove/rename columns within the content types, this is done as easily as updating the content type, and resubscribing (then allowing sharepoint to run its timer jobs, and double checking that the changes updated because you're a careful SharePoint administrator).

I am not sure which error you are receiving, there simply isn't enough context in your post. However, I think you may be slightly confused on how syndicated content types are published. First, you turn on the content syndication hub publishing feature on the site collection that holds all of the content types you are going to reuse throughout your farm. Next you configure the mixed metadata service, so that SharePoint loads each of your content types "into memory" more or less.

After this step, you get to choose which site collections you want to subscribe to the syndication hub. To do this, you need to turn on the content type publishing site collection feature. Note: If you use blank templates for your sites you may receive a feature error like you've described, due to a "flaw" with blank templates. See my post at: http://www.thesharepointblog.net/Lists/Posts/Post.aspx?ID=109

Only AFTER you've turned on the subscribing feature, And content Type Hub timer job has run, AND the subscribing timer job has run, will your site collection see the available content types.

As for manually creating content types on the hub site, the only OOB way of doing this is to use the UI. Personally, I wrote a utility that does everything I just described for me, from creating the initial content types, to creating the syndication hub, publishing them to all of the site collections, and most time consumingly, associating them with all of the lists and libraries on the subscribing site collections. I had intended for my employing company to sell it, but as they don't seem interested, I could open source it if there is enough interest.

Hope this was helpful.

Andere Tipps

This looks like a shortcoming of the hub, indeed. I've witnessed it before.

If you've deployed your content type to the hub, please check if the INHERITS tag of the content type element is set to TRUE. Otherwise it won't work in a hub.

<ContentType ID="xxxxx"
    Name="xxxx"
    Group="xxxx"
    Description="xxxx"
    Inherits="TRUE"
    Version="0">
</ContentType>

Don't forget that you can actually synchronize the content types BETWEEN farms -- this is especially valuable when you are developing on a separate farm and don't want to hassle with a PnP Framework for managing your content types... In some cases, the Content Type may already exist on the production farm and you need a copy of them on dev and/or test..

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top