Keyword

filter by extra fields

  • Jacques Abada
  • Jacques Abada's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 1 hour ago #171425 by Jacques Abada
Jacques Abada created the topic: filter by extra fields
Hello,
I'd like to filter a listing by extrafield and order by extra field alphabetical ASC, i saw in the forum to Open the file modules/mod_k2_content/helper.php and change

case 'alpha' :
$orderby = 'i.title DESC';
break;

by

case 'alpha' :
$orderby = 'i.extra_fields DESC';
break;

but how can I use a specific extra field ?

: my developpment website

Thanks for your kind help

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 week 6 days ago #171435 by Fotis
Fotis replied the topic: filter by extra fields
It's not possible like that. Extra fields are stored as an object in the database so you can't sort by them. You'll need a third party extension to do that. Google for "joomla k2 filter extra fields" to see some available options by various developers.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white