X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   dialog.tpl, no title for certain categories (https://forum.x-cart.com/showthread.php?t=14760)

dashonice 06-23-2005 02:40 PM

dialog.tpl, no title for certain categories
 
I am new to smarty and not sure about this syntax. I am trying to take out the title for certain categories but it is not working for me. Here is my code:
Code:

{* $Id: dialog.tpl,v 1.19 2004/06/24 09:53:29 max Exp $ *}
{if $printable ne ''}
{include file="dialog_printable.tpl"}
{else}
<table border="0" cellpadding="0" cellspacing="0" {$extra}>

{if $cat eq "248"}
{else}
<tr>
<td height="15" class="DialogTitle" background="{$ImagesDir}/dialog_bg_n.gif" valign="bottom">{$title}</td>
</tr>
{/if}
<tr><td class="DialogBorder"><table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr><td class="DialogBox">{$content}
</td></tr>
</table></td></tr>
</table>
{/if}


This should remove the first row on category 248 right? Am I missing something? If I wanted to add more categories for exclusion, would it be || or "or". Thanks for any help.

balinor 06-23-2005 02:47 PM

Yes, that should remove the first row. You would use 'or' in between if you wanted multiple exclusions:

{if $cat eq "248" or $cat eq "249"}

dashonice 06-23-2005 05:56 PM

Thanks for the quick response ryan. :D For some reason it takes away the first row for all of the categories, not just "248". Any ideas? Thanks.

ReadytoCover 06-12-2008 02:01 PM

Re: dialog.tpl, no title for certain categories
 
Did you ever get this to work? I'm trying to do the same thing, remove the category dialog title AND embedded products, basically just have the category description showing and thats it:

Code:

{* $Id: dialog.tpl,v 1.25 2005/12/20 08:50:49 max Exp $ *}
{if $printable ne ''}
{include file="dialog_printable.tpl"}
{else}
{if $cat ne "2"}
{else}   
{/if}
<div class="DialogTitle"><img src="{$ImagesDir}/down2.gif" alt="" style="float:left;" />&nbsp;&nbsp;{$title}</div>
<div class="DialogBorder">
<div class="DialogBox">{$content}</div>
</div>
{/if}



All times are GMT -8. The time now is 01:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.