DisplayMode judgement cannot be extensible
Author: infofromcaCreated Sep 5, 2026Updated Sep 17, 2026
Describe the bug
if a new Module extend TaxonomyField with a new DisplayMode , (supposed called Links,) !string.Equals(d, "Tags", StringComparison.OrdinalIgnoreCase) will be not accurate
Orchard Core version
Latest main (maybe all)
To Reproduce
- Go to
line 60 of Startup.cs
.UseDisplayDriver<TaxonomyFieldDisplayDriver>(d => !string.Equals(d, "Tags", StringComparison.OrdinalIgnoreCase))Expected behavior
it should be like .UseDisplayDriver<TextFieldDisplayDriver>() for "Default" one,
otherwise .UseDisplayDriver<TextFieldDisplayDriver>() will not be extensible
Logs and screenshots
Source: OrchardCMS/OrchardCore