Load J framework and Gavick template in external script

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Jan 10, 2012 1:49 am
Hi guys, i know this can sound a little strange but i really need it.

Is there anyway we can have "visual integration" between J 1.7 and any other third party scripts?
Let's say we want to load the default gavick template, just header (incl main menu) + footer, into external script templating system and display that script in the "component area" or "mainbody" of the loaded template.

How can we achieve this ?

Joomla wrapper simply won't do it as i want the default J template loaded and "embeded" into 3'rd party script template, and that 3rd party script loaded in the "mainbody" position.

Thanks in advance
User avatar
Fresh Boarder

GK User
Tue Jan 10, 2012 9:40 am
Hi,

What do you mean by a 3rd script? Is it an external website? If so you can customize template layout to include an iframe to load the site at main position as well.
User avatar
Platinum Boarder

GK User
Tue Jan 10, 2012 8:11 pm
It's not an external website ... it's any other script located let's say in a subfolder.
A good example is a forum (although we can extrapolate to any other script in a subfolder) located at www.domain.com/forum, and J 1.7 website located at www.domain.com

One solution is to use the Joomla iframe to "embed" the forum from within the main site but google does not play nice with iframes, second if a user will go directly to www.domain.com/forum .. the iframe will not be loaded (he must access the forum thru website).

What i am looking to achieve is to really "copy-paste" the header and footer blocks from J 1.7 template into the script template. Something like taking a look at J 1.7 template code, use that code for the external script and use the external script "default" template into the mainbody container.
(think about it like a duplicated Joomla with a default gavick template loaded + external script "native" loaded into mainbody).
User avatar
Fresh Boarder

GK User
Tue Jan 10, 2012 8:43 pm
Please look here maybe this will be a solution >> http://curl.haxx.se/libcurl/php/examples/simpleget.html
User avatar
Platinum Boarder

GK User
Wed Jan 11, 2012 11:20 am
You'd better clone your Joomla site's footer and header to apply for your other sites, I have done the same for some systems because there are no better ways as far as I know.
User avatar
Platinum Boarder

GK User
Sat Jan 14, 2012 6:00 am
Don, when you say "clone" you are referring to the output html code, right?
Like basically look at the rendered source code and copy/paste the div's i need together with related css ?
This is one way but i will lose all the "native" functionality of the displayed modules because i am just copying the html output.


What i need is just to hardcode all the needed template blocks into external script template.
By harcoding i mean:
1. We go at our gavick's joomla template under /layouts.
2. We open default.php and we copy all the needed template blocks and paste those into the external script template.

Something like

Code: Select all
<div id="gkPage" class="gkMain gkWrap">
        <?php $this->loadBlock('logo'); ?>
       
        <div id="gkMenuWrap" class="clear">   
              <?php if($this->modules('topmenu1 or search') ) : ?>
              <div id="gkTopMenu">
                 <?php if($this->modules('topmenu1')) : ?>
                 <div id="gkTopMenu1">
                    <jdoc:include type="modules" name="topmenu1" style="<?php echo $this->module_styles['topmenu1']; ?>" />
                 </div>
                 <?php endif; ?>
                 
                 <?php if($this->modules('search')) : ?>
                 <div id="gkSearch">
                    <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
                 </div>
                 <?php endif; ?>   
              </div>
            <?php endif; ?>
           
             <div id="gkMainMenu" class="clear">
               <?php
                  $this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
                   $this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
               ?>
             </div>
             
             <?php if($this->generateSubmenu && $this->menu->genMenu($this->getParam('startlevel', 0)+1, $this->getParam('endlevel',-1), true)): ?>
             <div id="gkSubmenu" class="clear">
                <?php $this->menu->genMenu($this->getParam('startlevel', 0)+1, $this->getParam('endlevel',-1));?>
             </div>
             <?php else: ?>


... just an example, part of the code. Now if i paste these blocks into external script template. How can i make them run? How can i load also the related css . I assume i must load also joomla framework.

I don't want just to obtain a "clone" html output in the external script template but to provide full functionality for header modules, joomla mainmenu, bottom modules.

Hope i make sense :)


There is also a topic on Joomla forum regarding loading joomla module outside joomla
http://forum.joomla.org/viewtopic.php?p=2596681

I need the same thing but for the specific template blocks, positions with published modules for those positions.
User avatar
Fresh Boarder


cron