Aller au contenu. | Aller à la navigation

Outils personnels

Navigation
Vous êtes ici : Accueil / Aide pour les responsables / Homepage pour non connectés / Code pour customiser news.pt dans portal_view_customizations

Code pour customiser news.pt dans portal_view_customizations

<!-- VERSION 2 AVEC ACTUS+ EN P1 -->

<dl class="portlet portletNews"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:tal="http://xml.zope.org/namespaces/tal"
    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    i18n:domain="plone">

<div class="rssimg"><a href="news/aggregator/RSS"> <img height="15" src="portal_skins/custom/rss2.png" width="15" /> </a></div>

    <dt class="portletHeader">
        <span class="portletTopLeft"></span>
        <a href="#"
           class="actu"
           tal:define="all_news_link view/all_news_link"
           tal:omit-tag="not:all_news_link"
           tal:attributes="href all_news_link"
           i18n:translate="box_news">News</a>
        <span class="portletTopRight"></span>

    </dt>

    <tal:newsitems  tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
                                plone_view context/@@plone;
                                getIcon nocall:plone_view/getIcon;"
                    tal:repeat="obj view/published_news_items">
    <dd tal:define="oddrow repeat/obj/odd;
                    item_icon python:getIcon(obj);"
         tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">

     


<!--J'ENLEVE L'AFFICHAGE DE L'ICONE DEVANT CHAQUE ACTU ET J'AJOUTE L'IMAGE ASSOCIEE A CHAQUE ACTU (FACULTATIVE)
            <img tal:replace="structure item_icon/html_tag" />
-->
<table>
<tr valign=top>
<td width="70px" align=center>
<img src="" alt=""
 tal:define="item_object obj/getObject;"
 tal:condition="exists:item_object/image_tile"
 tal:replace="structure python: path('nocall:item_object/tag')(scale='tile',
 css_class='tile Image')" />
</td>
<td width="10px">
</td>
<td class="titre_actu">
   <a href=""
         
           tal:attributes="href obj/getURL;
                           title obj/Description">

            <div class="titre_actu" tal:replace="obj/pretty_title_or_id">

            </div >



<!--J'ENLEVE L'AFFICHAGE DE LA DATE

 <a href=""
           class="tile"
           tal:attributes="href obj/getURL;
                           title obj/Description">

            <span  class="titre_actu" tal:replace="obj/pretty_title_or_id">
            Plone 2.1 announced!
            </span >



            <span class="portletItemDetails"
                  tal:content="python:toLocalizedTime(obj.Date)">May 5</span>
-->
     </a>   
</td>
</tr>
</table>

    </dd>
    </tal:newsitems>

    <dd class="portletFooter"
         tal:condition="view/all_news_link">
        <span></span>
  <span class="lien_ttesactus">
        <a href="./saussure/news/aggregator">
         Plus d'actus ...
        </a>
</span>
        <span class="portletBottomRight"></span>
    </dd>
    <tal:block condition="not:view/all_news_link">
    <dd class="portletFooter">
        <span class="portletBottomLeft"></span>
        <span class="portletBottomRight"></span>
    </dd>
    </tal:block>
</dl>

<!-- FIN DE : VERSION 2 AVEC ACTUS+ EN P1 -->