FEATURE: add base support for displaying multiple pages on one-page template
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user