-
AuthorPosts
-
December 16, 2015 at 6:10 pm #817448
Hallo, I still don’t have a clear picture of how things should work.
- I know I can put search tools (fields etc.) in a joomla module an then place that wherever I want.
The first question is: can you please explain the thing of the result page ID? How is that thought to work? What happens if I let it empty? - I have created different menu entries of type ja_k2_filter…Basically there is no explanation about those anywhere (or I missed it?). Is that where the search results should be displayed?
- Does it make sense to have more than one such menu entries (see 2.)?
- If I want to use this extension to create pre-filtered pages (e.g. 1 page having the extra field x=1 and another page having extra field x1), how can/should I do that?
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
December 17, 2015 at 10:22 am #818371Hi,
The first question is: can you please explain the thing of the result page ID? How is that thought to work? What happens if I let it empty?
The Result Page ID means after searching, your Result will show at which menu Item you choose on the list. This feature just works when you turn off SEF
I have created different menu entries of type ja_k2_filter…Basically there is no explanation about those anywhere (or I missed it?). Is that where the search results should be displayed?
Menu type JA K2 Filter is used to browse list Article of K2.
Does it make sense to have more than one such menu entries (see 2.)?
Yes, just change the category in Menu Item Setting, you’ll have different menu item.
If I want to use this extension to create pre-filtered pages (e.g. 1 page having the extra field x=1 and another page having extra field x1), how can/should I do that?
Then you must make two Modules, One for extra field x=1, one for other. Create menu Item with type is K2 or JA K2 filter and set module assign to this module
January 5, 2016 at 8:09 pm #839424Thank you Luna,
that was very helpful! But still it does not work like I need:- I created two menu points of type ja filter itemlist (leaving all options at default value)
- I created the modules like you suggested
- I activated the modules on the respective menu entries/pages.
The pre-filtering does not work! It’s not clear where Joomla (and your extension) get the information for filtering. It’s not without filter, but definitely not what I choose.
I chose to filter based on two extra fields: one should have a certain value (Location=cityname), the other, which can have one of 3 possible options, is set to accept 2 of them and let the 3rd one behind.
The query I intercept looks like this:
SELECT DISTINCT MAX(jat1.asset_id) AS xfield_asset_id1, MIN(jat1.labels ) AS xfield_labels1, i.*, CASE WHEN i.modified = 0 THEN i.created ELSE i.modified END as lastChanged, c.name as categoryname,c.id as categoryid, c.alias as categoryalias, c.params as categoryparams FROM af59h_k2_items as i RIGHT JOIN af59h_k2_categories AS c ON c.id = i.catid LEFT JOIN af59h_jak2filter_taxonomy_map jatm ON jatm.item_id = i.id LEFT JOIN af59h_jak2filter_taxonomy jat1 ON (jat1.id = jatm.node_id AND jat1.type = 'xfield' AND jat1.asset_id = '1') WHERE i.published = 1 AND i.access IN(1,1,2,3,6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1) AND i.trash = 0 AND c.published = 1 AND c.access IN(1,1,2,3,6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1) AND c.trash = 0 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2016-01-05 18:32:44' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2016-01-05 18:32:44' ) AND i.catid IN (1) GROUP BY i.id ORDER BY xfield_labels1 ASC
The pre-filter is nowhere, apparently. Of all the results I get, only one satisfies the first filter (Location is correct). All others are wrong. Please help! I absolutely need this part of the extension and I’m stuck.
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 6, 2016 at 4:29 am #839728January 6, 2016 at 9:00 am #839868Now here it says 3 replies but there are two and your last update (@Luna) is not visible to me…in case there was a reply of course…
January 6, 2016 at 6:14 pm #840355Hallo? Please?
January 8, 2016 at 6:19 pm #842008This reply has been marked as private.Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 11, 2016 at 10:21 am #844002Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 12, 2016 at 4:26 am #845099January 14, 2016 at 5:11 pm #847952I will check again and come back. So the best thing is uninstalling and then installing again? And I hope I will still be able to customize the k2 output pages (item.php, category.php and categoryitem.php)
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 15, 2016 at 8:00 am #848471January 20, 2016 at 8:27 pm #863567So I removed the whole extension and added it again. The result is still not what I need.
(Let’s see if I’m able to explain this finally):I want a page which shows my k2 items filtered according to some extra-fields. I don’t want the search fields on top of the page. The search function should be somewhere else.
What happens now is that the filter only works if i select stuff on the module page. Why is that?? The pre-filter should not depend on the module settings. Specially if you want to filter and not to search. Please help me!Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 22, 2016 at 8:44 am #865160February 7, 2016 at 12:21 pm #878364Please tell me what I do wrong. I deleted most of the menu structure and all the ja k2 filter parts, removed the extension and added it again.
The pre-filter part simply does not work. I get the search fields I selected, but they are not preselected like they should and there is no search result at all.
If I choose to have a menu entry of type ja k2 filter […] the k2 items are shown in a certain order which I can not change, no matter what I do. Basically the only thing I can use this component for is searching. That’s the only thing working.
So I think it’s time to make this component a bit clearer and simpler to use and – most of all – make it work reliably.
There should be a part of the documentation saying exactly what steps to do to obtain a result. - I know I can put search tools (fields etc.) in a joomla module an then place that wherever I want.
-
AuthorPosts
This topic contains 16 replies, has 2 voices, and was last updated by Luna Garden 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum