Discussed in #3323
Originally posted by mikegrogan July 21, 2026
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:
- Should I be user superlinkto()? I can dump out core and see the linkto() function but in trying to override it I get http 500 errors, among other things
- Where should I be making this tweak? app/controllers/controller.cfc? app/global/functions.cfm? app/views/helpers.cfm?
I know this is probably an easier question. Thanks for any help if someone has done something similar.
Discussed in #3323
Originally posted by mikegrogan July 21, 2026
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.