Content plugins in categories (solution found!!!)

More
14 years 9 months ago #3901 by orchid1
Sorry I meant the flexicontent SVN

PS yes thank you this will help people out Im sure

“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.” William A. Foster - USMC

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #3944 by maia
Hi there,

I've been testing this stuff and I came to the conclusion you don't need the "foreach" piece of codding. In fact the extra piece sometimes result in a blank page.

This is the final code to be inserted:
Code:
$category =& $this->get('Category'); $dispatcher =& JDispatcher::getInstance(); JPluginHelper::importPlugin('content'); $category->text = $category->description; $results = $dispatcher->trigger('onPrepareContent',array (& $category, & $category->params, 0)); $category->description = $category->text;

I've also edited the first post reflecting the final code.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #3945 by maia

orchid1 wrote: Sorry I meant the flexicontent SVN

PS yes thank you this will help people out Im sure


Nope. If it's the one on forge i have no permissions. Access denied ...

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #3964 by kenmcd

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #7340 by davidbart76
would this work to get the plugins to work for the items on the category view page.

I have a content plugin i need to get working for the item->introtext

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #11283 by abrahamsonido
Maia Works!! Thanks a lot!! You are a Genius!! :shock:

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.408 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline