If
Code: Select all
{MyFavorites srcmodule="Products" srcrecord=$entry->id}
A quick workaround would be to to "unset" the Products' $category after it is used in the detail template and before invoking {My Favorites ...} tag so that its own version of $category can be freely set.
Here is an example 'clear_assign' UDT to be used for that purpose:
Code: Select all
$smarty = cmsms()->GetSmarty();
$smarty->clear_assign($params['var']);
{clear_assign var='category'}