Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Group Display Order

9 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Greetings Pro's,
I am sure I have a very easy one for you here. When a member clicks on one of our groups, like the NFL, our site displays all the NFL teams in some order for our members to brows through and select the one they want. I would like this list to be in alphabetical order when it first comes up. I know I can switch between the drop down list diplays you supply, but I want the alphabetical list to come up first when members first select all groups in the NFL.

Thanks,

David

9 years 7 months ago
Licenses:

Hi,

do you mean at site members list page? becuase at group members already sorted by alphabetical.
for site members list, please edit:
/components/com_community/views/search/view.html.php at line 141, 205, and 208
change the word "latest" to "alphabetical"

Regards

The following user(s) said Thank You: Toolie
9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi david,

You can modify this file components/com_community/views/groups/view.html.php, inside function display(), find this code :

$sorted = $jinput->get->get('sort', 'latest', 'STRING');
replace to :
$sorted = $jinput->get->get('sort', 'alphabetical', 'STRING');

and find this code :
->set('sortings', CFilterBar::getHTML(CRoute::getURI(), $sortItems, 'latest'))
replace to :
->set('sortings', CFilterBar::getHTML(CRoute::getURI(), $sortItems, 'alphabetical'))

I hope it will help.

9 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Dimas,
If the alternative code you sent me is what will enable the various group categories to display the groups in alphabetical order in any one category, this is exactly what I am looking for. Now, can you please tell me what file this code is in and where I can find it?

Thanks,

David

9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

yes, that code will apply that you want, have you tried it?

9 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Dimas,
I have not tried it, but will right now if you tell me where the file that I modify this code in is located and the name of that file please.

Thanks,

David

9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:
9 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Dimas,
Thank you very much and yes, this worked perfectly.

Thanks and have a great day,

David

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW