Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

dialog.tpl, no title for certain categories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-23-2005, 02:40 PM
 
dashonice dashonice is offline
 

Member
  
Join Date: May 2005
Posts: 23
 

Default 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.
__________________
Version 4.0.18
Testing 4.1.2
Reply With Quote
  #2  
Old 06-23-2005, 02:47 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-23-2005, 05:56 PM
 
dashonice dashonice is offline
 

Member
  
Join Date: May 2005
Posts: 23
 

Default

Thanks for the quick response ryan. For some reason it takes away the first row for all of the categories, not just "248". Any ideas? Thanks.
__________________
Version 4.0.18
Testing 4.1.2
Reply With Quote
  #4  
Old 06-12-2008, 02:01 PM
 
ReadytoCover ReadytoCover is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 124
 

Default 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}
__________________
x-cart 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:03 AM.

   

 
X-Cart forums © 2001-2020