Back to Back To Front Support

eosinchen
eosinchen

I use Back To Front plugin, it match my requirement, thank you. But in Front page,there are a string "Demo use _list_container", how to prevent this string??

Linkonoid
Linkonoid

Hi! Yes, the plugin is very easy to use. Please delete _list_container file from "default" folder in backtofront component (this file was added to demonstrate the capabilities of the plugin in demo)

Last updated

Linkonoid
Linkonoid

Additional Information. All files in the "default" folder of the backtofront component are created in complete analogy with the controller files (with minor changes files, see the differences in the code). Ie, in the "default" folder you simply replace the standard widget file _list_container.htm (from modules/backend/widgets/lists/partials) to modify the display in full accordance with the OctoberCMS ideology on controller customization. You can create as many folders as you like for different component aliases (by default, the component's "default" folder is used).

Last updated

eosinchen
eosinchen

Linkonoid said:

Hi! Yes, the plugin is very easy to use. Please delete _list_container file from "default" folder in backtofront component (this file was added to demonstrate the capabilities of the plugin in demo)

Yes, after delete this file, the display is normal. Could you tell us how to use other files, such as _list_body_row.htm...? Thank you.

eosinchen
eosinchen

Linkonoid said:

Additional Information. All files in the "default" folder of the backtofront component are created in complete analogy with the controller files (with minor changes of 2-3 files, see the differences in the code). Ie, in the "default" folder you simply replace the standard widget file _list_container.htm (from modules/backend/widgets/lists/partials) to modify the display in full accordance with the OctoberCMS ideology on controller customization. You can create as many folders as you like for different component aliases (by default, the component's "default" folder is used).

I will try it, thank you.

Linkonoid
Linkonoid

eosinchen said:

Linkonoid said:

Additional Information. All files in the "default" folder of the backtofront component are created in complete analogy with the controller files (with minor changes of 2-3 files, see the differences in the code). Ie, in the "default" folder you simply replace the standard widget file _list_container.htm (from modules/backend/widgets/lists/partials) to modify the display in full accordance with the OctoberCMS ideology on controller customization. You can create as many folders as you like for different component aliases (by default, the component's "default" folder is used).

I will try it, thank you.

Sorry for "2-3 files" - all other files in this folder modifed, excludes index.htm. The changes relate to support for working with component aliases. These are very minimal changes. Otherwise, as I said earlier, there are practically no differences from working with standard controllers.

Last updated

Linkonoid
Linkonoid

Additional information. In this files minor changes:

  • data-request="onSave" ---> data-request="<?= $this->alias ?>::onSave"
  • href="<?= Backend::url('linkonoid/plugin/controller') ?>" ---> href="<?= $this->aliasUrl ?>"

Last updated

1-7 of 7