Keyword

JoomFish /K2 "Integration": Implemented filter by Category

  • Johan Nobel
  • Johan Nobel's Avatar Topic Author
  • Offline
  • New Member
More
15 years 2 weeks ago #73145 by Johan Nobel
Hi There,

When using both JoomFish and K2 (which is great!) I noticed that the list of K2_Items "to be translated" becomes quite long and there is no indication to which K2_category the items belong (listing is ordered alphabeticaly on Item Title).

All in all it becomes hard to find the right item in such a long list of (context-less) items.
I experimented with the "translation filter" option for JoomFish content elements and succeeded to get some useful filtering options out of them.

This might be useful for some of you with the same problem. The solution is quite simple:

- Locate the /administrator/components/com_joomfish/contentelements/k2_items.xml file
- add the following code just above the </joomfish> tag :

<translationfilters>
<K2_category>catid</K2_category>
<keyword>title</keyword>
<author>created_by</author>
<published>published</published>
</translationfilters>

- place the attached file (translationK2_categoryFilter.php) in the
/administrator/components/com_joomfish/contentelements/ folder

This will enable the following filters:
- filter by item parent category name (non - recursive)
- filter by author
- filter by publishing state
- filter by Item title

Hope someone finds this useful.

Johan

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

More
15 years 3 days ago #73146 by fran p
This is very helpful when using Joomfish and K2. Thank you so much for sharing.

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

More
14 years 10 months ago #73147 by Isam Ishaq
Thanks Johan,

This works very well and makes it much easier for the translators.

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

More
14 years 5 months ago #73148 by vanshion
Thank u very much

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

More
14 years 5 months ago #73149 by Raquel
Thanks!!! It's very useful!

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

  • Johan Nobel
  • Johan Nobel's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #73150 by Johan Nobel
Hi all,

I saw that there is no need to do this yourself anymore, the category filter is now integrated into K2 (since V2.2 i believe).

Kind regards,
Johan

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

More
13 years 1 month ago #73151 by Russell English
I know this is now integrated, but great work Johan

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

More
12 years 1 week ago #73152 by stresskills
I created another topic but since you wrote this I thought you might know how "translationK2_categoryFilter.php" could cause a 500 error. Any ideas or help is appreciated.

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

More
11 years 3 months ago - 11 years 3 months ago #73153 by Rebelo
Hi,

i have last versions

joomla 2.5.11
joomfish v2.5.1
K2 v2.6.6

and i don 't have filter by category on joomfish
what could i do to work?

tks
jr
Attachments:

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

More
11 years 3 months ago #73154 by klikeri
I have same problem

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


Powered by Kunena Forum