DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:farm

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
plugin:farm [2014-02-27 02:29] Klap-inplugin:farm [2022-01-07 20:25] (current) – obsolete Klap-in
Line 1: Line 1:
-====== The farm plugin ======+====== The Farm Plugin ======
  
-In a farm, one single copy of wiki engine (the farmer) is used to run several individual wikis (the animals). For a generic introduction, and for different approaches to set up a DokuWiki farm, see [[tips:farm]].+In a farm, one single copy of wiki engine (the farmer) is used to run several individual wikis (the animals).  
  
-This page describes a plugin that automatizes the [[tips:redirect farm|redirect]] approach to farming.+:!: For general, relevant and up-to-date instructions see [[:farms]]. 
 + 
 + 
 +This page describes a plugin that automatizes the [[tips:redirect farm|redirect]] approach to farming. Be aware this could be out-dated.
  
 ===== Status ===== ===== Status =====
Line 16: Line 19:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : farmer 
-tags       : farm+tags       : farm, !obsolete
  
-downloadurl: http://sourcesup.cru.fr/dwfarmplugin/farm.zip+downloadurl: http://sourcesup.cru.fr/dwfarmplugin/farm.zip
 bugtracker :  bugtracker : 
 sourcerepo :  sourcerepo : 
 donationurl:  donationurl: 
 ---- ----
 +
 +:!: not available: http://sourcesup.cru.fr/dwfarmplugin/farm.zip. Contains only setup data of 2010 version. 
 +
 +
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:plugin_installation_instructions|plugin installation]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-^ Download | {{http://sourcesup.cru.fr/dwfarmplugin/farm.zip|farm.zip}} | Up 2010-01-18 | 
  
 ===== Description ===== ===== Description =====
Line 41: Line 47:
   * [[tips:farm|tips:farm]]   * [[tips:farm|tips:farm]]
  
-For people who can read French, here is my article from JRES2009 about this technique and plugin: {{https://2009.jres.org/soumission/papers/render/pdf/51.pdf}}.+For people who can read French, here is my article from JRES2009 about this technique and plugin: {{https://2009.jres.org/soumission/papers/render/pdf/51.pdf|Le farming dans DokuWiki, intérêt et mise en œuvre}}.
  
 The best way to understand what it deals with is to try it. The best way to understand what it deals with is to try it.
Line 51: Line 57:
 Suppose you have a file system like this one: Suppose you have a file system like this one:
   /var/www/doku (where your DokuWiki is installed)   /var/www/doku (where your DokuWiki is installed)
 +
 +=== Example 1 ==
  
 If you set farmfsroot to ''/var/www/doku/'', farmer to ''main/'' and barn to ''wikis/'' it will create the following structure: If you set farmfsroot to ''/var/www/doku/'', farmer to ''main/'' and barn to ''wikis/'' it will create the following structure:
Line 56: Line 64:
   +- main (where are put all the files from your original DokuWiki)   +- main (where are put all the files from your original DokuWiki)
   +- wikis (where will be put all the animals   +- wikis (where will be put all the animals
 +
 +=== Example 2 ==
  
 If you set farmfsroot to ''/var/www/doku/'', farmer to ''main/'' and barn to "" it creates: If you set farmfsroot to ''/var/www/doku/'', farmer to ''main/'' and barn to "" it creates:
Line 61: Line 71:
   +- main (where are put all the files from your original DokuWiki)   +- main (where are put all the files from your original DokuWiki)
 And will put all animals directly in ''/var/www/doku/''. And will put all animals directly in ''/var/www/doku/''.
 +
 +=== Example 3 ==
  
 If you set farmfsroot to ''/var/www/'', farmer to ''doku/'' and barn to "" it creates: If you set farmfsroot to ''/var/www/'', farmer to ''doku/'' and barn to "" it creates:
   /var/www/   /var/www/
   +- doku (your original setup remains here, farm just adds its utilities)   +- doku (your original setup remains here, farm just adds its utilities)
-All animals will be put in "/var/www/"+All animals will be put in ''/var/www/'' 
 + 
 +==== ====
  
-If the directory pointed by farmfsroot/barn exists and already contains folders (like animals from another farming system, farm1 or farm2 ...) the setup script will ask you whether you want to convert some to the new system, leaving the other untouched.+If the directory pointed by ''farmfsroot/barn'' exists and already contains folders (like animals from another farming system, farm1 or farm2 ...) the setup script will ask you whether you want to convert some to the new system, leaving the other untouched.
  
 **For now the plugin can only work with userewrite parameter set IN THE FARM CONFIG (the farmer/animals can have userewrite = 0).** **For now the plugin can only work with userewrite parameter set IN THE FARM CONFIG (the farmer/animals can have userewrite = 0).**
Line 80: Line 94:
  
   * Looks like if using a wiki with no rewrite at all things are a bit dull, still investigating that ... Stay tuned!   * Looks like if using a wiki with no rewrite at all things are a bit dull, still investigating that ... Stay tuned!
-  * If you put the {ANIMAL} tag in any file (conf / pages ...) of an animal and then use it as template the tag will be replaced by the new animal's name+  * If you put the ''{ANIMAL}'' tag in any file (conf / pages ...) of an animal and then use it as template the tag will be replaced by the new animal's name
   * ''DOKU_FARM_ANIMAL'' and ''DOKU_IS_FARMER'' are defined by the pre-loaded script, they can be used in other plugins / template or even config files!   * ''DOKU_FARM_ANIMAL'' and ''DOKU_IS_FARMER'' are defined by the pre-loaded script, they can be used in other plugins / template or even config files!
  
Line 360: Line 374:
 Options -Indexes Options -Indexes
 </code> </code>
 +
 +
 +=== Dokuwiki Admin is empty after the installation  ===
 +
 +Hi! I installed your plugin and now I cannot access the Admin-Area anymore. When I click on "Admin" on top of the wiki, I get a blank page. So I cannot uninstall the plugin anymore and am afraid of having killed my Dokuwiki-installation..
plugin/farm.1393464545.txt.gz · Last modified: 2014-02-27 02:29 by Klap-in

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