Edit bindings template on Page tab

Andrei Panait asked on March 14, 2017 23:37

Hi. I am trying to add a tab having a "Edit bindings" page template and I get an error because UIContext.EditedObject is not set. I would like to use the "Edit bindings" template instead of "Objects listing" because of the automation it provides.

Recent Answers


Mariia Hrytsai answered on March 15, 2017 10:19

Did you follow the documentation on how to create binding classes and set up UI [https://docs.kentico.com/k8/custom-development/creating-custom-modules/creating-custom-binding-classes]? Could you please specify scenario where you use "Edit binding"?

1 votesVote for this answer Mark as a Correct answer

Andrei Panait answered on March 27, 2017 18:05 (last edited on March 27, 2017 18:05)

I was able to have the Edit Bindings template working on a Page tab by duplicating the code used for the Personas tab in ContentPropertiesTabsControlExtender class:

case "properties.personas":
    tab.RedirectUrl = URLHelper.AddParameterToUrl(tab.RedirectUrl, "objectid", manager.NodeID.ToString(CultureInfo.InvariantCulture));
    break;
0 votesVote for this answer Mark as a Correct answer

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