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 [2016-10-20 22:06] – [Required Plugins] 176.84.187.252tips:blogging [2023-07-11 22:40] (current) – Added location of dateprefix option. 173.12.3.201
Line 4: Line 4:
  
   - 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]].   - 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]] (not maintained anymore)+  - Or install the [[:plugin:blogtng|BlogTNG plugin]]. 
  
 The features completeness of both approaches differ.  The features completeness of both approaches differ. 
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).
tips/blogging.1476994003.txt.gz · Last modified: 2016-10-20 22:06 by 176.84.187.252

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