Keyword

Frontend item submitform redirect

  • Andrea Vigato
  • Andrea Vigato's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 3 months ago #97395 by Andrea Vigato
Frontend item submitform redirect was created by Andrea Vigato
Hi all, 

 

i have a problem with the submitform redirect in the form.php.

 

Have an onclick attribute on the related a with " javascript: submitbutton('save'); return false; ", when it save the new item it goes to the edit item page. I want it to go in a joomla article page, i tried everything but:

 

If i let it do "submitform(pressbutton);" (called in function submitbutton(pressbutton) {code}) it goes to edit item page and save the new item.

 

If i do "window.location.href = pageUtente+"<?php echo $user->id; ?>";) (for example, just a normal redirect) it go to my page but cannot save the new item...so how can i save the new item and go to another page? Where can i change it?

 

Thanks...

 

 

 

Please Log in or Create an account to join the conversation.

  • Andrea Vigato
  • Andrea Vigato's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 3 months ago #97396 by Andrea Vigato
Replied by Andrea Vigato on topic Frontend item submitform redirect
please anyone?

 

I don't understand how to redirect a user to another page (joomla article) after add Item...it continue to redirect to "edit item" or (if i change $model->save(true) to false) to option=com_k2&view=items blank page.

 

Can anyone help?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum