×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Hide read more button for hotspot

Hide read more button for hotspot 9 years 8 months ago #30542

  • Edis Zunic
  • Edis Zunic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Is it possible to hide the "read more" button when i set it under the "special marker options" to NO ?

Theres is then no detail page but the button is still visible and when you click on it, it just reloads the page.

thank you

Hide read more button for hotspot 9 years 8 months ago #30613

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
"special marker options" to no? What's that?
On the Layout view in the setting there should be a "read more" option.

Regards,
Daniel

Hide read more button for hotspot 9 years 8 months ago #30619

  • Edis Zunic
  • Edis Zunic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
i mean this:


i have set "Show readmore" to "No" but in the hotspots Map it is still showing the button "read more"

Hide read more button for hotspot 9 years 8 months ago #30629

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Wow, I've forgotten that we have this option and can't even remember adding it wow.
Go to components\com_hotspots\views\hotspots\tmpl\default_hotspot.php line 91
				<?php if(HotspotsHelperSettings::get('hotspot_detailpage', 1)): ?>
					<span class="hs-toolbar-separator"></span>
					<a href='{{ readmore }}' class="btn btn-link btn-mini">
						<?php echo JText::_('COM_HOTSPOTS_READ_MORE'); ?>
					</a>
				<?php endif; ?>
change it to:
				<?php if(HotspotsHelperSettings::get('hotspot_detailpage', 1)): ?>
					{{#if readmore }}
					<span class="hs-toolbar-separator"></span>
					<a href='{{ readmore }}' class="btn btn-link btn-mini">
						<?php echo JText::_('COM_HOTSPOTS_READ_MORE'); ?>
					</a>
					{{/if}}
				<?php endif; ?>

And after that it should behave as expected.

Regards,
Daniel

Hide read more button for hotspot 9 years 8 months ago #30632

  • Edis Zunic
  • Edis Zunic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Perfect! :cheer:
  • Page:
  • 1
Time to create page: 0.127 seconds