Redirect to page after user saves article - Joomla! Forum - community, help and support


just wondering if knows how/where change in com_content redirect user specific page rather index.php

when user submits new article , clicks save, redirected home page. have custom page user starts when want submit articles (like article manager) , i'd them redirected article manager again instead of home

tia

the following code under administrator/components/com_content/controller.php. can change $mainframe->redirect(''); save link like. not adviceable edit core file when upgrade have change again. hope helps.

code: select all

switch ($task)
      {
         case 'go2menu' :
            $mainframe->redirect('index.php?option=com_menus&menutype='.$menu);
            break;

         case 'go2menuitem' :
            $mainframe->redirect('index.php?option=com_menus&menutype='.$menu.'&task=edit&id='.$menuid);
            break;

         case 'menulink' :
            contenthelper::menulink($redirect, $row->id);
            break;

         case 'resethits' :
            contenthelper::resethits($redirect, $row->id);
            break;

         case 'apply' :
            $msg = jtext::sprintf('successfully saved changes article', $row->title);
            $mainframe->redirect('index.php?option=com_content&sectionid='.$redirect.'&task=edit&cid[]='.$row->id, $msg);
            break;

         case 'save' :
         default :
            $msg = jtext::sprintf('successfully saved article', $row->title);
            $mainframe->redirect('index.php?option=com_content&sectionid='.$redirect, $msg);
            break;
      }





Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO