×

Notice

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

TOPIC: Balloon "more.." link & SEF url

Balloon "more.." link & SEF url 13 years 3 months ago #11437

  • Frank Collins
  • Frank Collins's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
I have it setup right now so the "more.." link in the balloon goes to the description of the hotspot, but for some reason the description page is referencing the home page when displaying the content. ie rokstories and image slider. I was able to alter this in the utils.php by adding "&Item=384", being the menu item for the map and it worked, but with SEF urls enabled it does not. Is there a way to have the "more.." link show the hotspot description but to display referencing a specific menu id number?

Thanks in advance.

Balloon "more.." link & SEF url 13 years 3 months ago #11438

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Frank,
Could you try to explain this again:

I have it setup right now so the "more.." link in the balloon goes to the description of the hotspot, but for some reason the description page is referencing the home page when displaying the content.


I'm not sure that I understand when the link is wrong.

Balloon "more.." link & SEF url 13 years 3 months ago #11439

  • Frank Collins
  • Frank Collins's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi, May be easier to show you. The site is still under development so here is a temporary link. ucc.sk.ca/newsite/en/about-ukrainians/travel-guide/map.html . If you click on the more.. link for a location you will see the same info that is on the main page. Is there a way to reference the map menu id when the description page is displayed?

Balloon "more.." link & SEF url 13 years 3 months ago #11440

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ahhh, you mean that you have no item id for the link?
How did you make the link to the map`?
ucc.sk.ca/newsite/en/about-ukrainians/travel-guide/map.html ?

The link to the single map should look like this:
ucc.sk.ca/newsite/en/about-ukrainians/tr...name-of-hotspot.html

Balloon "more.." link & SEF url 13 years 3 months ago #11441

  • Frank Collins
  • Frank Collins's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
The Interactive Travel Guide menu item was created as Hotspots > All > Default Layout defaulting to map #1. The Item ID is #384. What I did try was to disable SEF urls and in the utils.php, on line 216, changed it to:
$morelink = "<div class='ballonmorelink'><a href='$mlink&Itemid=384' title='" . $name . "'>";

This obviously breaks with SEF enabled. Any ideas why the item id isn't being included in the balloon more link? Again, thank you for your help.

Balloon "more.." link & SEF url 13 years 3 months ago #11442

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Look a little bit more above where we create the mlink:
$mlink = JRoute::_("index.php?option=com_hotspots&view=hotspot&lcatid=" . $urlcat . "&id=" . $urlid);

Add your itemid there. That is strange, the jroute function should automatically add the itemid ....

Balloon "more.." link & SEF url 13 years 3 months ago #11443

  • Frank Collins
  • Frank Collins's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
That worked perfectly!!! Thanks so much for the help. I guess the only concern is if the menu id changes but we'll cross that when we come to it. Thanks again!
  • Page:
  • 1
Time to create page: 0.131 seconds