Filter or sort articles on textfields

More
12 years 11 months ago #16049 by sgagner
To clearify what Pixie say here above, we need som suggestion of how o make Flexi sort articles in category view based on returned result from a plugin triggerd from a Flexifield. I think this is important for any plugin triggerd by any sortable text field or maybe made as an option in the settings for the field.
Is it at all possible?
If not - any suggestions of how to solve our sorting problem?

Maybe I explain the current function in detail:
We have created a textfield which calls a plugin.
The plugin check if the a user of a telephone support service is on-line or not. Depending of state the plugin return an on-line or off-line image. We want to sort the on-line users first.

Best regards,
Stefan Gagner - Mei Ya e-Service - Sweden

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

More
12 years 11 months ago #16050 by Pixie
yes the files differ in:

rows 183 - 202 from .558
Code:
JPluginHelper::importPlugin('content'); // just a try : to implement later foreach ($items as $item) { $item->event = new stdClass(); $item->params = new JParameter($item->attribs); $results = $dispatcher->trigger('onPrepareContent', array (& $item, & $item->params,0)); $item->event->afterDisplayTitle = trim(implode("\n", $results)); $results = $dispatcher->trigger('onAfterDisplayTitle', array (& $item, & $item->params,0));
and rows 183 - 202 from .607
Code:
JPluginHelper::importPlugin('content'); // Allow to trigger content plugins on category description $category->text = $category->description; $results = $dispatcher->trigger('onPrepareContent', array (& $category, & $category->params, 0)); $category->description = $category->text; foreach ($items as $item) { $item->event = new stdClass(); $item->params = new JParameter($item->attribs); $results = $dispatcher->trigger('onPrepareContent', array (& $item, & $item->params, 0)); $results = $dispatcher->trigger('onAfterDisplayTitle', array (& $item, & $item->params, 0));

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.254 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