Next Match and Division

Moderator: And_One

User avatar
nzrunner
.
Posts: 90
Joined: Sun Sep 14, 2008 10:04 am
Joomleague version: 2.0.x
Location: Sydney, Australia
Contact:

Next Match and Division

Postby nzrunner » Thu Feb 21, 2013 11:13 pm

Joomla: 2.5.9
JoomLeague: 2.0.51
Matches: 2.0.51

I have a competition with four divisions. Most clubs have a team in at least 3 divisions.

When I use the matches module, the fixture does not display the division, so it is difficult to identify what time the fixtures are for each division. We have had to resort to put a "A", "B" and "C" at the end of he teams names for clarity which is a less than desirable solution.

Anyone got any ideas on how I can have the division show up against each fixture, perhaps right below the Venue, Date and Time?
Joomla: 2.5.28
JoomLeague: 2.93.239
http://www.sydneymastershockey.com.au/competition

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3609
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: Next Match and Division

Postby And_One » Fri Feb 22, 2013 7:21 am

create a feature request

User avatar
nzrunner
.
Posts: 90
Joined: Sun Sep 14, 2008 10:04 am
Joomleague version: 2.0.x
Location: Sydney, Australia
Contact:

Re: Next Match and Division

Postby nzrunner » Sun Apr 21, 2013 3:07 am

I've figured out the code to do it: -

In mod_joomleague_matches/helper.php add the following code at approximately line 342:-

Code: Select all

$nametype='division_name';
$link=JoomleagueHelperRoute::getRankingRoute($match->project_id,null,null,null,0,$match->division_id);
$output = JHtml::link($link,$hteam->$nametype);
$rows[$match->match_id]['divisionid'] = $output;

In mod_joomleague_matches/tmpl/default_tableless/match.php add the following code at approximately line 22:-

Code: Select all

echo ' <h3 style="white-space:nowrap;">'.$match['divisionid'].'</h3> ';
Joomla: 2.5.28
JoomLeague: 2.93.239
http://www.sydneymastershockey.com.au/competition


Return to “matches”

Who is online

Users browsing this forum: No registered users and 2 guests

cron