Author Topic: Use plugin in categoryChildlist.tpl.php  (Read 5265 times)

mike_invition

  • Beginner
  • *
  • Posts: 30
    • Africa Pictures
Use plugin in categoryChildlist.tpl.php
« on: July 03, 2009, 15:07:08 pm »
Like the title says, I'd like to use a plugin in the categoryChildlist.tpl.php file. In the browsepage and the flypage I solved it with a single line (by adding    $template = vmCommonHTML::ParseContentByPlugins( $template );)

I tried it also with this file by adding the following (marked) line in shop.browse.php but it didn't work:

Code: [Select]
/**
* CATEGORY DESCRIPTION
*/
$browsepage_lbl = $category_name;
$tpl->set( 'browsepage_lbl', $browsepage_lbl );

$tpl->set( 'desc', $desc );

$category_childs = $ps_product_category->get_child_list($category_id);
$tpl->set( 'categories', $category_childs );
$navigation_childlist = $tpl->fetch( 'common/categoryChildlist.tpl.php');

/*  I added this line   */
$navigation_childlist = vmCommonHTML::ParseContentByPlugins($navigation_childlist);
/* -------------------- */

$tpl->set( 'navigation_childlist', $navigation_childlist );

Who knows?
Nice Africa pictures! www.africa-pictures.com