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 [2015-01-12 07:37] – [Blogging with DokuWiki] 2.246.78.80tips: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 12: Line 12:
 The modular setup contains some more features like comment moderation directly on the blog pages or archive pages while blogtng for example limits plugin syntax usage in comments which is in a typical blog setup definitely a useful feature (but that depends of course also on the installed plugins). The modular setup contains some more features like comment moderation directly on the blog pages or archive pages while blogtng for example limits plugin syntax usage in comments which is in a typical blog setup definitely a useful feature (but that depends of course also on the installed plugins).
  
-:!: 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 =====
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 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.1421044622.txt.gz · Last modified: 2015-01-12 07:37 by 2.246.78.80

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