Difference between revisions of "Manual:Extension/Blog"

[unchecked revision][unchecked revision]
m (Text replacement - "<bs:bookshelf src="Book:User manual" />" to "")
 


What is Blog?[edit | edit source]

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?

.

Blog by default[edit | edit source]

In the TopMenuBar, at the very top of any page By default, there is a link to the Blog special page in the TopMenuBar, which then opens the blog, a page containing a form for writing a new blog entry and a list of previous entries.


Blg1.jpg


Display Blog on any wiki page[edit | edit source]

This blog news feed can be displayed on any wiki page by adding the blog tag to the page.


Blg2.jpg


Blg3.jpg


Blg4.jpg


Blg5.jpg


This will also display displays a  "Create new blog entry"-form on the page, unless its it is disabled using to use blog tag attibutes attributes.

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, the link "continue reading" will be displayed

Write an entry or create a new entry[edit | edit source]

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 namespaceis displayed.


Blog tags[edit | edit source]

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 <bs:blog /> Normal blog Displays blog news feed on the page. It can be extended with multiple attributes. For more on attubutes read section "Blog tag attibutes" below.
<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 This tag should be placed inside the content of a blog entry (pages in Blog namespace) to define at which point in text "continue reading" link should be placed. This will override default cut-off length of an entry.
<bs:blog:time time="201503161200YYYYMMDDHHmm" />

Set the time stamp This tag also should be placed inside the content 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" />entry. It allows manually defining timestamp for that particular blog entry. Timestamp is used in sorting and displaying blog entries.

Write an entry or create a new entry[edit | edit source]

New blog entries can be created through the form on the page containing a blog tag, on Blog special page (Special:Blog), or by directly creating new pages in the Blog namespace.

Creating a second blog[edit | edit source]

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 As described the default blog feed consists of "normal" wiki pages stored in the Blog namespace. Other blog feeds can exist in addition to this feed, and they can be defined by category.
For example, the category "Company news" can be designated for a second blog. In that case all pages in this category will appear as blogs.

Setting your preferences[edit | edit source]

  • 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'; be considered entries of this blog and will be displayed on page as blog entries. By adding  <bs:blog /> tag to the page, attribute "cat" must be set to "Company news"  like  <bs:blog cat="Company news" />

Another option is to designate a namespace for this purpose. Using example from above, namespace "Company news" must be created and all pages inside this namespace (Company news:News1, Company news:News2) will be considered blog entries.  The syntax that should be used for the blog tag in this case is: <bs:blog ns="Company news" />

Keep in mind that when blog tags with "cat"  or "ns" are used, all pages from that category/namespace will be shown, so those categories/namespaces should be used for that purpose only.

<bs:blog /> attributes[edit | edit source]

The following tag arguments can be used with the tag <bs:blog />:

Argument Attribute Description Attribute Value
count Number of blog entries to displaybe displayed. n number
cat Articles from this category are Category from which to show pages as blog entries . NAME category name
ns Special namespace NAME newentryfield Display the form Namespace from which to show pages as blog entries namespace name or ID
newentryfield Should "Create new blog entry" be shown? 0 or 1
newentryfieldposition Position of the "Create new blog entry" form. "bottom" or "top"
renderimages Image display Should images be displayed 0 or 1
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"/>
number

Default values for these attributes for the whole wiki can be set in the global BlueSpice preferences. See Reference page.

Tips for working with blogs[edit | edit source]

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.

See also[edit | edit source]

Our reference page.


Attachments

Discussions