2
我在EPIServer中創建了4個頁面的CMS站點。現在我想設置ID爲'5'的頁面作爲起始頁面。在episerver.config部分我沒有找到sitesettings部分。我正在開發由.NET提供的MVC應用程序模板。但沒有獲得任何設置pagesstarid的選項。在episever.config文件中設置taht的位置。如何在EPIServer中將頁面設置爲起始頁面
我的配置文件是這樣的:
<episerver xmlns="http://EPiServer.Configuration.EPiServerSection">
<workflowSettings>
<workflowHost type="EPiServer.WorkflowFoundation.AspNetWorkflowManager,EPiServer.WorkflowFoundation" />
<definitions>
<!-- definition: Workflow definitions that should be predefined, that is if no definition with
specified type exists it will be created-->
<!--
<definition name="Sequential Approval" description="A sequential approval workflow for pages" type="EPiServer.WorkflowFoundation.Workflows.SequentialApproval,EPiServer.WorkflowFoundation"/>
<definition name="Parallel Approval" description="A paralell approval workflow for pages" type="EPiServer.WorkflowFoundation.Workflows.ParallelApproval,EPiServer.WorkflowFoundation"/>
<definition name="Request for feedback" description="Assigns request for feedback tasks to users/roles" type="EPiServer.WorkflowFoundation.Workflows.RequestForFeedback,EPiServer.WorkflowFoundation"/>
<definition name="Ready for translation" description="Assigns translation tasks to users/roles" type="EPiServer.WorkflowFoundation.Workflows.ReadyForTranslation,EPiServer.WorkflowFoundation"/>
-->
</definitions>
<externalServices>
<!-- externalService: Custom services that is to be registered with workflow runtime-->
<externalService type="EPiServer.WorkflowFoundation.Workflows.ApprovalService,EPiServer.WorkflowFoundation" />
<externalService type="EPiServer.WorkflowFoundation.Workflows.ReadyForTranslationService,EPiServer.WorkflowFoundation" />
<externalService type="EPiServer.WorkflowFoundation.Workflows.RequestForFeedbackService,EPiServer.WorkflowFoundation" />
</externalServices>
<references>
<!-- reference: References for xoml based workflows, used at compiling of xoml based workflows-->
<!-- reference path="C:\Inetpub\wwwroot\mysiste\bin\customdependency.dll" /-->
</references>
</workflowSettings>
<applicationSettings httpCacheability="Public" pageValidateTemplate="false" uiShowGlobalizationUserInterface="true" urlRebaseKind="ToRootRelative" uiUrl="~/EPiServer/CMS/" utilUrl="~/util/" />
</episerver>
謝謝您的回答 – Utpal
你需要知道,這將刷新你的web.config,換句話說,你的網站的應用程序池將被重新啓動 - 使不上在生產環境中執行此操作。您可以在sitesettings節點下的EPiServer.config文件中找到該設置。它叫做pageStartId – Tchami
@Tchami,在最新版本的EPiServer 7中,網站定義已經從配置轉移到數據庫。有關以下鏈接的更多信息:http://world.episerver.com/Documentation/Items/Upgrading/EPiServer-CMS/75/Breaking-changes/ –