I present a global hack for structuring additional fields as categories, without the prefix xfsearch, as well as writing a handler for displaying description fields on these pages.
I've seen a lot of hacks on this topic, but they were all wrong.
What is it :
Previously, the links of additional fields (well, now) have this type: site.com/xfsearch/year/2016 / and now it will be site.com/year/2016 / or site.com/2016 / and there will be no conflict with the categories!
Attention: only if the alternative name of the additional field does not match the alternative name of the category, then the category and not the news on the additional field will be displayed.
So far, only for DLE 11.x and higher.
In addition, we will add 3 tags for text processing on these pages :
1. [xf:the value of the additional field]text[/xf] - displays a text on the page of the additional field that will have a link site.com/value
2. [xf:year]text {xf}[/xf] - displays on the page additional fields text that will have a link site.com/year/value and it will also replace {xf} with the resulting value of this field
3. [xf:year:xf]text {xf}[/xf] - displays on the page additional fields text that will have a link site.com/year/value and it will also replace {xf} with the specified value