Jump to content

Recommended Posts

Posted

Does anyone know how I can insertt a font awesome icon into notes text for a field?

For example, I currently have this in the definition of a config inputfield for a module:

$f->notes = $this->_("Needs to be a page with Category template (right-caret icon). Create one if it doesn't already exist.");

I would like to show the actual icon rather than just describe it

Posted
<?php
$f->entityEncodeText = false;
$f->notes = str_replace(
	"[icon]",
	"<i class='fa fa-check'></i>",
	$this->_("Some text [icon] Some more Text.")
);
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...