{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6485","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6485/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6485/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6485/events","html_url":"https://github.com/joomla/joomla-cms/pull/6485","id":62549425,"number":6485,"title":"Single contact view. Support for number of articles to display (articles_display_num) #6474","user":{"login":"bertmert","id":11038612,"avatar_url":"https://avatars.githubusercontent.com/u/11038612?v=3","gravatar_id":"","url":"https://api.github.com/users/bertmert","html_url":"https://github.com/bertmert","followers_url":"https://api.github.com/users/bertmert/followers","following_url":"https://api.github.com/users/bertmert/following{/other_user}","gists_url":"https://api.github.com/users/bertmert/gists{/gist_id}","starred_url":"https://api.github.com/users/bertmert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertmert/subscriptions","organizations_url":"https://api.github.com/users/bertmert/orgs","repos_url":"https://api.github.com/users/bertmert/repos","events_url":"https://api.github.com/users/bertmert/events{/privacy}","received_events_url":"https://api.github.com/users/bertmert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T00:31:30Z","updated_at":"2015-03-28T14:47:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/6485","html_url":"https://github.com/joomla/joomla-cms/pull/6485","diff_url":"https://github.com/joomla/joomla-cms/pull/6485.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/6485.patch"},"body":"Issue https://github.com/joomla/joomla-cms/issues/6474\r\n\"Count of articles can't be configured at com_contacts contact form\"\r\n\r\nThis PR adds a setting named  \"articles_display_num\" to several contact menu items  of com_contact and to single contact settings/display options..\r\n\r\nIf 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.\r\n\r\nI also added an OPTION \"Use Contact Settings\" for menu items.\r\n\r\nYou can set \"# Articles to List\" in\r\n\r\n- Contacts Manager > Global Options > Tab Contact\r\n- Menu type Contacts » Featured Contacts > Tab Form\r\n- Menu type Contacts » categories > Tab Contact Display Options\r\n- Menu type Contacts » List Contacts in a Category > Tab Contact Display Options \r\n- Menu type Contacts » Single Contact > Tab Contact Display Options\r\n\r\nPlease test them all and be aware that overriding rules should be the same like in com_content views.\r\nMenu settings override global settings and so on.\r\n\r\nBackwards compatibilty: PR should fall back to 10 articles when settings \"# Articles to List\" are untouched after applying patch.\r\n\r\nTest :\r\n\r\n- Create a new contact\r\n- assign it to a user (e.g. site admin)\r\n- create more than 10 items with the site admin (or the user you choose) e.g. 12\r\n- enable the \"Show Articles\" option for the contact\r\n- see the contact at the frontend\r\n- you see only 10 items not all and can't configure this value\r\n\r\n- Apply patch.\r\n- Test settings \"# Articles to List\" in menu items, global settings, contact settings like described above. \r\n- See image below if you have several menu items where settings could have conflicts.\r\n\r\nAddition concerning tests:\r\n- If you use a Joomla with testing sample data:\r\n- - Link contact titled \"Contact Name Here\" with user \"Super User\" (is owner of lots of articles).\r\n- - Go to menu \"All frontend views\". Search for \"contact\". You may get listed all possible contact views.\r\n- - !!!Be aware that you have to deactivate other menu items for testing one. See image where I tested menu item \"Featured\"!!!\r\n\r\n![contact-menus](https://cloud.githubusercontent.com/assets/11038612/6701024/1a52828c-cd17-11e4-883d-bedcc003042e.jpg)\r\n\r\n\r\nQUESTION: 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. "},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/87240036","html_url":"https://github.com/joomla/joomla-cms/pull/6485#issuecomment-87240036","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6485","id":87240036,"user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T14:47:38Z","updated_at":"2015-03-28T14:47:38Z","body":"@bertmert @test works as expected. Thanks! One more tester here."}}