From: Matthias Schmidt Date: Tue, 20 Sep 2016 16:47:42 +0000 (+0200) Subject: Improve label of page object id when setting up internal link X-Git-Tag: 3.0.0_Beta_1~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df1ec79b738c8588432925c4adf1101dc5b5d5cb;p=GitHub%2FWoltLab%2FWCF.git Improve label of page object id when setting up internal link … by using a(n optional) custom label based on the linked object --- diff --git a/wcfsetup/install/files/acp/templates/boxAdd.tpl b/wcfsetup/install/files/acp/templates/boxAdd.tpl index 23f80b95bb..337c156fbc 100644 --- a/wcfsetup/install/files/acp/templates/boxAdd.tpl +++ b/wcfsetup/install/files/acp/templates/boxAdd.tpl @@ -12,6 +12,13 @@ require(['Dictionary', 'Language', 'WoltLabSuite/Core/Acp/Ui/Box/Handler', 'WoltLabSuite/Core/Media/Manager/Select'], function(Dictionary, Language, AcpUiBoxHandler, MediaManagerSelect) { Language.addObject({ + 'wcf.acp.page.objectID': '{lang}wcf.acp.page.objectID{/lang}', + {foreach from=$pageNodeList item=pageNode} + {capture assign='pageObjectIDLanguageItem'}{lang __optional=true}wcf.page.objectID.{@$pageNode->identifier}{/lang}{/capture} + {if $pageObjectIDLanguageItem} + 'wcf.page.objectID.{@$pageNode->identifier}': '{@$pageObjectIDLanguageItem}', + {/if} + {/foreach} 'wcf.page.pageObjectID.search.noResults': '{lang}wcf.page.pageObjectID.search.noResults{/lang}', 'wcf.page.pageObjectID.search.results': '{lang}wcf.page.pageObjectID.search.results{/lang}', 'wcf.page.pageObjectID.search.results.description': '{lang}wcf.page.pageObjectID.search.results.description{/lang}', @@ -179,7 +186,7 @@ {foreach from=$pageNodeList item=pageNode} - + {/foreach} {if $errorField == 'linkPageID'} diff --git a/wcfsetup/install/files/acp/templates/menuItemAdd.tpl b/wcfsetup/install/files/acp/templates/menuItemAdd.tpl index 0c5221ecce..bcf6e8c20e 100644 --- a/wcfsetup/install/files/acp/templates/menuItemAdd.tpl +++ b/wcfsetup/install/files/acp/templates/menuItemAdd.tpl @@ -3,6 +3,13 @@