STS site definition different “default.aspx” - (default document in site collection) (Solved)

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/296

سؤال

I have an STS-based site collection and I have changed the "default.aspx" default document reference as follows:

My onet.xml:

<Module Name="Default" Url="" Path="">
      <File Url="etusivu.aspx" NavBarHome="True">

This way the site works when I use the URL http://SITEURL/etusivu.aspx but if I use http://SITEURL/ it doesn't redirect to etusivu.aspx. Even if I change "default document" in IIS to be "etusivu.aspx" in the correct webapp it doesn't work either.

Is there any possible way to correct this redirect?

Using SPS based site definition works but....


هل كانت مفيدة؟

المحلول 2

Solved problem.

I provisioned new "default.aspx" which was my old and correct etusivu.aspx (chosted the file) with a feature to site collections /root.

No features need to activate for this. Just make feature which provisions the file to the root of site collection and you are good to go.

نصائح أخرى

You need to set the Welcome Page for the site. This can be done either in your ONET.XML under <WebFeatures> <Properties>:

<Property Key="WelcomePageUrl" Value="$Resources:cmscore,List_Pages_UrlName;/etusivu.aspx"/>

or manually in Site Settings, Look and Feel:

<siteurl>/_layouts/AreaWelcomePage.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top