Enzo Cesanelli ha scritto:
Chiedo venia se è banale o già stato detto mille volte (ho cercato senza
successo) ma non riesco a far nascondere l'ora da una view di AT.
Per l'edit basta mettere "show_hm = False" nel content type e non viene
visualizzato ma in un page template dove richiamo il field con un semplice:
<div tal:condition="here/getBirthplace">
<span i18n:translate="label_birthplace">Birthplace: </span>
<span metal:use-macro="python:here.widget('birthplace',
mode='view',use_label='1')"><strong>Field value</strong></span>
</div>
devi passare il formato, credo, come parametro, oppure direttamente show_hm:
CalendarWidget (widgets/calendar)
Renders a HTML input box with a helper popup box for choosing dates
*Special Properties*
Name Type Default Description
format
Defines the strftime Format, e.g. '%d.%m.%Y' for the view.
future_years
5 Not supported by the plone templates yet.
starting_year
1999 Not supported by the plone templates yet.
ending_year
None Not supported by the plone templates yet.
show_ymd
True Not supported by the plone templates yet.
show_hm
True Not supported by the plone templates yet.
http://plone.org/products/archetypes/documentation/manual-1-3/quickref-1-3/widget-reference
_______________________________________________
Plone-IT mailing list
Plone-IT@lists.plone.org
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html