Keyword

JA K2 Filter and Search Module template for items

  • Legnum
  • Legnum's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago - 4 years 9 months ago #174932 by Legnum
Hi all!
I am using Filter and Search for K2 and I use two modules for simple users and authorized users.
I was able to set up different templates for the search page and search results.
But when I go to the item page from search results, it's one template for two modules.
Can i set up different item templates for different search modules?
Thx.
Last edit: 4 years 9 months ago by Legnum.

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

More
4 years 8 months ago #174949 by JoomlaWorks
Replied by JoomlaWorks on topic JA K2 Filter and Search Module template for items
You are probably dealing with (menu) ItemID issues. Got a URL?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Legnum
  • Legnum's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #174969 by Legnum
Rather, it 's not a problem, but configuration options that I don 't understand. Watch a screen pls:

1 filter module: prnt.sc/r9dkz6
2 filter module: prnt.sc/r9dl91

As you can see, I set up different templates for these pages. But if we click the link with the arrow on screen we hit the same page for the item and always with the first filtering module:

prnt.sc/r9dlvl

I cannot configure different templates for item pages. For example, for my second filter.

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

More
4 years 8 months ago #174974 by JoomlaWorks
Replied by JoomlaWorks on topic JA K2 Filter and Search Module template for items
If you mean different physical templates in Joomla, you're doing things the wrong way...

You simply need the module to "stick" between page loads. To do that, both pages with the filter modules need to have DISTINCT menu items and EACH menu item should ONLY display one of the modules. When you perform a search, the result SHOULD display the filter module on the side.

There is a chance that the result page inherits the menu item ID from the K2 category that an item belongs to.

What you're dealing with is basically Joomla menu inheritance issues, which are not directly related to K2 itself. In other words, it's how Joomla works... You would end up with the same issue if you used Joomla articles, Virtuemart products etc. etc.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Legnum
  • Legnum's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #174987 by Legnum
I have two menus and two different filtering modules:
prnt.sc/ra4kn7
Each menu has its own module turned on, as an example for the second menu has one filter turned off and another one turned on:
prnt.sc/ra4lap
Each menu has its own template where I have appropriately placed the filter.php file in the folder and can customize them as I please:
prnt.sc/ra4m34
The results page for each menu I can also customize editing the file.
The problem is only when we click on a specific material link from search results. It 's the same on both menus.

Is it possible to display the material page differently for different menus and filters, or would a group of users like it? Or display specific extra fields for the specific user group.
Thx for answers!

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

  • Legnum
  • Legnum's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago - 4 years 8 months ago #174994 by Legnum
Wooohaa !
I was able to edit the link, I just corrected filte.php, added the menu title.

<a href="my-menu-name<?php echo $item->link; ?>">

I don 't know how much it 's right for, but it works.

And now different designs work for each menu.
Just create item.php in components/com_k2/templates/name_of_tmpl
Last edit: 4 years 8 months ago by Legnum.

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

More
4 years 8 months ago #175007 by JoomlaWorks
Replied by JoomlaWorks on topic JA K2 Filter and Search Module template for items
Cool :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Legnum
  • Legnum's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #175055 by Legnum
Thank you for the answers, it motivated me to sort out the problem:)

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

More
4 years 8 months ago #175057 by JoomlaWorks
Replied by JoomlaWorks on topic JA K2 Filter and Search Module template for items
As long as it's sorted... :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum