Set value of "Target" to "New window" in Insert/modify link in KB article body.

Yash31
Tera Contributor

I have requirement as follows:

While creating knowledge article, when inserting or modifying the link in article body the value of "Target" on the Popup should be set to New Window by default.

Is it possible to do so? Please suggest possible ways if any.

find_real_file.png

1 ACCEPTED SOLUTION

Tushar Sharma2
Kilo Guru

Hello Yash,

 

Please follow below steps : 

 

1) Navigate to the UI Page search record with name  "html_insert_link_dialog" .

find_real_file.png

2) On the HTML field of this record scroll to around line where it says:

<g2:ui_select_option text="${gs.getMessage('None (use implicit)')}" value="" selected="$[jvar_selected_target]" />

3) Change the value attribute of the line from:

value="" to value="_self"

*Value of empty and value of _self are the same. The reason why we're doing this is so the system will not default to this option. It will always default to an option that has value=""

4) Now pick any other option that you want to be the new default and move this to the top, replacing the position that "None (use implicit)" previously occupied. It should look like this:

5) Save the change and now when using the Insert/Modify Link functionality, it should now default to Target: 'New window (_blank)' (assuming this was the option you've selected to be the default)

 

 

Regards,

Tushar

DXSherpa

View solution in original post

7 REPLIES 7

Great info! Thanks!

Hi @Tushar Sharma2 

 

Is is possible to change the UI Page? I need to make a customization on that UI Page html_insert_link_dialog but for that we need to "navigate" to a new UI Page(that I want to create). Do you know how we can change the ui page showed up when we click in that button? Instead of show the ootb UI Page, I want to be "redirected" to a new one that I will create?

 

Thanks,

Daniel Vieira

Sadashiv H
Tera Contributor

Hi Everyone, 

Did anyone know how to do this in Tokyo version??