- Posts: 5
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- JoomFish /K2 "Integration": Implemented filter by Category
JoomFish /K2 "Integration": Implemented filter by Category
- Johan Nobel
-
Topic Author
- Offline
- New Member
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.
- fran p
-
- Offline
- New Member
- Posts: 9
Please Log in or Create an account to join the conversation.
- Isam Ishaq
-
- Offline
- New Member
- Posts: 8
This works very well and makes it much easier for the translators.
Please Log in or Create an account to join the conversation.
- vanshion
-
- Offline
- Junior Member
- Posts: 23
Please Log in or Create an account to join the conversation.
- Raquel
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Johan Nobel
-
Topic Author
- Offline
- New Member
- Posts: 5
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.
- Russell English
-
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- stresskills
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Rebelo
-
- Offline
- New Member
- Posts: 2
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
Please Log in or Create an account to join the conversation.
- klikeri
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6229
Please Log in or Create an account to join the conversation.
- Rebelo
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- javier
-
- Offline
- New Member
- Posts: 1
-> joomla 2.5.10 + joomfish 2.5.1 + k2 2.6.7
thanks...
Please Log in or Create an account to join the conversation.
- klikeri
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- JoomFish /K2 "Integration": Implemented filter by Category