If you are having the error "You are not permitted to use that link to directly access that page" on clicking on 'cancel' button in joomla admin inside a component then try the following:
Try selecting a row with a check box and then click edit, once the page loads click cancels, if this doesn't give the error and adding a look to title to edit, something like
index.php?option=com_myschool&view=student&layout=edit&id=1
and clicking on this and then pressing cancel gives you the error then the following is the quick and easy solution, replace the layout edit with task=subcontrollername.edit and leave rest the same, e.g.
index.php?option=com_myschool&view=student&task=student.edit&id=1
or this also works
index.php?option=com_myschool&task=student.edit&id=1
Note: You will be in a view with plural like views/students/tmpl/default.php but you have to use the subcontroller name of the single one i.e. student.
Try selecting a row with a check box and then click edit, once the page loads click cancels, if this doesn't give the error and adding a look to title to edit, something like
index.php?option=com_myschool&view=student&layout=edit&id=1
and clicking on this and then pressing cancel gives you the error then the following is the quick and easy solution, replace the layout edit with task=subcontrollername.edit and leave rest the same, e.g.
index.php?option=com_myschool&view=student&task=student.edit&id=1
or this also works
index.php?option=com_myschool&task=student.edit&id=1
Note: You will be in a view with plural like views/students/tmpl/default.php but you have to use the subcontroller name of the single one i.e. student.
Many many thanks, this help me a looot!
ReplyDeleteMy pleasure :)
DeleteVery good job!
ReplyDeleteNot working for me
ReplyDeleteThanks a lot. Its working !! :-)
ReplyDeleteThank you. Helped me. :)
ReplyDeleteDirty edit. Joomla should deal with this already! Been too long a bug!
ReplyDeleteThanks, it works
ReplyDelete