Forums / Setup & design / Problem regrading "/content/search" for research.
nga patel
Friday 29 April 2005 2:30:37 am
In my site, I had set the button, in which after writing any word and clicking on the another button "OK",(I set it with following script),
<table align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <form action="/content/search" method="get"> <input name="recherche" type="text" id="search" value="Rechercher par motsclés" size="22" maxlength="" onFocus="this.value=''"> </td> </tr> <tr> <td align="right"> <input class="button" type="submit" value="OK" /> </form> </td> </tr> </table>
Now the problem is that after clicking on the "OK" it shows " Not FoundThe requested URL /content/search was not found on this server.
Apache/1.3.33 Server at localhost Port 80"
Is there anything wrong, I had also check my content/search.tpl file, I can't understand why this error causes? Could anybody help me?Thanks
<i>// please use
tags to mark your code, thank you</i>
Łukasz Serwatka
Thursday 05 May 2005 11:50:16 pm
Try replace your action with action={"/content/search"|ezurl}
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Monday 09 May 2005 1:45:58 am
Thanks, but it does not work exactly what I want, means it shows the same result in the front page and as you can see in my script I had already created this Box and in place of the "Search" button I had created "OK" button, so after following your advice, in the front page when I write any key work to search in the first box which I had created and then when I click on the "OK" button, it does not show the required result but comes the same another form with "Advance search" and with some description. I could understand this is due to the "content/seach.php" file, and so I have to override this file to solve this problem but I don't know where I have to create this override file and how its works. Is this the same override file which we created to show the folder description? I also try but mean while if there is any documents or any idea for that please mention here.Thanks