Skip to main content

Changerequest for pluginscontentgpstoolsgpstools.php

940 Views
0 Replies
1 min read

Hi Maverick,

In our implementation we integrate the GPSTOOLS-extension in the EVENTSBOOKING-extension. As i mentioned before this is working perfectly. In EVENTSBOOKING you can add a long and short description. For the long description de GPSCONTEXT-plugin with complete description (with map and so on) is ok. For the short description I would like to shorten this. Thats why I have made the following change in pluginscontentgpstoolsgpstools.php.

if(empty($options->nomap))
{
$content = $content . TracksHelper::renderLayout($layout.'.track.map', array('data'=>$data));
$content = $content . TracksHelper::renderLayout($layout.'.track.charts', array('data'=>$data));
$content = $content . TracksHelper::renderLayout($layout.'.track.stats', array('data'=>$data));
$content = $content . TracksHelper::renderLayout($layout.'.track.waypoints', array('data'=>$data));
$content = $content . TracksHelper::renderLayout($layout.'.track.download', array('data'=>$data));
}

The yellow marked text has been added by me. By adding "nomap":1 to the GPSCONTENT-text the map, charts, stats, waypoints and download-button will be removed. This was exactly what I wanted.

Would it be possible to add this to this plugin?

Kind regards, Hans

0 Replies

No Replies Yet

Topic Author

W

wtcdehellen

@wtcdehellen

Topic Stats

Created Saturday, 30 December 2017 12:46
Last Updated Saturday, 30 December 2017 12:46
Replies 0
Views 940
Likes 0

Share This Topic