[dokuwiki] renderer_plugin and naming

  • From: "John (yt) Hogenmiller" <ytjohn@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 4 Dec 2007 23:37:55 -0500

I'm writing a Menalto Gallery 2 plugin for DokuWiki

The plugin is called temporarily called g3 (will later call it mg2)

I have an .htacess file rewriting _pics to the plugin.  I tried this
in several spots, but ultimately put before any of the other
re-write rules.

Relevant lines:
=== .htaccess ===
RewriteCond %{THE_REQUEST} \ /dw/_pics/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/dw/dokup.php?do=export_g3/$
RewriteRule  
http://www.sqbnet.net/pics/main.php?g2_view=core.ShowItem&g2_path=%1
  [QSA,L]
RewriteRule ^_pics/(.*)                 doku.php?do=export_g3/$1 [QSA,L]
==== end .htaccess ====

So, if I link to
http://www.sqbnet.net/dw/_pics/  -- it works and I get the gallery.

If I click on one of the generated links
(http://www.sqbnet.net/dw/_pics/v/2007/)
doku.php processes the entire thing and looks for a render plugin
called (oddly enough) "g3v27"
and displays a warning: "No renderer for g3v27 found"

So first off, I seem to be loosing zeroes (0) from the link.
Secondly, it pulls everything following the g3 into the desired
plugin name.

Is this something that needs address in the Rewrite engine, or in the
plugin itself?    And for which answer, can anyone help me straighten
it out.

Part of me is considering just creating an standalone file (stored in
the plugins directory) that doesn't utilize the renderer class at all
and simply
renders the gallery.  Is this is a good idea?

-John
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: