Is it possible to set the default page of a publishing site, to the first page in Pages library?
|
There is no OOB option do this. First page in pages library is kinda relative, based on the default sort (by name , created date...etc). In SharePoint 2010 its just a single button click on the Ribbon, do evaluate the option before any custom implementation Custom Solution:
|
|||||||
|
|
In the page that you want as default click the "Make Homepage" icon in the "Page" tab in the ribbon.
|
|||
|
|
If you are looking for a non-developer solution then you might be able to do this with a PowerShell script that would iterate through the various sites, find the right page and tag it as the welcome page. It would naturally take a little bit of work to get it working exactly how you want. You could then set it as a scheduled task to run daily (or whatever makes sense given the content and frequency of changes) so that newly created sites would also get their welcome pages set. This is not an ideal solution, merely a workable one. For a "Real Solution" to this, you would probably need a feature along the lines of what Vamsi proposes where it would do the above work upon activation and then hook into site creation via either stapling or the WebProvisioned event so that all future sites would get this treatment as well. |
|||||||||||||
|
