Modifying Home Page using TemplateCodes

Discussion in 'TemplateCodes' started by dysartwebs, Jun 19, 2009.

  1. dysartwebs Customer

    I have started working on the design for our new website. I purchased TemplateCodes to give me a good starting poing and need some help with the home page. I would like to hide the left column only on the home page and want it to appear on all the other pages. I didn't know if there was something simple I could do to accomplish this. Any advice would be greatly appreciated.


    68C Version: v4.1.3 Developer
    TemplateCodes: 2.0
  2. dysartwebs Customer

    Figured it out

    New to smarty templates so a little a bit of a learning curve. Fixed it with

    {if $script_name == "index.php"}
    {else}
    <div class="col_left_sidebar" style="float: left; left: 10px;position: relative;">
    {foreach from=$left_col item=row}
    {include file=$row.template}
    {/foreach}
    </div> {/if}
  3. seymourjames All Hands On Deck

    Yes you can do that but it is going to leave a big gap between the view window and the right hand column. You will probably need make a 2nd modified style sheet and rescale some images too. This would then be referenced from a second layout.tpl file (used only by the home page). Well there are probably other solutions using javascript but that this comes to mind first of all. There is a post about using multiple layout templates in this forum.

Share This Page