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

Can't modify subcategories.tpl successfully ...please help!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-09-2003, 11:04 AM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default Can't modify subcategories.tpl successfully ...please help!!

Whenever I try to edit subcategories.tpl (even a teeny tiny minor change)

for example change <font class=Text> to <font class=Textcat>

the following line in subcategories.tpl rewrites itself from:

{include file="dialog.tpl" title=$current_category.category_name|regex_replac e:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}

to:

{include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*//":"" content=$smarty.capture.dialog extra="width=100%"}


notice a backslash is missing from the rewritten version.

This results in the warning:

Warning: Unknown modifier '/' in /usr/www/users/bosmed/cart/xcart/Smarty-2.3.0/plugins/modifier.regex_replace.php on line 13


I try to put the backslash back into the code ...but I still get the ugly warning blasted all over my cart.

the only way to remove the warning is to restore the file ...then of course my changes are lost.

Help!!! BTW, I am trying to get thumbnails displaying on the subcategories page...feel free to send any ideas or brain waves...I could use them.

thanks for your help,
Liz
Reply With Quote
  #2  
Old 08-13-2003, 04:21 AM
  joshf's Avatar 
joshf joshf is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 97
 

Default

what program are you using to edit your .tpl? it sounds like maybe the program is rewriting the code for you automatically (i know dreamweaver can have a tendency to do that when 'applying source formatting')...

try editing it in notepad and see if that works...



jf
Reply With Quote
  #3  
Old 08-24-2003, 08:34 PM
 
cjl108 cjl108 is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 4
 

Default same here

I am having the same problem...and I am editing it in the xcart editing window....
__________________
Cory Leistikow
www.budogear.com
Reply With Quote
  #4  
Old 08-30-2003, 05:27 AM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default

I had to abandon the xcart editing window for this one. I ended up using a text editor and putting back in the slash that xcart removes and then uploading the file using ftp.

this is some kind of a bug.

liz
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:03 AM.

   

 
X-Cart forums © 2001-2020