Hi,
Is there an option to ensure a label must be entered into the editor with confluence 5.2?
I have read other articles and there does not appear to be any concrete solution to this.
We can instruct users to fill out the label field but it would be nice if they could not save until atleast 1 is entered.
Thank you!
One of our developers put the following into the theme javascript file:
Hope this helps someone else.
$(document).on("click", "#rte-button-publish", function(e) { var labelbutton = $("#rte-button-labels"); if($(labelbutton).length > 0) { if($(labelbutton).find(".trigger-text").text() == "Labels") { e.preventDefault(); e.stopPropagation(); alert("Page requires at least one or more labels"); } } });
/* CSS to not let last label be removed */ .aui-label.aui-label-closeable:last-child:first-child { padding-right: 5px; position: relative; } .aui-label.aui-label-closeable:last-child:first-child .aui-label-split-close { display: none; }
This is what I am looking for
It would be great to know which file I need to edit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope. No option for that. You could write a plugin for it, or maybe write a Speakeasy extension for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. Could the above css be extended to remove the 'x' for labels containing a certain value? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not with just CSS no. You would need to use JavaScript for that. With CSS 4 you could do it, but nothing supports CSS 4 yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.