? ? Success
Pull Request for # 6474

User tests: Successful: Unsuccessful:

avatar bertmert
bertmert
18 Mar 2015

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

  • Contacts Manager > Global Options > Tab Contact
  • Menu type Contacts » Featured Contacts > Tab Form
  • Menu type Contacts » categories > Tab Contact Display Options
  • Menu type Contacts » List Contacts in a Category > Tab Contact Display Options
  • Menu type Contacts » Single Contact > Tab Contact Display Options

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 :

  • Create a new contact
  • assign it to a user (e.g. site admin)
  • create more than 10 items with the site admin (or the user you choose) e.g. 12
  • enable the "Show Articles" option for the contact
  • see the contact at the frontend
  • you see only 10 items not all and can't configure this value

  • Apply patch.

  • Test settings "# Articles to List" in menu items, global settings, contact settings like described above.
  • See image below if you have several menu items where settings could have conflicts.

Addition concerning tests:

  • If you use a Joomla with testing sample data:
  • - Link contact titled "Contact Name Here" with user "Super User" (is owner of lots of articles).
  • - Go to menu "All frontend views". Search for "contact". You may get listed all possible contact views.
  • - !!!Be aware that you have to deactivate other menu items for testing one. See image where I tested menu item "Featured"!!!

contact-menus

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.

avatar bertmert bertmert - open - 18 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2015
Labels Added: ?
avatar brianteeman
brianteeman - comment - 18 Mar 2015

Language strings should be sorted alphabetically

avatar zero-24 zero-24 - change - 18 Mar 2015
Easy No Yes
avatar zero-24 zero-24 - change - 18 Mar 2015
Rel_Number 0 6474
Relation Type Pull Request for
avatar zero-24 zero-24 - change - 22 Mar 2015
Category Components Front End
avatar zero-24
zero-24 - comment - 28 Mar 2015

@bertmert @test works as expected. Thanks! One more tester here.

avatar zero-24 zero-24 - test_item - 28 Mar 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 29 Mar 2015

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.

avatar bertmert
bertmert - comment - 1 Apr 2015

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

contact1

but not if not displayed and we call the contact via catgory view?

contact2

avatar larapetersen
larapetersen - comment - 10 Apr 2015

@test Could recreate issue. Works as described before & after the patch.


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

avatar larapetersen larapetersen - test_item - 10 Apr 2015 - Tested successfully
avatar zero-24 zero-24 - change - 10 Apr 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 10 Apr 2015

Thanks for testing :+1: moving to RTC now!


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

avatar zero-24 zero-24 - change - 10 Apr 2015
Labels Added: ?
avatar davdebcom
davdebcom - comment - 10 Apr 2015

@test
Seems to be working
Was already testing when second successful test was submitted :-)


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

avatar davdebcom davdebcom - test_item - 10 Apr 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 10 Apr 2015

Was already testing when second successful test was submitted :-)

No problem @davdebcom all tests are good tests!

avatar roland-d roland-d - change - 10 Apr 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-04-10 13:39:01
avatar roland-d roland-d - close - 10 Apr 2015
avatar roland-d roland-d - close - 10 Apr 2015
avatar zero-24 zero-24 - close - 10 Apr 2015
avatar sovainfo
sovainfo - comment - 10 Apr 2015

Request to be labelled as "New Feature".

avatar brianteeman
brianteeman - comment - 10 Apr 2015

No

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 14 Oct 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment