| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Simple template mod advice needed | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Simple template mod advice needed
Hello
I searched on this subject but haven't found any relevant info so I'll ask. I want to add a separate dialogue box at the top of each page identical to the box you get on subcategories. As you know when you add a description to a subcat it produces a box so long as you have entered a description-no description=no box so I guess this is the else/if routine in action. I modified the template on subcats to do exactly what I want like this {/if} {capture name=dialog} {*<h1>{$current_category.category|amp}</h1>*} {/capture} {if $config.Appearance.subcategories_per_row eq 'Y'} {if $current_category.description ne ""} {capture name=dialog} <h1>{$current_category.category|amp}</h1> <div class="subcategory-descr">{$current_category.description|amp}</div> {/capture} {include file="customer/dialog_blank.tpl" title="sub cats" content=$smarty.capture.dialog} {/if} By moving the H1 header into the box and editing out the original position. I don't understand how the capture/smarty stuff works so would like some advice on the code I can cut n paste into each template to produce the box with relevant H1 page title inserted automatically Regards Paul H
__________________
Xcart Gold 4.1.11-Gone = 4.7.11-Live |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Simple template mod advice needed
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Simple template mod advice needed
Thanks CFL
I figured that all the code has to be within div tags before using the capture routine although It has somehow managed to put all page labelling within the main box rather than a separate dialog box which actually looks better and cleaner Cheers Paul
__________________
Xcart Gold 4.1.11-Gone = 4.7.11-Live |
|||||||
|
|||
X-Cart forums © 2001-2020
|