Hot Control Examples

Hy

Are there any concrete examples of real cases of using hot control apart from those in the documentation. ?

Thanks

1 Like

Hey @ridha82,

In most cases, when a feature is mentioned in the documentation, you can usually find real implementations either in OctoberCMS’s core or in the test plugin.

If you search within the modules/* directory (in OctoberCMS v4, in this case), you’ll find several examples, such as:

  • modules/backend/assets/foundation/controls/searchinput/searchinput.js
  • modules/cms/formwidgets/pagefinder/assets/js/pagefinder.js
  • modules/backend/widgets/siteswitcher/assets/js/siteswitcher.js

…and a few others.

2 Likes

Hi Ridha,

We are very used to it and now using it everywhere. It is very convinient even for a small logical parts where you just need a one listener on a button, or a form submit with various dirrefent widgets beeing loaded using the observer. reCaptcha’s, Open str. maps, init bootstrap ui or any other.

This open’s up an server side SPA like experience =)

We found it a bit tricky though to have a permanent menus, but managed to solve it then staying in one language (visit our aabb . team website for example). Pda’s and mobile expirience is at top!

Best,
Max

2 Likes

Hi

@apinard @mrmax

Thank you for your feedback.

There are some more controls found in the commerce theme (coming soon):