1
Vote

ShowTOC does not work

description

When trying to include a TOC, I get the following error:
 
Property 'ShowTOC' does not exist, can only assign values to existing properties
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: EPiServer.Core.EPiServerException: Property 'ShowTOC' does not exist, can only assign values to existing properties
 
Source Error:
 
Line 465: {
Line 466: changed = true;
Line 467: pd.SetValue("ShowTOC", (ShowTOC) ? ((object)true) : null);
Line 468:
Line 469: } if (pd.Category.Count != Categories.Length)
 
 
Source File: ...\EPiServer.Research.Wiki\Core\WikiManager.cs Line: 467
 
Stack Trace:
 
[EPiServerException: Property 'ShowTOC' does not exist, can only assign values to existing properties]
EPiServer.Core.PageData.SetValue(String index, Object value) +233
EPiServer.Research.Wiki.WikiManager.UpdateArticle(PageReference article, String Name, String Body, String Comment, Boolean ShowTOC, Int32[] Categories) in ...\EPiServer.Research.Wiki\Core\WikiManager.cs:467
EPiServer.Research.Wiki.Units.SectionEdit.SaveBtn_Click(Object sender, EventArgs e) in ...\EPiServer.Research.Wiki\Units\SectionEdit.ascx.cs:165
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

comments

agnordby wrote Feb 10, 2010 at 8:56 AM

OK; I was trying to set a TOC on the wikiroot page.
Inspecting the properties for the various page types made it clear that the wikiroot page does not have a ShowTOC property.

Created an article below the wikiroot, and this time I could set a TOC.

Consider this fixed.

wrote Feb 13, 2013 at 6:59 PM