Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2015-09-14 18:36:01
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
zem_contact
Have I written the following form on textpattern
<div class="form__row">
<div class="formleft">
<txp:zem_contact to="Nomail@gmail.com">
<div class="form__row">
<div class="formleft">
<txp:zem_contact_text label="nome" min=7 max=15/>
<input type="text" id="nome">
<label for="text-input" id="laco">Cognome</label>
<txp:zem_contact_text label="Cognome" min=7 max=15/>
<label for="text-input" id="mai"> E-mail</label>
<txp:zem_contact_text label="mail" min=7 max=15/>
<txp:zem_contact_submit label="Invia" />
</div> <!--formleft-->
<div class="formrigth">
<txp:zem_contact_textarea label="Mail" />
</div> <!--formrigth-->
</div> <!--form__row-->
</form>
but doesn’t it draw anything?
EDIT: code presentation updated
>edited to delete email
Last edited by colak (2015-09-14 19:24:41)
Offline
Re: zem_contact
The main reason is you haven’t closed your zem_contact containing tag:
<txp:zem_contact to="…"> … </txp:zem_contact>
To fix that replace </form>
at the end with the closing tag and add your remaining closing divs.
I think you’ll also find that if you use the label="Cognome"
attribute in the zem_contact tag, you don’t need to add your own label
tag. If you want to specifically use your own label tags, set label=""
and then use your own tag. You need to make sure that the @for=”…” matches the corresponding input tag.
Also I think you can remove the id="nome"
input tag as you already have a zem_contact_text one line above.
TXP Builders – finely-crafted code, design and txp
Offline
Pages: 1