V6.4.3 -> Move (display) Download track, .gpx block just above MAP

Gilles (vcmb)
Gilles (vcmb)
  • Gilles (vcmb)
  • 6 days ago

Hi Maverick,

Happy new year to you, family and team :-)

Track - detail view

Solution used to move (display) "Download track GPX" block just above MAP?

Best regards

Gil
======================================================

Hi Maverick,

I've used a GPSTOOLS Template override and modify only "default.php"
Change Download display line position

ACTION:
Create an override -> File:
/templates/cassiopeia_XXXXX/html/com_gpstools/track/default.php

NOW in "default.php" :

echo TracksHelper::renderLayout( $layout . '.track.details', [ 'data' => $this ] );

echo CJFunctions::load_module_position( 'tracks-individual-above-map' );
echo TracksHelper::renderLayout( $layout . '.track.map', [ 'data' => $this ] );

// ...
echo TracksHelper::renderLayout( $layout . '.track.download', [ 'data' => $this ] );

✅ Modif to get DOWNLOAD above MAP

After MODIF "default.php":

echo CJFunctions::load_module_position( 'tracks-individual-above-map' );

// Modif -> DOWNLOAD before MAP
echo TracksHelper::renderLayout( $layout . '.track.download', [ 'data' => $this ] );

echo TracksHelper::renderLayout( $layout . '.track.map', [ 'data' => $this ] );


Comment : OLD Call to "Download" else twice DOWNLOAD:
// Modif -> Old Download position
// echo TracksHelper::renderLayout( $layout . '.track.download', [ 'data' => $this ] );


👉 Résult: details, download, map, charts, stats…

Thanks for your support
Best regards,
Gilles

++++++++++++++++++++++++++++++++
In this approach, no need to have a track.php file
It's OK for GPSTools 6.4.3 & Joomla 5.4.1

Modified "default.php" attached for GPSTools community

Just extract from "default.zip"

 

Attachments

Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai