Create a Blog based on category blog:

Posted by gerdami on 13 Sep 2007 19:23, last edited by Ed Johnson on 16 Feb 2011 04:02

: blog bookmark

rating: +7
This page has been placed into the archive due to it being old, out-dated or containing unhelpful information.

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 this type of blog:

Includes

I always store my included pages inside the include: category

inc:add-page

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

inc:footer

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

inc:right-column

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

inc: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 inc: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 inc:footer]]
[[/div]]
[[include inc:right-column type=blog]]

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

The main page

Start Blog

[[div style="float:left; width:75%; padding:1%;"]]
[[==]]
[[module Pages category="blog" order="dateCreatedDesc" preview="true" limit="100" ]]
[[/==]]
[[/div]]
[[include inc: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, Start Blog should work, … I hope.

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

Other blogs based on category blog:

Author

gerdami gerdami . Please visit his/her userPage.

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


Related articles

Comments

Brilliant
GoVegan GoVegan 07 Mar 2009 09:46

You must have been very excited when you came up with this interface — how could you not? You had, after all, overcome the barriers and limitations of Wikidot's infancy. Well done!

Isn't it phenomenal how the ListPages module and the Live Template system revolutionised Wikidot's capacity? However; even with these awesome tools, the end product actually isn't very different from your system here… the only real difference is that you can customise how you want a collection of blog posts displayed. I mean, sure the process was slightly less automated, but the output was essentially the same.

You did a brilliant job.

by GoVegan GoVegan , 07 Mar 2009 09:46
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /