<td class="columnID columnPageID">{@$page->pageID}</td>
<td class="columnTitle columnName">{if $page->isLandingPage}<span class="icon icon16 fa-home jsTooltip" title="{lang}wcf.acp.page.isLandingPage{/lang}"></span> {/if}<a href="{link controller='PageEdit' id=$page->pageID}{/link}">{$page->name}</a></td>
<td class="columnText columnURL">
- {$page->getDisplayLink()}
+ {if $page->applicationPackageID === null}
+ <span class="icon icon16 fa-exclamation-triangle red"></span> <span>{lang}wcf.acp.page.application.error.missing{/lang}</span>
+ {else}
+ {$page->getDisplayLink()}
+ {/if}
</td>
<td class="columnText columnPageType">{lang}wcf.acp.page.type.{@$page->pageType}{/lang}</td>
<td class="columnDate columnLastUpdateTime">{@$page->lastUpdateTime|time}</td>
'forceFrontend' => true
]);
}
- else {
- return LinkHandler::getInstance()->getCmsLink($this->pageID);
+ else if ($this->applicationPackageID === null) {
+ // we cannot reliably generate a link for an orphaned page
+ return '';
}
+
+ try {
+ LinkHandler::getInstance()->getCmsLink($this->pageID);
+ }
+ catch (\Error $e) {
+ wcfDebug($this, $this->applicationPackageID);
+ }
+
+ return LinkHandler::getInstance()->getCmsLink($this->pageID);
}
/**
<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.application.error.missing"><![CDATA[Keine App festgelegt, Seite kann nicht angezeigt werden.]]></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>
<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.application.error.missing"><![CDATA[No app specified, page cannot be accessed.]]></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>