Keyword

[SOLVED] Fontend Save Redirect

  • Septdir
  • Septdir's Avatar Topic Author
  • Offline
  • New Member
More
9 years 6 months ago - 9 years 6 months ago #142187 by Septdir
Fontend Save Redirect was created by Septdir
Hello!
To redirect while preserving material from the front end I had used my personal hack
administrator => components => com_k2=> models =>item.php
case 'save' :
	default :
		if ($front) {
			$msg = JText::_('K2_ITEM_SAVED');
			if ($row->catid == 2){$link = '/company/' .$row->id ;}
			else {$link = '/index.php?option=com_k2&view=item&id=' .$row->id ;}
		}
		else {
			$link = 'index.php?option=com_k2&view=items';
		}
	break;
Now I want to improve it so that when you add a redirect was one when you change the other. But I can come up with anything to tie him up.
I tried to tie him to itemid but at the moment there is a redirect from an item id

Tried to bind to the URL but failed.

Is there a variable that is responsible for adding or editing it was.
Last edit: 9 years 6 months ago by Septdir.

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

  • Septdir
  • Septdir's Avatar Topic Author
  • Offline
  • New Member
More
9 years 6 months ago #142228 by Septdir
Replied by Septdir on topic Fontend Save Redirect
It was $isNew

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


Powered by Kunena Forum