![]() |
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 |
Re: Simple template mod advice needed
|
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 |
| All times are GMT -8. The time now is 03:29 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.