Re: 検索ブロックのカスタマイズ

2016年9月9日 at 20:00

表示できました。

------------------ここから下
$ipl = new \Concrete\Core\Page\PageList();
if($this->baseSearchPath != '') {
$ipl->filterByPath($this->baseSearchPath);
}
$ipl->filterByPageTypeHandle('infomation');
$pagination = $ipl->getPagination();
$do_search=1;
$results = $pagination->getCurrentPageResults();
------------------ここまで

$do_search=1というのは、下で結果を表示させる分岐に
if (isset($do_search) && $do_search) {

}
があって強制的に値をセットしました。これで問題ないのでしょうか?