FEATURE: add base support for displaying multiple pages on one-page template

This commit is contained in:
Michal Kváček
2016-09-24 01:53:43 +02:00
parent 7cd084e621
commit b15bbae037
13 changed files with 181 additions and 31 deletions
@@ -77,6 +77,13 @@ class SetHomepage extends Controller
*/
public function addPage($id)
{
$page = Content::findOrFail($id);
if ($page->is_template) {
return redirect()
->back()
->with('error', trans('template::admin/setHomepage.cannotSetHomepageAsPartOfHomepage'));
}
// try to get page config
$settingsEntry = \App\Models\Settings::where('key', OnePage::HOMEPAGE_PAGES_SETTINGS_KEY)