HelloHow are you?First, I want to thank you for your advice and tutorials k2.But I have a problem, I am not able to solve.I bought the plugin k2mart, and I want to appear in the search plugin.I've done everything that is posted on the forums.Like, "Hi. plugins K2 Are Not Been Executed in generic listings, that's why K2mart not does show up on search results. If You Need You Can Implement this feature it in yourtemplate file (generic.php). To Achieve this put the Following code Just Before theforeach loop:Code:<? php $ dispatcher = & JDispatcher:: getInstance (); JPluginHelper: importPlugin('k2', 'k2mart');?>After That You Will Also Need to put the Following code inside the foreach loop:Code:<? php$ results = $ dispatcher-> trigger ('onK2AfterDisplayContent', array (& $ item, $ item-> params, 0));$ item-> event-> onK2AfterDisplayContent = trim (implode ("\ n ", $ results));echo $ item-> event-> onK2AfterDisplayContent;?>But not solved, I am not able to appear.And on generic.php the css used is the one in the joomla component not in thecomponent template is normal.First of all, thank you.Jose Pedro.ps: attached generic.php
15 years 10 months ago #92449