On 16/01/2010, at 9:52 AM, elaine montoya wrote:
> I know how to create a plugin. And I've create the manifest.cfc when I
> do. But I have never created a plugin with content that I want to be
> inserted into a database. I'm looking at the farcryCMS manifest - and
> it is no different than a normal manifest. I don't see anything where
> it is inserting content into a database. Are you seeing something I'm
> not?

Data for plugins was on our agenda a while back as we put together the new 
installer.  I'm not sure we got all the way.  But the theory was as follows:
 - put a minifest.cfc together (should nominate whether the plugin is certified 
to run with a particular version of core, and what plugin dependencies it might 
have)
 - put some optional WDDX data into your install folder that you exported from 
your project using the Export Skeleton feature in the Admin
 - put in an optional manifest.cfc install() method, see below for kind of how 
that works

This is an example install method from the Mollio skeleton:

<cffunction name="install" output="true">
  <cfset var result = "DONE" />
  <cfset result = createContent(argumentCollection=arguments) />
  <cfreturn result />
</cffunction>

createContent() is picked up from the super class 
farcry.core.webtop.install.manifest that this component extends.  You can throw 
in anything else your plugin may require to set up.

The export data you can generate by hitting Create Skeleton (or something to 
that effect).  That function exports all your content types as WDDX and saves 
them into ./yourproject/install -- it's how we create skeletons for the 
installer proper, but it was also intended to be able to provide sample data 
for plugin installs.

Does it all work?  I'm afraid I don't know ;)  Would have to do some testing -- 
but it should work in theory as that was part of the master plan.  Should be 
raised as bugs if it doesn't.  We put this development on hold till we had time 
to address the mythical "Plugin Explorer". 

Hope that helps,

-- 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