DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:blogging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:blogging [2014-03-23 13:00] – [WRAPing Blog entries does not work] removed as inappropriate on this page; OP has reported here: https://forum.dokuwiki.org/thread/11112 achtips:blogging [2023-07-11 22:40] (current) – Added location of dateprefix option. 173.12.3.201
Line 3: Line 3:
 There are basically two ways to use DokuWiki for blogging. There are basically two ways to use DokuWiki for blogging.
  
-  - Combine a couple plugins to extend DokuWiki with the right features so it is a complete blog. Please see the directions [[#setup_blog_by_combining_couple_plugins|below]].+  - Combine a couple plugins to extend DokuWiki with the right features so it is a complete blog. Please see the directions [[#Setup blog by combining couple of plugins|below]].
   - Or install the [[:plugin:blogtng|BlogTNG plugin]].    - Or install the [[:plugin:blogtng|BlogTNG plugin]]. 
  
Line 14: Line 14:
 :!: This page is a **WORK IN PROGRESS**! If you feel you can add to it please improve it wherever you see fit!  :!: This page is a **WORK IN PROGRESS**! If you feel you can add to it please improve it wherever you see fit! 
  
-=====Setup blog by combining couple of plugins =====+===== Setup blog by combining couple of plugins =====
  
 Although [[wp>blogging]] isn't the main purpose of [[:DokuWiki]], there are quite a large number of [[:plugins]] available, which can turn DokuWiki into a full fledged blogging platform. Although [[wp>blogging]] isn't the main purpose of [[:DokuWiki]], there are quite a large number of [[:plugins]] available, which can turn DokuWiki into a full fledged blogging platform.
Line 20: Line 20:
 This page describes the steps necessary to get you started with blogging in DokuWiki. It also provides useful tips and hints about possible caveats. This page describes the steps necessary to get you started with blogging in DokuWiki. It also provides useful tips and hints about possible caveats.
  
-If you want to discover existing DokuWiki-based blogs, visit [[http://planet.dokuwiki.org/|Planet DokuWiki]], or try this Google search: [[google>inurl:doku.php+inurl:blog]].+If you want to discover existing DokuWiki-based blogs, try [[http://www.google.com/search?q=inurl:doku.php+inurl:blog|this Google search]].
  
 ===== Required Plugins ===== ===== Required Plugins =====
Line 37: Line 37:
   {{blog>?5}}   {{blog>?5}}
  
-The above will display the five latest entries in our blog. Since this is a single-user setup there's no need to specify a namespace in the plugin syntax, instead the default setting will be used. You should see a form now to add new blog entries. But before you add your first entry there's one configuration option left which needs to be set, namely the ''dateprefix'' setting. It can be used to add the date the page was created to the page name of the new page. A good setting here is ''%Y:%m%d_''. What happens here is that when you enter "my new blog" into the new entry form and press enter, the following page will created ''%%blog:2008:0512_my_new_blog%%''. You see this comes in quite handy to keep your blog namespace organized.+The above will display the five latest entries in our blog. Since this is a single-user setup there's no need to specify a namespace in the plugin syntax, instead the default setting will be used. You should see a form now to add new blog entries. But before you add your first entry there's one configuration option left which needs to be set, namely the ''dateprefix'' setting in dokuwiki/lib/plugins/blog/conf/default.php. It can be used to add the date the page was created to the page name of the new page. A good setting here is ''%Y:%m%d_''. What happens here is that when you enter "my new blog" into the new entry form and press enter, the following page will created ''%%blog:2008:0512_my_new_blog%%''. You see this comes in quite handy to keep your blog namespace organized.
  
 In order to only allow read access to your blog to prevent people from editing your entries it also makes sense to add some ACL rules (the example assumes that you use the '':start'' page for the blog listing). In order to only allow read access to your blog to prevent people from editing your entries it also makes sense to add some ACL rules (the example assumes that you use the '':start'' page for the blog listing).
Line 59: Line 59:
  
  
-Not that you can use [[:acl#user_wildcards|user wildcards]] if you want to allow each and every user to blog.+Note that you can use [[:acl#user_wildcards|user wildcards]] if you want to allow each and every user to blog.
  
 Now you have to create the page '':blog:joey'' and insert the following blog plugin syntax to setup the blog. Now you have to create the page '':blog:joey'' and insert the following blog plugin syntax to setup the blog.
Line 95: Line 95:
  
 <code apache> <code apache>
-RewriteRule ^_feed/(.*) feed.php?ns=$1&num=10&linkto=current&content=html [QSA,L]+RewriteRule ^_feed/?(.*) feed.php?ns=$1&num=10&linkto=current&content=html [QSA,L]
 </code> </code>
  
Line 185: Line 185:
  
 I think the link to the user page feature comes from [[plugin:include|include plugin]], which the [[plugin:blog|blog plugin]] relies upon. --- Anon I think the link to the user page feature comes from [[plugin:include|include plugin]], which the [[plugin:blog|blog plugin]] relies upon. --- Anon
- +====Non-blog pages==== 
 +What can I make non-blog pages (e.g. contact -- these shouldn't appear in the blog listing)? Is using the ~~DRAFT~~ option a good idea? --- Alex
tips/blogging.1395576059.txt.gz · Last modified: 2014-03-23 13:00 by ach

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki