- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,420
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
My addon extends threads controller as well as xf_threads table and has its own route.
My goal is to "override" links to threads in all templates, for example:
Code:
So that conditionally, it can use the correct route and return the overridden link if the thread is the extended type.
I know I can use assertCanonicalUrl in the controller but wondering if I can take it a step further.
I think what I'll need to do is create a new event listener for...
My goal is to "override" links to threads in all templates, for example:
Code:
link('threads', $threads)
So that conditionally, it can use the correct route and return the overridden link if the thread is the extended type.
I know I can use assertCanonicalUrl in the controller but wondering if I can take it a step further.
I think what I'll need to do is create a new event listener for...
نام موضوع : router_public_setup to override buildLink/route?