Default the open tab to the Form tab

Yoav Atzmony asked on February 8, 2021 21:56

This question was answered back in 2015, for version 8.x

I'm trying to do the same thing with Kentico 12:

I've created a custom module where I've cloned UIPage.aspx so that I can customize what tabs (Page/Form/etc...) are available to an editor. I'd like to default the open tab to the form tab. The response from v8.x doesn't apply anymore to v12.

Much thanks for any responses.

Recent Answers


Juraj Ondrus answered on February 9, 2021 07:06

Since you have a custom module, why don't you create a custom interface instead of modifying the system files? Using the custom UI form you can decide what is displayed to the editor. Or, use the direct URL in the custom interface of the Form tab: http://domain.com/CMSModules/Content/CMSDesk/Edit/edit.aspx?nodeid=< NodeID >&culture=< cultureCode >

0 votesVote for this answer Mark as a Correct answer

Yoav Atzmony answered on February 9, 2021 17:26

Thank you Juraj for your response.

I had been using the edit.aspx as you showed above, however, then I needed to add some features from the Properties menu (eg. versions). Therefore, I wanted to leverage a cloned UIPage.aspx to utilize the built-in tabs of the UIPages.aspx page. I see the state stored in a session variable "SelectedTab|CMS.Content|Edit". Is there a an API method available to access that state?

Thanks again.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on February 11, 2021 15:28 (last edited on February 11, 2021 15:28)

The new UI in most of its parts was redesigned to use UIPage.aspx and using the virtual UI Elements (which can be found in given Modules -> //given module// -> User interface).
The tabs in the Pages module are being generated by the \CMS\App_Code\CMSModules\Content\Extenders\ContentEditTabsControlExtender.cs extender. So, you can try modify this file and change the order/defaults of the tabs

0 votesVote for this answer Mark as a Correct answer

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