STSADM.EXE -o activatefeature -filename Publishingsite\feature.xml
-url http://
This command line also installs the Publishing Layouts and Publishing Resources features that are required for a publishing site.
Also, this installs the feature at the site collection level when you activate this feature from the Site Features link on the site's Site Settings page.
Installing and activating the publishing site feature creates the standard lists needed for publishing (Documents, Images, Pages, Site Collection Documents, Site Collection Images, Cache Profiles, Style Library, Reports List, Reusable Content, and Workflow Tasks) and populates the Master Page And Page Layout Gallery with the 13 additional master and layout pages used in publishing sites. It also adds 14 new management links in Site Settings.
This is fine!!! Now you may go ahead and start creating sites and sub-sites with the publishing features (if activated at that site level). But what if you need a publishing site below a team site.
This can be achieved.
If your site collection started as a WSS3.0 template, first use STSADM.EXE to "activate" the Publishing Resources and Publishing Layouts features at the site-collection level, but do not activate Publishing in the features listed at the Top Level Site Settings.
Then use STSADM.EXE to activate the Publishing Web feature on the sub-Web-site URL, and in the Site Settings for that site, activate Publishing.
The command-line examples are as follows:
STSADM.EXE -o activatefeature -filename publishingresources\feature.xml
-URL http://extranet/sites/SiteCollection2/
STSADM.EXE -o activatefeature -filename publishinglayouts\feature.xml
-URL http://extranet/sites/SiteCollection2/
STSADM.EXE -o activatefeature -filename publishingweb\feature.xml
-URL http://extranet/sites/SiteCollection2/SubWeb1/
Try this to have a publishing site below a team site.
Good Luck!
No comments:
Post a Comment