Edit detail for WebLog revision 1 of 1

1
Editor: simon
Time: 2005/09/14 11:52:32 GMT+0
Note:

changed:
-
Zwiki pages presented blog-style, implemented with dtml. Here's a recent version of blog-in-zwiki, based on d2m's ZopeWiki:WebLog - for more see ZwikiBlog. 

<!-- evolving code, not clean -->
<div class="weblog">
<h2 style="margin-top:0px;">New on zwiki.org..</h2>
<dtml-call "RESPONSE.setHeader('Content-Type','text/html; charset=utf-8')">
<dtml-let 
 wikiurl=wiki_url
 summaries="REQUEST.get('summaries',1)"
 days="REQUEST.get('days',30)"
 newdays=days
 now="_.str(200509)"
 thismonth="REQUEST.get('month',now)"
 y="_.int(thismonth[0:4])" 
 m="_.int(thismonth[4:6])" 
 m1="m + 1"
 y1="_.test(m1==13,y+1,y)"
 m1="_.test(m1==13,1,m1)"
 mstart="_.DateTime('%s/%s/1' % (y,m))"
 ystart="_.DateTime('%s/1/1' % (y))"
 mend="_.DateTime('%s/%s/1' % (y1,m1))"
 results="pages(
   creationTime=[ystart,mend],
   creationTime_usage='range:min:max',
   )"
 number="_.len(results)"
 archive="['200508','200507','200506','200505','200504','200503','200502','200501']#,'2004','2003']"
 archtxt="['Aug','Jul','Jun','May','Apr','Mar','Feb','Jan','2004','2003']"
 >
<div class="sidebar" style="float:right; margin-left:3em;">
<strong>Archive</strong><br />
<dtml-in expr="archive">
  <dtml-let index=sequence-index
            link="archive[index]"
            text="archtxt[index]">
  &raquo;&nbsp;<a href="&dtml-wikiurl;/&dtml.url_quote-id;?month=&dtml-link;">&dtml-text;</a><br />
  </dtml-let>
</dtml-in>
</div>
<dtml-in results sort=creation_time reverse prefix=x size=10>
<dtml-if "'SandBox' not in parents and 'TestPage' not in parents">
     <div class="post" style="
			      ">
       <h3 style="
		  margin-bottom: 1px;
		  text-decoration: none;
		  ">
	 <a href="&dtml-wikiurl;/&dtml.url_quote-id;" title=""><dtml-var "formatWikiname(Title)"></a>
       </h3>
       <p style="
		 margin-top: 1px;
		 ">
	 <dtml-var "getObject().renderedSummary()">
	 <span class="dimtext" style="">
	   <br>
	   <dtml-if "creator and _.string.swapcase(creator) != creator">
	     &dtml-creator; - 
	   </dtml-if>
	   <dtml-var expr="creation_time[:10]"> - 
	   <a href="&dtml-wikiurl;/&dtml.url_quote-id;#bottom"><dtml-var "x_item.getObject().commentCount()">&nbsp;comments</a>
	 </span>
       </p>
       </div>
</dtml-if>
</dtml-in>
</dtml-let>
<a href="&dtml-id;/pages_rss"><img src="rss20.png" border="0" /></a><br />
</div>


Zwiki pages presented blog-style, implemented with dtml. Here's a recent version of blog-in-zwiki, based on d2m's ZopeWiki:WebLog - for more see ZwikiBlog.

New on zwiki.org..