potz1024
Unique filters for same table in multiple locations
Thanks @LeandroFerreira.
Apologies, I realised I wasn't clear in my question. Yes, I am using the same table, by calling the static table method of the Product resource from within my relation manager.
And I think this is part of my issue, because I'm using the same table definition, I have the same filters. But if filters are set on the table on my Product page, then the same filters will be set in the relation on my Orders page. Ideally I don't want these filters linked.
E.g. let's say I have an 'available' toggle filter on my Product table, and that toggle has been set to true on the Products page, then when you navigate to the orders page, that same filter will be applied. :wq
And I think this is part of my issue, because I'm using the same table definition, I have the same filters. But if filters are set on the table on my Product page, then the same filters will be set in the relation on my Orders page. Ideally I don't want these filters linked.
E.g. let's say I have an 'available' toggle filter on my Product table, and that toggle has been set to true on the Products page, then when you navigate to the orders page, that same filter will be applied. :wq
5 replies
HTML with colour in TextColumn description
Thanks all for assistance with this, I now have it working.
I think part of my issue was after originally installing filament a few days ago, I ignored an 'npm run dev' error which stated 'dev' wasn't an available script. Turns out I didn't have a 'vite' setup, or a 'tailwind.config.js' file. Not sure why this was, maybe because my project is a couple of years old and was originally built on Laravel 10 (maybe 9) before upgrading.
Anyway, after setting up tailwind and vite, and running 'npm run dev', inclusion of these colours started to be recognised and working.
:wq
9 replies
Relation Manager placement on resources
Update: I have found this pluging which so far has worked perfectly and allow much greater flexibility in terms of relation manager placement within Infolists:
https://packagist.org/packages/njxqlus/filament-relation-manager-component
:wq
3 replies