- Posts: 30
COMMUNITY FORUM
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Seach module
- Nikos Papanikolaou
- Topic Author
- Offline
- Junior Member
Less
More
11 years 4 months ago #136717
by Nikos Papanikolaou
Seach module was created by Nikos Papanikolaou
i ve added k2 tools search module
but i notice that i actually loads on the current page that user is navigating..this means, that if i have a side menu attatched it will still display..etc..
and on breadcrumbs i ll have another path added with the search result..
is it possible search results to display in its own page without any extra modules etc that may be present on some sub categories?
but i notice that i actually loads on the current page that user is navigating..this means, that if i have a side menu attatched it will still display..etc..
and on breadcrumbs i ll have another path added with the search result..
is it possible search results to display in its own page without any extra modules etc that may be present on some sub categories?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 4 months ago - 11 years 4 months ago #136718
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic [SOLVED] Seach module
You are describing the default functionality of the K2 Tools module.
If you want it to post on another menu item you need to first create a new menu item (eg. on the hidden menu) and then have the search form post on that menu ID.
For example.
should turn into this
The file is located in your template's HTML folder in the mod_k2_tools subfolder
If you want it to post on another menu item you need to first create a new menu item (eg. on the hidden menu) and then have the search form post on that menu ID.
For example.
<form action="<?php echo $action; ?>"
should turn into this
<form action="<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=YOUR_MENU_ITEM_ID'); ?>"
The file is located in your template's HTML folder in the mod_k2_tools subfolder
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Nikos Papanikolaou
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
11 years 4 months ago #136719
by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic Seach module
thank you for the response Krikor, combined with hidden menu i have the desired result apart from one minor thing..
i keep getting the rss feed active..this is default on the seach.php? if so then i guess i should get rid of it using display:none at custom.css
didn't spot any corresponding setting on the parameters at backend
i keep getting the rss feed active..this is default on the seach.php? if so then i guess i should get rid of it using display:none at custom.css
didn't spot any corresponding setting on the parameters at backend
Please Log in or Create an account to join the conversation.
- Nikos Papanikolaou
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
11 years 4 months ago #136720
by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic Seach module
hi again,
since i use two languages in my site, i need to assign different itemid when the choosen language is english..
i found the variable $language in the helper.php but the echoed value that i get is just Jlanguage no matter what, so i can't make the necessary condition to redirect the form to different url
ideally it would be sth like that
<form action="<?php if (language == el){
echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=GR_MENU_ITEM_ID');}
else if (language ==en){
echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=EN_MENU_ITEM_ID');}
?>"
just probably need to find the correct way of manipulating system variables
since i use two languages in my site, i need to assign different itemid when the choosen language is english..
i found the variable $language in the helper.php but the echoed value that i get is just Jlanguage no matter what, so i can't make the necessary condition to redirect the form to different url
ideally it would be sth like that
<form action="<?php if (language == el){
echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=GR_MENU_ITEM_ID');}
else if (language ==en){
echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=EN_MENU_ITEM_ID');}
?>"
just probably need to find the correct way of manipulating system variables
Please Log in or Create an account to join the conversation.
- Nikos Papanikolaou
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
11 years 4 months ago #136721
by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic Seach module
i think i sorted this out.. using $language->getTag()
Log in or Create an account to join the conversation.