Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Default Content in custom publishing site definition

  Asked By: Devika    Date: Nov 12    Category: Sharepoint    Views: 2579

I've been wallowing in the mire that is creating a custom publishing
site definition.

I'm managed to create custom site columns to represent some fields that
will be on our page layout, create a custom content to bind to our page
layout, create a page layout, and create a site definition that binds
default.aspx to our custom page layout.

The problem now is that I don't know how to default content (i.e. like
the oob publishing site does) in the site definition.

Can someone point me in the right direction?



2 Answers Found

Answer #1    Answered By: Tonia Franco     Answered On: Nov 12

In the default  publishing sites its done through a Feature. Take a look
at the ProvisionedFiles.xml under the PublishingLayouts Feature.

Answer #2    Answered By: Amareswar Karkera     Answered On: Nov 12

I actually misspoke a little bit. It's actually the Collaboration
Portal and Publishing Portal which have default  content (e.g. The
newsarticle image, the "Welcome to SharePoint" message, etc.).

I was finally able to figure out that this is in the ONET.xml of the
SPS site  definition. There's <module> element for the HomePage which
defines all of the default content  for the portals.

Didn't find what you were looking for? Find more on Default Content in custom publishing site definition Or get search suggestion and latest updates.