Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Redirecting

[SOLVED] Redirecting 23 Oct 2011 21:25 #304

  • Kevin
  • Kevin's Avatar
I see that we can configure the save tool to redirect to a layout.

I am trying to redirect on the frontend but the only layouts available are the lists.

I would like to redirect to a page which shows the details just submitted within a page.

I am trying to allow users to fill in their details for a fishing competition entry form, then after submitting present them with the completed form so they can print it.
Last Edit: 24 Oct 2011 20:05 by Kevin.
The administrator has disabled public write access.

Re: Redirecting 24 Oct 2011 04:56 #308

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
Kevin... I too... want to know if this is possible as well... have similar issue...
Paulo Griiettner
The administrator has disabled public write access.

Re: Redirecting 24 Oct 2011 10:45 #315

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Yes, good idea, and very simple to add in Cook.
Beiing alowed to redirect to an item layout, instead of a collection layouts only.

For now, just change this in the controller, at the end of the task execution.
Very easy.


Added in list of functionalities.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Redirecting 24 Oct 2011 20:01 #328

  • Kevin
  • Kevin's Avatar
Nice one cook, thanks... :)
Last Edit: 24 Oct 2011 20:06 by Kevin.
The administrator has disabled public write access.

Re: Redirecting 27 Oct 2011 12:59 #361

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Added in functionalities since 1.4.2

- You can choose whatever layout to redirect.
- If you redirect to an item layout, you conserve the current id. You can choose to reset the id. (Ex : Save and New)
- If you redirect to a collection layout, you can reuse the current item id to preset a filter. (Reuse param)
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: Kevin, twev

Re: [SOLVED] Redirecting 28 Oct 2011 18:07 #369

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
Just to let you guys know that this is working nice... My customer wanted a form to be filled like survey, where someone can go step by step on the form... the good part is when he goes to next set of question, the previous data was already save on DB...

Thanks for this new function
Paulo Griiettner
The administrator has disabled public write access.

Re: [SOLVED] Redirecting 28 Oct 2011 19:24 #370

  • Kevin
  • Kevin's Avatar
Gonna try it now, thanks for adding this
The administrator has disabled public write access.

Re: [SOLVED] Redirecting 28 Oct 2011 19:39 #371

  • Kevin
  • Kevin's Avatar
OK Just tried it too and it is exactly what I was looking for.
The administrator has disabled public write access.

Re: [SOLVED] Redirecting 29 Oct 2011 13:33 #374

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
In facts, with this functionality, you can go step by step in the forms, saving the data between each step, and at the end you can finish with a fly. And after, the fly page, you can redirect to a collection layout filtered with the cid number, etc...

There no more limits.

For reuse of the cid value, there will, in the future be a better assistant to select throught all possibilities.
Means, that wherever this table is referenced, it will be possible to link and prepare a page before showing it.
Filters as I said before, but also new FK form instance prefilled with this value.

Maybe it seems complicated, but, when you'll see, it's very simple and useful.
Coding is now a piece of cake
Last Edit: 29 Oct 2011 13:34 by admin.
The administrator has disabled public write access.
Time to create page: 0.101 seconds

Get Started