Abh Posted June 8, 2010 Share Posted June 8, 2010 Hello,What i did was this:Insert a table into AdminProducts.php short description textarea. This echoes the table in the editor every time i want to add a description: <textarea class="rte" cols="100" rows="20" id="description_short_'.$language['id_lang'].'" name="description_short_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_short', $language['id_lang'])), ENT_COMPAT, 'UTF-8')."01020304050607080910".'</textarea> '; http://i67.photobucket.com/albums/h289/sfpetru/table1.pngThe .css: table.mceItemTable {border-collapse:collapse;} .mceItemTable tr td {border:1px solid #000;width:70px;height:20px;} Code that outputs the description, from produt-list.tpl: {$product.description_short} The result on product-list page: http://i67.photobucket.com/albums/h289/sfpetru/table_where_is_it.pngAs you can see in the first pic, there's a definite border there, but checking the html in the editor i get {$product.description_short} and that prints some borders, but i'm unable to collapse them:http://i67.photobucket.com/albums/h289/sfpetru/table_no_collapse.png Link to comment Share on other sites More sharing options...
Abh Posted June 9, 2010 Author Share Posted June 9, 2010 Still no luck, i don't know if i should insist more on the mce part or on the template part. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now