User tests: Successful: Unsuccessful:
Issue #6474
"Count of articles can't be configured at com_contacts contact form"
This PR adds a setting named "articles_display_num" to several contact menu items of com_contact and to single contact settings/display options..
If a contact is asigned/linked to a user and field "Show User Articles" is set to SHOW, you can now select an option in field "# Articles to List" that controls the number of articles of the user/contact that shall be displayed in frontend in single contact view.
I also added an OPTION "Use Contact Settings" for menu items.
You can set "# Articles to List" in
Please test them all and be aware that overriding rules should be the same like in com_content views.
Menu settings override global settings and so on.
Backwards compatibilty: PR should fall back to 10 articles when settings "# Articles to List" are untouched after applying patch.
Test :
you see only 10 items not all and can't configure this value
Apply patch.
Addition concerning tests:
QUESTION: Should there be a condition that checks if SHOW_ARTICLES is set to SHOW before the model loads all the articles? 10 articles were loaded always, also before PR.
Labels |
Added:
?
|
Easy | No | ⇒ | Yes |
Rel_Number | 0 | ⇒ | 6474 |
Relation Type | ⇒ | Pull Request for |
Category | ⇒ | Components Front End |
QUESTION: Should there be a condition that checks if SHOW_ARTICLES is set to SHOW before the model loads all the articles? 10 articles were loaded always, also before PR.
This looks like a good idea.
I've added now a condition for loading articles only when SHOW_ARTICLES is set to SHOW.
By the way:
Can somebody explain why we have this condition in model?
// If we are showing a contact list, then the contact parameters take priority
// So merge the contact parameters with the merged parameters
if ($this->getState('params')->get('show_contact_list'))
{
$this->getState('params')->merge($contactParams);
}
I understand what it does but don't understand the logic behind it. Why do we override global/menu settings if contact selection is displayed
but not if not displayed and we call the contact via catgory view?
@test Could recreate issue. Works as described before & after the patch.
Status | Pending | ⇒ | Ready to Commit |
Thanks for testing moving to RTC now!
Labels |
Added:
?
|
@test
Seems to be working
Was already testing when second successful test was submitted :-)
Was already testing when second successful test was submitted :-)
No problem @davdebcom all tests are good tests!
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-04-10 13:39:01 |
Request to be labelled as "New Feature".
No
Labels |
Removed:
?
|
Labels |
Added:
?
|
Language strings should be sorted alphabetically