View Single Post
  #3  
Old 03-15-2005, 01:45 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Hmm that didnt work for me it wiped the page out.

A little explanation of what im trying to do, because the descriptions are so far down in code in x-cart im trying to duplicate it with a hidden layer so that if you view it in lynx the same text is placed at the top and picked up first, so far i've got it working with category descriptions with code like this in home.tpl

Code:
<div id="description" style="position:absolute; left:10px; top:10px; visibility:hidden; z-index:5000;"> <div align="center"> {if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":" "} {/if} </div> </div>

What im trying to do is make all the relevant text per page be copied on up in the code, so in products pages the category description is up the top (done), in home page welcome text is copied up to the top (not working), product page copy the product description up to the top (not working - still shows cat text)[/code]
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote