short_description

05.05.2011 19:59
#1
Cibulka
Joomshopping forum user no avatar
Name: Milan
14.04.2011
Posts: 2
Quote
short_description

Hi i tray change short_description from textarea to wysiwyg editor type in file
administrator\components\com_jshopping\views\product_edit\tmpl\description.php

old code:
<textarea name = "<?php print $short_description;?>" cols = "55" rows="5"><?php echo $row->$short_description ?></textarea>


my change

<?php
print $editor->display('short_description'.$lang->id, $row->$short_description , '100%', '350', '75', '20' ) ;
?>


But it not work. Where is problem. Thanks

 
08.05.2011 13:11
#2
Cibulka
Joomshopping forum user no avatar
Name: Milan
14.04.2011
Posts: 2
Quote
Aw: short_description

Ok I found me mistake. :)

Files:
1.
administrator\components\com_jshopping\views\product_edit\tmpl\description.php
2.
administrator\components\com_jshopping\controllers\products.php

Changes:
1. in row 40 add code below and delete textarea

<?php
$editor = &JFactory::getEditor();
print $editor->display( 'short_description'.$lang->id, $row->$short_description, '100%', '350', '75', '20', false ) ;
?>


2. in row 399 add

$post['short_description_'.$lang->language] = JRequest::getVar('short_description'.$lang->id,'','post',"string", 2);


 
12.05.2011 12:33
#3
bassman
User bassman
Name: Tony
04.02.2011
Posts: 108
Quote
Aw: short_description

Thank you for the short desription but I cannot save my descriptions and if I change an earlier description it will disappear.
How do you do when there's an update?


Letzte Ă„nderung: 08.08.2011 20:55
 
Copyrights MAXXmarketing GmbH. All Rights Reserved