Changes between Version 5 and Version 6 of TracBlogPlugin


Ignore:
Timestamp:
Apr 4, 2006 12:44:39 AM (8 years ago)
Author:
pacopablo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracBlogPlugin

    v5 v6  
    2626 
    2727== Installation == 
    28 This plugin ''requires'' that the TagsPlugin is installed.  It has been tested with the current trunk, though should work on 0.9.x 
     28TracBlogPlugin has been tested with the current trunk, though should work on 0.9.x 
     29=== Requirements === 
     30 * TagsPlugin >= 0.3 
     31 * [t:WebAdmin WebAdmin] 
    2932 
    3033Install in the same manner as any other Trac plugin: 
     
    4043}}} 
    4144 
     45== Example == 
     46 {{{[[BlogShow]]}}}:: 
     47 Displays a blog based on tags 
     48     
     49 The list of tags to be shown can be specified as arguments to the macro. 
     50 An options keyword argument of union can be secified.  If specified, then 
     51 the resulting blog will be a {{{union}}} of pages with the specified tags. 
     52 If the {{{union}}} parameter is omitted, then an intersection of the 
     53 specified tags is returned. 
    4254 
    43 == Example == 
    44 The BlogShow() macro allows for embedding blogs into a wiki page.  You can specify which tags should be included in the blog.  If no tags are specified, then the ''blog'' tag is used. 
     55 If no tags are specified as parameters, then the default 'blog' tag is used. 
    4556{{{ 
    4657[[BlogShow()]] 
    4758[[BlogShow(blog,pacopablo)]] 
    4859[[BlogShow(blog,pacopablo,union=True)]] 
     60}}} 
     61 
     62 {{{[[BlogPost]]}}}:: 
     63 Inserts a link to create a new blog post 
     64 
     65 Accepts keyword arguments that specify default parameters.  
     66 
     67 '''tag''' - Tag that populates the "Tag under" field.  This key may be specified multiple times.[[br]] 
     68 '''blogtitle''' - Default blog entry title.[[br]] 
     69 '''text''' - Default entry body text.[[br]] 
     70 '''pagename''' - Default wiki page name.[[br]] 
     71 '''readonly''' - Default readonly page status.[[br]] 
     72{{{ 
     73[[BlogPost()]] 
     74[[BlogPost(tag=blog,tag=pacopablo)]] 
     75[[BlogPost(tag=blog,blogtitle=A Simple Title,text=Body Text)]] 
     76[[BlogPost(tag=blog,pagename=blog/newpage,readonly=1)]] 
    4977}}} 
    5078