kwatman
kwatman
Explore posts from servers
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
thanks for all the help @zeezo887 .
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
i found it. i checked the _block_editor.blade.php file and it looked like this:
@unless($withoutSeparator)
<hr/>
@endunless

<a17-blocks title="{{ $label }}"
@if ($renderForBlocks) :editor-name="nestedEditorName('{{ $name }}')" @else editor-name="{{ $name }}" @endif
trigger="{{ $trigger }}" :is-settings="{{ (bool) $isSettings ? 'true' : 'false' }}">
</a17-blocks>

@push('extra_css')
<style>
.editorPreview__item {
min-height: 30px !important;
}

</style>
@endpush

@push('vuexStore')
window['{{ config('twill.js_namespace') }}'].STORE.form.availableBlocks['{{ $name }}'] =
{!! json_encode(array_values($allowedBlocks)) !!}
window['{{ config('twill.js_namespace') }}'].STORE.form.editorNames.push({!! json_encode($editorName) !!})
@endpush

@pushonce('vuexStore:block_editor')
@include('twill::partials.form.utils._block_editor_store')
@endpushonce
@unless($withoutSeparator)
<hr/>
@endunless

<a17-blocks title="{{ $label }}"
@if ($renderForBlocks) :editor-name="nestedEditorName('{{ $name }}')" @else editor-name="{{ $name }}" @endif
trigger="{{ $trigger }}" :is-settings="{{ (bool) $isSettings ? 'true' : 'false' }}">
</a17-blocks>

@push('extra_css')
<style>
.editorPreview__item {
min-height: 30px !important;
}

</style>
@endpush

@push('vuexStore')
window['{{ config('twill.js_namespace') }}'].STORE.form.availableBlocks['{{ $name }}'] =
{!! json_encode(array_values($allowedBlocks)) !!}
window['{{ config('twill.js_namespace') }}'].STORE.form.editorNames.push({!! json_encode($editorName) !!})
@endpush

@pushonce('vuexStore:block_editor')
@include('twill::partials.form.utils._block_editor_store')
@endpushonce
looking in the twill source code i could see that the last aprt needed to be:
@pushOnce('vuexStore', 'form:block_editor')
@include('twill::partials.form.utils._block_editor_store')
@endPushOnce
@pushOnce('vuexStore', 'form:block_editor')
@include('twill::partials.form.utils._block_editor_store')
@endPushOnce
change it back to that fixed the issue. looks like the dev before me made some changes to the file.
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
No description
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
after checking i see that this happens everywhere on the site where a block editor is used. not just with the product model i made
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
So if undersatnd it correctly then the blocks get passed to the page but it does not laod them in the javascript object. is there somthing that happens between these steps ? i was not to original developer of this project so maybe the original developer hooked into a step that happens during the loading of the page and does something there that fucks it up? is that possible in twill ?
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
No description
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
No description
14 replies
TCTwill CMS
Created by kwatman on 8/20/2024 in #👊support
Block editor not showing saved content.
No description
14 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
the $query->withSum('rides', 'distance) fixed the problem. thanks for helping. But its weird that it is not doing it automatically for me.
13 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
it indeed misses it.
select * from `users` order by `rides_sum_distance` desc
select * from `users` order by `rides_sum_distance` desc
13 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
No description
13 replies