OS Property support center

How do I change the ordering of agent's list?

More
11 years 9 months ago - 11 years 9 months ago #39241 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
Last edit: 11 years 9 months ago by rex. Reason: missing link

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39305 by rex
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

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan