From: Neil R. <Nei...@rc...> - 2009-01-22 17:15:30
|
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.) Does anyone have suggestions or examples? Neil -- Nei...@rc... I would like to be able to love my country and justice too. -- Albert Camus |
From: Jough D. <jou...@gm...> - 2009-01-22 19:10:03
|
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.) > > Does anyone have suggestions or examples? > > > > Neil > -- > Nei...@rc... > > I would like to be able to love my country and justice too. > -- Albert Camus > > > ------------------------------------------------------------------------------ > 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) |
From: Neil R. <Nei...@rc...> - 2009-01-22 19:58:23
|
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 |
From: derby <der...@gm...> - 2009-01-22 20:37:22
|
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 |
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) |
From: Jason R. <ja...@ho...> - 2009-02-04 15:39:11
|
Hey gang, Sittercity has volunteered to host the next meeting in their new offices at the Merchandise Mart. This location should be super easy for people to get to as the L stop is in the building ;-) I'm going to try and get one of the Sittercity crew to give a talk, perhaps Stephen as he always works late and is super smart ;-) I'm probably going to give a talk. Who else? -jason |
From: derby <der...@gm...> - 2009-02-04 16:37:00
|
Excellent, if the meeting date is after the 10th. On Wed, Feb 4, 2009 at 9:13 AM, Jason Rexilius <ja...@ho...> wrote: > Hey gang, > > Sittercity has volunteered to host the next meeting in their new > offices at the Merchandise Mart. This location should be super easy for > people to get to as the L stop is in the building ;-) > > I'm going to try and get one of the Sittercity crew to give a talk, > perhaps Stephen as he always works late and is super smart ;-) > > I'm probably going to give a talk. > > Who else? > > -jason > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications today- > http://p.sf.net/sfu/adobe-com > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |