Pauly
Pauly
TCTwill CMS
Created by Pauly on 3/8/2023 in #👊support
can't use Published, Draft, Trash filters on module index
@ifox.dev, sorry, I mean empty array (not empty string) in my admin controllers. I need a little more coffee....
10 replies
TCTwill CMS
Created by Pauly on 3/8/2023 in #👊support
can't use Published, Draft, Trash filters on module index
@ifox.dev, actually let me refine my response. I checked further that the querystring is being parsed by doing: dd(\Request::all()); When I do this, I get an empty array in my admin controllers. My front-end controllers, on the other hand, do show a correctly parsed querystring. But for some reason, it is coming across as empty string in my admin controllers. As I mentioned above, the querystring is visible in the Request object when you use getRequestUri(). I'm puzzled why the parsed querystring would be missing from the Request object but only in my Twill admin controllers.....
10 replies
TCTwill CMS
Created by Pauly on 3/8/2023 in #👊support
can't use Published, Draft, Trash filters on module index
@ifox.dev, thanks for the response what you're saying makes sense. To test, I tried overriding the index() method on my admin controller thusly: public function index($parentModuleId = null) { $uri = \Request::getRequestUri(); $query = parse_url($uri)['query']; dd($query); } When I do this, I see any querystrings included at the end of the URL dumped out. So the querystring is being successfully passed through to my admin controller. This is the same Laravel setup I have used for other applications and never had a problem with querystrings. It seems they are just being ignored by Twill for some reason.
10 replies
TCTwill CMS
Created by Pauly on 3/8/2023 in #👊support
can't use Published, Draft, Trash filters on module index
Hi @ifox.dev, sorry for the slow response, still running into this on all my modules. Here is the version info: PHP 8.1, Laravel 9, MySQL 8.0.26 I should also note that in addition to the filters not changing what's shown in the index, I have a module which I believe should allow sorting of the index. When I try to sort, the little arrow appears and flips, but again no change to what's shown in the index. I'm not sure how the "Search" field is supposed to behave, but again, it appears to have no effect on the index items listed. Thanks for your assistance.
10 replies
TCTwill CMS
Created by Pauly on 3/2/2023 in #👊support
medias XHR request with wrong scheme
Thank you for your assistance with this. I never did figure out what the root cause of the issue was, but I managed to get it to work by using: if (env('APP_ENV') === 'production'){URL::forceScheme('https');} One guess is that a handful of URLs are being generated not from the ENV (config) variables but some other way that was getting confused, possibly because I'm running this behind nginx in production. Just a theory but at least I am enjoy some Twill love now! Thanks again.
5 replies
TCTwill CMS
Created by Pauly on 3/2/2023 in #👊support
medias XHR request with wrong scheme
All other urls and requests are being correctly performed with https. Other than displaying images in the media library, everything else is working.
5 replies
TCTwill CMS
Created by Pauly on 3/2/2023 in #👊support
medias XHR request with wrong scheme
It's https
5 replies