×

Notice

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

TOPIC: Hotspots Default Map Page Priority

Hotspots Default Map Page Priority 10 years 2 months ago #27873

  • Caseyz
  • Caseyz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
To start, My setup is
-I have 2 menu items with the same Hotspots Category (let's call these pages " A" and "B").
-I have the "Recent Hotspots" module displayed in a sidebar on a sub-page, and when you click the link to an individual hotspot, it takes me back to layout "A" (with all the module associated with the layout-"A") which is not ideal. Is there a way to set the default map page for individual hotspots?
-Or is there a way to configure the hierarchy to prioritize menu "B" page?.

I'm curious how Hotspots prioritizes the pages.

-Thanks

Hotspots Default Map Page Priority 10 years 2 months ago #27891

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Casey,
Why do you have 2 menu items pointing to the same category? I think that this is the problem.
We try to determine the best itemID for the link. We look at the items with hotspots in them and we find 2 links. Since both hotspots have the same catid, we take the first one that we find. If your links had different category ids, then it should take page B.

You can look at the logic in components/helpers/route.php in the _findItem function.

Regards,
Daniel

Hotspots Default Map Page Priority 10 years 2 months ago #27898

  • Caseyz
  • Caseyz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
Hello,
Well, I have 2 menu items pointing to the same category because there isn't a Hotspots Map module, and an iFrame wasn't working out. So making a separate pagetemplate to present the map in the position i desired was my only choice.

I figure a way to meet my needs for the default page.
First, I created a secondary (empty) hotspots category (ID=3)
Second I added it to the map page I DIDN'T want as default (making sure that it was first in the selection box)

This seems to prioritize the default map as it seemed to search for the URL with the first instance of the "catid=1".
The page with "catid=3;1", is now second in priority.

-Thanks
  • Page:
  • 1
Time to create page: 0.164 seconds