Design and Web Development
Home
BearDev
Forum is transfered to our new web site www.JoomSport.com
Sorting tables by Extra field
Post Sorting tables by Extra field
on 03/07/2010 14:36

Hi,

I want to be able to display the Season Table Layout by sorting by one of the extra fields I have added by default.

Currently, when I click to view the season table it automatically sorts the team by Rank.

How can I choose which field to sort the teams by?

Also, I would like to make the Rank column invisible. Is this possible? If so, how?


Thanks.


Panicos
Posts: 2

Naive
Naive
Registered

Joined Board
03/07/2010 13:31
Offline User is Offline

View all users posts

Post Re: Sorting tables by Extra field
on 03/08/2010 17:43

Hello Panicos!

1. At the moment we have no possibiliites to sort tournament table by extra field you selected.

2.
a. Open file default.php for edit, which located at home_dir/components/com_bearleague/views/ltable/tmpl/
b. Near the 71 line you will find following code:

Code:
th width="20" class="sort asc" axis="int" id="tblrank_id"
?php echo $this->bl_lang['BL_TBL_RANK'];?
/th


and comment it.

c. Near 199 line you will find following code:

Code: td ?php echo $ranks? /td

comment it line too

best regards,
john


John
Posts: 576

Master
Master
Administrator

Joined Board
02/28/2010 13:18
Offline User is Offline

View all users posts

BearDev - development company. Any complexity Web Sites. PHP/MySQL/Joomla! solutions.

Post Re: Sorting tables by Extra field
on 03/10/2010 21:41

Hi John,

Thank you for the reply.

If there is no function to sort by extra field that is fine.
Unfortunately, due to the fact that I am setting up a website for a bowling league, bearleague doesn't allow for me to enter points scores manually that is why I created the Extra field names "Points".

To the best of your knowledge is there anything I can do as a workaround. My programming knowledge isn't great but if there are any instructions you could give me I will try my best to follow them.

Thanks so much for your time

Panicos


Panicos
Posts: 2

Naive
Naive
Registered

Joined Board
03/07/2010 13:31
Offline User is Offline

View all users posts