[gitec] Imagens Noticias - Portal Modelo

Jorge Mendes jorgemendes em camaravassouras.rj.gov.br
Quarta Fevereiro 27 10:30:35 BRT 2013


Grande Ângelo, segue os códigos:

*pagina-inicial* está assim:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">
<body>
<div metal:fill-slot="main">
  <div metal:use-macro="context/global_slide/macros/panel" />
  <div
metal:use-macro="here/portlet_ultimasnoticias_comfoto/macros/portlet" />
</div>
</body>
</html>

*portlet_ultimasnoticias_comfoto* está assim:


<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      i18n:domain="plone">

<body>

<!-- The news box -->

<div metal:define-macro="portlet" tal:define="box_id string:noticia;
portal_publicator nocall:here/portal_publicator; pb
python:portal_publicator.getPublicationBoxesInfo(box_id); isVisible
pb/visible;" tal:condition="python:template.getId()!='noticia' and
isVisible">
  <dl class="portlet" id="portal-noticia" tal:define="box_items
python:pb['items']">
    <dt class="portletHeader">Ultimas Noticias<a href=""
tal:condition="python:checkPermission('Review portal content', here)"
tal:attributes="href
string:${portal_url}/publicator_edit_form?box_id=${box_id}">
      <img src="" alt="Edit" title="Edit" height="16" width="16"
tal:attributes="src string:${portal_url}/publicator_edit_icon.gif"
i18n:domain="publicator" i18n:attributes="alt; title;" /> Editar
Publica&ccedil;&otilde;es </a>
        </dt>
          <tal:block tal:repeat="obj box_items">
             <dd tal:define="oddrow repeat/obj/odd;
                                 item_id obj/Id;
                                 item_title obj/Title;
                                 item_description obj/Description;
                                 item_image_caption
                                 obj/ImageCaption|python:0;
                                 item_url obj/RelativeContentURL;
                                 new_window obj/NewWindow;
                                 item_icon obj/Icon;
                                 item_date obj/Date;"
                                 tal:attributes="class python:test(oddrow,
                                 'portletItem', 'portletItem')"
                                 tal:condition="python:item_url">

  <span tal:condition="not:item_image_caption"> <img class="image-left"
border="0" src="" alt="Imagem da Noticia" tal:attributes="src
string:${item_url}/image_tile" /></span>
    <b><span tal:replace="python:test(item_title, item_title,
item_id)">Title</span></b><br> <a href="" tal:attributes="href
string:${portal_url}/${item_url}; title item_description; target
python:test(new_window, '_blank', None);">
    <span tal:replace="python:test(item_description)">Description</span>
     </a>
      </dd>
       </tal:block>
         <dd class="portletFooter">
          <a href="" tal:attributes="href
string:${portal_url}/noticias">Todas as noticias</a>
         </dd>
    </dl>
</div>
</body>
</html>


Só fiz mudanças mesmo no pagina-inicial, para poder mostrar o
ploneslideshow.

Forte abraço Ângelo.
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.interlegis.gov.br/pipermail/gitec/attachments/20130227/54349688/attachment.htm 


Mais detalhes sobre a lista de discussão GITEC