Question: Short urls for plugins

Creating and modifying plugins.
Post Reply
Guest1

Question: Short urls for plugins

Post by Guest1 »

I am extremely new to serendipity.

According to http://s9y.org/forums/viewtopic.php?t=1277 "Plugins should be called with the /plugin/PLUGINNAME mechanism, which interfaces with an event hook."

So do that mean:
http://localhost/serendipity/plugins/guestbook
File does not exist: /home/web21/htdocs/serendipity/plugins/guestbook

http://localhost/serendipity/plugins/guest
File does not exist: /home/web21/htdocs/serendipity/plugins/guest

BUT
http://localhost/serendipity/index.php? ... age]=guest
Works!

Please point me in the right direction.
Thanks in advance.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Question: Short urls for plugins

Post by garvinhicking »

In that thread I was referring to custom created plugins, so this was a developer statement.

This means, if the plugin you refer to (guestbook) does not support this mechanism, of course it won't work.

Plugins that DO support the /plugin/ hook (btw, note that it's "plugin" and not "plugins") are: BlogPDF, Livesearch, Spamblock and many others.

On the other hand there are plugins like staticpage and guestbook, which do not support this concept and instead use ?serendipity[subpage]=... or others.

This way is up to the plugin developer, there's not much the serendipity core developers can do about it. :)

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply