Feature #16717
openAdd _blank support for "Link values to URL"
0%
Description
I would be great to have one more controll in definition of custom fields new feature - "Link values to URL".
Plz just add checkbox: [x] Open links in a new window
So links will open with "_blank".
ANyway, great work with custom fields, thanx!
Updated by Florian Nicolet almost 10 years ago
Maxim Krušina wrote:
I would be great to have one more controll in definition of custom fields new feature - "Link values to URL".
Plz just add checkbox: [x] Open links in a new window
So links will open with "_blank".ANyway, great work with custom fields, thanx!
It will be really nice!
Updated by Francisco J. Aguayo over 8 years ago
Hello! Ceccarelli, Akkas, Nicolet, and Krušina:
I just saw the Lefko Media page and I remembered this post. (https://lefkomedia.com/adding-external-link-indicator-with-css/)
After a couple of years in other projects, now I have to go back to work with Redmine.
Well, press F12 keyboard key and view on your browser-debugger the class assigned to div.For me, it's always a pleasure 'to play' Redmine again!
(Really, Thank you very much Mr. Lang !!).
- For my installation, the Custom-Fields corresponds to cf_55, this is custom_field 55..
- Look what topic you have activated in Redmine. (admins screens..).
- And then from console (putty o whatever..) inserted into file of its corresponding directory ../public/theme/NAMEofTheme/stylesheets/application.css the following code at the end thereof: (altering the number of your custom field: Of course).
And ready !
div.cf_55.attribute div.value a:after {
color: red;
content: url(/images/link.png);
margin: 0 3px 0 5px;
}
If you have FontAwesome, then:
div.cf_55.attribute div.value a:after {
color: red;
font-family: 'FontAwesome';
content: " \f08e";
margin: 0 3px 0 5px;
}
- To open in a new window, to press Ctrl + Mouse Click on the link and, thus, will not be necessary to alter the core file views / issues / index.html.erb following the techniques proposed by Anton Argirov in the topic: http://www.redmine.org/boards/3/topics/33949
Enjoy !