- Posts: 41
COMMUNITY FORUM
[SOLVED] - K2tool search and menu item
- alexandria
- Topic Author
- Offline
- Senior Member
Less
More
9 years 9 months ago - 9 years 8 months ago #135700
by alexandria
SOLVED - K2tool search and menu item was created by alexandria
Hello,
I've created a results page with a menu item
I did overide the search.php and changed the action form with thiswith YOUR_MENU_ITEM_ID is the id of the menu item of the results page.
but still no menu item...
even before this changes, i haven't got a menu item of the current page when i use the k2 tool search...
my url of the generic page i land is like this :
I have the k2 2.6.9 and joomla 3.3.6
Please help me
I've created a results page with a menu item
I did overide the search.php and changed the action form with this
<form action="<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&task=search&Itemid=YOUR_MENU_ITEM_ID'); ?>"
but still no menu item...
even before this changes, i haven't got a menu item of the current page when i use the k2 tool search...
my url of the generic page i land is like this :
/index.php?searchword=tara&categories=&option=com_k2&view=itemlist&task=search&format=html&t=1420180781587&tpl=search
I have the k2 2.6.9 and joomla 3.3.6
Please help me
Last edit: 9 years 8 months ago by alexandria.
Please Log in or Create an account to join the conversation.
- alexandria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
9 years 8 months ago - 9 years 8 months ago #135740
by alexandria
Replied by alexandria on topic K2tool search and menu item
Hello,
sorry, the solution was on this forum but i had to find it :)
in the same file of the template : html/mod_k2_tools/search.php
after :
<?php if(!$app->getCfg('sef')): ?>
add :
<input type="hidden" name="Itemid" value="MENU_ITEM_ID" />
Thanks :)
sorry, the solution was on this forum but i had to find it :)
in the same file of the template : html/mod_k2_tools/search.php
after :
<?php if(!$app->getCfg('sef')): ?>
add :
<input type="hidden" name="Itemid" value="MENU_ITEM_ID" />
Thanks :)
Last edit: 9 years 8 months ago by alexandria.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #135761
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2tool search and menu item
Nice to hear that you solved the issue :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- alexandria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
9 years 8 months ago #140338
by alexandria
Replied by alexandria on topic SOLVED - K2tool search and menu item
Thanks Krikor :)
Please Log in or Create an account to join the conversation.