So, earlier I posted how I upgraded WSSv3 to MOSS.
After I completed that task, I wanted to see what it would take to turn my existing top level site collection into a publishing site, as the Publishing Feature is one of the lowest hanging fruit in the MOSS Feature stack that has the greatest benefit to both users and administrators right out of the gates.
The first thing we need to do is enable the Office SharePoint Server Publishing Infrastructure feature in the site collection features list.
Uh oh:
The logs say that access was denied activating the Publishing Resources feature and the message is 'Provisioning did not succeed. Details: Failed to provision the scheduling job definitions. Page scheduling will not succeed.' Then there are some other messages in the logs that say that an exception was thrown ensuring dependencies were met for the Publishing Site Feature.
According to a post I found on NetAdminTools.com, you can activate the Publishing Resources via stsadm, then click the Activate button in the site collection Features list. This seemed to work pretty well:
Then I activated the Office SharePoint Server Publishing Feature in the Site Features list (in the Site Administration group) and the Pages list was created and the site actions menu was expanded, and there was much rejoicing (yaaay)
BUT WAIT!
When I created a new page, something seemed off. There were only a few pages available in the 'choose page layout' list box. Looks like some article pages and welcome pages were missing. I went to the mast page gallery and saw that there weren't any pages missing, but there were some pages, like the welcome page with web part zones page layout - which is the page layout used on the default page of the Collaboration Portal site definition - that were not associated to their proper Content Types! Uh - Weird! How did this happen, and how can we fix it?
Creating new site collections based on the Team Site template proved that we could activate the Publishing Infrastructure Feature without the access denied error, but the page layouts still didn't have the Content Type associated in the Master Page Gallery. Tried this on four site collections. PublishingPrerequisites, PublishingResources, Navigation, and PublishingLayouts are the Feature Activation Dependencies on the PublishingSite Feature (the Publishing Infrastructure Feature name) and they are all scoped to the site, so why are the page layouts not getting associated with the Content Types?
Creating a new site collection based on the Collaboration Portal site definition worked fine, and the page layouts were associated correctly. Lame. Must be the order that the site Features are activated.
After going through the Features listed in the onet.xml file for the Collaboration Portal site definition in the order defined, order's NOT the problem. What is you ask?
So - turns out that the page layouts are tagged as being part of the Master Page Content Type - what's up with that?!?
Eidt the page and change the Content Type to the correct one (Page Layout), then set the Associated Content Type.
Check In, Publish a Major Version, and Approve it. Fixed!
Bug...