Wednesday, November 28, 2007

Creating a Publishing site under a Team site

In general, to publish a site feature, you would use the command line as follows:

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!

Tuesday, November 27, 2007

MOSS in a Mobile Device

Among several new features in MOSS 2007, a fairly interesting one is the support for Mobile devices.
MOSS 2007 uses "mobile views" to provide built-in support for mobile devices. To view a site in mobile mode, use the following:
http://siteurl/_layouts/mobile/default.aspx.
A shortcut for the same is: http://siteurl/m, provided the Site is mobile enabled.
If not, in this case you may see a "page not found" kind of error, you may enable this feature using the below command:
stsadm -o activatefeature -name MobilityRedirect -url http://siteurl/
By default, the redirect feature is supported for any Web site that is based on standard STS site definition.
This feature for redirecting users to the mobile home page can be found in the following directory:
Local_Drive:\12hive\TEMPLATE\FEATURES\MobilityRedirect
(I'm sure you know what I mean by 12hive :-), for those newbies it is the new location on the file system where you install MOSS. In default install location, it is:
Local_Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12)

Every list and library in MOSS 2007 or WSSv3 is capable of hosting ‘Mobile Views’. These are standard views of lists or libraries that an administrator has defined as being mobile enabled. You can also view individual list items in mobile form.
To mobile enable any list/views, use the same interface that is used to modify the views, filters, groups etc. as shown below: