Timeline for Use com_ajax with a custom field
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2021 at 14:20 | comment | added | thednp | I managed to get this going, I'm marking this as answered. Thank you | |
Mar 8, 2021 at 13:55 | vote | accept | thednp | ||
Mar 8, 2021 at 8:45 | comment | added | thednp |
I'm now getting scss-compile1.js:16 GET index.php?option=com_ajax&template=cassiopeia&method=scssResponse&format=raw 500 (Internal Server Error)
|
|
Mar 8, 2021 at 8:07 | comment | added | thednp |
I believe it has to do with the fact that my scripts don't get loaded. Lemme investigate. Yes indeed Uri::root .
|
|
Mar 8, 2021 at 7:44 | comment | added | thednp |
Just to pass some time I've given this a try, (I removed the namespace, moved my field to fields, addfileldpath...). The same thing, my scssResponseAjax should return "Hello World", but it still does the same thing.
|
|
Mar 5, 2021 at 19:54 | comment | added | thednp | Thanks man, much appreciated. I would suggest we wait and let them handle all those nasty inter-dependent PRs. I think it's a waste of time to deal with this at this point, but we MUST contribute to the Joomla GIT with testing and PRs. I've heard you like my color-picker ;) | |
Mar 5, 2021 at 19:51 | comment | added | Lodder | If you commit your code, I can clone your repo and check what you have so far | |
Mar 5, 2021 at 19:48 | comment | added | thednp |
It's not possible you got the CSS content, the compiler is incomplete without an importer to handle all @import . Or do you mean your setup works which is slightly different implementation perhaps.
|
|
Mar 5, 2021 at 19:15 | comment | added | Lodder | Hmm well it was working perfect fine for me. I got the CSS output. It doesn't need anything preloaded, but yeah the namespace thing is probably your issue at the moment. I haven't namespaced my template | |
Mar 5, 2021 at 18:57 | comment | added | thednp | I think this has to be related to github.com/joomla/joomla-cms/pull/32291 and my commit github.com/joomla/joomla-cms/pull/30816 | |
Mar 5, 2021 at 18:43 | comment | added | thednp |
For some reason, on click it throws me out of the template style panel after "thinking" a bit, for sure that sass.compile you got there won't work with sass.js, it needs the data pre-loaded, which is what is missing from my above PHP and added here github.com/thednp/scss-wasm-compile/blob/master/templates/…. Basically I've added all those class functions to TplCassiopeiaHelper and setup() is now init() . I'm executing init() then concatContent then return it. But can't get any response anywhere for now. Researching...
|
|
Mar 5, 2021 at 16:31 | comment | added | thednp | Thanks man. I'm finishing some commit to Joomla and will get back to this. I will provide feeedback asap. Cheers! | |
Mar 5, 2021 at 15:04 | history | answered | Lodder | CC BY-SA 4.0 |