? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
30 Aug 2017

Summary of Changes

Categories can also have a section. As the custom fields can be assigned to a category, sections need to be supported as well. To improve this situation, this pr makes a section check first to determine the categories for an extension.

Testing Instructions

  • Log in on the back end
  • Create two categories for articles
  • Create a custom field
  • Choose a category
  • Save the field

Expected result

All is working as expected.

Actual result

All is working as expected.

avatar joomla-cms-bot joomla-cms-bot - change - 30 Aug 2017
Category Administration com_fields Libraries
avatar laoneo laoneo - open - 30 Aug 2017
avatar laoneo laoneo - change - 30 Aug 2017
Status New Pending
avatar brianteeman
brianteeman - comment - 30 Aug 2017

When you say sections do you mean context?

avatar laoneo
laoneo - comment - 30 Aug 2017

You can also create categories for the extension (parameter in the url when managing the categories) with a section, like com_foo.bar (as it was in DPFields 1.x). Most components do use only the component name like com_foo as extension attribute.
So it is very likely that when an component uses a section in the category that this section is similar to the section of the context.

avatar brianteeman
brianteeman - comment - 30 Aug 2017

now i am really confused what a section is. In early versions of joomla a section was a parent to a category which is probably what is confusing me?

avatar laoneo
laoneo - comment - 30 Aug 2017

Probably. If you put into the browser the url /administrator/index.php?option=com_categories&extension=com_content.foo you can create a category for the section foo. This category will then not appear for normal article categories. This "feature" allows a component developer to create multiple categories for different use cases, which will not be shown all together.

avatar stutteringp0et
stutteringp0et - comment - 3 Sep 2017

com_fields supports this on the field level in administrator/com_fields/models/field.php allowing the developer to create within his component an XML file to extend the params of the field.

context=com_users.user translates to component=com_users section=user

the issue @brianteeman referenced is mine, trying to get this same functionality added to com_fields.groups

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Sep 2017

@stutteringp0et have #17850 to stay open or can it be closed?

avatar stutteringp0et
stutteringp0et - comment - 4 Sep 2017

@franz-wohlkoenig #17850 is a different issue

avatar laoneo laoneo - change - 13 Dec 2017
Labels Added: ?
avatar Bakual Bakual - test_item - 17 Dec 2017 - Tested successfully
avatar Bakual
Bakual - comment - 17 Dec 2017

I have tested this item successfully on 7a66465


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17769.

avatar roland-d
roland-d - comment - 9 Sep 2018

I have tested this item successfully on 7a66465

Before applying the PR I can see the normal content categories and after applying the PR I still see the normal content categories. The categories created in the content category sections are not shown as expected.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17769.

avatar roland-d roland-d - test_item - 9 Sep 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Sep 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 10 Sep 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 15 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-15 16:32:04
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 15 Sep 2018
avatar mbabker mbabker - merge - 15 Sep 2018

Add a Comment

Login with GitHub to post a comment