Hi
I am in great need to have plugins in the short description.
How can I do that?
Thx
26.05.2014 21:46
|
|
ankan11
Name: Kalle Anka
24.01.2012
Posts: 7
|
|
28.05.2014 05:26
|
|
ankan11
Name: Kalle Anka
24.01.2012
Posts: 7
|
|
28.05.2014 07:53
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25856
|
Aw: Plugin in short description
See controller\product.php ... if ($jshopConfig->use_plugin_content){ changeDataUsePluginContent($product, "product"); } see lib\function.php function changeDataUsePluginContent(&$data, $type){ $mainframe =JFactory::getApplication(); $dispatcher =JDispatcher::getInstance(); JPluginHelper::importPlugin('content'); $obj = new stdClass(); $params = $mainframe->getParams('com_content'); if ($type=="product"){ $obj->product_id = $data->product_id; } if ($type=="category"){ $obj->category_id = $data->category_id; } if ($type=="manufacturer"){ $obj->manufacturer_id = $data->manufacturer_id; } $obj->text = $data->description; $obj->title = $data->name; $results = $dispatcher->trigger('onContentPrepare', array('com_content.article', &$obj, &$params, 0)); $data->description = $obj->text; return 1; } |
28.05.2014 13:18
|
|
ankan11
Name: Kalle Anka
24.01.2012
Posts: 7
|
|
28.05.2014 21:43
|
|
ankan11
Name: Kalle Anka
24.01.2012
Posts: 7
|
|