Back to Bootstrap 4 Page Builder Support

Slevin K.
Slevin K.

Hello

We try to save custom names for blocks in the right panel, but each time, it fails. Do you have a solution for that ? I think it's in a js file, but i don't know which one, otherwise we would have done it :)

Best,

Vladimir
Vladimir

Not sure if I understood the question correctly. But here is an example.

    CustomBlock.add('my-first-block', {
      label: 'First Block',
      category: 'My category',
      content: '<div class="my-block">This is a simple block</div>',
    });

    CustomBlock.add('my-second-block', {
      label: 'Second block',
      category: 'My category',
      content: '<div class="my-block">This is a simple block</div>',
    });

Slevin K.
Slevin K.

I was talking about this

When we click on save button, the custom name is not saved. Can you fix this please ?

Best, L

Slevin K.
Slevin K.

Hello,

do you have any news about this ?

best, L

Vladimir
Vladimir

I found the reason for this behavior. I think in the next few days I will fix it.

Vladimir
Vladimir

2.1.5 Added saving of layer names

Update plugin and check.

Slevin K.
Slevin K.

Thanks, but since the v2.1.5, it is impossible to save on front editor ,

i get this error Nom de fichier invalide : b4builder/pages/homepage.fr.htm. Les noms de fichiers ne peuvent contenir que des caractères alphanumériques, des tirets bas, des tirets et des points. Voici des exemples de noms de fichiers valides : page.htm, ma-page, sous_repertoire/nouvelle.page

Slevin K.
Slevin K.

FYI, i have changed those rows in ContentBuilder.php

$fileNameJSON = 'b4builder/' . $fileName;

by

$fileNameJSON = $fileName;

and it fixed the saving issue, but i can't rename blocks in panel, it does not save names.

Best L

Vladimir
Vladimir

2.1.6 fix

Update plugin and check.

Last updated

Vladimir
Vladimir

Slevin K. said:

FYI, i have changed those rows in ContentBuilder.php

$fileNameJSON = 'b4builder/' . $fileName;

by

$fileNameJSON = $fileName;

and it fixed the saving issue, but i can't rename blocks in panel, it does not save names.

Best L

Cause of error: https://github.com/octobercms/october/issues/1707

Had to store the component information elsewhere.

Slevin K.
Slevin K.

Hello, just to thank you ! the renaming is working good on block ! Good job !

Best L.

1-11 of 11