sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Modern sites(Teams & communications) not inheriting Content types from Content type Hub

Open AjeshKakkoprath opened this issue 8 years ago • 21 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

When a new site collection is created, custom site columns and content types are automactically inhertied to the new site collection from Content type hub.

Observed Behavior

For Modern site templates ( Teams and communications) custom site columns and content types are not inherited from the CT Hub.

Steps to Reproduce

  • Create custom site columns and content types in CT Hub and publish it
  • Create a Modern Teams or Communications site .
  • Check for the custom site columns and content types in the newly created site. This will be missing there.

AjeshKakkoprath avatar Aug 21 '18 00:08 AjeshKakkoprath

Any update on this? We have the same problem.

dscherry15 avatar Aug 27 '18 19:08 dscherry15

1), I am assuming you are (both) using the content type hub for your tenant, as this gets created on your behalf with all site features enabled https://[tenant].sharepoint.com/sites/contenttypehub 2) Each time you change one of your content types you will need to publish or republish it - I am assuming you doing this anyway 3) On each of the Team or Communication Sites, I believe that you need an additional step in the settings: click on Content Type Publishing (/sites/yoursite/_layouts/15/contenttypesyndicationhubs.aspx) and check the checkbox: [ ] Refresh all published content types on next update ,then click OK. You may notice a list of subscribed content types, below the Term Store name.

Each time I check this box in my FR dev tenant I get Sorry, you don't have access. So I end up requesting access, even though I created every site, I am site collection admin , Site Owner and Global Admin. (go figure!) . Please feedback if you get the same issue as this is likely a bug ( I am accessing this tenant behind a 'draconian' firewall so not sure if this the issue.)

I am able to use all published or republished content types in any of my Team and Communication sites after the timer job delay.

westerdaled avatar Aug 28 '18 15:08 westerdaled

Ours finally propagated without any additional changes. It took Modern Team Site and Communication Sites much longer than classic sites for some reason.

On Tue, Aug 28, 2018 at 11:55 AM Daniel Westerdale [email protected] wrote:

1), I am assuming you are (both) using the content type hub for your tenant, as this gets created on your behalf with all site features enabled https://[tenant].sharepoint.com/sites/contenttypehub 2) Each time you change one of your content types you will need to publish or republish it - I am assuming you doing this anyway 3) On each of the Team or Communication Sites, I believe that you need an additional step in the settings: click on Content Type Publishing (/sites/yoursite/_layouts/15/contenttypesyndicationhubs.aspx) and check the checkbox: [ ] Refresh all published content types on next update ,then click OK. You may notice a list of subscribed content types, below the Term Store name.

Each time I check this box in my FR dev tenant I get Sorry, you don't have access. So I end up requesting access, even though I created every site, I am site collection admin , Site Owner and Global Admin. (go figure!) . I am able to use all published or republished content types in any of my Team and Communication sites after the timer job delay.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SharePoint/sp-dev-docs/issues/2387#issuecomment-416639431, or mute the thread https://github.com/notifications/unsubscribe-auth/AT9frlyJUJEMannvP-kYaZuJbYMYV44tks5uVWfogaJpZM4WE7bY .

dscherry15 avatar Aug 28 '18 18:08 dscherry15

Good news. I does beg the questions: when and why, we have to use the Content Type Publishing option in any of the Modern Team Site and Communication Sites? Also is the list of subscribed content types updated automatically?

westerdaled avatar Aug 29 '18 07:08 westerdaled

I kept content type publishing off and it still propagated (albeit much later). So that is not required. With "Hub Sites" and a host of changes coming, I wonder if the content type hub model for the tenant (where you have to publish globally) is going away. Perhaps in the new model you can create content types at the hub site and publish to associated sites? Just a guess. Maybe we'll see after ignite.

On Wed, Aug 29, 2018 at 3:35 AM Daniel Westerdale [email protected] wrote:

Good news. I does beg the questions: when and why, we have to use the Content Type Publishing option in any of the Modern Team Site and Communication Sites? Also is the list of subscribed content types updated automatically?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SharePoint/sp-dev-docs/issues/2387#issuecomment-416855302, or mute the thread https://github.com/notifications/unsubscribe-auth/AT9frjpbWj-i5urpFrlfwtEKNOYM57t8ks5uVkROgaJpZM4WE7bY .

dscherry15 avatar Aug 29 '18 14:08 dscherry15

Hi

I think you may be right: Each hub site able to publish content types to any of the associated sites. Vesa did say that Content Type Hubs weren't getting any love within Microsoft. I am with him as they are so unreliable - waited all day for Expiry Date field to propagate to my comm site.

westerdaled avatar Aug 29 '18 19:08 westerdaled

Is there any alternative to using Content Type Hub when having templates associated with the content types (document content types with word file templates)? I have been using PnP to create a new sites with the same content types declared in the PnP-xml file, but I haven't found any way to provision content types with associated templates this way.

schoier avatar Apr 26 '19 06:04 schoier

@VesaJuvonen any chance there's a light at the end of the tunnel for this one? Or, any direction we should be taking now to avoid redos in the near future?

saulpreciado avatar May 07 '19 18:05 saulpreciado

Any update to this thread? I am seeing this since quite some time but its not getting any better. We have site designs, flows in different solutions which is part of our site creation process. Upon site creation we have to provision artifacts like libraries, lists and pages. As the content types from content type hub are taking hell lot of time like between 2-3 hrs before they appear in new sites we cannot create lists/libraries (We can theoretically but without content types - no use) as they need content types. We have no solution how to automate this site provisioning process fully. Hate these incomplete solutions.

We cannot run the Azure automation runbooks every 30 mins as they just run and no use for most of their running time. It is waste of azure billing to my company. Any ideas?

praveenbattula avatar May 09 '19 19:05 praveenbattula

This is still a problem. Should we forget the ContentTypeHub ? Anybody know?

jklevel avatar Sep 20 '19 09:09 jklevel

I just tested to created a modern team site and communication site and found that the Content Type Publishing link is no longer in Site Settings. Opening url manually (/_layouts/15/contenttypesyndicationhubs.aspx) takes you to the generic "Something went wrong" page. Something is happening here but we do not know what.

The Content Type Publishing page still works for older modern sites in my tenancy.

Some update from Microsoft about what is happening to the content type hub in relation to modern pages would be helpful.

gabbsmo avatar Sep 26 '19 12:09 gabbsmo

@gabbsmo This particular thing is sorted by activating the "SharePoint Server Publishing Infrastructure" feature in "Site collection features". The option "Content Type Publishing" appeared, despite of activation error.

kinsl4yer avatar Oct 09 '19 12:10 kinsl4yer

Any update to this thread? I am seeing this since quite some time but its not getting any better. We have site designs, flows in different solutions which is part of our site creation process. Upon site creation we have to provision artifacts like libraries, lists and pages. As the content types from content type hub are taking hell lot of time like between 2-3 hrs before they appear in new sites we cannot create lists/libraries (We can theoretically but without content types - no use) as they need content types. We have no solution how to automate this site provisioning process fully. Hate these incomplete solutions.

We cannot run the Azure automation runbooks every 30 mins as they just run and no use for most of their running time. It is waste of azure billing to my company. Any ideas?

we are in the same situation

ravick4u avatar Nov 20 '19 21:11 ravick4u

The only way I've been able to workaround it is to build a script that provisions a SharePoint team site using a Classic template, so the Content Types are provisioned via the CT Hub.

Once that's completed, the script then creates an Office 365 Group, which does the in-place modernization to the Classic site and then it creates the Teams channel (using the MS Teams cmdlets). Teams then uses the newly created SharePoint site as it's default SharePoint site.

StevieBleeds avatar Dec 12 '19 14:12 StevieBleeds

@StevieBleeds I agree with your approach re the CT hub. Indeed, we have made an informed decision to keep using the CT Hub until there is an obvious migration path to the this mythical "Hub site syndicates the content types to associated sites or whatever it ends up being" . Replacing the CThub with site designs and, or provisioning scripts has no business value, I could sell to our various stakeholders.

westerdaled avatar Dec 12 '19 14:12 westerdaled

@StevieBleeds Are you using Modern Team Site without Group Template? Does your content type come immediately with the template you are using?

ravick4u avatar Dec 14 '19 20:12 ravick4u

I’m using the Classic Team Site template to provision the site, which then provisions the content types via the CT Hub. Once that’s been done, an associated O365 group is spun up which provides the in-place modernisation of the site.

StevieBleeds avatar Dec 14 '19 21:12 StevieBleeds

@StevieBleeds When you create a modern site it does publish content type via content type hub but the problem is it takes time. What I would like to know when you create site with Classic Team Site does it publish content type immediately or it takes 2-3 hours for the content type to be available.

ravick4u avatar Dec 14 '19 21:12 ravick4u

Yes, it publishes it within minutes when used in conjunction with the -Wait parameter.

Create-PnPTenantSite -Title $title -Url $url -Template STS#0 -Wait

StevieBleeds avatar Dec 14 '19 21:12 StevieBleeds

@StevieBleeds We are using STS#3 template to create the site which creates Modern Team Site but without groups. I might have to try "-wait" parameter to see if that does the trick for me. I highly doubt but will give it a try.

Thanks again.

ravick4u avatar Dec 14 '19 21:12 ravick4u