You are not logged in linkOpaque.gif Log in linkOpaque.gif Join
You are here: Home » Members » chaours's Home » J'ose vous poser une question ...

Une communauté active ?
Trouvez vous facilement les réponses à vos questions sur ZOPE, PLONE ou CPS (ou autres interfaces)
oui trés facilement
ca va
moyennement il faut pas mal chercher
non c'est assez dur
quasiment jamais

[ Results | Polls ]
Votes: 481
About
Created by
chaours
Document Post dans le forum
Last modified
28/03/07
State
published

J'ose vous poser une question ...


Pour participer à cette discussion, cliquez ici pour vous inscrire.

Auteur Discussion
chaours
J'ose vous poser une question ...
j'ose vous poser une question, ca fait plusieurs heures que je scrute et change avec méthode des paramètres dans ce code de zphotoslide mais je dois me rendre à l'évidence ...
je cherche à classer les zphotoslides par date de la plus récente à la plus vielle mais rien n'y fait ...

je me permet de vous poster le code du "photoslider_view" , ne métrisant pas python et dtml ... je me sent un peu à pékin ...

merci d'avance ;-)

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
metal:use-macro="here/main_template/macros/master"
i18n:domain="zps">



<head>
<metal:block metal:fill-slot="head_slot">
<metal:block tal:define="global is_manage_page python:0;
global template_title nothing;
global template_id string:zphotoslides_view"/>
<!--<metal:block tal:content="structure python:here.give_header_4_robots()"/>
-->
</metal:block>
<metal:block metal:fill-slot="javascript_head_slot">
<script language="JavaScript">
function popup(url)
{
winpop = window.open(url,'','top=150,left=250,width=500,height=500');
if (!winpop.opener)
winpop.opener = self;
self.name = "main";
}
</script>
</metal:block>
</head>
<body>
<div metal:fill-slot="main">


<tal:block metal:use-macro="here/zphotoslides_header/macros/header"/>

<!-- Description -->
<p tal:condition="here/description">
<span tal:replace="structure here/description"/>
</p>

<!-- Tableaux -->
<tal:block
tal:condition="python:here.getZPhotoSlidesFolderish(1)"
tal:define="raw_files python:here.getZPhotoSlidesFolderish(1);
sort_field request/sort_field | string:here/sort_field;
sort_rule request/sort_rule | string:cmp;
sort_sense request/sort_sense | string:desc;
sort_on python:((sort_field, sort_rule, sort_sense),);
files python:sequence.sort(raw_files, sort_on);
b_size python:4; b_start python:0; b_start request/b_start | b_start;
batch python:here.getBatch(files, b_size, int(b_start), orphan=0);
">

<table class="listing" cellpadding="4" cellspacing="1" border="0" align="center"
tal:attributes="width python:test(here.portal_type,None,'80%')">
<tr tal:condition="here/portal_type">
<!-- plone tree -->
<th colspan="3" style="font-size:150%">
<a href="" title=""
tal:attributes="href string:JavaScript:popup('${here/absolute_url}/zps_popup?macro=tree&expand_all=1');">
<span i18n:translate="View as Tree">View as Tree</span>
</a>
</th>
</tr>
<!-- end zope header -->
<!-- view header -->
<tr>
<th width="20%" nowrap
tal:attributes="class python:test(sort_field=='title_or_id',
'sorted_header', 'header')">
<a href="#"
tal:define="new_sense python:test((sort_field=='title_or_id') and (sort_sense == 'desc'),
'desc', 'asc')"
tal:attributes="href string:${request/URL0}?start:int=${batch/first}&sort_field=title&sort_rule=nocase&sort_sense=${new_sense}">
<span i18n:translate="Name">Name</span>
</a>
</th>
<th>
<span i18n:translate="Symbolic photo">Symbolic photo</span>
</th>

<th nowrap width="80%"
tal:attributes="class python:test(sort_field=='bobobase_modification_time', 'sorted_header', 'header')">
<a href="#"
tal:define="new_sense python:test((sort_field=='bobobase_modification_time') and (sort_sense == 'desc'), 'asc', 'desc')"
tal:attributes="href string:${request/URL0}?start:int=${batch/first}&sort_field=bobobase_modification_time&sort_rule=cmp&sort_sense=${new_sense}">
Description
</a>
</th>
</tr>
<!-- end view header -->

<tal:block tal:repeat="item batch" tal:define="global odd nothing">
<tr class="listing even" valign="top"
tal:define="isZps python:test(item.meta_type in ('ZPhotoSlides','CMF ZPhotoSlides'),1,0);
global odd python:test(odd,0,1);"
tal:attributes="class python: test(odd,'odd','even');"
>
<td align="center">
<a href="#"
tal:attributes="href string:${item/absolute_url}/view"
>
<img src="" alt="" border="0"
tal:attributes="src item/getIcon;
alt string:${item/meta_type};">

<span tal:content="item/title_or_id"/>

</a>
</td>
<td align="center">
<a href="#"
tal:attributes="href string:${item/absolute_url}/view;
class python:test(here.portal_type,None,'margin')">
<img src="" alt="" border="0" align="center"
tal:condition="isZps"
tal:replace="structure item/getSymbolicTag"/>
</a>
</td>

<td>
<!-- Description -->
<p tal:condition="python:item.description!=''">
<font size="1" face="Verdana , Arial, Helvetica" color="#000000">
&nbsp;&nbsp;
<span tal:replace="structure item/description"/>
</font>
</p>
<p>
<font size="1" face="Verdana, Arial, Helvetica"><b>
<span i18n:translate="Last modification:">Last Modification</span>
<span tal:replace="python:item.last_modif.strftime('%d %b %Y %H:%M')">2001/9/17</span></b><br>

<tal:block tal:condition="python:test(isZps==1)">
<b tal:define="nb_photos python:item.countImages(1)">
<span tal:condition="nb_photos" i18n:translate="This Album:"/>
<span tal:replace="nb_photos"/>
Photos.</b>
<tal:block tal:condition="item/show_viewed">
<br><span i18n:translate="">This album has been viewed </span>
<span tal:replace="python:len(item.visits_log)"/>
<span i18n:translate="">times</span>.
</tal:block>
</tal:block>

<tal:block tal:condition="python:test(isZps==0)">
<b>
<span i18n:translate="This Folder:"/>
<span tal:replace="item/get_nbr_non_hidden_thumb|string:0"/>
Photos.</b>
</tal:block>
</font>
</p>
</td>
</tr>
</tal:block>
</table>

<br>
<!-- Barre de Navigation -->
<table border="0" cellpading="0" cellspacing="0"
tal:attributes="width python:test(here.portal_type,None,'80%')">
<tr>
<td align="center"><div metal:use-macro="here/zps_batch_macros/macros/navigation" /></td>
</tr>
</table>

</tal:block>

<!-- Comments -->
<tal:block tal:condition="not:here/portal_type">
<tal:condition tal:condition="here/show_comment">
<tal:condition tal:condition="python: here.popup_comments or here.popup_add_comment">
<div metal:use-macro="here/zps_comments/macros/popup_link"/>
</tal:condition>
<tal:condition tal:condition="not:here/popup_comments">
<div metal:use-macro="here/zps_comments/macros/view_comments"/>
</tal:condition>
<tal:condition tal:condition="not:here/popup_add_comment">
<div metal:use-macro="here/zps_comments/macros/add_comment"/>
</tal:condition>
</tal:condition>
</tal:block>

<tal:block metal:use-macro="here/zps_colophon/macros/colophon"/>

</div>
</body>
</html>

Posté le 28/03/2007 @ 01:56

Recherche
Log in
Syndication
« November 2008 »
Su Mo Tu We Th Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30