The WeblogEntryPlugin is a JSPWikiPlugin that emits a link to create an new blog entry.

Parameters #

  • entrytext - text of the link
  • page - if set, the entry is added to the named blog page. The default is the current page.

CSS classes#

  • none

Example#

[{WeblogEntryPlugin}] - Inserts the link "New entry" that will create an entry viewable by a WeblogPlugin on the current page.

[{WeblogEntryPlugin page='MyBlog' entrytext='post'}] - Inserts the link "post" that will create an entry viewable by a WeblogPlugin that displays page MyBlog.

Questions & Answers#

Q) Is it possible to create a Web log with a different date other than the current date and time? I found I had to modify the date time of the Wiki page file (I am using file provider) to create an entry with a different date time -- Andrew Broughton
A) (no answer so far...)
Q) Is is possible to create a Web log with a custom title?
A) Yes, use !,!! or !!! to make a heading and this will be used as custom title --Anders Johan Jamtli
Q) How can I incorporate the blogentry comments pages on the same page as the original entry? Clicking on the "Comments(0)" does a couple things that could be improved (or I need to learn how to stop it from doing this if that option exists)~
1. it opens in a new window, 2. it opens to the "Add Comment" tab. If clicking on the blog title or the "Permalink" link at the bottom went to the actual blog page with it displaying the current comments, the link from the entries could be "Add Comments" and go directly to the "Add Comment" tab. : A) Good question. Anybody want to start developing this plugin further? -- Janne Jalkanen
Q) Is there any security associated with the Weblog Entry Plugin. It would seem sensible that only people who could edit the page that the associate weblog was on would be able to add entries. -- Keith Hart aka ownimage
A) I have put a fix into my NewBlogEntry.jsp (I'm running 2.4.71) I have uploaded a version here in case it is of use to anyone else. Keith Hart aka ownimage
Q) Is there any way to set new entries for a blog to have the same permissions that the original blog page has? (i.e. - A page "TestBlog" containing a Blog which only Group X can view. Creating new entries "TestBlog_blogentry_....." will also only be viewable by Group X)
A) No, but we hope to fix this in 3.0.

See: JSPWikiCorePlugins


Category.Plugins