? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
11 Nov 2016

Summary of Changes

Currently, the "Compact List of tagged items" menu item type has a parameter called "# Items to List". It specifies the list limit.
In the tag model, the code is there to fall back to the list_limit value from the global configuration (see https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/models/tag.php#L213), however there is no option in the menu item which would allow that fallback.

This PR adds this option and removes the default value (otherwise you can't use the "Use Global" option).

Note: It's not possible to show the value from the global configuration since the parameter is named differently. In com_tags it is named display_num and the global one list_limit. We would have to renamed the parameter in com_tags to make it work, but that isn't B/C. Thus it's not possible.

Testing Instructions

Create a menu item of that type and make sure that parameter works as expected together with the List Limit parameter from the global configuration.

Documentation Changes Required

None

avatar Bakual Bakual - open - 11 Nov 2016
avatar Bakual Bakual - change - 11 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Nov 2016
Category com_tags Front End
avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Nov 2016

one question: can we replace the parameter and add an update query?

it would be something like this for mysql

UPDATE `#__menu`
SET `params` = REPLACE(`params`, '"display_num"', '"list_limit"')
WHERE `type` = 'component'
AND `link` LIKE '%option=com_tags&view=tag&layout=list%'
AND `params` LIKE '"display_num"'

or something like this needs to go to 4.0?

avatar Bakual
Bakual - comment - 12 Nov 2016

We could do something like this, but usually we don't mess with user settings.
Honestly I don't think it is important enough to make an exception and it can wait for 4.0 to change that.

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Nov 2016

agree can wait but it would be good to make a PR to 4.0 branch so we don't forget that wrong parameter.

Or in alternative we can add a new attribute useglobal_fieldname="list_limit" for those cases to be easy to identify later and would process right them now.

BTW why didn't you use useglobal="true" here?

avatar mehranfazili
mehranfazili - comment - 13 Nov 2016

Followed the instruction and tried this several times with NO success.


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

avatar Bakual
Bakual - comment - 13 Nov 2016

Or in alternative we can add a new attribute useglobal_fieldname="list_limit" for those cases to be easy to identify later and would process right them now.

In core, it was only that one parameter as far as I saw. I don't think it makes sense to add special code for that. Once this is merged, I can do a PR for the 4.0 branch.

avatar Bakual
Bakual - comment - 13 Nov 2016

Followed the instruction and tried this several times with NO success.

@mehranfazili Can you be more specific in what you tried that didn't work?
Did the "Use Global" option not appear? Or did it not behave as expected?

avatar andrepereiradasilva
andrepereiradasilva - comment - 13 Nov 2016

I have tested this item successfully on 12d9d8a

as talked above


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 13 Nov 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 14 Nov 2016

I have tested this item successfully on 12d9d8a


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

avatar brianteeman brianteeman - test_item - 14 Nov 2016 - Tested successfully
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2016
Category com_tags Front End com_tags Front End Language & Strings
avatar Bakual Bakual - change - 14 Nov 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2016
Category com_tags Front End Language & Strings com_tags Front End
avatar jeckodevelopment jeckodevelopment - test_item - 15 Nov 2016 - Tested successfully
avatar jeckodevelopment
jeckodevelopment - comment - 15 Nov 2016

I have tested this item successfully on 12d9d8a


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

avatar jeckodevelopment jeckodevelopment - change - 15 Nov 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 15 Nov 2016

RTC


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

avatar brianteeman brianteeman - change - 15 Nov 2016
Milestone Added:
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - reference | b0df5a7 - 15 Nov 16
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar rdeutz rdeutz - change - 15 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-15 21:50:03
Closed_By rdeutz
avatar Bakual Bakual - head_ref_deleted - 15 Nov 2016

Add a Comment

Login with GitHub to post a comment