This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

amanda_benade
amanda_benade

I'm developing a plugin (using Rainlab Builder) for a client who requires some basic markup (bold & underline) in backend form field labels. I've tried basic html (<b>,<u>), markdown and converting html entities (in the lang.php file). However, the html is always rendered as plain text. Is there any way to accomplish this?

mjauvin
mjauvin

You can't do it this way. What I suggest doing is inject a css file asset to the controller showing that form, and target the form label elements to add font-weight/text-decoration css properties:

div.form-widget div.form-group > label {
   font-weight: bold;
   text-decoration: underline;
}
amanda_benade
amanda_benade

Hi, thank you, but the client specifically wants to emphasize specific words in the label, not the full label.

mjauvin
mjauvin

I'm afraid that's not possible without modifying the core source code.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.