aproveitando o código de portal_skins/plone_templates/contact-info.
Criei um page template chamado 'contato' dentro de custom com o
seguinte código:
code:
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
i18n:domain="plone">
<body>
<div metal:define-macro="portletContato"
tal:omit-tag="">
<dl class="portlet" id="portlet-contato">
<dd>
<form name="feedback_form"
action=""> method="post"
tal:define="errors options/state/getErrors"
tal:attributes="action string:$here_url/$template_id">
<fieldset>
<legend
i18n:translate="legend_feedback_for_contact_info">Feedback
details</legend>
<tal:feedbackForm condition="isAnon">
<div class="field"
tal:define="error errors/sender_fullname|nothing"
tal:attributes="class python:test(error, 'field error',
'field')">
<label for=""> i18n:translate="label_sender_fullname">
Name
</label>
<div class="formHelp" i18n:translate="help_sender_fullname">
Please enter your full name
</div>
<div tal:content="error">Validation error output</div>
<input type="text"
id="sender_fullname"
name="sender_fullname"
size="40"
value=""
tabindex=""
tal:attributes="tabindex tabindex/next; value
request/sender_fullname|nothing"
/>
</div>
<div class="field"
tal:define="error errors/sender_from_address|nothing"
tal:attributes="class python:test(error, 'field error',
'field')">
<label for=""> i18n:translate="label_sender_from_address">
</label>
<span class="fieldRequired" title="Required"
i18n:attributes="title title_required;"
i18n:translate="label_required">(Required)</span>
<div class="formHelp"
i18n:translate="help_sender_from_address">
Please enter your e-mail address
</div>
<div tal:content="error">Validation error output</div>
<input type="text"
id="sender_from_address"
name="sender_from_address"
size="40"
value=""
tabindex=""
tal:attributes="tabindex tabindex/next; value
request/sender_from_address|nothing"
/>
</div>
</tal:feedbackForm>
<tal:feedbackForm condition="not:isAnon"
tal:define="fullname
python:request.get('fullname', member.getProperty('fullname', ''));
python:request.get('email', member.getProperty('email',''));">
<input type="hidden" name="sender_fullname"
value="fullname" tal:attributes="value fullname" />
<input type="hidden" name="sender_from_address"
value="email" tal:attributes="value email" />
</tal:feedbackForm>
<div class="field"
tal:define="error errors/subject|nothing"
tal:attributes="class python:test(error, 'field error',
'field')">
<label for="" i18n:translate="label_subject">
Subject
</label>
<span class="fieldRequired" title="Required"
i18n:attributes="title title_required;"
i18n:translate="label_required">(Required)</span>
<div class="formHelp" i18n:translate="help_subject">
Please enter the subject of the message you want to send.
</div>
<div tal:content="error">Validation error output</div>
<input type="text"
id="subject"
name="subject"
size="25"
value=""
tabindex=""
tal:attributes="tabindex tabindex/next; value
request/subject|nothing"
/>
</div>
<div class="field"
tal:define="error errors/message|nothing"
tal:attributes="class python:test(error, 'field error',
'field')">
<label for="" i18n:translate="label_message">
Message
</label>
<span class="fieldRequired" title="Required"
i18n:attributes="title title_required;"
i18n:translate="label_required">(Required)</span>
<div class="formHelp" i18n:translate="help_message">
Please enter the message you want to send.
</div>
<div tal:content="error">Validation error output</div>
<textarea name="message"
id="message"
rows="5"
cols="25"
tabindex=""
tal:attributes="tabindex tabindex/next;"
tal:content="request/message|nothing"
> </textarea>
</div>
<div class="formControls">
<input class="context"
tabindex=""
type="submit"
name="form.button.Send"
value="Send"
i18n:attributes="value label_send;"
tal:attributes="tabindex tabindex/next;" />
</div>
</fieldset>
<input type="hidden" name="form.submitted" value="1" />
</form>
</dd>
</dl>
</div>
</body>
</html>
Estou chamando ele em 'right_slots' como
'here/contato/macros/portletContato' para somente a página inicial...
Ele só aparece quando digito http://localhost/contact-info...
Só que não queria que o portlet estivesse vinculado ao contact-info
template. Então, como desvincular?
O problema é que não aparece nada na coluna, na página inicial...
Onde será que está o erro?
Alguém já fez algum portlet de contato?
Obrigado.
Para enviar uma mensagem: zope-pt@yahoogrupos.com.br
Para desistir envie uma mensagem em branco para: [EMAIL PROTECTED]
Yahoo! Grupos, um serviço oferecido por: | |
|
Links do Yahoo! Grupos
- Para visitar o site do seu grupo na web, acesse:
http://br.groups.yahoo.com/group/zope-pt/
- Para sair deste grupo, envie um e-mail para:
[EMAIL PROTECTED]
- O uso que você faz do Yahoo! Grupos está sujeito aos Termos do Serviço do Yahoo!.