Page 1 of 1
Turn Module Into Iframe
Posted: Thu Feb 06, 2020 11:23 pm
by jhf3488
I need to display a module from one Joomla site onto several other Joomla sites.
I hoped to do this by getting the module onto a page without any other template or menu. I know that I can acheieve this by including ?tmpl=component in the URL, but as you navigate to the next folder in the frame, the ?tmpl=component string goes away and the full page loads.
Is there a way to apply ?tmpl=component to the end of the URL for a menu item? or is there another way to make this work?
Re: Turn Module Into Iframe
Posted: Fri Feb 07, 2020 1:15 am
by Webdongle
Menu item type System links >>> url ... just put the relative path.
Re: Turn Module Into Iframe
Posted: Fri Feb 07, 2020 3:13 am
by jhf3488
Webdongle wrote: ↑Fri Feb 07, 2020 1:15 am
Menu item type System links >>> url ... just put the relative path.
I'm not sure if I understand this.
I want to isolate the module by itself on site A to turn it into an iframe to put on site B. It is dozens of document folders and thousands of individual documents. I can get the root folder to show up correctly here:
https://lambertvillenj.org/mcarchives?tmpl=component
but when you open one of the sub folders, it loads the entire page. I need it to load just the module even when the folders are opened.
Re: Turn Module Into Iframe
Posted: Fri Feb 07, 2020 9:39 am
by Webdongle
You asked
jhf3488 wrote: ↑Thu Feb 06, 2020 11:23 pm
...
Is there a way to apply ?tmpl=component to the end of the URL for a menu item?...
The answer is Menu item type System links >>> url ... just put the relative path.
The link you gave has hyperlink on images. The easiest way is ti create a Template that just has a Component area and no module Positions.
Re: Turn Module Into Iframe
Posted: Fri Feb 07, 2020 10:01 am
by leolam
An iframe is always a link that loads a page and not an individual module. In Joomla default you cannot load a single module from Site "A" into Site "B"
So you might use this
https://extensions.joomla.org/extension ... component/ perhaps and load that link in the iframe (use Modules Anywhere from Regularlabs to add the module)
Leo

Re: Turn Module Into Iframe
Posted: Fri Feb 07, 2020 4:32 pm
by jhf3488
Webdongle wrote: ↑Fri Feb 07, 2020 9:39 am
You asked
jhf3488 wrote: ↑Thu Feb 06, 2020 11:23 pm
...
Is there a way to apply ?tmpl=component to the end of the URL for a menu item?...
The answer is Menu item type System links >>> url ... just put the relative path.
The link you gave has hyperlink on images. The easiest way is ti create a Template that just has a Component area and no module Positions.
That worked perfectly. Assigning the module to a COMPLETELY blank template.