
And the end part of creating 3rd party components, this section deals with creating the snippet, the lexicon, and building and installing the component package.
http://svn.modxcms.com/docs/display/~splittingred/2008/06/26/Writing+a+3rd+Party+Component+in+MODx+Revolution%2C+Pt.+II
Enjoy!
I’m having trouble with this tutorial though, namely getting the package to install. I’ve followed your instructions exactly: created the DB table and XML schema, ran the build file, created the snippet, and built the package. Everything seems to work fine - up to this point all of the files are where they should be. But when I try installing the package nothing happens. It find the package, I select to install it, and no errors occur, but the assets/snippets directory is doesn’t contain anything for doodles.
I’m running on WAMP and the latest SVN version, if that makes a difference. I have a feeling it has to do with the "Source" resolver, but I’ve tried so many combinations ( "/wamp/www/modx097/doodles/trunk/assets", "C://wamp/www/modx097/doodles/trunk/assets" and "/modx097/doodles/trunk/assets" to start with) that I’m out of ideas. Any idea what I’m doing wrong? Thanks!
Thanks for this! I’m finding it much easier to follow. One question, though:
Where in the documentation can I find information about functions like $modx->newQuery and $modx->getCollection ? I’ve tried looking through http://docs.modxcms.com/ but I’ve no idea how to find anything in there, and I don’t even know if that’s the right place to look for info.
Yep, I placed it inside my root modx097 directory. I gave it another try just now using backslashes for the path (C:\wamp\www\modx097\doodles\trunk\assets) and it worked beautifully -- stupid backslashes! I thought windows used both??
Quote from: Ricjustsaid at Jul 07, 2008, 11:01 PM
I’m having trouble with this tutorial though, namely getting the package to install. I’ve followed your instructions exactly: created the DB table and XML schema, ran the build file, created the snippet, and built the package. Everything seems to work fine - up to this point all of the files are where they should be. But when I try installing the package nothing happens. It find the package, I select to install it, and no errors occur, but the assets/snippets directory is doesn’t contain anything for doodles.
I’m running on WAMP and the latest SVN version, if that makes a difference. I have a feeling it has to do with the "Source" resolver, but I’ve tried so many combinations ( "/wamp/www/modx097/doodles/trunk/assets", "C://wamp/www/modx097/doodles/trunk/assets" and "/modx097/doodles/trunk/assets" to start with) that I’m out of ideas. Any idea what I’m doing wrong? Thanks!
Where is the doodles/trunk/assets directory located on your hard drive?
Is it at: C:/wamp/www/modx097/doodles/trunk/assets/ ? Make sure you only have one / after C:
