×

Notice

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

TOPIC: Not showing country removes space as well...

Not showing country removes space as well... 12 years 7 months ago #15713

  • mario westphal
  • mario westphal's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
Hello daniel,

i hope i can explain this ....

This is about the popup...that you see when you click on marker..

it shows.....

address, zipcode, place, country and the first part of description...

Thing is, between the country and description is a space (which is normal)

But when you decide not to show the country because you only use 1 country the space between is gone...
the description then comes directly below the zipcode...

Re: Not showing country removes space as well... 12 years 7 months ago #15726

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What do you mean with space? Do you mean the blank line or what? Can you make a screenshot and indicate the wrong space?

Daniel

Re: Not showing country removes space as well... 12 years 7 months ago #15729

  • mario westphal
  • mario westphal's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
see image....

Attachments:

Re: Not showing country removes space as well... 12 years 7 months ago #15730

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
aha, I see.
go to components/com_hotspots/views/json/tmpl/address.php

find this code:
<?php if ($this->settings->get('show_country')) : ?>
			<?php echo $this->hotspot->country; ?><br /><br />
		<?php endif; ?>
take the 2 <br />
and add it after the if for the country like this:
<?php if ($this->settings->get('show_country')) : ?>
			<?php echo $this->hotspot->country; ?>
		<?php endif; ?>
<br /><br />

Daniel

Re: Not showing country removes space as well... 12 years 7 months ago #15732

  • mario westphal
  • mario westphal's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
that indeed solved it, maybe theres a solution for this in v3.
  • Page:
  • 1
Time to create page: 0.163 seconds