ifox
03/22/2022, 11:22 AMifox
03/22/2022, 11:22 AM24C Felix
03/22/2022, 11:23 AMkalle
03/22/2022, 12:32 PMHarings Rob
03/22/2022, 12:52 PMHarings Rob
03/22/2022, 12:53 PMKormi
03/22/2022, 2:32 PM'pages' => [
'title' => 'Pages',
'route' => 'admin.pages.pages.index',
'primary_navigation' => [
'pages' => [
'title' => 'Pages',
'module' => true,
],
'homepage' => [
'title' => 'Homepage',
'singleton' => true,
],
'markets' => [
'title' => 'Markets',
'module' => true,
],
'solutions' => [
'title' => 'Solutions',
'route' => 'admin.pages.solutions.index',
'secondary_navigation' => [
'solutions' => [
'title' => 'Pages',
'route' => 'admin.pages.solutions.index',
],
'callToActions' => [
'title' => 'Call to Action',
'module' => true,
],
'pageSolution' => [
'title' => 'Archive Page',
'route' => 'admin.pages.solutions.pageSolution.index',
// 'module' => true,
],
],
],
...
Route::group(['prefix' => 'pages'], function () {
Route::module('pages');
Route::singleton('homepage');
Route::module('solutions');
Route::group(['prefix' => 'solutions'], function () {
Route::singleton('pageSolution');
Route::module('callToActions');
});
Route::module('markets');
});
callToActions works
pageSolution return error** Route [admin.pages.solutions.pageSolution.index] not defined.**ifox
03/22/2022, 2:34 PM'singleton' => true without using 'route'Kormi
03/22/2022, 2:55 PMKormi
03/22/2022, 2:59 PMKormi
03/22/2022, 2:59 PMpboivin
03/22/2022, 3:03 PMform.blade.php like this :
@push('extra_css')
<style>
...
</style>
/* or */
<link rel="stylesheet" href="...">
@endpushKormi
03/22/2022, 3:23 PM@push('extra_css')
@if(app()->isProduction())
<link href="{{ twillAsset('css/custom.css') }}" rel="preload" as="style" crossorigin/>
@endif
@unless(config('twill.dev_mode', false))
<link href="{{ twillAsset('css/custom.css') }}" rel="stylesheet" crossorigin/>
@endunless
@endpushKormi
03/22/2022, 3:23 PMpboivin
03/22/2022, 4:11 PMhead view from Twill. Github seems down at the moment, but essentially you can copy
this file: vendor/area17/twill/views/partials/head.blade.php
to: resources/views/vendor/twill/partials/head.blade.php
Then add your custom styles below the @stack('extra_css') linepboivin
03/22/2022, 4:12 PMKormi
03/22/2022, 5:13 PMGvido Blue Fox
03/23/2022, 11:08 AMifox
03/23/2022, 11:14 AMcustomPermalink in your formData, or override getPermalinkBaseUrl().ifox
03/23/2022, 11:14 AMGvido Blue Fox
03/23/2022, 11:15 AMkalle
03/23/2022, 1:11 PMuser
03/23/2022, 1:48 PMphp
// form.blade.php
@extends('twill::layouts.form', [
'disableContentFieldset' => true,
])
@section('fieldsets')
<a17-fieldset id="content" title="Content" :open="false">
//...
</a17-fieldset>
@stopkalle
03/23/2022, 2:11 PMzoi
03/23/2022, 4:40 PMifox
03/24/2022, 12:36 AMHarings Rob
03/24/2022, 8:55 AMHarings Rob
03/24/2022, 8:56 AMifox
03/24/2022, 9:07 AMkalle
03/24/2022, 9:09 AM