Here are collected a couple of ideas to make Moin a nicer blog.

Currently, you can make a blog out of MoinMoin by saving all pages with names like blog/2005/02/07 and including them with the following statement: [[Include(^blog/.*,,1,sort=descending, items=5)]].

enhanced NewPage macro

The NewPage macro/action can be just a single button for adding a new blog entry, see the documentation of its fourth parameter.


example of new page automatically with the date as the page

Added by embarrassed Python rookie who wasted 4 hours figuring this out...

This slick solution was exactly what I wanted for my office - a blog/news page. The NewPage macro referred to here can automatically create a page with the pagename such as: blog/yyyy-mm-dd hhmmss.

Use: <<NewPage(NewPageTemplate,Post a new item,@SELF,%Y-%m-%d.%H%M%S)>> in your blog page. I suggest creating a BlogPageTemplate instead of using the NewPageTemplate.

The special codes for the date and time are for Python (I missed that originally). I found this page that finally made it all clear: http://www.python.org/doc//current/library/datetime.html#strftime-behavior. If the link is broken, search the web for python %y or this website: http://www.tutorialspoint.com/python/time_strptime.htm.

Step by step:

  1. Create a mywiki/blog page that contains (will show as a button):

 <<NewPage(NewBlogPostTemplate,Post a new item,@SELF,%Y-%m-%d.%H%M%S)>>

 [[Include(^blog/.*,,1,sort=descending, items=5)]]
  1. Create a NewBlogPostTemplate that contains

 == @ PAGE @ ==
 ~-@ SIG @-~
 your opinion here...

 [[../|Return to top]]

/!\ I added spaces between the @ symbol and PAGE and SIG so moin wouldn't expand the built in variables.

The return to top link is so when a user is done created their blog entry, they can easily jump back to the parent page.


rss feed

Use FeatureRequests/LimitedRecentChanges

MoinMoin: JohannesBerg/NicerMoinBlog (last edited 2012-03-31 02:31:28 by 24-179-152-237)