Here is a more detailed explanation of the behaviour when using sys_categories (see comment 1) and what this implies for editorial users:
Scenario:
- Define some sys_category named "foo"
- Edit page1 and set "foo" as the selected sys_category
- Edit page2 and set "foo" as the selected sys_category here as well
When I now use the list view and browse to the sysFolder where my sys_categories are stored the [Ref] column is empty (-) for the sys_category "foo".
Since sys_categories are defined bidirectional I edited that sys_category and it shows me the two pages in the tab "items". Switching back to the
list view and showing the "items" field via "Set fields" leads to the same result. The column "items" does NOT show the two pages, but instead it says "N/A".
The information seems to be stored the other way around. When I browse the pages in list view the [Ref] column says 1 for both page1 and page2, since I have
selected the category "foo" in both pages. This behaviour is due to the bidirectional implementation of sys_categories.
The TCA Reference says for MM_opposite_field: Bidirectional references only get registered once on the native side in "sys_refindex".
This seems to be exactly what is happening here, from the technical point of view everything is ok.
But:
With this implementation editorial users (and even admins) have no chance at all to find out if some sys_category is used or where it is used.
Additionally to that I can delete the sys_category "foo" without being warned that it is used somewhere!
From the logical/editorial point of view the implementation should be like in FAL I think. When I browse records in FAL list view the Ref column tells me exactly
if/how often that FAL item is used and when I click on the Ref number it tells me exactly where it is used. Deleting such an item leads to a warning that it is used.
The behaviour for sys_categories should be exactly the same.
The information that my category is used in two pages is there, otherwise the field "items" wouldn't show me the two pages when I edit that category.
The list view should take care about showing the correct number in [Ref] column and when someone clicks on that number it should trigger
the same dialog as in FAL showing the usage of that category. That would be a great improvement and help for any user.
The next step would be to make sure that the relations are recognized when someone deletes a category, there has to be a warning that it is used somewhere.
As said before the information is there, but it does not seem to be recognized/used.
I don't know why the behaviour here is different from FAL relation handling, maybe a design issue, maybe something technical.
Please let me know if you need any further information Andreas.