On Jul 23, 12:27 am, Phil Kemp <[email protected]> wrote:
> I know that FarCry can handle plugins, such as Google Maps, but I was
> wondering how I can package the extra features I have created and make them
> available to others? At the moment, I've just added a couple of extra
> <menuitem> tags to the webtop.xml file, but it would be interesting if
> anyone can explain how I can turn these into proper plugins, maybe on a new
> tab?

Would love to see some plugin magic happening out there.

Plugins are based on the exact same structure as projects.  If you can
build it into a project then it should run quite happily in a plugin.

You may need to change your linkages to refer to:
/farcry/plugins/yourpluginname

You may need to set up a webroot for your plugin ie. /farcry/plugins/
yourpluginname/www and map it to a subdirectory of the project.  The
standard way of doing this is to either copy the plugin webroot into
the project webroot or create a virtual directory emulating the
same.

Either way the plugin webroot convention is to call it the directory
exactly the same name as the plugin:
/farcry/plugins/yourpluginname/www
becomes
/farcry/projects/yourprojectname/www/yourpluginname

> If I can get them turned into a plugin, would it make it easier to install
> them on other projects and upgrades in the future?

It surely would.  Daemon breaks just about every feature-set into a
plugin when we're building projects.  And then override the plugin in
the project to customise it as needed.

> For those interested, I've developed backend XML and Template editors (the
> reason being that we probably won't have direct access to the filesystem to
> edit these files).

Sounds very interesting -- can't wait to see it.

-- geoff
http://www.daemon.com.au/
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to