Different Template Per Page - Joomla! Forum - community, help and support


i have 2 different layouts want achieve in 1 template. first looks http://216.245.197.34/~stokedsa/ , second looks this: http://216.245.197.34/~stokedsa/store
right have setup homepage has layout #1, when want make every page has layout #1 except store page , events page.

is there bit of php insert code below make happen?

code: select all

<?php
  $menu = & jsite::getmenu();
      // saying, "what page this?"
  if ($menu->getactive() == $menu->getdefault()) {
      // line saying, "if default page of site - ie: home page - next part
?><div id="twothirdswrap">
<div id="leftcolumnwrap"><div id="leftcolumntop"><a href="store"><img src="images/left_column_top.gif" alt="buy cool shirts online" width="165" height="49" border="0" /></a></div><div id="leftcolumncontent"><jdoc:include type="modules" name="vm_categories" /></div><div id="leftcolumnbottom"></div></div>
<div id="maincontentwrap"><div id="maincontenttop"></div><div id="content">
               <!--  <jdoc:include type="modules" name="breadcrumb" style="html"/>-->
            
                   
        <jdoc:include type="component" style="html"/></div><div id="maincontentbottom"></div><div id="clear"></div></div>
</div>
<div id="rightwrap"> <div><div id="righttop"></div><div id="rightcontent"><jdoc:include type="modules" name="login" /></div><div id="rightbottom"></div></div><div id="righttop"></div><div id="rightcontent2"><jdoc:include type="modules" name="events" /><jdoc:include type="modules" name="latest_events" /></div><div id="rightbottom"></div></div>

<?php
  } else {
      // saying, "when above question doesn't apply..."
?>



<div id="twothirdswrap2">
<div id="leftcolumnwrap2">
<div id="leftcolumnwrap3"><div id="leftcolumntop"><a href="store"><img src="images/left_column_top.gif" alt="buy cool shirts online" width="165" height="49" border="0" /></a></div><div id="leftcolumncontent"><jdoc:include type="modules" name="vm_categories" /></div><div id="leftcolumnbottom"></div></div>



<div><div id="righttop2"></div><div id="rightcontent"><jdoc:include type="modules" name="login" /></div><div id="rightbottom2"></div></div>



</div>





<div id="maincontentwrap2"><div id="maincontenttop2"></div><div id="content">
               <!--  <jdoc:include type="modules" name="breadcrumb" style="html"/>-->
            
                   
        <jdoc:include type="component" style="html"/></div><div id="maincontentbottom2"></div><div id="clear"></div></div>
</div>

<?php
  }
?>

i use extension called "css2switch", allows chose different template.css files (ex. template1.css, template2.css, etc...) each page.





Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support