<minvalue>0</minvalue>
<maxvalue>255</maxvalue>
</option>
+
+ <option name="message_enable_toc">
+ <categoryname>message.general</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<!-- /message.general -->
<option name="search_results_per_page">
define('PAGE_LOGO_LINK_TO_APP_DEFAULT', 1);
define('MODULE_USER_COVER_PHOTO', 1);
define('IMAGE_ALLOW_EXTERNAL_SOURCE', 0);
+define('MESSAGE_ENABLE_TOC', 1);
*/
public function getHtml() {
$toc = '';
- if ($this->getHtmlProcessor()->enableToc && $this->outputType === 'text/html') {
+ if (MESSAGE_ENABLE_TOC && $this->getHtmlProcessor()->enableToc && $this->outputType === 'text/html') {
$context = $this->getHtmlProcessor()->getContext();
$idPrefix = substr(sha1($context['objectType'] . '-' . $context['objectID']), 0, 8);
<item name="wcf.acp.option.module_user_cover_photo"><![CDATA[Titelbilder aktivieren]]></item>
<item name="wcf.acp.option.module_user_cover_photo.description"><![CDATA[Aktiviert die Darstellung und die Verwaltung von Titelbildern.]]></item>
<item name="wcf.acp.option.image_allow_external_source"><![CDATA[Bilder von externen Seiten erlauben]]></item>
+ <item name="wcf.acp.option.message_enable_toc"><![CDATA[Inhaltsverzeichnisse aktivieren]]></item>
</category>
<category name="wcf.acp.customOption">
<item name="wcf.acp.option.module_user_cover_photo"><![CDATA[Enable user cover photos]]></item>
<item name="wcf.acp.option.module_user_cover_photo.description"><![CDATA[Enables the display and upload of user profile cover photos.]]></item>
<item name="wcf.acp.option.image_allow_external_source"><![CDATA[Allow images from external sites]]></item>
+ <item name="wcf.acp.option.message_enable_toc"><![CDATA[Enable the table of contents]]></item>
</category>
<category name="wcf.acp.customOption">