Hi everybody,
I've been using chronoforms for several projects and have been amazed and thrilled by the sheer endless possiblities of the component. A great part of that excitment also came for the wealth of knowledge and the great support that can be found in these forums, so many thanks for that!
However, for a current project of mine, I'm drawing a blank. I'm using Joomla 1.5.25 and Chronforms v4 RC 2.0. For the Article submission, I use the GH article submit action.
Here's what it's all about:
I am setting up a website where owners of statical sites can place place small update orders, like changing staff names on ther websites, etc. In order to do that, every client get's a personal login for a restricted section. Every client section contains a category blog, where all the orders are posted in chronological order (1 article = 1 update order). The client can then place a new order, using chronoforms. The form I have set up does the following:
1) It pulls the client's userinformation directely from the database and fills it into the form. The client then adds his update description (textarea), and attaches any documents he needs to sends me for the order (img, pdf, .doc, etc.)
2) The client receives a confirmation E-mail with the data submitted
3) The site Admin receives an e-mail with the order and all data submitted
4) The form publishes the order and links to any attachments to an article. Later on, I change that article by hand to publish a screenshot(for approval by the client) of the update order prior to switching it live on the clients website.
I have suceeded in seeting all these 4 steps up, and it works just dandy. Now to my problem:
Because I'm managing access rights by categories and all orders (articles) per clients are in a category blog, I'd like Chronoforms to autmatically assign the article a category id, depending on which user is sending the form. Example:
If Bill sends the form, the category id should be 901
if Mark sends the form, the category id should be 902
I'm aware that I'll have to update that bit of custom code every time I add a new client to the website. But since I'll have to play around in the backend because of user access control anyway, that is not a problem.
Of course, if somebody sees a simpler solution, I'm more than happy for suggestion. I would just like to avoid having to copy and republish the form for every client (since this makes alternations to the form rather tedious).
I'm assuming the solution is probably a rather simple bit of custom action code, but I fear I'm starting to loos sight of the woods for all the trees there are, especially since my knowledge of php is rather limited...
Any help and input will be greatly appreciated!
cheerio
Michael
I've been using chronoforms for several projects and have been amazed and thrilled by the sheer endless possiblities of the component. A great part of that excitment also came for the wealth of knowledge and the great support that can be found in these forums, so many thanks for that!
However, for a current project of mine, I'm drawing a blank. I'm using Joomla 1.5.25 and Chronforms v4 RC 2.0. For the Article submission, I use the GH article submit action.
Here's what it's all about:
I am setting up a website where owners of statical sites can place place small update orders, like changing staff names on ther websites, etc. In order to do that, every client get's a personal login for a restricted section. Every client section contains a category blog, where all the orders are posted in chronological order (1 article = 1 update order). The client can then place a new order, using chronoforms. The form I have set up does the following:
1) It pulls the client's userinformation directely from the database and fills it into the form. The client then adds his update description (textarea), and attaches any documents he needs to sends me for the order (img, pdf, .doc, etc.)
2) The client receives a confirmation E-mail with the data submitted
3) The site Admin receives an e-mail with the order and all data submitted
4) The form publishes the order and links to any attachments to an article. Later on, I change that article by hand to publish a screenshot(for approval by the client) of the update order prior to switching it live on the clients website.
I have suceeded in seeting all these 4 steps up, and it works just dandy. Now to my problem:
Because I'm managing access rights by categories and all orders (articles) per clients are in a category blog, I'd like Chronoforms to autmatically assign the article a category id, depending on which user is sending the form. Example:
If Bill sends the form, the category id should be 901
if Mark sends the form, the category id should be 902
I'm aware that I'll have to update that bit of custom code every time I add a new client to the website. But since I'll have to play around in the backend because of user access control anyway, that is not a problem.
Of course, if somebody sees a simpler solution, I'm more than happy for suggestion. I would just like to avoid having to copy and republish the form for every client (since this makes alternations to the form rather tedious).
I'm assuming the solution is probably a rather simple bit of custom action code, but I fear I'm starting to loos sight of the woods for all the trees there are, especially since my knowledge of php is rather limited...
Any help and input will be greatly appreciated!
cheerio
Michael