Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Redirections in return var 20 Nov 2014 12:43 #12788

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Hi,
Foreign key links not going to the page from where it is called from.

For Example :

Employee Collection Layout has a foreign key link for departments.When I click on the departments link, it takes me to the departments page then on clicking on cancel it goes to Department collection layout instead of the employee collection layout.

Ideally it should go back to Employee Collection layout in this scenario.

Note : This scenario perfectly works fine, if the foreign key link is a modal layout.

Regards
Vivek

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

Last edit: by vivek.

Redirections in return var 20 Nov 2014 15:04 #12790

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Idealy yes, but cook does not handle such redirections for the moment.

When loading the form page, it should be sendingalso a return page in the post parameters, or in the GET from the caller.

Then the redirection should see this string and use it when it is present.
Don't forget to use Encode64 / Decode64 functions, so it can handle special chars.

It might be quite easy to achieve.
Coding is now a piece of cake

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

Redirections in return var 20 Nov 2014 16:12 #12791

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Yes, I am investigating this part.It is already implemented by joomla when we click on the options button.

The url has a parameter called return.

www.j-cook.pro/sandbox/cms32/administrat...JmxheW91dD1kZWZhdWx0

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

  • Page:
  • 1
Time to create page: 0.275 seconds

Really great Joomla tool Cook is a great piece of kit for creating Joomla components. It uses a drag-n-drop interface to build tables and fully featured pages. You can test your component in a sandbox before downloading it packaged up ready to install. The developer is responsive on the support forum.
Twev (JED)
          

Get Started