×

Notice

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

TOPIC: how can i display hotspots component out of joomla

how can i display hotspots component out of joomla 12 years 10 months ago #14899

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
How can i display hotspots component out of joomla? Without headers, side menus, footer, only the component.

Re: how can i display hotspots component out of joomla 12 years 10 months ago #14940

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So you want to kind a use it in an iframe??? Or what is the use case?

Daniel

Re: how can i display hotspots component out of joomla 12 years 10 months ago #14946

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

If I add:
?tmpl=component#!18
to the end of my website address, I can see hotspots component without any menu, banner or anything else from the joomla's template. But I can only display categories. Is there any way to display a single marker?

What I wanna do is just send a clean link to my clients to check that everything is ok with the information, image, etc.

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14947

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
What is the problem to add the ?tmpl=component to the single view of the hotspot?

Like here:
demo.compojoom.com/hotspots/1-education/...ravel?tmpl=component

Daniel

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14948

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
is there a single view of a hotspot without the comment section?

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14950

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
by using tmpl=component you are telling joomla to fetch the page by using the component.php file in your template...

Since comments are loading onAfterContent event in the component, they are also shown on the page. Basically - everything that is connected with the component in one way or another will show up - most probably only modules are not active in the component.php file.

But, are you using compojoomComment as well on your site?

Daniel

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14952

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

No, I am not using compojoomComment in my site.

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14955

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, you shouldn't have to worry about it then, right?

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14956

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
then, what is the link I should use to show single view of hotspots?
http://'website address'/hotspots/'category id'-'name of category'/238-atoll-travel?tmpl=component

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14963

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, maybe the best thing would be to open the link in frontend and copy the url from the browser, but this will take too much time...

So the structure of the url looks like this:
index.php?option=com_hotspots&view=hotspot&catid=CATID:CATEGORY_SLUG&id=HOTSPOTS_ID:HOTSPOTS_SLUG

And the slug is the name of the category without any spaces and &% characters etc...

Daniel

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14965

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Thanks Daniel, but that link brings the joomla template as well with all the menus, headers, footer, etc. I made few changes to the link to show only the map, and one marker.
website_address/?tmpl=component&view=hotspot&catid=CATID:CATEGORY_SLUG&id=HOTSPOTS_ID:HOTSPOTS_SLUG

The example:
Link

And to see all the markers inside one category without any frames from joomla (menus, header, footer, etc), the code to use is:
website_address/?tmpl=component#!CATID

The example:
Link

Thanks man to pointed me in the right direction.

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14973

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
May I ask why you need this? I just thought that it is maybe cool to have a link from the backend pointing to the single view of the hotspot.

Daniel

Re: how can i display hotspots component out of joomla 12 years 9 months ago #14975

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

As I mentioned before,

What I wanna do is just send a clean link to my clients to check that everything is ok with the information, image, etc.

This link will contain only their marker.
  • Page:
  • 1
Time to create page: 0.176 seconds