Create A Blog

Wikidot has currently no perfect blogging feature, i.d. a collection of pages ordered descending by creation date, with backlinks and comments modules in the bottom. However, before the release of version wikidot 2.0, it is possible to simulate a blog.

The technique below uses includes, templates, and categories, as usual. It also uses a footer and a right-column which can be reused for anything besides the blog: category.

Setup

The set of pages described below is necessary to run blog

Includes

I always store my included pages inside the include: category

include:add-page

[!-- usage: [[include include:add-page type=flickr]] or blog ... --]
[[=]]
Add one {$type} page
[[module NewPage category="{$type}" template="template:{$type}" size="10" button="Add" ]]
[[/=]]

include:footer

----
+ Backlinks
[[module Backlinks]]
----
[[module Comments]]

include:right-column

[!-- usage: [[include include:right-column type=flickr]] or blog ... --]
[[div style="float:right; width:20%; padding:1%; border:1px solid #000;"]]
[[=]]
[[[Start {$type}]]]
----
[[include include:add-page type={$type}]]
----
**Tags**
[[include include:tagcloud type={$type}]]
[[/=]]
[[/div]]

include:tagcloud

[[module TagCloud minFontSize="80%" maxFontSize="200%" maxColor="8,8,64" minColor="100,100,128" limit="100" category="{$type}" target="system2:page-tags-{$type}"]]

Only blog tags should appear…

System2

If system: category is locked… then system2 !

system2:page-tags-blog

[[div style="float:left; width:75%; padding:1%;"]]
[[==]]
[[module PagesByTag]]
[[/==]]
[[/div]]
[[include include:right-column type=blog]]

This page tags will also have the right-column of blog type…

Templates

template:blog

[[div style="float:left; width:75%; padding:1%;"]]
[[==]]
**[[size 90%]] EnterDateHere - [[*user EnterUserName]] [[/size]]**
----

EnterYourTextHere



[[/==]]
[[include include:footer]]
[[/div]]
[[include include:right-column type=blog]]

This template is called by the include:add-page…

The main page

blog

[[div style="float:left; width:75%; padding:1%;"]]
[[==]]
[[module Pages category="blog" order="dateCreatedDesc" preview="true" limit="100" ]]
[[/==]]
[[/div]]
[[include include:right-column type=blog]]

Tips

Copy this stuff

To create all this stuff, copy this howto:create-a-blog to your wiki.
Missing pages are greyed, copy the code below the link, click the link, create the page and paste the code. At the end of this process, blog should work, … I hope.

Try to do the same with other types

e.g. flickr or glossary pages ?
Start Glossary
Start Featured
[[[Start User]]

Examples of one wikidot site using section categories (as derived from above code):

Other blogs based on category blog:

Author

Page to be included include:signature can not be found!

Credits: similar technique was previously published at http://snippets.wikidot.com/code:glossary

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License