Random ...
 
December 2017
S M T W T F S
          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
31            
Tags ...
Links



python+zope++:: COREBlog: tagging your entry
Posted at 30.May,2006 13:42  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Here's an easy way to tag your COREBlog entry. Use the subtitle field to enter your tags separated by spaces (in my case).

Then, in entry_html, look for subtitle and change it to this:

   <dtml-if "_.len(subtitle)>0">
   <div class="title-post">
    Technorati tag(s): <dtml-in expr="subtitle.split()" prefix=seq>
    <span class="subtitle"><a   href="http://technorati.com/tag/&dtml-seq_item;" rel="tag">
    <dtml-var seq_item></a> </span>
   </dtml-in> 
   </div>
   </dtml-if>

I know most knows what this does, but anywho .. we're iterating subtitle after splitting it. Then we construct the anchor tag and voila - instant tags.

This ought to be in the COREBlog core, methinks, since Technorati is the place to put your blog.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/82/tbping 

Comments
Post a comment