Skip to content

[4.0] New configs to display featured contacts at the top & number of contacts to display on a contact list page#23710

Merged
wilsonge merged 19 commits intojoomla:4.0-devfrom
vaibhavsTekdi:featurecontactsconfig-4.0
Apr 11, 2019
Merged

[4.0] New configs to display featured contacts at the top & number of contacts to display on a contact list page#23710
wilsonge merged 19 commits intojoomla:4.0-devfrom
vaibhavsTekdi:featurecontactsconfig-4.0

Conversation

@vaibhavsTekdi
Copy link
Copy Markdown
Contributor

@vaibhavsTekdi vaibhavsTekdi commented Jan 29, 2019

Pull Request for Issue #23709 .

Summary of Changes

Added new config for showing featured contacts at the top & number of contacts to display on a contact list page.

1) Config at 'Contacts' component level for showing a number of contacts & featured contacts on top:

config-at-component-level

2) Config at Contacts menu level for showing a number of contacts & featured contacts on top:

config-at-menu-level

…t the top & number of contacts to display on a contact list page.
@shraddhaSankpal27
Copy link
Copy Markdown

I have tested this item ✅ successfully on 547b9d1


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

1 similar comment
@uthorat
Copy link
Copy Markdown

uthorat commented Feb 20, 2019

I have tested this item ✅ successfully on 547b9d1


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

@amit4106udale
Copy link
Copy Markdown

I have tested this item ✅ successfully on fb6d778


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

@ghost
Copy link
Copy Markdown

ghost commented Mar 13, 2019

@shraddhaSankpal27 can you please retest?

name="contacts_display_num"
type="list"
label="COM_CONTACT_NUMBER_CONTACTS_LIST_LABEL"
description="COM_CONTACT_NUMBER_CONTACTS_LIST_DESC"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Joomla 4 we try to avoid adding a description unless it is absolutely necessary. Its not in this case (and you didnt add a string for it anyway) so you can delete this line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

{
$limit = $numberOfContactsToDisplay;
}
elseif ($format === 'feed')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think feed needs to take priority over this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilsonge done...

@ghost ghost added the J4 Issue label Apr 5, 2019
@vaibhavsTekdi
Copy link
Copy Markdown
Contributor Author

@wilsonge Could you please check this PR & let me know so that it gets merged ASAP.

@wilsonge wilsonge merged commit 2670763 into joomla:4.0-dev Apr 11, 2019
@wilsonge wilsonge added this to the Joomla 4.0 milestone Apr 11, 2019
@wilsonge
Copy link
Copy Markdown
Contributor

Looks good to me

@vaibhavsTekdi
Copy link
Copy Markdown
Contributor Author

@wilsonge Thanks for the quick reply.

richard67 pushed a commit that referenced this pull request Apr 9, 2021
PR for #33021

Hopefully this resolves the bug reported with #30813.
#30904 tried to fix it by removing the feature introduced with #23710 completely which was wrong

Co-authored-by: Tuan Pham Ngoc <github@joomdonation.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

J4 Issue Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants