- Posts: 2
- Thank you received: 0
OS Property support center
How do I change the ordering of agent's list?
- rex
- Topic Author
- Offline
- New Member
-
Less
More
11 years 9 months ago - 11 years 9 months ago #39241
by rex
How do I change the ordering of agent's list? was created by rex
so basically my website is versios 2.4 and I want to list the agents by their names alphabetically, start from"A-Z", not the default "Z-A"
I have been trying edit or change many settings, but none of them work. So, please, help me.
here is my website as you can see, the ordering starts from "Y"
www.royalfirstrealty.ca/agents
I have been trying edit or change many settings, but none of them work. So, please, help me.
here is my website as you can see, the ordering starts from "Y"
www.royalfirstrealty.ca/agents
Last edit: 11 years 9 months ago by rex. Reason: missing link
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39242
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: How do I change the ordering of agent's list?
Hi,
You can change the php function that is used to generate the alphabet list from file
components > com_osproperty > helpers > common.php
function alphabetList
line 367
You can sort the alphabet characters in this part:
<a href="javascript:submitAlphabetForm('0-9')" class="<?php echo $class1?>">0-9</a>
<a href="javascript:submitAlphabetForm('A')" class="<?php echo $class2?>">A</a>
<a href="javascript:submitAlphabetForm('B')" class="<?php echo $class3?>">B</a>
<a href="javascript:submitAlphabetForm('C')" class="<?php echo $class4?>">C</a>
<a href="javascript:submitAlphabetForm('D')" class="<?php echo $class5?>">D</a>
<a href="javascript:submitAlphabetForm('E')" class="<?php echo $class6?>">E</a>
<a href="javascript:submitAlphabetForm('F')" class="<?php echo $class7?>">F</a>
<a href="javascript:submitAlphabetForm('G')" class="<?php echo $class8?>">G</a>
<a href="javascript:submitAlphabetForm('H')" class="<?php echo $class9?>">H</a>
<a href="javascript:submitAlphabetForm('I')" class="<?php echo $class10?>">I</a>
<a href="javascript:submitAlphabetForm('J')" class="<?php echo $class11?>">J</a>
<a href="javascript:submitAlphabetForm('K')" class="<?php echo $class12?>">K</a>
<a href="javascript:submitAlphabetForm('L')" class="<?php echo $class13?>">L</a>
<a href="javascript:submitAlphabetForm('M')" class="<?php echo $class14?>">M</a>
<a href="javascript:submitAlphabetForm('N')" class="<?php echo $class15?>">N</a>
<a href="javascript:submitAlphabetForm('O')" class="<?php echo $class16?>">O</a>
<a href="javascript:submitAlphabetForm('P')" class="<?php echo $class17?>">P</a>
<a href="javascript:submitAlphabetForm('Q')" class="<?php echo $class18?>">Q</a>
<a href="javascript:submitAlphabetForm('R')" class="<?php echo $class19?>">R</a>
<a href="javascript:submitAlphabetForm('S')" class="<?php echo $class20?>">S</a>
<a href="javascript:submitAlphabetForm('T')" class="<?php echo $class21?>">T</a>
<a href="javascript:submitAlphabetForm('U')" class="<?php echo $class22?>">U</a>
<a href="javascript:submitAlphabetForm('V')" class="<?php echo $class23?>">V</a>
<a href="javascript:submitAlphabetForm('W')" class="<?php echo $class24?>">W</a>
<a href="javascript:submitAlphabetForm('X')" class="<?php echo $class25?>">X</a>
<a href="javascript:submitAlphabetForm('Y')" class="<?php echo $class26?>">Y</a>
<a href="javascript:submitAlphabetForm('Z')" class="<?php echo $class27?>">Z</a>
Good luck
Dam
You can change the php function that is used to generate the alphabet list from file
components > com_osproperty > helpers > common.php
function alphabetList
line 367
You can sort the alphabet characters in this part:
<a href="javascript:submitAlphabetForm('0-9')" class="<?php echo $class1?>">0-9</a>
<a href="javascript:submitAlphabetForm('A')" class="<?php echo $class2?>">A</a>
<a href="javascript:submitAlphabetForm('B')" class="<?php echo $class3?>">B</a>
<a href="javascript:submitAlphabetForm('C')" class="<?php echo $class4?>">C</a>
<a href="javascript:submitAlphabetForm('D')" class="<?php echo $class5?>">D</a>
<a href="javascript:submitAlphabetForm('E')" class="<?php echo $class6?>">E</a>
<a href="javascript:submitAlphabetForm('F')" class="<?php echo $class7?>">F</a>
<a href="javascript:submitAlphabetForm('G')" class="<?php echo $class8?>">G</a>
<a href="javascript:submitAlphabetForm('H')" class="<?php echo $class9?>">H</a>
<a href="javascript:submitAlphabetForm('I')" class="<?php echo $class10?>">I</a>
<a href="javascript:submitAlphabetForm('J')" class="<?php echo $class11?>">J</a>
<a href="javascript:submitAlphabetForm('K')" class="<?php echo $class12?>">K</a>
<a href="javascript:submitAlphabetForm('L')" class="<?php echo $class13?>">L</a>
<a href="javascript:submitAlphabetForm('M')" class="<?php echo $class14?>">M</a>
<a href="javascript:submitAlphabetForm('N')" class="<?php echo $class15?>">N</a>
<a href="javascript:submitAlphabetForm('O')" class="<?php echo $class16?>">O</a>
<a href="javascript:submitAlphabetForm('P')" class="<?php echo $class17?>">P</a>
<a href="javascript:submitAlphabetForm('Q')" class="<?php echo $class18?>">Q</a>
<a href="javascript:submitAlphabetForm('R')" class="<?php echo $class19?>">R</a>
<a href="javascript:submitAlphabetForm('S')" class="<?php echo $class20?>">S</a>
<a href="javascript:submitAlphabetForm('T')" class="<?php echo $class21?>">T</a>
<a href="javascript:submitAlphabetForm('U')" class="<?php echo $class22?>">U</a>
<a href="javascript:submitAlphabetForm('V')" class="<?php echo $class23?>">V</a>
<a href="javascript:submitAlphabetForm('W')" class="<?php echo $class24?>">W</a>
<a href="javascript:submitAlphabetForm('X')" class="<?php echo $class25?>">X</a>
<a href="javascript:submitAlphabetForm('Y')" class="<?php echo $class26?>">Y</a>
<a href="javascript:submitAlphabetForm('Z')" class="<?php echo $class27?>">Z</a>
Good luck
Dam
Please Log in or Create an account to join the conversation.
- rex
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
11 years 9 months ago #39305
by rex
Replied by rex on topic Re: How do I change the ordering of agent's list?
Hi, Dam
Thanks for your information, but the problem is I don't know how to get to" components > com_osproperty > helpers > common.php"
I don't think I'm able to edit any .php,
Sorry, would you mind describe how to do this more in details.
Thanks
Thanks for your information, but the problem is I don't know how to get to" components > com_osproperty > helpers > common.php"
I don't think I'm able to edit any .php,
Sorry, would you mind describe how to do this more in details.
Thanks
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39311
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: How do I change the ordering of agent's list?
Hi Rex,
I think i already explained clearly.
That's php file, but you modify the html code in that file to change the order of the alphabet. Have you found that file "Common.php" and that function?
Thanks
Dam
I think i already explained clearly.
That's php file, but you modify the html code in that file to change the order of the alphabet. Have you found that file "Common.php" and that function?
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.