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}',
<option value="0">{lang}wcf.global.noSelection{/lang}</option>
{foreach from=$pageNodeList item=pageNode}
- <option value="{@$pageNode->pageID}"{if $pageNode->pageID == $linkPageID} selected{/if}>{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
+ <option value="{@$pageNode->pageID}"{if $pageNode->pageID == $linkPageID} selected{/if} data-identifier="{@$pageNode->identifier}">{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
{/foreach}
</select>
{if $errorField == 'linkPageID'}
<script data-relocate="true">
require(['Dictionary', 'Language', 'WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler'], function(Dictionary, Language, AcpUiMenuItemHandler) {
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}',
<option value="0">{lang}wcf.global.noSelection{/lang}</option>
{foreach from=$pageNodeList item=pageNode}
- <option value="{@$pageNode->pageID}"{if $pageNode->pageID == $pageID} selected{/if}>{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
+ <option value="{@$pageNode->pageID}"{if $pageNode->pageID == $pageID} selected{/if} data-identifier="{@$pageNode->identifier}">{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
{/foreach}
</select>
{if $errorField == 'pageID'}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Acp/Ui/Box/Handler
*/
-define(['Dictionary', 'WoltLabSuite/Core/Ui/Page/Search/Handler'], function(Dictionary, UiPageSearchHandler) {
+define(['Dictionary', 'Language', 'WoltLabSuite/Core/Ui/Page/Search/Handler'], function(Dictionary, Language, UiPageSearchHandler) {
"use strict";
var _activePageId = 0;
return;
}
-
+
var newValue = ~~_cache.get(_activePageId);
_pageObjectId.value = (newValue) ? newValue : '';
+ var pageIdentifier = elData(_pageId.options[_pageId.selectedIndex], 'identifier');
+ var languageItem = 'wcf.page.objectID.' + pageIdentifier;
+ if (Language.get(languageItem) === languageItem) {
+ languageItem = 'wcf.acp.page.objectID';
+ }
+
+ elByTag('label', _containerPageObjectId)[0].textContent = Language.get(languageItem);
+
elShow(_containerPageObjectId);
},
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler
*/
-define(['Dictionary', 'WoltLabSuite/Core/Ui/Page/Search/Handler'], function(Dictionary, UiPageSearchHandler) {
+define(['Dictionary', 'Language', 'WoltLabSuite/Core/Ui/Page/Search/Handler'], function(Dictionary, Language, UiPageSearchHandler) {
"use strict";
var _activePageId = 0;
return;
}
-
+
var newValue = ~~_cache.get(_activePageId);
_pageObjectId.value = (newValue) ? newValue : '';
+ var pageIdentifier = elData(_pageId.options[_pageId.selectedIndex], 'identifier');
+ var languageItem = 'wcf.page.objectID.' + pageIdentifier;
+ if (Language.get(languageItem) === languageItem) {
+ languageItem = 'wcf.acp.page.objectID';
+ }
+
+ elByTag('label', _containerPageObjectId)[0].textContent = Language.get(languageItem);
+
elShow(_containerPageObjectId);
},
<item name="wcf.acp.page.metaDescription"><![CDATA[Meta Description]]></item>
<item name="wcf.acp.page.metaKeywords"><![CDATA[Meta Keywords]]></item>
<item name="wcf.acp.page.name.error.notUnique"><![CDATA[Dieser Name wird bereits von einer anderen Seite verwendet.]]></item>
+ <item name="wcf.acp.page.objectID"><![CDATA[Objekt-ID]]></item>
+ <item name="wcf.acp.page.objectID.search"><![CDATA[ID suchen]]></item>
<item name="wcf.acp.page.page"><![CDATA[Seite]]></item>
<item name="wcf.acp.page.parentPage"><![CDATA[Übergeordnete Seite]]></item>
<item name="wcf.acp.page.parentPage.none"><![CDATA[Keine]]></item>
<item name="wcf.page.jumpTo.description"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Gib{else}Geben Sie{/if} einen Wert zwischen „1“ und „#pages#“ ein.]]></item>
<item name="wcf.page.redirect.title"><![CDATA[Weiterleitung]]></item>
<item name="wcf.page.redirect.url"><![CDATA[Falls die automatische Weiterleitung nicht funktioniert, {if LANGUAGE_USE_INFORMAL_VARIANT}klicke{else}klicken Sie{/if} bitte hier!]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.Article"><![CDATA[ID des Artikels]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.CategoryArticleList"><![CDATA[ID der Kategorie]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.User"><![CDATA[ID des Benutzers]]></item>
</category>
<category name="wcf.paidSubscription">
<item name="wcf.page.jumpTo.description"><![CDATA[Enter a value between “1” and “#pages#”.]]></item>
<item name="wcf.page.redirect.title"><![CDATA[Redirection]]></item>
<item name="wcf.page.redirect.url"><![CDATA[Please click here if the automatic redirection does not work!]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.Article"><![CDATA[ID of the Article]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.CategoryArticleList"><![CDATA[ID of the Category]]></item>
+ <item name="wcf.page.objectID.com.woltlab.wcf.User"><![CDATA[ID of the User]]></item>
</category>
<category name="wcf.acp.page">
<item name="wcf.acp.page.metaDescription"><![CDATA[Meta Description]]></item>
<item name="wcf.acp.page.metaKeywords"><![CDATA[Meta Keywords]]></item>
<item name="wcf.acp.page.name.error.notUnique"><![CDATA[Name is already in use.]]></item>
+ <item name="wcf.acp.page.objectID"><![CDATA[Object ID]]></item>
+ <item name="wcf.acp.page.objectID.search"><![CDATA[Search ID]]></item>
<item name="wcf.acp.page.page"><![CDATA[Page]]></item>
<item name="wcf.acp.page.parentPage"><![CDATA[Parent Page]]></item>
<item name="wcf.acp.page.parentPage.none"><![CDATA[None]]></item>