Re: 記事にカスタムテンプレートを指定すると、concrete5のシステム全部にテンプレートが適用される
2017年9月29日 at 2:26
view.php を下記の様に修正したら『記事』のみに適用出来ました。
なんだか無理やりの様な気がしますが合っているのでしょうか。
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$c = Page::getCurrentPage();
if (!$content && is_object($c) && $c->isEditMode()) {
?>
<div class="ccm-edit-mode-disabled-item"><?php echo t('Empty Content Block.')?> </div>
<?php
} else {
?>
<div class="content-text-h1"><?php echo $content ?></div>
<?php
}
Your post has been saved and will be published after approval by the forum moderator.