?
avatar lisandroTSilva
lisandroTSilva
14 Feb 2019

Steps to reproduce the issue

  • Create some contacts (10 for example) in a specific category.
  • Create a type menu "Contacts ยป List Contacts in a Category"
  • System > Global Configuration > tab Site > option: Default List Limit, This setting that determines the Contact Limit displayed.

Expected result

This item sets the number of rows in the administrative area and in the site, I would like to be able to set the maximum number, or unlimited, a presentation of an item to contact list.

My expectation is that this value would be customized to the contact submission feature, just as are the article categories.

Actual result

System information (as much as possible)

Setting Value
PHP Version 7.2.6
Web Server Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.6
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.9.2 Stable [ Amani ] 15-January-2019 15:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

Additional comments

avatar lisandroTSilva lisandroTSilva - open - 14 Feb 2019
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Feb 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Mar 2019
Status New Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Mar 2019

@infograf768 can you please comment?

avatar lisandroTSilva
lisandroTSilva - comment - 12 Mar 2019

Note: There is no code to attach, it's a conceptual question, I have no code to expose.

avatar lisandroTSilva
lisandroTSilva - comment - 12 Mar 2019

My expectation is that it is possible to define, individually, even globally, a limit of listing items for site and one for admin

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Mar 2019

@HLeithner can you please comment as Release Lead 3.9?

avatar HLeithner HLeithner - change - 17 Mar 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-03-17 07:35:02
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 17 Mar 2019

com_contact doesn't expose a limit parameter but it uses the global configuration default list limit, there is only one limit for frontend and backend.

You can change the limit with a layout override, f. ex. copy the default.php and and .xml and add the limit parameter to the request fields.

something like this:

	<!-- Add fields to the request variables for the layout. -->
	<fields name="request"
		addfieldpath="/administrator/components/com_categories/models/fields"
	>
		<fieldset name="request"
			addfieldpath="/administrator/components/com_contact/models/fields"
		>
			<field
				name="id"
				type="modal_category"
				label="COM_CONTACT_FIELD_CATEGORY_LABEL"
				description="COM_CONTACT_FIELD_CATEGORY_DESC"
				extension="com_contact"
				required="true"
				select="true"
				new="true"
				edit="true"
				clear="true"
			/>
			<field
				name="limit"
				type="text"
				label="limit"
				description="This is the limit parameter set for this category view"
			/>
		</fieldset>
	</fields>

Adding a separated global front-/backend limit would be possible but there could be some b/c issues.
It would be easier to add contact scope limiting.

If someone create a PR for 4.0 I we would consider to accept it. If you need more information about overrides plz. ask in the forum.

avatar HLeithner HLeithner - close - 17 Mar 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Mar 2019

@HLeithner thanks for taking Time to comment.

Add a Comment

Login with GitHub to post a comment