Search form and mail form help needed

Search form and mail form help needed

Wednesday 07 April 2004 4:06:57 pm - 4 replies

Modified on Wednesday 07 April 2004 4:07:20 pm by Andreas Widerøe Andersen

Author Message

Alex Jones

Thursday 08 April 2004 6:05:41 am

Andreas, you can use the code below for your search box. I grabbed it from /design/standard/templates/page_topbox.tpl which is included in every eZ publish installation.

<form action={"/content/search/"|ezurl} method="get">

<table class="layout" width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
    <td class="topline" width="40%">
    <img src={$top_logo|ezimage}  alt="" />
    </td>
    <td class="topbox" align="right" width="50%" valign="bottom">
       &nbsp;<br />
	<input class="halfbox" type="text" size="20" name="SearchText" id="Search" value="" /><br />
	<a class="topline" href={"/content/advancedsearch/"|ezurl}><span class="small">{"Advanced search"|i18n("design/standard/layout")}</span></a><div class="labelbreak"></div>
    </td>
    <td class="topbox" valign="top" width="10%">
       &nbsp;<br />
	<input class="button" name="SearchButton" type="submit" value="{'Search'|i18n('design/standard/layout')}" />
    </td>
</tr>
</table>

</form>

<b>Mail Form</b>
Check the permissions for the <i>Anonymous</i> user (under Users > Roles > Anonymous) to ensure they have the proper rights to use the form module.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Andreas Widerøe Andersen

Thursday 08 April 2004 7:30:28 am

Already did that. It now says:

Role policies

Module Function Limitation

user  login  *  
content  read  Class( Folder , Info page , Info page , Link , Link , File , File , Comment , Comment , Article , Article , Image , Image , Forum , Forum , Forum message , Forum message , Product , Product , Product review , Product review )  
content  read  Class( Ressurser )  
form  *  *  

I've also set this:

[FormProcessSettings]
Module=enabled

in the site.ini.append file for my layout. Any other suggestions?

Btw. I got the search function working - thanks!

Andreas

Andreas Widerøe Andersen

Thursday 08 April 2004 10:37:49 am

I got it fixed. All that was needed was to enable the module. Strange enough I did this several times - but perhaps I missed something?

Thanks for your help!

Alex Jones

Thursday 08 April 2004 11:42:43 am

It's good to hear you have it working! After changing any major setting, it is good to clear all of the caches, which can cause problems with changes not showing up.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.