Search/filter/sort functions, how?

More
13 years 8 months ago #9718 by boegmunken
Lets say i have a category view with 5 fields and a few items, the first field is the title.

I can type for example "abc" in the search box and only the title fields that contains this phrase will show up. But how do I make it possible to filter the other fields?

I have tried enabling filter and advanced search on all fields that I'm using, but it isn't working.

I have also edited the category parameter to enable filtering, and marked the items I'm interested in and then saved.
Still can't search through the other columns.

I would also like to be able to sort each column in alphabetical order ascending/descending just by clicking on each column header. Is this possible?

Any clues?

Thanks in advance.

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

More
13 years 7 months ago #9787 by yopyop001
Hi,

I don't know exactly how the flexicontent text filter works, i will try to have a look soon.

May be a beginning :
Upgrade to the latest version ( code.google.com/p/flexicontent/d ... z&can=2&q= ) if you are not using it.

In the database, have a look in the table #__flexicontent_items_ext and verify that there is data in the 'search_index' column.
If not, you have to open all items in the administration and re-save them.

To sort your table may be you can use this script:
Code:
http://yoast.com/articles/sortable-table/

I didn't try it but may be it can help. If yes, don't hesitate to share the way to implement it on the Tips and Ticks Forum.

Regards

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

More
13 years 7 months ago - 13 years 7 months ago #10245 by collacocca
Yeppa - cool tip - works fine!

Download www.joostdevalk.nl/code/sortable ... rtable.zip
put unzipped 'sortable.js' into …/components/com_flex…/assets/js/
set proper rights
put arrow images into …/images/stories/

add into new line #33 of 'category_items.php' of your template
Code:
<script type="text/javascript" src="<?php echo JURI::base().'components/com_flexicontent/assets/js'.DS?>sortable.js"></script>

change class param in line #90 - same file to
Code:
<table class="sortable flexitable" id="flexitable"

adjust the path to the arrow images in 'sortable.js' around line #12

et voilà - the category-view is sortable :D

Muchas gracias to yopyop001!

Somewhere over the drain flows…
Last edit: 13 years 7 months ago by collacocca.

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

More
13 years 7 months ago #10258 by poolp
Merci ! :mrgreen:
Ca marche bien ! Mais il y a une petite erreur a changer :

add into new line #33 of 'category_items.php' of your template
Code:
<script type="text/javascript" src="<?php echo JURI::base().'components/com_flexicontent/assets/js/sortable.js'?>"></script>

Encore Merci !

-= Poolp =-
Joomla 1.7 + FlexiContent 2(b3 r907) + AiDaNews

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

More
13 years 7 months ago - 13 years 7 months ago #10261 by collacocca
Well it depends on how you set up your path delimiter.
In our case 'DS' is the constant that holds the '/' to separate the path from the filename. Anyway- please format the path to the *.js file the way it works for your setup ;)

Another thing sucks - the date sort algorithm shows some strange behaviour and doesn't work if you combine date + time.
We'll see…

Somewhere over the drain flows…
Last edit: 13 years 7 months ago by collacocca.

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

More
13 years 7 months ago #10267 by poolp
Oki Doki ;)
Thanks !

-= Poolp =-
Joomla 1.7 + FlexiContent 2(b3 r907) + AiDaNews

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

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