On 16/03/11 17:55, Jon Cano wrote:
Hola a todos,
Al pasar de plone2.5 a plone 4 estoy bastante perdido.
Solucionados otros problemas ahora me surge uno nuevo
La modificacion del Header, que antes se hacia mediante el
main_template, ahora esta el tema de los viewlets que me trae de cabeza.
Puedo ocultarlos dede el @@manage-viewlets, pero queroa poner el you
are here en el footer y no puedo.
¿¿Algun consejo respecto a los viewlets o como modificarlos??
No sé si se puede mover un viewlet de un viewlet-manager a otro a través
de la web (yo no lo he conseguido), pero suponiendo que estés
desarrollando un skin como producto instalable, en
browser/configure.zcml tienes que añadir:
<browser:viewlet
name="plone.path_bar"
manager="plone.app.layout.viewlets.interfaces.IPortalFooter"
class="plone.app.layout.viewlets.common.PathBarViewlet"
layer=".interfaces.IThemeSpecific"
permission="zope2.View"
/>
y reiniciar la instancia.
Si ya tienes un diseño en html estático, es probable que sea más
sencillo con XDV/Diazo.
Y el otro tema es las traducciones en plone 4, que antes usaba algo
tal que asi
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'es' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align: top;"> Últimas
Noticias </h5></td>
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'en' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align: top;"> Lastest
News </h5></td>
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'fr' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align:
top;"> Actulités </h5></td>
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'de' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align:
top;"> Nachrichten </h5></td>
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'ru' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align: top;"> Lastest
News </h5></td>
<td
tal:condition="python:portal.portal_languages.getLanguageBindings()[0]
== 'zh' ">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align:
top;"> 最新新聞 </h5></td>
y ahora ya no puedo, y tengo que usar archivos .po y no consigo que
funcione nada
Gracias
Prueba:
<td tal:define="portal_state context/@@plone_portal_state;
lenguaje portal_state/language"
tal:condition="python:lenguaje=='es' or lenguaje=='es-es'">
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align: top;"> Últimas
Noticias </h5></td>
<td tal:define="portal_state context/@@plone_portal_state;
lenguaje portal_state/language"
tal:condition="python:lenguaje=='en' or lenguaje=='en-en'" >
<h5 style="background-color: #990000; color:rgb(255, 255, 255);
font-weight: lighter; vertical-align: top;"> Lastest
News </h5></td>
...
Un saludo
Raúl Ríos
_______________________________________________
Usuarios-Plone mailing list
Usuarios-Plone@lists.plone.org
https://lists.plone.org/mailman/listinfo/usuarios-plone