Team Short Name in Player Stats View

Moderator: And_One

davilafran
Newbie
Posts: 13
Joined: Wed Feb 20, 2013 4:38 pm

Team Short Name in Player Stats View

Postby davilafran » Sun Mar 30, 2014 3:55 am

Hi!

How can we change the code to display "Team Short Name" in player statistics in "Player's view"

Right now we have "Team Name". In situations where there is space limitation and you can not have Team Names like Borussia Mönchengladbach and may need to write just BMH or something like that we need to change the code... but changing short_name instead of team_name in

com_jomleague/views/player/tmpl/default_playerstats.php doesn't work.

Any clue?

Thanks

Heart
Joomleague Core Developer
Joomleague Core Developer
Posts: 653
Joined: Fri Apr 23, 2010 10:27 am

Re: Team Short Name in Player Stats View

Postby Heart » Wed Apr 02, 2014 3:41 pm

You must overwrite the player model...
- add "t.short_name AS short_name," in line ~245
- and then you can use "short_name" in your mentioned default_playerstats.php view file.

davilafran
Newbie
Posts: 13
Joined: Wed Feb 20, 2013 4:38 pm

Re: Team Short Name in Player Stats View

Postby davilafran » Tue Sep 30, 2014 5:52 pm

Thanks! Worked!


Return to “en-GB”

Who is online

Users browsing this forum: No registered users and 0 guests

cron