Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-28 13:12:31

davvi
Member
Registered: 2007-07-28
Posts: 24

zemcontactforum

What is wrong with this, I don’t came i touch with the css!!
The email form function well, I can submit the message. Where can I change the outlook in the “thank you for your email” form?
<form method=“post” id=“zemContactForm” action=”/contact/”>
<div style=“visibility: hidden”><input type=“text” name=“phone” value=”“ id=“phone” /><br /><input type=“text” name=“mail” value=”“ id=“mail” /></div>

<fieldset>

<div id=“zemContactForm”>
<zem_contact>
<txp:zem_contact to=“sara@si.no”>
<txp:zem_contact_email break=”“/><br/>
<txp:zem_contact_text label=“Navn” break=”“/>

<txp:zem_contact_textarea label=“Melding” cols=25/></br>
<txp:zem_contact_submit label=“Send” />
</txp:zem_contact>
</fieldset>
</form>

in my css: #zemContactForm { margin-top: 60px;
}

#zemContactForm form { width: 320px;
}

#zemContactForm fieldset {
border: none;
}

#zemContactForm input { background: url(/images/i.gif); margin-bottom: 3px;
} —- and so on

and in txp: <txp:zem_contact to=“sara@siank.no” id=“zemContactForm” label=”“>

Offline

#2 2007-07-28 13:51:21

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zemcontactforum

Replace <zem_contact> with <tzp:zem_contact>

If you’re using the zem_contact_reborn plugin, you can use the thanks or thanks_form attribute to change how the thanks message looks.

Offline

#3 2007-07-28 14:14:48

davvi
Member
Registered: 2007-07-28
Posts: 24

Re: zemcontactforum

I did like you mention, but now I come only to the “thank you for mailing” page.
Where shall I put tuhis code; <div id=“zemContactForm”>; in the zem_contact section? or HTML, if so where is it rigt to place it ( inside the fieldsetor?).
thanks for your answer

Offline

#4 2007-07-28 14:27:44

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zemcontactforum

In your page/template, you should have something like this:

<txp:zem_contact to="sara@siank.no" id="zemContactForm" label="" thanks_form="mythanksform">
  <txp:zem_contact_email break="" /><br />
  <txp:zem_contact_text label="Navn" break="" /><br />
  <txp:zem_contact_textarea label="Melding" cols="25" /><br />
  <txp:zem_contact_submit label="Send" />
</txp:zem_contact>

And create a TXP form called ‘mythanksform’ containing the layout of the thanks message you want.

All the other stuff will be added by the plugin automatically.

Last edited by ruud (2007-07-28 14:28:22)

Offline

Board footer

Powered by FluxBB