Node, upon creation a redirect occurs

Events happening in the community are now at Drupal community events on www.drupal.org.
jjchinquist's picture

Hello,

Maybe I am not looking in the correct place. I have a node of type "veranstaltungsort" (event location) and I wish to make one change.

When a new node of this type is created, I want to go to another page --> map.php. The same is true for when I submit the edit form.

Question: where can I find a document that tells me how to make this change?

/* Note, here comes my theory */
I have already tried with "?destination=map.php" which works, however I arrive through a menu point on the left side of our page. Menu's url_encode the "?" and "="

Do I need to make a "function mymodule_form_alter(&$form_id, &$form){" and alter the array?


I know that I can do it through the node.module (line 2379) BUUUUTTTT of course I do not want to alter the node.module.


Thanks to anyone in advance who helps me.

  • Jeremy

Comments

Hi Jeremy, did you use the

criz's picture

Hi Jeremy, did you use the l() function for the link? Usually the encoding should work...

And of course, you could also use workflow-ng for the redirection. ;)

cheers,
chris

Workflows-ng

jjchinquist's picture

I have to hit myself on the head for this one. Of course Workflows-ng is my answer. The l() function cannot be used for menu points as far as I know. Our workflow looks something like this. User Redaktion logs in, clicks on the menu point "Verantaltungsort erstellen". Fills out the form, then should be automatically redirected to the next page which is a google map with the pointer that they can drag and place. (I am using a google map .php page that was from our old system, as I did not want to recreate that page through the Geomap module -- yet).

As indicated above, I was just missing the key. Thanks!

  • Jeremy

Senior Programmer
APA-OTS Originaltext-Service GmbH

Austria

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week