Ecco il codice di cui parlavo:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"># Special handling of the front-page, as we want to translate it<br>
if 'front-page' in existing:<br> fp = p['front-page']<br> if wftool.getInfoFor(fp, 'review_state') != 'published':<br> wftool.doActionFor(fp, 'publish')<br>
<br> # Show off presentation mode<br> fp.setPresentation(True)<br><br> # Mark as fully created<br> fp.unmarkCreationFlag()<br><br> if target_language is not None:<br>
util = queryUtility(ITranslationDomain, 'plonefrontpage')<br> if util is not None:<br> front_title = util.translate(u'front-title',<br> target_language=target_language,<br>
default="Welcome to Plone")<br> front_desc = util.translate(u'front-description',<br> target_language=target_language,<br>
default="Congratulations! You have successfully installed Plone.")<br> front_text = util.translate(u'front-text',<br> target_language=target_language)<br>
fp.setLanguage(language)<br> fp.setTitle(front_title)<br> fp.setDescription(front_desc)<br> if front_text != u'front-text':<br> fp.setText(front_text)<br>
</blockquote><br><div class="gmail_quote">2009/1/16 Vito Falco <span dir="ltr"><<a href="mailto:vitofalco@gmail.com">vitofalco@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ciao,<br>dai un'occhiata al codice che PLone utilizza in fase di installazione per creare la "front-page" nella root del plone site ;-)<br><br>Vito<br><br><div class="gmail_quote">Il giorno 16 gennaio 2009 10.04, Yuri <span dir="ltr"><<a href="mailto:yurj@alfa.it" target="_blank">yurj@alfa.it</a>></span> ha scritto:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Salve,<br>
<br>
avrei necessità di creare un tipo pagina che abbia già un contenuto precaricato. Qual è il modo più semplice per farlo, senza scrivere troppo codice? :)<br>
<br>
<br></div>_______________________________________________<br>
Plone-IT mailing list<br>
<a href="mailto:Plone-IT@lists.plone.org" target="_blank">Plone-IT@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/plone-it" target="_blank">http://lists.plone.org/mailman/listinfo/plone-it</a><br>
<a href="http://www.nabble.com/Plone---Italy-f21728.html" target="_blank">http://www.nabble.com/Plone---Italy-f21728.html</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>"Design is the method of putting form and content together. Design, just as art, has multiple definitions; there is no single definition. Design can be art. Design can be aesthetics. Design is so simple, that's why it is so complicated." by Paul Rand<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>"Design is the method of putting form and content together. Design, just as art, has multiple definitions; there is no single definition. Design can be art. Design can be aesthetics. Design is so simple, that's why it is so complicated." by Paul Rand<br>