Override/enhance controller/view functions #3323
Replies: 2 comments
|
Good question — and you've hit a real rough edge, so let me untangle it. Everything below is copy-paste-tested against 4.0.x (develop). Why
|
|
Good question — and you've hit a real rough edge, so let me untangle it. Everything below is copy-paste-tested against 4.0.x (develop). Why
|
Uh oh!
There was an error while loading. Please reload this page.
Since plugins are going away eventually I'm trying to replace jsconfirm (https://forgebox.io/view/cfwheels-js-confirm) with something directly in my app code. Doesn't seem like it needs to be a package.
I'm trying to figure out the best approach to overriding the linkto() function.
I see this https://guides.wheels.dev/v3-0-0/working-with-wheels/overriding-core-methods/ talking about using something like superlinkto(). In reviewing some of the vendor code it doesn't seem like that only applies to models. Either way, I'm having trouble getting anything to work. Even tried some Google Gemini help.
To enhance the linkto() and buttonto() built in functions with a js confirmation:
I know this is probably an easier question. Thanks for any help if someone has done something similar.
All reactions