filter authors need your help

More
9 years 5 months ago - 9 years 5 months ago #59670 by ggppdk
Hello

you have not said what field "Tipster" is
lets say that
- that it is select field
- that the 'name' of the field is 'tipster'
- that its id is 57


install v3.0.10-RC2g
github.com/FLEXIcontent/flexicontent-cck/releases

after you install
copy
plugins/flexicontent_fields/selectmultiple/tmpl/value_default.php
as
plugins/flexicontent_fields/selectmultiple/tmpl/value_MYcustomphp

then in field configuration select to use your custom layout, and of course edit the PHP file



at top (outside value loop)
JFactory::getApplication();
$jinput = $app->input;
$cid = $jinput->get('format', 0, 'int');

and inside value loop
Code:
foreach ($value as $v) {

add at appropriate place: (notice the 57)
Code:
echo ' <a href="index?option=com_flexicontent&view=category&cid='.$cid.'&filter_57='.$element->value.'">View items</a> ';

NOTE you may need to make corrections to the above code
- ALSO the field "tipster" must be marked as "Filterable" otherwise the filtering will be ignored


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 5 months ago by ggppdk.

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

More
9 years 5 months ago #59675 by redmaverick
I tried to make all of these programming but the field became empty after that.Nevermind i will do it with the traditional way of authors.Put solved and thank you very much for your support.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.282 seconds
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
Save