Module Development with Back button

Saurav Guin asked on November 10, 2016 07:21

In the article Module development – Introduction (reference : http://devnet.kentico.com/articles/module-development-introduction), I want to add a Back button which will send the user back to the Listing from the New Form Entry. I figure, some changes have to be done in the XML, but can anyone tell what the proper code should be for the Back button redirection?

Correct Answer

Anton Grekhovodov answered on November 10, 2016 07:44

Hi,

You don't need to modify XML. You just need to tick 'Display Breadcrumbs' checkbox here: Image Text

After that there will be a link in navigation bar that you can use to go back: Image Text

3 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on November 10, 2016 07:37

If you use the Vertical tab template when you're building your module, it's automatic. Key is you have to set your structure up the same way they have it (recommended) otherwise the OOTB functionality will not work. Should not have to write any code. Double check your steps, most likely missed one.

0 votesVote for this answer Mark as a Correct answer

Saurav Guin answered on November 10, 2016 08:02

Thank You Anton Grekhovodov. The Breadcrumb strategy did the job, but is there any way to implement a Back button in the New Form Entry screen. If not, is it possible to redirect to the Listing Page after a New Save has been done?

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on November 10, 2016 09:40

Saurav,

Try to use this field where you can write JS code: Image Text

JS code could be like:

try{
    window.parent.location.reload();
}
catch(ex){
    console.log(ex);
}
1 votesVote for this answer Mark as a Correct answer

Saurav Guin answered on November 10, 2016 10:19

Thanks again Anton Grekhovodov. The After Save script was a good recommendation :)

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on November 10, 2016 10:27

Saurav,

You're welcome)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.