× Forum for the GPXTrackMap Content Plugin for Joomla! 2.5 and 3.x

gpx file name

mjt78 replied the topic: gpx file name

5 years 8 months ago

Hi,
it's OK;
Thank you very much
cheers

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

fingeradmin replied the topic: gpx file name

5 years 8 months ago

hi there,

with the current version, this is not possible, sorry.

However it's very easy to build in:

- open the gpxtrackmap.php file in /plugins/content/gpxtrackmap
- locate line 841
- change the two lines:

          $placeholders = array('%TRACKMAP%','%TRACKDIAGRAM%','%SPEEDDIAGRAM%','%TRACKDOWNLOAD%');
          $vars = array($mapcode,$edcode,$spdcode,$dlcode);
- to the following:
          $placeholders = array('%TRACKMAP%','%TRACKDIAGRAM%','%SPEEDDIAGRAM%','%TRACKDOWNLOAD%','%TRACKFILENAME%');
          $vars = array($mapcode,$edcode,$spdcode,$dlcode,$gpx_file);
- save the file and put the "%TRACKFILENAME%" placeholder in your layout template file.

I have added this for the next release, but i'm not sure when this will be.
So in the meantime, just put the above change in your gpxtrackmap.php.

cheers, Frank

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

mjt78 created the topic: gpx file name

5 years 8 months ago

hi,
how is it possible to get the name of the gpx file in the template?
I would like to modify a template in order to insert the file name.
thanks

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

Powered by Kunena Forum