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=2596681I need the same thing but for the specific template blocks, positions with published modules for those positions.