Add missing PIP GUI support for messages' `enableToc`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 28 Oct 2018 06:09:20 +0000 (07:09 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 28 Oct 2018 06:09:20 +0000 (07:09 +0100)
See #2545

wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php
wcfsetup/install/lang/en.xml

index b262a587e2a6f7d648bdba1d1e0b4012c97cc535..0fba809315acfe6eb01aeb2f4b0d241aa09b66ef 100644 (file)
@@ -421,6 +421,14 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation
                $conditionAdContainer = $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.condition.userSearch');
                $this->addConditionFields($conditionAdContainer, false, true);
                
+               // com.woltlab.wcf.message
+               $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.message')
+                       ->appendChildren([
+                               BooleanFormField::create('enableToc')
+                                       ->label('wcf.acp.pip.objectType.com.woltlab.wcf.message.enableToc')
+                                       ->description('wcf.acp.pip.objectType.com.woltlab.wcf.message.enableToc.description')
+                       ]);
+               
                // com.woltlab.wcf.notification.objectType
                $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.notification.objectType')
                        ->appendChildren([
index da84969f4c73d6d266e6b6ad5b204ac7b7ec75a7..a701302fe9844b81d21e08adb3a8f2d1fd60fbcb 100644 (file)
@@ -2238,6 +2238,9 @@ If you have <strong>already bought the licenses for the listed apps</strong>, th
                <item name="wcf.acp.pip.objectType.integerCondition.propertyName.error.nonExistent"><![CDATA[The entered column does not exist in the <code>{$tableName}</code> database table.]]></item>
                <item name="wcf.acp.pip.objectType.integerCondition.propertyName.description"><![CDATA[Name of the property and column of <code>{$tableName}</code> database table used for the condition.]]></item>
                <item name="wcf.acp.pip.objectType.integerCondition.propertyName"><![CDATA[Property Name]]></item>
+               <item name="wcf.acp.pip.objectType.com.woltlab.wcf.message.data.title"><![CDATA[Message Data]]></item>
+               <item name="wcf.acp.pip.objectType.com.woltlab.wcf.message.enableToc"><![CDATA[Generate Table of Contents]]></item>
+               <item name="wcf.acp.pip.objectType.com.woltlab.wcf.message.enableToc.description"><![CDATA[If selected, a table of contents is created for each message of this type.]]></item>
        </category>
        
        <category name="wcf.acp.reactionType">