<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br> Yes there is a way for separate fields for seperate roles provided you are using auto assign role and content profile.<br>When you mark a content as content profile, you can find a tab called content profile.<br>At the bottom you can see an option stating use this content for a specific role which appears only if auto assign role module is installed.<br>Hence for each role there will be a single content type.<br>So create another content type and use it for other role.<br>I hope this helps.<br><br>Regards<br>Sagar<br>www.biigpiic.com<br><br>--- On <b>Wed, 9/9/09, development-request@drupal.org <i><development-request@drupal.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: development-request@drupal.org
<development-request@drupal.org><br>Subject: development Digest, Vol 81, Issue 7<br>To: development@drupal.org<br>Date: Wednesday, 9 September, 2009, 10:07 PM<br><br><div class="plainMail">Send development mailing list submissions to<br> <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.drupal.org/listinfo/development" target="_blank">http://lists.drupal.org/listinfo/development</a><br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:development-request@drupal.org" href="/mc/compose?to=development-request@drupal.org">development-request@drupal.org</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:development-owner@drupal.org"
href="/mc/compose?to=development-owner@drupal.org">development-owner@drupal.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of development digest..."<br><br><br>Today's Topics:<br><br> 1. RE : Creating separate registration forms for each role (fgm)<br> 2. Re: Creating separate registration forms for each role<br> (rajasekharan)<br> 3. Re: Creating separate registration forms for each role<br> (Ken Winters)<br> 4. Modify environment before & after block is rendered<br> (Olivier Jacquet)<br> 5. Re: Modify environment before & after block is rendered<br> (Daniel Honrade)<br> 6. Re: Modify environment before & after block is rendered<br>
(Olivier Jacquet)<br> 7. Re: Modify environment before & after block is rendered<br> (Fred Jones)<br> 8. Re: Creating separate registration forms for each role<br> (rajasekharan)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 8 Sep 2009 22:11:59 +0200<br>From: fgm <<a ymailto="mailto:fgm@osinet.fr" href="/mc/compose?to=fgm@osinet.fr">fgm@osinet.fr</a>><br>Subject: [development] RE : Creating separate registration forms for<br> each role<br>To: "<a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a>" <<a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a>><br>Message-ID:<br> <<a
ymailto="mailto:AB5758215C066A4D8CE78D21A77DA1FC0981576C25@MBXVS01.hosting01.active24.com" href="/mc/compose?to=AB5758215C066A4D8CE78D21A77DA1FC0981576C25@MBXVS01.hosting01.active24.com">AB5758215C066A4D8CE78D21A77DA1FC0981576C25@MBXVS01.hosting01.active24.com</a>><br> <br>Content-Type: text/plain; charset="iso-8859-1"<br><br>A combination of auto-assign-role and content-profile-register does it. NikLP could tell you more...<br>________________________________________<br>De : <a ymailto="mailto:development-bounces@drupal.org" href="/mc/compose?to=development-bounces@drupal.org">development-bounces@drupal.org</a> [<a ymailto="mailto:development-bounces@drupal.org" href="/mc/compose?to=development-bounces@drupal.org">development-bounces@drupal.org</a>] de la part de Ken Winters [<a ymailto="mailto:kwinters@coalmarch.com" href="/mc/compose?to=kwinters@coalmarch.com">kwinters@coalmarch.com</a>]<br>Date d'envoi : mardi 8 septembre 2009
21:30<br>? : <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Objet : Re: [development] Creating separate registration forms for each role<br><br>I believe he wants the actual form to be different.<br><br>We did something similar using the Profile module to create the fields<br>for all roles and then hook_user, hook_form, etc. to make sure that only<br>the right fields are displayed based on arg(2) (or whatever) and then<br>processed correctly.<br><br>- kwinters<br><br>Aradhana wrote:<br>> Hi,<br>><br>> There is a drupal module names auto assign role.. which provides same<br>> functionality. We can differentiate forms on the basis of url. e.g<br>> assign different url for vendors registration and different url for<br>> customers.<br>><br>> <a href="http://drupal.org/project/autoassignrole"
target="_blank">http://drupal.org/project/autoassignrole</a><br>><br>> Regards,<br>> Aradhana<br>><br>> rajasekharan wrote:<br>>> Hi,<br>>><br>>> In a current project, I have to create a separate registration form<br>>> for each role. For example, "customers" has a registration form and<br>>> "vendors" have a registration form that is separate. Any idea how I<br>>> may achieve this using existing drupal modules?<br>>><br>>> Thanks in advance,<br>>> Raj Sekharan<br>>><br>><br><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 09 Sep 2009 02:33:37 +0530<br>From: rajasekharan <<a ymailto="mailto:websweetweb@gmail.com" href="/mc/compose?to=websweetweb@gmail.com">websweetweb@gmail.com</a>><br>Subject: Re: [development] Creating separate registration forms for<br> each role<br>To: <a ymailto="mailto:development@drupal.org"
href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID: <<a ymailto="mailto:4AA6C6A9.60603@gmail.com" href="/mc/compose?to=4AA6C6A9.60603@gmail.com">4AA6C6A9.60603@gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Thanks much! I got what I wanted. I am going to use autoassignroles <br>module and then use the method Ken has mentioned - add profile <br>attributes and then use the necessary hooks to modify the form to show <br>the necessary fields.<br><br>Ken Winters wrote:<br>> I believe he wants the actual form to be different.<br>><br>> We did something similar using the Profile module to create the fields <br>> for all roles and then hook_user, hook_form, etc. to make sure that <br>> only the right fields are displayed based on arg(2) (or whatever) and <br>> then processed correctly.<br>><br>> - kwinters<br>><br>> Aradhana wrote:<br>>>
Hi,<br>>><br>>> There is a drupal module names auto assign role.. which provides same <br>>> functionality. We can differentiate forms on the basis of url. e.g <br>>> assign different url for vendors registration and different url for <br>>> customers.<br>>><br>>> <a href="http://drupal.org/project/autoassignrole" target="_blank">http://drupal.org/project/autoassignrole</a><br>>><br>>> Regards,<br>>> Aradhana<br>>><br>>> rajasekharan wrote:<br>>>> Hi,<br>>>><br>>>> In a current project, I have to create a separate registration form <br>>>> for each role. For example, "customers" has a registration form and <br>>>> "vendors" have a registration form that is separate. Any idea how I <br>>>> may achieve this using existing drupal modules?<br>>>><br>>>> Thanks in advance,<br>>>> Raj Sekharan
<br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Tue, 08 Sep 2009 17:26:05 -0400<br>From: Ken Winters <<a ymailto="mailto:kwinters@coalmarch.com" href="/mc/compose?to=kwinters@coalmarch.com">kwinters@coalmarch.com</a>><br>Subject: Re: [development] Creating separate registration forms for<br> each role<br>To: <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID: <<a ymailto="mailto:4AA6CBED.1040707@coalmarch.com" href="/mc/compose?to=4AA6CBED.1040707@coalmarch.com">4AA6CBED.1040707@coalmarch.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Great! <br><br>I just wanted to mention that the hooks method might not be required for <br>your particular needs. <br><br>Autoassignrole plus content_profile are pretty handy, but our specific <br>case had some elaborate requirements so we needed the hooks
anyway.<br><br>- kwinters<br><br>rajasekharan wrote:<br>> Thanks much! I got what I wanted. I am going to use autoassignroles <br>> module and then use the method Ken has mentioned - add profile <br>> attributes and then use the necessary hooks to modify the form to show <br>> the necessary fields.<br>><br>> Ken Winters wrote:<br>>> I believe he wants the actual form to be different.<br>>><br>>> We did something similar using the Profile module to create the <br>>> fields for all roles and then hook_user, hook_form, etc. to make sure <br>>> that only the right fields are displayed based on arg(2) (or <br>>> whatever) and then processed correctly.<br>>><br>>> - kwinters<br>>><br>>> Aradhana wrote:<br>>>> Hi,<br>>>><br>>>> There is a drupal module names auto assign role.. which provides <br>>>> same functionality. We can differentiate forms on
the basis of url. <br>>>> e.g assign different url for vendors registration and different url <br>>>> for customers.<br>>>><br>>>> <a href="http://drupal.org/project/autoassignrole" target="_blank">http://drupal.org/project/autoassignrole</a><br>>>><br>>>> Regards,<br>>>> Aradhana<br>>>><br>>>> rajasekharan wrote:<br>>>>> Hi,<br>>>>><br>>>>> In a current project, I have to create a separate registration form <br>>>>> for each role. For example, "customers" has a registration form and <br>>>>> "vendors" have a registration form that is separate. Any idea how I <br>>>>> may achieve this using existing drupal modules?<br>>>>><br>>>>> Thanks in advance,<br>>>>> Raj Sekharan <br>><br><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 09 Sep 2009
09:13:18 +0200<br>From: Olivier Jacquet <<a ymailto="mailto:ojacquet@jax.be" href="/mc/compose?to=ojacquet@jax.be">ojacquet@jax.be</a>><br>Subject: [development] Modify environment before & after block is<br> rendered<br>To: <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID: <<a ymailto="mailto:4AA7558E.2080100@jax.be" href="/mc/compose?to=4AA7558E.2080100@jax.be">4AA7558E.2080100@jax.be</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi,<br><br><br>When themename_preprocess_block() is called the content of the block is <br>already rendered. I am looking for a way to modify the environment <br>before the block is rendered and a way to restore the environment <br>afterwards.<br><br>The specific use case is that I have two blocks, generated by views, one <br>showing the terms from one taxonomy and the other the titles
of the <br>nodes belonging to that taxonomy.<br><br>When one navigates to a node the link to that node is active but I would <br>like the link to the taxonomy to be active as well. An easy way to <br>accomplish this would be to do a <br>menu_set_active_item('taxonomy/term/tid') before the taxonomy block is <br>rendered and reset it afterwards. Unfortunately this doesn't seem to be <br>possible.<br><br>The only other way I can think of is to modify the block content via <br>regular expressions in themename_preprocess_block().<br><br><br>Thank you for your time,<br>Olivier<br><br><br>------------------------------<br><br>Message: 5<br>Date: Wed, 9 Sep 2009 17:49:53 +0800<br>From: Daniel Honrade <<a ymailto="mailto:mail@danielhonrade.com" href="/mc/compose?to=mail@danielhonrade.com">mail@danielhonrade.com</a>><br>Subject: Re: [development] Modify environment before & after block is<br> rendered<br>To: <a
ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID:<br> <<a ymailto="mailto:db20d290909090249i3ef287b1x1ceb75f412a3ee4e@mail.gmail.com" href="/mc/compose?to=db20d290909090249i3ef287b1x1ceb75f412a3ee4e@mail.gmail.com">db20d290909090249i3ef287b1x1ceb75f412a3ee4e@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>have you tried taxonomy menu module?<br><br>On Wed, Sep 9, 2009 at 3:13 PM, Olivier Jacquet <<a ymailto="mailto:ojacquet@jax.be" href="/mc/compose?to=ojacquet@jax.be">ojacquet@jax.be</a>> wrote:<br><br>> Hi,<br>><br>><br>> When themename_preprocess_block() is called the content of the block is<br>> already rendered. I am looking for a way to modify the environment before<br>> the block is rendered and a way to restore the environment afterwards.<br>><br>> The specific use case is that I have two
blocks, generated by views, one<br>> showing the terms from one taxonomy and the other the titles of the nodes<br>> belonging to that taxonomy.<br>><br>> When one navigates to a node the link to that node is active but I would<br>> like the link to the taxonomy to be active as well. An easy way to<br>> accomplish this would be to do a menu_set_active_item('taxonomy/term/tid')<br>> before the taxonomy block is rendered and reset it afterwards. Unfortunately<br>> this doesn't seem to be possible.<br>><br>> The only other way I can think of is to modify the block content via<br>> regular expressions in themename_preprocess_block().<br>><br>><br>> Thank you for your time,<br>> Olivier<br>><br><br><br><br>-- <br>Daniel Honrade, Jr.<br><br>mobile: +63 915 903 3561<br>alternate email: <a ymailto="mailto:danielhonrade@gmail.com"
href="/mc/compose?to=danielhonrade@gmail.com">danielhonrade@gmail.com</a><br>websites: <a href="http://danielhonrade.com" target="_blank">http://danielhonrade.com</a><br> <a href="http://webtheming.com" target="_blank">http://webtheming.com</a><br><br><br>When you signup for PayPal, you can start accepting credit card payments<br>instantly. As the world's number one online payment service, PayPal is the<br>fastest way to open your doors to over 150 million member accounts<br>worldwide. Best of all, it's completely free to sign up! To sign up or learn<br>more, click here: <a href="https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA" target="_blank">https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.drupal.org/pipermail/development/attachments/20090909/383ee13f/attachment-0001.htm"
target="_blank">http://lists.drupal.org/pipermail/development/attachments/20090909/383ee13f/attachment-0001.htm</a>><br><br>------------------------------<br><br>Message: 6<br>Date: Wed, 09 Sep 2009 12:03:37 +0200<br>From: Olivier Jacquet <<a ymailto="mailto:ojacquet@jax.be" href="/mc/compose?to=ojacquet@jax.be">ojacquet@jax.be</a>><br>Subject: Re: [development] Modify environment before & after block is<br> rendered<br>To: <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID: <<a ymailto="mailto:4AA77D79.9020206@jax.be" href="/mc/compose?to=4AA77D79.9020206@jax.be">4AA77D79.9020206@jax.be</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br><br>Yes, it doesn't do this at all. Other modules set the active item to the <br>taxonomy path which activates the link to the taxonomy page but then the <br>link
to the node is no longer active.<br><br>I want to activate two different links in two different blocks on one page.<br><br><br>Daniel Honrade wrote:<br>> have you tried taxonomy menu module?<br>> <br>> On Wed, Sep 9, 2009 at 3:13 PM, Olivier Jacquet <<a ymailto="mailto:ojacquet@jax.be" href="/mc/compose?to=ojacquet@jax.be">ojacquet@jax.be</a>> wrote:<br>> <br>>> Hi,<br>>><br>>><br>>> When themename_preprocess_block() is called the content of the block is<br>>> already rendered. I am looking for a way to modify the environment before<br>>> the block is rendered and a way to restore the environment afterwards.<br>>><br>>> The specific use case is that I have two blocks, generated by views, one<br>>> showing the terms from one taxonomy and the other the titles of the nodes<br>>> belonging to that taxonomy.<br>>><br>>> When one navigates to a node the link to that node
is active but I would<br>>> like the link to the taxonomy to be active as well. An easy way to<br>>> accomplish this would be to do a menu_set_active_item('taxonomy/term/tid')<br>>> before the taxonomy block is rendered and reset it afterwards. Unfortunately<br>>> this doesn't seem to be possible.<br>>><br>>> The only other way I can think of is to modify the block content via<br>>> regular expressions in themename_preprocess_block().<br>>><br>>><br>>> Thank you for your time,<br>>> Olivier<br>>><br>> <br>> <br>> <br><br><br>------------------------------<br><br>Message: 7<br>Date: Wed, 9 Sep 2009 13:59:16 +0300<br>From: Fred Jones <<a ymailto="mailto:fredthejonester@gmail.com" href="/mc/compose?to=fredthejonester@gmail.com">fredthejonester@gmail.com</a>><br>Subject: Re: [development] Modify environment before & after block is<br> rendered<br>To:
<a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID:<br> <<a ymailto="mailto:177c0a10909090359y57d894d4kb35373cb0524154@mail.gmail.com" href="/mc/compose?to=177c0a10909090359y57d894d4kb35373cb0524154@mail.gmail.com">177c0a10909090359y57d894d4kb35373cb0524154@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>> The specific use case is that I have two blocks, generated by views, one<br>> showing the terms from one taxonomy and the other the titles of the nodes<br>> belonging to that taxonomy.<br><br>To edit view content, use hook_views_pre_render<br><br><br>------------------------------<br><br>Message: 8<br>Date: Wed, 09 Sep 2009 22:08:02 +0530<br>From: rajasekharan <<a ymailto="mailto:websweetweb@gmail.com" href="/mc/compose?to=websweetweb@gmail.com">websweetweb@gmail.com</a>><br>Subject: Re: [development] Creating
separate registration forms for<br> each role<br>To: <a ymailto="mailto:development@drupal.org" href="/mc/compose?to=development@drupal.org">development@drupal.org</a><br>Message-ID: <<a ymailto="mailto:4AA7D9EA.8060408@gmail.com" href="/mc/compose?to=4AA7D9EA.8060408@gmail.com">4AA7D9EA.8060408@gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>I tried the content_profile method suggested by Ken Winters, for <br>creating a separate registration form with extra custom fields. I was <br>able to add fields to the registration form. But now I am faced with <br>another problem - even the default registration form shows the fields <br>that I have added for the suppliers' form. Is there anyway some of these <br>field can be restricted to the reg form for only certain roles? I am <br>using this in conjunction with the autoassignrole module.<br><br>Thanks in advance.<br>Raj<br><br>Ken Winters
wrote:<br>> Great!<br>> I just wanted to mention that the hooks method might not be required <br>> for your particular needs.<br>> Autoassignrole plus content_profile are pretty handy, but our specific <br>> case had some elaborate requirements so we needed the hooks anyway.<br>><br>> - kwinters<br>><br>> rajasekharan wrote:<br>>> Thanks much! I got what I wanted. I am going to use autoassignroles <br>>> module and then use the method Ken has mentioned - add profile <br>>> attributes and then use the necessary hooks to modify the form to <br>>> show the necessary fields.<br>>><br>>> Ken Winters wrote:<br>>>> I believe he wants the actual form to be different.<br>>>><br>>>> We did something similar using the Profile module to create the <br>>>> fields for all roles and then hook_user, hook_form, etc. to make <br>>>> sure that only the right fields
are displayed based on arg(2) (or <br>>>> whatever) and then processed correctly.<br>>>><br>>>> - kwinters<br>>>><br>>>> Aradhana wrote:<br>>>>> Hi,<br>>>>><br>>>>> There is a drupal module names auto assign role.. which provides <br>>>>> same functionality. We can differentiate forms on the basis of url. <br>>>>> e.g assign different url for vendors registration and different url <br>>>>> for customers.<br>>>>><br>>>>> <a href="http://drupal.org/project/autoassignrole" target="_blank">http://drupal.org/project/autoassignrole</a><br>>>>><br>>>>> Regards,<br>>>>> Aradhana<br>>>>><br>>>>> rajasekharan wrote:<br>>>>>> Hi,<br>>>>>><br>>>>>> In a current project, I have to create a separate registration
<br>>>>>> form for each role. For example, "customers" has a registration <br>>>>>> form and "vendors" have a registration form that is separate. Any <br>>>>>> idea how I may achieve this using existing drupal modules?<br>>>>>><br>>>>>> Thanks in advance,<br>>>>>> Raj Sekharan <br><br><br><br>------------------------------<br><br>--<br>[ Drupal development list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br><br>End of development Digest, Vol 81, Issue 7<br>******************************************<br></div></blockquote></td></tr></table><br>
<!--1--><hr size=1></hr> Love Cricket? Check out live scores, photos, video highlights and more. <a href="http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com" target="_blank"> Click here</a>.