Page 1 of 2

Webmin + CSF

Posted: 19 Aug 2017, 15:09
by Ilia
Dear developers,

Webmin is switching to SPA. We need to inject certain triggers for module to operate correctly.

At the moment we have in CSF the ability to inject stuff into head section and before the closing tag (footer).

We also need the ability to add `data-*` attributes to `<html>` tag and most importantly ability to inject tags/containers into the body tag.

Is this possible that you could add to the next version 10.23 mentioned hooks as well, along to other Custom styling, i.e. to existing `csf.header` and `csf.footer`, add something like `csf.body` and `csf.htmldata`, please?

Re: Webmin + CSF

Posted: 24 Aug 2017, 18:18
by Ilia
Is this possible to add?

Re: Webmin + CSF

Posted: 24 Aug 2017, 18:26
by ForumAdmin
We will look at adding the functionality when csf next comes up for modification.

Re: Webmin + CSF

Posted: 25 Aug 2017, 11:17
by Ilia
Thank you.

Re: Webmin + CSF

Posted: 04 Sep 2017, 12:27
by Ilia
Thank you very much for the update.

One question though. On read me you state:
On non-cPanel servers, added csf.htmltag and csf.bodytag files to UI skinning (STYLE_CUSTOM)
What about adding anything in the <body>, like a container <div id="container"><div id="subcontainer">.

I suppose it's not there yet?

At the same time, using csf.footer will be possible to close those starting tags mentioned above.

Adding additional wrappers into <body> is very important and makes things impossible to style fully.

Could you please also add csf.bodycontent or something?

Re: Webmin + CSF

Posted: 09 Sep 2017, 10:05
by ForumAdmin
This has been added in v10.24

Re: Webmin + CSF

Posted: 09 Sep 2017, 12:01
by Ilia
Absolutely fantastic. Thanks! <3

Re: Webmin + CSF

Posted: 11 Sep 2017, 11:25
by Ilia
Everything it's purely fantastic. I only found one serious obstacle, which is in Configuration Page.

In your `/usr/local/csf/lib/csf.div` you have right at the top:

Code: Select all

document.write ...
When using AJAX calls you can't use `document.write` after the page stopped loading (https://stackoverflow.com/questions/23 ... sing-ajax). In our case, it always stopped, because of SPA model, and doing it destroys the whole page completely.

Could you please move this part to `configserver.css` ?

Re: Webmin + CSF

Posted: 11 Sep 2017, 13:27
by Ilia
One more thing,

Search System Logs/Select for log file name (id="CSFlognum") doesn't seem to need to trigger `CSFrefreshtimer()`.

If it's triggered, then it would cause fatal error because there is no such element on this page. ;)

Re: Webmin + CSF

Posted: 15 Sep 2017, 10:00
by Ilia
10.25 is perfect - thank you. When I release next theme version I'll send you the link to take a look. ;)