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

Html tables in categorie description?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-22-2005, 10:31 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Html tables in categorie description?

I've red in one of the posting that it's possible to show different images
for categories pages by putting the needed html in admin under the field of categorie description.
So that each categorie page can have his own image.
I've tried it and that works great indeed.

But when I try to add html tables with images and text, all the tables get messed up.
The width of the table changes and the subcategorie listing won't align properly anymore.

Is it simply not possible to insert html tables in categorie description or
am I doing something wrong here?

Any help is more than welcome - thanks in advance!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #2  
Old 01-22-2005, 12:50 PM
 
Rayco Rayco is offline
 

Member
  
Join Date: Jul 2004
Posts: 21
 

Default Catagory descriptions

I had the same problem and found this http://forum.x-cart.com/viewtopic.php?t=14263&highlight=
Cheers
__________________
Rayco
XCart 4.0.8 Dev
Mysql 4.0.20 Standard
Linux(i686) 2.4.27
Reply With Quote
  #3  
Old 01-22-2005, 02:09 PM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

Thanks for the reply, Rayco!
But I'm not sure what and how to change it to get rid of the
.
Could you please explain what to do?

Thanks again!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #4  
Old 01-23-2005, 11:18 AM
 
Rayco Rayco is offline
 

Member
  
Join Date: Jul 2004
Posts: 21
 

Default Catagory HTML

This is how I fixed it. I don't know it's the correct way to do it but it works.
skin1/customer/main/subcatagories
replace
Code:
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":" "} {/if}
with
Code:
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description} {/if}
Cheers
__________________
Rayco
XCart 4.0.8 Dev
Mysql 4.0.20 Standard
Linux(i686) 2.4.27
Reply With Quote
  #5  
Old 01-23-2005, 11:52 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

And it works for me also!
Thanks for helping, Rayco
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
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 04:56 AM.

   

 
X-Cart forums © 2001-2020