so this is a menu
{cms_module module='menumanager' template='Site menu' excludeprefix='test_area,staff-content'}
the template
Code: Select all
<div style="padding:10px;">{if $count > 0}
<ul style='list-style:none;'>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul style='vertical-align:bottom;list-style:none; color:#000; padding-left:10px;'>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{* remove each site's root page alias from their respective 'home pages' and children *}
{assign var=domain value=$smarty.server.SERVER_NAME|replace:'www.':''|replace:'.':''|replace:'-':''|replace:'corbensproducts':''}
{assign var=help value=corbensproducts.$domain/help/}
{assign var=account value=corbensproducts.$domain/Account-Managment/}
{assign var=DOMAINinQUESTION value=corbensproducts.$domain/}
{assign var=utmpBASE value=$node->url|replace:$DOMAINinQUESTION:'corbensproducts.'|replace:'corbensproducts.help/':$help|replace:'corbensproducts.Account-Managment/':$account}
{assign var=utmp value=$utmpBASE|regex_replace:'/ducts.$/':'ducts.com/'}
{if $node->current == true}
<li><a class="title" href="{$utmp}">{$node->menutext}</a>
{elseif $node->parent == true}
<li><a class="title2" href="{$utmp}">{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a class="title3" href="{$utmp}">{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}<br/>
</div>
{assign var=domain value=$smarty.server.SERVER_NAME|replace:'www.':''|replace:'.':''|replace:'-':''|replace:'corbensproducts':''}
gets the tdl
these set mulity site pages (shared pages)
{assign var=help value=corbensproducts.$domain/help/}
{assign var=account value=corbensproducts.$domain/Account-Managment/}
this it the domain page ownership adjustment
{assign var=DOMAINinQUESTION value=corbensproducts.$domain/}
this applies and corrects for the "defalut" page
{assign var=utmpBASE value=$node->url|replace:$DOMAINinQUESTION:'corbensproducts.'|replace:'corbensproducts.help/':$help|replace:'corbensproducts.Account-Managment/':$account}
{assign var=utmp value=$utmpBASE|regex_replace:'/ducts.$/':'ducts.com/'}
I left the site name in there to make it clearer.... so just replace that with your own... this is set up in the way that the domains are the sams name differnt tdls...
to see it work go here (in this example it's a user site map)
http://www.corbensproducts.net/help/sitemap/
http://www.corbensproducts.com/help/sitemap/
http://www.corbensproducts.biz/help/sitemap/
http://www.corbensproducts.org/help/sitemap/
http://www.corbensproducts.info/help/sitemap/
all the same page... with the shared pages
cheers
jeremyBass