10 years ago
2
Topic

Hi,

I can get search working when using a "search link" and the search fields appears in the top of the content area.

But if i use the search module nothing happens, and i'm been send to the homepage (frontpage)

What am i doing wrong?

1. Search via "search link"  the http looks like this:

http://bindestuen.dk/index.php?option=com_content&view=article&id=68:1-tradet-farveskiftegarn&catid=23&Itemid=213


Searching via the search module the http looks like this:

http://bindestuen.dk/index.php?garnnavn=1-tr%C3%A5det+farveskiftegarn&garntype=&leverandr=&search=find_garn&task=search

It looks like something are missing here??



Best regards

Boris

Get a VIP membership
9 years ago
1
Level 1

Boris. Did you manage to solve this? 

I am now faced with the same problem.

9 years ago
0
Level 2

This has now been solved:

You have to make some changes to the search form template:

I made a duplicate of the file \modules\mod_cck_search\tmpl\default.php and called it override.php

The Seblod search form uses these fields

Search for:
<input type="hidden" name="search" value="<?php echo $preconfig['search']; ?>" />
<input type="hidden" name="task" value="search" />


Replace the lines with:

<input type="hidden" value="com_cck" name="option">

<input type="hidden" value="list" name="view">

<input type="hidden" value="<?php echo $params->get( 'menu_item', '' ); ?>" name="Itemid">

<input type="hidden" value="<?php echo $preconfig['search']; ?>" name="search">

<input type="hidden" value="search" name="task">

In the SEARCH MODULE settings, go and change the template in advanced to your new template file.

Thanks to Cyril who posted the solution

Get a VIP membership