From: Jough D. <jou...@gm...> - 2009-01-22 21:04:30
|
Our SOP for new Drupal projects is to create a project module by which we can override certain Drupal behaviour with its hook system. I don't know of an easier way to interface custom code with Drupal without using the mechanism that was designed for extending Drupal. I suppose your module functions can call other custom code and you can just use the hooks to grab the piece of Drupal you want to override. I know what you mean about not wanting to have to learn Drupal. The learning curve for the hook system is pretty steep, and if you're not investing long-term into your Drupal skills for multiple projects you probably won't get a lot of ROI for the time you spend learning this stuff. I'd recommend downloading a few small modules and using them as an example. The "privatemsg" module for allowing users to send messages to each other uses a lot of the Drupal hooks in a way that may be, if not obvious, then easier to understand in context. -- Jough On Thu, Jan 22, 2009 at 2:37 PM, derby <der...@gm...> wrote: > The pathauto is an essential drupal module. Great recommend. I don't > know much about writing php inside drupal. You might be interested in > the workflow module and possible the views module. > > The workflow module allows you to setup actions triggered by an event, > such as a new bid in your case. > > The views module allows remolding the display of your drupal data to > present information outside the normal drupal way. > > Hope that helps. > > On Thu, Jan 22, 2009 at 1:57 PM, Neil Rest <Nei...@rc...> wrote: >> Thanks. I've just downloaded <http://drupal.org/project/pathauto> >> >> Pathauto >> >> , but haven't looked inside yet, but it sounds great for that problem. >> >> I was hoping not to have to get into the API. I have enough learning >> walls on my plate already . . . </mixed metaphor> >> >> >> At 01:09 PM 1/22/2009, Jough Dempsey <jou...@gm...> wrote: >>>Is this Drupal 5 or 6? The forms API is a little different for each, >>>but basically you want to look at using "hook_form_alter" to alter the >>>form you want, or the form API to build a form that can be submitted. >>> >>>The Path Auto module will allow you to create the path you want. It's >>>a pretty common module and we use it in a number of our Drupal >>>projects. >>> >>>-- Jough >>> >>>On Thu, Jan 22, 2009 at 11:14 AM, Neil Rest <Nei...@rc...> wrote: >>> > I'm building a system in drupal in which Vendors submit Bids against >>> > Tenders. (Vendor, Bid, & Tender are content types.) >>> > I want to put a button on the bottom of the Tender page "Submit Bid", >>> > which will take the user to the New Bid page with the Tender as the >>> > default in the Tender node reference field, and the Vendor associated >>> > with the user in the Vendor node reference field. >>> > >>> > Also, when the new Bid is completed, I want to path it >>> > /tender/bid/#### finishing the path with the id# created by the user. >>> > >>> > (This looks like it'll take some PHP. I'm a lot stronger in PHP than >>> > in drupal, so that's not intimidating, but I don't want to get >>> > twisted up in the drupal API any more than I have to.) >>> > >> >> >> Neil >> -- >> Nei...@rc... >> >> I wrote a song about dental floss but did anyone's teeth get cleaner? >> -- Frank Zappa at Senate Hearing on Porn Rock, 1985, in response to >> Tipper Gore's allegations that music incites people towards deviant >> behavior, or influences their behavior in general >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > > -- > life your own way. > http://www.talkderby2me.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Jough Dempsey http://jough.com 312.576.6738 (mobile) |