Skip to:

Opened 4 months ago

Last modified 3 weeks ago

#8137 new enhancement

Allow overriding field autolinking from field type

Reported by: sbrajesh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Extended Profile Keywords: good-first-bug has-patch
Cc: sbrajesh


Currently, The auto linking is not controllable from field type(unless you hack around it and meta).

Not all fields are auto linkable(example, oembed, role etc ).

There should be a simple way to allow developers either toggle support for auto linking in admin(type supports check?) or atleast disable the filtering on the front end.
We can add a new method or field on the field type class to check if we should auto link or not.

It is feasible to disable but there is no direct way. Can we make it simple?

Thank you

Attachments (1)

8137.diff (699 bytes) - added by sbrajesh 3 weeks ago.
Filter do_autolink for xprofile field.

Download all attachments as: .zip

Change History (6)

#1 @sbrajesh
4 months ago

Or may be even adding a filter in the


which passes the field id or object will suffice.

Thank you

#2 @boonebgorges
4 months ago

  • Component changed from Core to Extended Profile
  • Keywords needs-patch good-first-bug added

Yes, we can probably do both of these - a property on Field_Type objects as registered in plugins, and a filter. Can you suggest a patch?

#3 @sbrajesh
4 months ago

Thank you for the prompt reply. Sure, I will love to.

Since these two approaches are not mutually exclusive, I guess, we will need 2 different patches ?
Should I add the filter first and then the other one?

Thank you

Last edited 4 months ago by sbrajesh (previous) (diff)

#4 @boonebgorges
4 months ago

One or two patches, either way. Thank you!

#5 @sbrajesh
3 weeks ago

  • Keywords has-patch added; needs-patch removed

Thank you. My apologies for the delay.
Please find the patch with the filter for do autolink.

3 weeks ago

Filter do_autolink for xprofile field.

Note: See TracTickets for help on using tickets.