<dl{if $errorField == 'username'} class="formError"{/if}>
<dt><label for="username">{lang}wcf.acp.article.author{/lang}</label></dt>
<dd>
- <input type="text" id="username" name="username" value="{$username}" class="medium">
+ <input type="text" id="username" name="username" value="{$username}" class="medium" maxlength="255">
{if $errorField == 'username'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == 'title'} class="formError"{/if}>
<dt><label for="title0">{lang}wcf.global.title{/lang}</label></dt>
<dd>
- <input type="text" id="title0" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long">
+ <input type="text" id="title0" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == 'title'|concat:$availableLanguage->languageID} class="formError"{/if}>
<dt><label for="title{@$availableLanguage->languageID}">{lang}wcf.global.title{/lang}</label></dt>
<dd>
- <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long">
+ <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'|concat:$availableLanguage->languageID}
<small class="innerError">
{if $errorType == 'empty'}
<header class="contentHeader">
<div class="contentHeaderTitle">
- <h1 class="contentTitle">{if $action == 'add'}{if $isMultilingual}{lang}wcf.acp.box.addMultilingual{/lang}{else}{lang}wcf.acp.box.add{/lang}{/if}{else}{lang}wcf.acp.box.edit{/lang}{/if}</h1>
+ <h1 class="contentTitle">{if $action == 'add'}{lang}wcf.acp.box.add{/lang}{else}{lang}wcf.acp.box.edit{/lang}{/if}</h1>
</div>
<nav class="contentHeaderNavigation">
<div class="section tabMenuContainer" data-active="{$activeTabMenuItem}" data-store="activeTabMenuItem" id="pageTabMenuContainer">
<nav class="tabMenu">
<ul>
- <li><a href="{@$__wcf->getAnchor('general')}">{lang}wcf.acp.box.general{/lang}</a></li>
+ <li><a href="{@$__wcf->getAnchor('general')}">{lang}wcf.global.form.data{/lang}</a></li>
<li><a href="{@$__wcf->getAnchor('contents')}">{lang}wcf.acp.box.contents{/lang}</a></li>
<li><a href="{@$__wcf->getAnchor('pages')}">{lang}wcf.acp.box.pages{/lang}</a></li>
<li><a href="{@$__wcf->getAnchor('acl')}">{lang}wcf.acp.box.acl{/lang}</a></li>
<dl{if $errorField == 'name'} class="formError"{/if}>
<dt><label for="name">{lang}wcf.global.name{/lang}</label></dt>
<dd>
- <input type="text" id="name" name="name" value="{$name}" required autofocus class="long">
+ <input type="text" id="name" name="name" value="{$name}" required autofocus class="long" maxlength="255">
{if $errorField == 'name'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == 'cssClassName'} class="formError"{/if}>
<dt><label for="cssClassName">{lang}wcf.acp.box.cssClassName{/lang}</label></dt>
<dd>
- <input type="text" id="cssClassName" name="cssClassName" value="{$cssClassName}" class="long">
+ <input type="text" id="cssClassName" name="cssClassName" value="{$cssClassName}" class="long" maxlength="255">
{if $errorField == 'cssClassName'}
<small class="innerError">
{if $errorType == 'empty'}
<dl id="externalURLContainer"{if $errorField == 'externalURL'} class="formError"{/if}{if $linkType != 'external'} style="display: none;"{/if}>
<dt><label for="externalURL">{lang}wcf.acp.box.link.externalURL{/lang}</label></dt>
<dd>
- <input type="text" name="externalURL" id="externalURL" value="{$externalURL}" class="long">
+ <input type="text" name="externalURL" id="externalURL" value="{$externalURL}" class="long" maxlength="255">
{if $errorField == 'externalURL'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == 'title'} class="formError"{/if}>
<dt><label for="title0">{lang}wcf.acp.box.title{/lang}</label></dt>
<dd>
- <input type="text" id="title0" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long">
+ <input type="text" id="title0" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == 'title'|concat:$availableLanguage->languageID} class="formError"{/if}>
<dt><label for="title{@$availableLanguage->languageID}">{lang}wcf.acp.box.title{/lang}</label></dt>
<dd>
- <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long">
+ <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'|concat:$availableLanguage->languageID}
<small class="innerError">
{if $errorType == 'empty'}
<header class="contentHeader">
<div class="contentHeaderTitle">
- <h1 class="contentTitle">{if $action == 'add'}{if $isMultilingual}{lang}wcf.acp.page.addMultilingual{/lang}{else}{lang}wcf.acp.page.add{/lang}{/if}{else}{lang}wcf.acp.page.edit{/lang}{/if}</h1>
+ <h1 class="contentTitle">{if $action == 'add'}{lang}wcf.acp.page.add{/lang}{else}{lang}wcf.acp.page.edit{/lang}{/if}</h1>
</div>
<nav class="contentHeaderNavigation">
<div class="section tabMenuContainer" data-active="{$activeTabMenuItem}" data-store="activeTabMenuItem" id="pageTabMenuContainer">
<nav class="tabMenu">
<ul>
- <li><a href="{@$__wcf->getAnchor('general')}">{lang}wcf.acp.page.general{/lang}</a></li>
+ <li><a href="{@$__wcf->getAnchor('general')}">{lang}wcf.global.form.data{/lang}</a></li>
<li><a href="{@$__wcf->getAnchor('contents')}">{lang}wcf.acp.page.contents{/lang}</a></li>
- <li><a href="{@$__wcf->getAnchor('boxes')}">{lang}wcf.acp.page.boxes{/lang}</a></li>
+ <li><a href="{@$__wcf->getAnchor('boxes')}">{lang}wcf.acp.box.list{/lang}</a></li>
{if $action != 'edit' || $page->pageType != 'system'}
- <li><a href="{@$__wcf->getAnchor('acl')}">{lang}wcf.acp.page.acl{/lang}</a></li>
+ <li><a href="{@$__wcf->getAnchor('acl')}">{lang}wcf.acl.access{/lang}</a></li>
{/if}
{event name='tabMenuTabs'}
<dl{if $errorField == 'name'} class="formError"{/if}>
<dt><label for="name">{lang}wcf.global.name{/lang}</label></dt>
<dd>
- <input type="text" id="name" name="name" value="{$name}" required autofocus class="long">
+ <input type="text" id="name" name="name" value="{$name}" required autofocus class="long" maxlength="255">
{if $errorField == 'name'}
<small class="innerError">
{if $errorType == 'empty'}
</dl>
<dl{if $errorField == 'parentPageID'} class="formError"{/if}>
- <dt><label for="parentPageID">{lang}wcf.acp.page.parentPageID{/lang}</label></dt>
+ <dt><label for="parentPageID">{lang}wcf.acp.page.parentPage{/lang}</label></dt>
<dd>
<select name="parentPageID" id="parentPageID"{if $action == 'edit' && $page->originIsSystem} disabled{/if}>
- <option value="0">{lang}wcf.acp.page.parentPageID.noParentPage{/lang}</option>
+ <option value="0">{lang}wcf.acp.page.parentPage.none{/lang}</option>
{foreach from=$pageNodeList item=pageNode}
<option value="{@$pageNode->pageID}"{if $pageNode->pageID == $parentPageID} selected{/if}>{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.parentPageID.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.parentPage.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
</dl>
<dl{if $errorField == 'applicationPackageID'} class="formError"{/if}>
- <dt><label for="applicationPackageID">{lang}wcf.acp.page.applicationPackageID{/lang}</label></dt>
+ <dt><label for="applicationPackageID">{lang}wcf.acp.page.application{/lang}</label></dt>
<dd>
<select name="applicationPackageID" id="applicationPackageID"{if $action == 'edit' && $page->originIsSystem} disabled{/if}>
{foreach from=$availableApplications item=availableApplication}
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.applicationPackageID.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.application.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
<dl{if $errorField == 'customURL_0'} class="formError"{/if}>
<dt><label for="customURL">{lang}wcf.acp.page.customURL{/lang}</label></dt>
<dd>
- <input type="text" id="customURL" name="customURL[0]" value="{if !$customURL[0]|empty}{$customURL[0]}{/if}" class="long">
+ <input type="text" id="customURL" name="customURL[0]" value="{if !$customURL[0]|empty}{$customURL[0]}{/if}" class="long" maxlength="255">
{if $errorField == 'customURL_0'}
<small class="innerError">
{if $errorType == 'empty'}
<dl{if $errorField == $__errorFieldName} class="formError"{/if}>
<dt><label for="customURL{@$availableLanguage->languageID}">{lang}wcf.acp.page.customURL{/lang} ({$availableLanguage->languageName})</label></dt>
<dd>
- <input type="text" id="customURL{@$availableLanguage->languageID}" name="customURL[{@$availableLanguage->languageID}]" value="{if !$customURL[$availableLanguage->languageID]|empty}{$customURL[$availableLanguage->languageID]}{/if}" class="long">
+ <input type="text" id="customURL{@$availableLanguage->languageID}" name="customURL[{@$availableLanguage->languageID}]" value="{if !$customURL[$availableLanguage->languageID]|empty}{$customURL[$availableLanguage->languageID]}{/if}" class="long" maxlength="255">
{if $errorField == $__errorFieldName}
<small class="innerError">
{if $errorType == 'empty'}
{if !$isMultilingual && $pageType != 'system'}
<div class="section">
<dl{if $errorField == 'title'} class="formError"{/if}>
- <dt><label for="title">{lang}wcf.acp.page.title{/lang}</label></dt>
+ <dt><label for="title">{lang}wcf.global.title{/lang}</label></dt>
<dd>
- <input type="text" id="title" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long">
+ <input type="text" id="title" name="title[0]" value="{if !$title[0]|empty}{$title[0]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'}
<small class="innerError">
{if $errorType == 'empty'}
</dd>
</dl>
- <dl{if $errorField == 'metaKeywords'} class="formError"{/if}>
- <dt><label for="metaKeywords">{lang}wcf.acp.page.metaKeywords{/lang}</label></dt>
+ <dl{if $errorField == 'metaDescription'} class="formError"{/if}>
+ <dt><label for="metaDescription">{lang}wcf.acp.page.metaDescription{/lang}</label></dt>
<dd>
- <textarea name="metaKeywords[0]" id="metaKeywords">{if !$metaKeywords[0]|empty}{$metaKeywords[0]}{/if}</textarea>
- {if $errorField == 'metaKeywords'}
+ <input type="text" class="long" name="metaDescription[0]" id="metaDescription" value="{if !$metaDescription[0]|empty}{$metaDescription[0]}{/if}">
+ {if $errorField == 'metaDescription'}
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.metaKeywords.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.metaDescription.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
</dd>
</dl>
- <dl{if $errorField == 'metaDescription'} class="formError"{/if}>
- <dt><label for="metaDescription">{lang}wcf.acp.page.metaDescription{/lang}</label></dt>
+ <dl{if $errorField == 'metaKeywords'} class="formError"{/if}>
+ <dt><label for="metaKeywords">{lang}wcf.acp.page.metaKeywords{/lang}</label></dt>
<dd>
- <textarea name="metaDescription[0]" id="metaDescription">{if !$metaDescription[0]|empty}{$metaDescription[0]}{/if}</textarea>
- {if $errorField == 'metaDescription'}
+ <input type="text" class="long" name="metaKeywords[0]" id="metaKeywords" value="{if !$metaKeywords[0]|empty}{$metaKeywords[0]}{/if}">
+ {if $errorField == 'metaKeywords'}
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.metaDescription.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.metaKeywords.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
<div id="language{@$availableLanguage->languageID}" class="tabMenuContent">
<div class="section">
<dl{if $errorField == 'title'} class="formError"{/if}>
- <dt><label for="title{@$availableLanguage->languageID}">{lang}wcf.acp.page.title{/lang}</label></dt>
+ <dt><label for="title{@$availableLanguage->languageID}">{lang}wcf.global.title{/lang}</label></dt>
<dd>
- <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long">
+ <input type="text" id="title{@$availableLanguage->languageID}" name="title[{@$availableLanguage->languageID}]" value="{if !$title[$availableLanguage->languageID]|empty}{$title[$availableLanguage->languageID]}{/if}" class="long" maxlength="255">
{if $errorField == 'title'}
<small class="innerError">
{if $errorType == 'empty'}
</dd>
</dl>
- <dl{if $errorField == 'metaKeywords'} class="formError"{/if}>
- <dt><label for="metaKeywords{@$availableLanguage->languageID}">{lang}wcf.acp.page.metaKeywords{/lang}</label></dt>
+ <dl{if $errorField == 'metaDescription'} class="formError"{/if}>
+ <dt><label for="metaDescription{@$availableLanguage->languageID}">{lang}wcf.acp.page.metaDescription{/lang}</label></dt>
<dd>
- <textarea name="metaKeywords[{@$availableLanguage->languageID}]" id="metaKeywords{@$availableLanguage->languageID}">{if !$metaKeywords[$availableLanguage->languageID]|empty}{$metaKeywords[$availableLanguage->languageID]}{/if}</textarea>
- {if $errorField == 'metaKeywords'}
+ <input type="text" class="long" name="metaDescription[{@$availableLanguage->languageID}]" id="metaDescription{@$availableLanguage->languageID}" value="{if !$metaDescription[$availableLanguage->languageID]|empty}{$metaDescription[$availableLanguage->languageID]}{/if}">
+ {if $errorField == 'metaDescription'}
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.metaKeywords.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.metaDescription.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
</dd>
</dl>
- <dl{if $errorField == 'metaDescription'} class="formError"{/if}>
- <dt><label for="metaDescription{@$availableLanguage->languageID}">{lang}wcf.acp.page.metaDescription{/lang}</label></dt>
+ <dl{if $errorField == 'metaKeywords'} class="formError"{/if}>
+ <dt><label for="metaKeywords{@$availableLanguage->languageID}">{lang}wcf.acp.page.metaKeywords{/lang}</label></dt>
<dd>
- <textarea name="metaDescription[{@$availableLanguage->languageID}]" id="metaDescription{@$availableLanguage->languageID}">{if !$metaDescription[$availableLanguage->languageID]|empty}{$metaDescription[$availableLanguage->languageID]}{/if}</textarea>
- {if $errorField == 'metaDescription'}
+ <input type="text" class="long" name="metaKeywords[{@$availableLanguage->languageID}]" id="metaKeywords{@$availableLanguage->languageID}" value="{if !$metaKeywords[$availableLanguage->languageID]|empty}{$metaKeywords[$availableLanguage->languageID]}{/if}">
+ {if $errorField == 'metaKeywords'}
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
- {lang}wcf.acp.page.metaDescription.error.{@$errorType}{/lang}
+ {lang}wcf.acp.page.metaKeywords.error.{@$errorType}{/lang}
{/if}
</small>
{/if}
<div id="boxes" class="tabMenuContent">
<div class="section">
<dl{if $errorField == 'boxIDs'} class="formError"{/if}>
- <dt>{lang}wcf.acp.page.boxIDs{/lang}</dt>
+ <dt>{lang}wcf.acp.page.boxes{/lang}</dt>
<dd>
<ul class="scrollableCheckboxList">
{foreach from=$availableBoxes item=availableBox}
</div>
</div>
<script data-relocate="true">
- require(['WoltLab/WCF/Acp/Ui/Page/Add'], function(AcpUiPageAdd) {
+ require(['Language', 'WoltLab/WCF/Acp/Ui/Page/Add'], function(Language, AcpUiPageAdd) {
+ Language.addObject({
+ 'wcf.acp.page.add': '{lang}wcf.acp.page.add{/lang}'
+ });
+
AcpUiPageAdd.init('{link controller='PageAdd' encode=false}{literal}pageType={$pageType}&isMultilingual={$isMultilingual}{/literal}{/link}');
{if $showPageAddDialog}
<dl class="col-xs-12 col-md-4">
<dt></dt>
<dd>
- <input type="text" id="pageTitle" name="title" value="{$title}" placeholder="{lang}wcf.acp.page.title{/lang}" class="long">
+ <input type="text" id="pageTitle" name="title" value="{$title}" placeholder="{lang}wcf.global.title{/lang}" class="long">
</dd>
</dl>
<dd>
<label class="selectDropdown">
<select name="applicationPackageID" id="applicationPackageID">
- <option value="0">{lang}wcf.acp.page.applicationPackageID{/lang}</option>
+ <option value="0">{lang}wcf.acp.page.application{/lang}</option>
{foreach from=$availableApplications item=availableApplication}
<option value="{@$availableApplication->packageID}"{if $availableApplication->packageID == $applicationPackageID} selected{/if}>{$availableApplication->getAbbreviation()}: {$availableApplication->domainName}{$availableApplication->domainPath}</option>
{/foreach}
<dd>
<label class="selectDropdown">
<select name="pageType" id="pageType">
- <option value="">{lang}wcf.acp.page.pageType{/lang}</option>
- <option value="static"{if $pageType == 'static'} selected{/if}>{lang}wcf.acp.page.pageType.static{/lang}</option>
- <option value="system"{if $pageType == 'system'} selected{/if}>{lang}wcf.acp.page.pageType.system{/lang}</option>
+ <option value="">{lang}wcf.acp.page.type{/lang}</option>
+ <option value="text"{if $pageType == 'text'} selected{/if}>{lang}wcf.acp.page.type.text{/lang}</option>
+ <option value="html"{if $pageType == 'html'} selected{/if}>{lang}wcf.acp.page.type.html{/lang}</option>
+ <option value="tpl"{if $pageType == 'tpl'} selected{/if}>{lang}wcf.acp.page.type.tpl{/lang}</option>
+ <option value="system"{if $pageType == 'system'} selected{/if}>{lang}wcf.acp.page.type.system{/lang}</option>
</select>
</label>
</dd>
<th class="columnPageID{if $sortField == 'pageID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='PageList'}pageNo={@$pageNo}&sortField=pageID&sortOrder={if $sortField == 'pageID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
<th class="columnTitle columnName{if $sortField == 'name'} active {@$sortOrder}{/if}"><a href="{link controller='PageList'}pageNo={@$pageNo}&sortField=name&sortOrder={if $sortField == 'name' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.name{/lang}</a></th>
<th class="columnText columnURL" colspan="2">{lang}wcf.acp.page.url{/lang}</th>
+ <th class="columnText columnPageType{if $sortField == 'pageType'} active {@$sortOrder}{/if}"><a href="{link controller='PageList'}pageNo={@$pageNo}&sortField=pageType&sortOrder={if $sortField == 'pageType' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.page.type{/lang}</a></th>
<th class="columnDate columnLastUpdateTime{if $sortField == 'lastUpdateTime'} active {@$sortOrder}{/if}"><a href="{link controller='PageList'}pageNo={@$pageNo}&sortField=lastUpdateTime&sortOrder={if $sortField == 'lastUpdateTime' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.page.lastUpdateTime{/lang}</a></th>
{event name='columnHeads'}
{/if}
<a href="{link controller='PageEdit' id=$page->pageID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
{if $page->canDelete()}
- <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$page->pageID}" data-confirm-message="{lang}wcf.acp.page.delete.confirmMessage{/lang}"></span>
+ <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$page->pageID}" data-confirm-message-html="{lang __encode=true}wcf.acp.page.delete.confirmMessage{/lang}"></span>
{else}
<span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
{/if}
<td class="columnText columnURL">
{$page->getDisplayLink()}
</td>
+ <td class="columnText columnPageType">{lang}wcf.acp.page.type.{@$page->pageType}{/lang}</td>
<td class="columnDate columnLastUpdateTime">{@$page->lastUpdateTime|time}</td>
{event name='columns'}
$this->htmlInputProcessors[0] = new HtmlInputProcessor();
$this->htmlInputProcessors[0]->process($this->content[0], 'com.woltlab.wcf.article.content', 0);
}
-
}
/**
/**
* @inheritDoc
*/
- public $validSortFields = ['pageID', 'name', 'lastUpdateTime'];
+ public $validSortFields = ['pageID', 'name', 'lastUpdateTime', 'pageType'];
/**
* name
* page type
* @var string
*/
- public $pageType = 'static';
+ public $pageType = '';
/**
* list of available applications
if (!empty($this->applicationPackageID)) {
$this->objectList->getConditionBuilder()->add('page.applicationPackageID = ?', [$this->applicationPackageID]);
}
- if ($this->pageType == 'static') {
- $this->objectList->getConditionBuilder()->add('page.pageType IN (?, ?, ?)', ['text', 'html', 'tpl']);
- }
- else if ($this->pageType == 'system') {
- $this->objectList->getConditionBuilder()->add('page.pageType IN (?)', ['system']);
+ if (!empty($this->pageType)) {
+ $this->objectList->getConditionBuilder()->add('page.pageType = (?)', [$this->pageType]);
}
}
<item name="wcf.acp.article.author"><![CDATA[Autor]]></item>
<item name="wcf.acp.article.button.viewArticle"><![CDATA[Vorschau anzeigen]]></item>
<item name="wcf.acp.article.category"><![CDATA[Kategorie]]></item>
- <item name="wcf.acp.article.delete.confirmMessage"><![CDATA[Wollen Sie die den Artikel <span class="confirmationObject">{$article->getTitle()}</span> wirklich löschen?]]></item>
+ <item name="wcf.acp.article.delete.confirmMessage"><![CDATA[Wollen Sie den Artikel <span class="confirmationObject">{$article->getTitle()}</span> wirklich löschen?]]></item>
<item name="wcf.acp.article.enableComments"><![CDATA[Kommentare aktivieren]]></item>
<item name="wcf.acp.article.i18n"><![CDATA[Mehrsprachigkeit]]></item>
<item name="wcf.acp.article.i18n.none"><![CDATA[Einsprachiger Artikel]]></item>
<item name="wcf.acp.bbcode.wysiwygIcon.description"><![CDATA[Die Grafik muss sich im Verzeichnis wcf/icon/ befinden, alternativ kann ein <a href="{@$__wcf->getPath('wcf')}acp/dereferrer.php?url=http%3A%2F%2Ffontawesome.io%2Ficons%2F">FontAwesome</a>-Icon genutzt werden, z.B. „fa-caret-square-o-up“.]]></item>
</category>
+ <category name="wcf.acp.box">
+ <item name="wcf.acp.box.list"><![CDATA[Boxen]]></item>
+ </category>
+
<category name="wcf.acp.cache">
<item name="wcf.acp.cache.button.clear"><![CDATA[Cache leeren]]></item>
<item name="wcf.acp.cache.clear.sure"><![CDATA[Wollen Sie den Cache wirklich komplett leeren?]]></item>
<item name="wcf.acp.package.validation.failed"><![CDATA[Das hochgeladene Paket kann nicht installiert werden, bitte beachten Sie das unten stehende Prüfungsergebnis.]]></item>
</category>
+ <category name="wcf.acp.page">
+ <item name="wcf.acp.page.add"><![CDATA[Seite hinzufügen]]></item>
+ <item name="wcf.acp.page.application"><![CDATA[App]]></item>
+ <item name="wcf.acp.page.boxes"><![CDATA[Ausgewählte Boxen auf dieser Seite anzeigen]]></item>
+ <item name="wcf.acp.page.button.viewPage"><![CDATA[Vorschau anzeigen]]></item>
+ <item name="wcf.acp.page.content"><![CDATA[Inhalt]]></item>
+ <item name="wcf.acp.page.contents"><![CDATA[Inhalte]]></item>
+ <item name="wcf.acp.page.customURL"><![CDATA[Individuelle URL]]></item>
+ <item name="wcf.acp.page.customURL.error.invalid"><![CDATA[Sie haben eine ungültige URL eingegeben. TODO: add description]]></item>
+ <item name="wcf.acp.page.customURL.error.notUnique"><![CDATA[Diese URL wird bereits von einer anderen Seite verwendet.]]></item>
+ <item name="wcf.acp.page.delete.confirmMessage"><![CDATA[Wollen Sie die Seite <span class="confirmationObject">{$page->name}</span> wirklich löschen?]]></item>
+ <item name="wcf.acp.page.edit"><![CDATA[Seite bearbeiten]]></item>
+ <item name="wcf.acp.page.i18n"><![CDATA[Mehrsprachigkeit]]></item>
+ <item name="wcf.acp.page.i18n.i18n"><![CDATA[Mehrsprachige Seite]]></item>
+ <item name="wcf.acp.page.i18n.none"><![CDATA[Einsprachige Seite]]></item>
+ <item name="wcf.acp.page.isLandingPage"><![CDATA[Seite ist Startseite]]></item>
+ <item name="wcf.acp.page.isDisabled"><![CDATA[Seite deaktivieren]]></item>
+ <item name="wcf.acp.page.lastUpdateTime"><![CDATA[Letzte Aktualisierung]]></item>
+ <item name="wcf.acp.page.list"><![CDATA[Seiten]]></item>
+ <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.parentPage"><![CDATA[Übergeordnete Seite]]></item>
+ <item name="wcf.acp.page.parentPage.none"><![CDATA[Keine]]></item>
+ <item name="wcf.acp.page.type"><![CDATA[Seiten-Typ]]></item>
+ <item name="wcf.acp.page.type.html"><![CDATA[HTML]]></item>
+ <item name="wcf.acp.page.type.system"><![CDATA[System]]></item>
+ <item name="wcf.acp.page.type.text"><![CDATA[Text]]></item>
+ <item name="wcf.acp.page.type.tpl"><![CDATA[Template]]></item>
+ <item name="wcf.acp.page.url"><![CDATA[URL]]></item>
+ </category>
+
<category name="wcf.acp.paidSubscription">
<item name="wcf.acp.paidSubscription.list"><![CDATA[Bezahlte Mitgliedschaften]]></item>
<item name="wcf.acp.paidSubscription.add"><![CDATA[Mitgliedschaft hinzufügen]]></item>
<item name="wcf.acp.bbcode.wysiwygIcon.description"><![CDATA[The image must be placed inside the directory wcf/icon/ or use a <a href="{@$__wcf->getPath('wcf')}acp/dereferrer.php?url=http%3A%2F%2Ffontawesome.io%2Ficons%2F">FontAwesome</a>-icon, e.g. “fa-caret-square-o-up”.]]></item>
</category>
+ <category name="wcf.acp.box">
+ <item name="wcf.acp.box.list"><![CDATA[Boxes]]></item>
+ </category>
+
<category name="wcf.acp.cache">
<item name="wcf.acp.cache.button.clear"><![CDATA[Clear Cache]]></item>
<item name="wcf.acp.cache.clear.sure"><![CDATA[Do you really want to clear the cache?]]></item>
<item name="wcf.page.onlineLocation.com.woltlab.wcf.User"><![CDATA[User profile of <a href="{link controller='User' object=$user}{/link}" class="userLink" data-user-id="{@$user->userID}">{$user->username}</a>]]></item>
</category>
+ <category name="wcf.acp.page">
+ <item name="wcf.acp.page.add"><![CDATA[Add Page]]></item>
+ <item name="wcf.acp.page.application"><![CDATA[App]]></item>
+ <item name="wcf.acp.page.boxes"><![CDATA[Display the Selected Boxes on This Page]]></item>
+ <item name="wcf.acp.page.button.viewPage"><![CDATA[Show Preview]]></item>
+ <item name="wcf.acp.page.content"><![CDATA[Content]]></item>
+ <item name="wcf.acp.page.contents"><![CDATA[Contents]]></item>
+ <item name="wcf.acp.page.customURL"><![CDATA[Custom URL]]></item>
+ <item name="wcf.acp.page.customURL.error.invalid"><![CDATA[URL is invalid. TODO: add description]]></item>
+ <item name="wcf.acp.page.customURL.error.notUnique"><![CDATA[URL is already in use.]]></item>
+ <item name="wcf.acp.page.delete.confirmMessage"><![CDATA[Do you really want to delete the page <span class="confirmationObject">{$page->name}</span>?]]></item>
+ <item name="wcf.acp.page.edit"><![CDATA[Edit Page]]></item>
+ <item name="wcf.acp.page.i18n"><![CDATA[Multilingualism]]></item>
+ <item name="wcf.acp.page.i18n.i18n"><![CDATA[Monolingual page]]></item>
+ <item name="wcf.acp.page.i18n.none"><![CDATA[Multilingual page]]></item>
+ <item name="wcf.acp.page.isLandingPage"><![CDATA[Landing page]]></item>
+ <item name="wcf.acp.page.isDisabled"><![CDATA[Disable page]]></item>
+ <item name="wcf.acp.page.lastUpdateTime"><![CDATA[Last Change]]></item>
+ <item name="wcf.acp.page.list"><![CDATA[Pages]]></item>
+ <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.parentPage"><![CDATA[Parent Page]]></item>
+ <item name="wcf.acp.page.parentPage.none"><![CDATA[None]]></item>
+ <item name="wcf.acp.page.type"><![CDATA[Page Type]]></item>
+ <item name="wcf.acp.page.type.html"><![CDATA[HTML]]></item>
+ <item name="wcf.acp.page.type.system"><![CDATA[System]]></item>
+ <item name="wcf.acp.page.type.text"><![CDATA[Text]]></item>
+ <item name="wcf.acp.page.type.tpl"><![CDATA[Template]]></item>
+ <item name="wcf.acp.page.url"><![CDATA[URL]]></item>
+ </category>
+
<category name="wcf.paidSubscription">
<item name="wcf.paidSubscription.availableSubscriptions"><![CDATA[Available Subscriptions]]></item>
<item name="wcf.paidSubscription.purchasedSubscriptions"><![CDATA[Purchased Subscriptions]]></item>