Blog
-
- Last edited 6 years ago by Lsireta
-
-
- This page is a first draft
Contents
What is Blog?
Blog extension allows creating news feeds on the wiki. These news feeds can be shown on any page, and users can be allowed to add their own news
Where can I find the blog function?
In the TopMenuBar, at the very top of any page there is a link to Blog special page, which then opens a page containing a form for writing a new blog entry and a list of previous entries.
Blog news feed can be displayed on any page by adding blog tag to the page
This will also display "Create new blog" form on the page, unless its disabled using blog tag attibutes
A blog entry consists of a title, revision information (date and author of first revision), the entry itself and possibly links for comments and a permalink.
If a blog entry is too long, link "continue reading" will be displayed
Write an entry or create a new entry
As described above, new blog entries can be created through the form on the page containing blog tag, on Blog special page (Special:Blog), or by directly creating new pages in Blog namespace.
Blog tags
Blog extension offers several tags. These tags can be added to a page using InsertMagic functionality, or writing tag syntax directly to wiki code editor.
Wiki tag | Description |
---|---|
<blog /> | Normal blog |
<bs:blog:more /> | The "more" tag is used in the single entries limit the teaser to its position. A link "Continue reading" appears at this point in the blog which links to the entry. |
<bs:blog:time time="201503161200" /> |
Set the time stamp of a blog post to a defined date. e.g. the 16.03.2015 at 12:00 o'clock you should insert <bs:blog:time time="201503161200" />. |
Creating a second blog
If you would like to start a second blog which is independent from the first, you can use categories: Set up the blog with <blog cat=“NewBlog“ />. This will mean that all pages in this category will appear as blogs.
Setting your preferences
- Images are incorporated as thumbnails, by default. This can be changed with the attribute renderimage.
- The blog page can be called up via the "blog" button in the topbar, or via the URL .../index.php?action=blog.
- The standard namespaces can be changed. Standard setting:
$wgExtraNamespaces[102] = 'Blog';
$wgExtraNamespaces[103] = 'Blog_talk';
The following tag arguments can be used with the tag <bs:blog />:
Argument | Description | Attribute |
---|---|---|
count | Number of blog entries to display. | n |
cat | Articles from this category are blog entries. | NAME |
ns | Special namespace | NAME |
newentryfield | Display the form "Create new blog entry" | 0 or 1 |
newentryfieldposition | Position of the "Create new blog entry" form. | |
renderimages | Image display | |
maxchars | Number of characters that should be shown before the "Continue reading" link is shown. | n |
Example: <bs:blog count="3" cat="test" newentryfield="0"/>
Tips for working with blogs
Put a link to the blog in the left hand navigation menu. Then your colleagues will be able to find the blog whenever they want.