?
avatar franz-wohlkoenig
franz-wohlkoenig
23 Dec 2016

Steps to reproduce the issue

Open a Field, go Tab "Options": "Automatic Display" don't show Value of "Use Global"
field-use-global

Expected result

Show i.E "Use Global (After Title)"

Actual result

Show "Use Global"

System information (as much as possible)

Joomla! 3.7.0-alpha1
PHP 7.0.4
MySQLi 5.5.53-0+deb7u1

avatar franz-wohlkoenig franz-wohlkoenig - open - 23 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 23 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Dec 2016
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Dec 2016
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 23 Dec 2016
avatar Bakual
Bakual - comment - 23 Dec 2016

Hehe, people already expect that little feature to work everywhere ?

It doesn't work here because the global value is set in the "System - Fields" plugin. So the standard lookup in the component options (com.fields in this case) doesn't work.
There are two possible solutions:

  • Create a custom formfield for the "Automatic Display" parameter which then looks up the correct global value in the plugin params
  • Move the global value to com_fields component settings. However since com_fields currently doesn't have any own settings that needs a bit of redesign.
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Dec 2016

You're right, cause that little feature helps ;-)

I can live with it as it is an expected behavior. Thanks for suggested solutions, buth they are a way above my knowledge.

@Bakual i close this issue?

avatar Bakual
Bakual - comment - 23 Dec 2016

I can do it for sure. That is no problem. Lets keep this issue open.

@laoneo Do you think we will move that parameter around or is it save to create a custom field here?

avatar laoneo
laoneo - comment - 23 Dec 2016

Correctly it would belong to each component options. For example on in the articles component it would belong to the "Article" settings. It will become interesting when we start to implement custom fields for categories. Then you basically need two settings one of categories and one for articles. At the moment I don't have a valid clue where to put it correctly and how to implement it. What I know is that the setting in the system plugin is on the wrong place.

avatar Bakual
Bakual - comment - 23 Dec 2016

It gets a bit tedious if you have to add it to each component.

avatar brianpeat
brianpeat - comment - 25 Jan 2017

I agree that putting it in the plugin is the wrong place. No regular user would ever stumble on that. I think even though it's more work, it really should be added to every component that can use fields. Let's not half ass this thing, the end users won't react well to it, trust me.


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

avatar laoneo
laoneo - comment - 26 Jan 2017

For me I would put it also on every component. If a component doesn't implement it, then we still can inherit it from the plugin.

avatar Bakual
Bakual - comment - 26 Jan 2017

If it's only that single parameter, then I agree. But I foresee there will be more in future.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jan 2017

@Bakual you foresee right.

avatar brianpeat
brianpeat - comment - 27 Jan 2017

The problem is, if we leave it as is, ALL components get the same global, so you can't set one component to always put the fields under the title and another to put them after the article. It also sets up a bad experience for users. It's like "Hey, ALL the other global settings are in the component, but we put these in the plugin where you'll never find them"


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

avatar Bakual
Bakual - comment - 27 Jan 2017

Sure, but what happens if we add another parameter? Global functionality would be broken until all extensions update their options. Which is certainly not a good experience either. And then most likely not all extensions add it at the same position. It will become a big mess. Architecturally it's wrong as well as they are com_fields (or more precise fields plugin) options. The extension doesn't do anything with it.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Jan 2017

It makes wondering why in one part of Joomla are "Options (Global)", on other not. Users cant know why (Devs. know). I understand, that its not possible now, but it should be a goal.

avatar Bakual
Bakual - comment - 27 Jan 2017

Showing the global value from the plugin options (eg "Use Global (Show)") is possible. It just needs an own formfield for the parameter but that is easy to do.
We could also add a hint as to where to find the global setting (eg add it in the tooltip of the parameter).

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Jan 2017

Its helping to show "Use Global ("Value") where its possible, thanks @Bakual.

avatar laoneo
laoneo - comment - 27 Jan 2017

For 3.7 I guess we make it simple and do remove the from global option, it just confuses too many people. PR #13773 defaults the value to "before display" and removes the option from the plugin.

avatar laoneo
laoneo - comment - 27 Jan 2017

What yuo guys think?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Jan 2017

better remove than show Options they look different to other Joomla-Parts.

avatar Bakual Bakual - change - 27 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-27 19:18:34
Closed_By Bakual
avatar Bakual
Bakual - comment - 27 Jan 2017

Yeah that works as well. Closing as we have a PR

avatar Bakual Bakual - close - 27 Jan 2017

Add a Comment

Login with GitHub to post a comment