Main Menu
Contact
Popular Plugins
Sign In

New line to blank rule (nl2br)

Use the "nl2br" as key in your "view" array and set its value to true or false. By default, it's set to false. So whenever set to true, every new line (mostly done by hitting enter in your textarea), will be converted to a blank rule (br).

"exampleCodeHere" => [
    "type"  => "Code",
	"label" => t("Some example code"),
	"view"  => [
		"nl2br" => true,
	],
],

Skip h(tmlspecialchars)

The Code field type has an option to skip the specialchars/htmlspecialchars function, which is normally called for security reasons (if one enters HTML into a Code field). Use it by adding a "skip_h" key into your "view" array, and set its value to true or false.

"exampleCodeHere" => [
    "type"  => "Code",
	"label" => t("Some example code"),
	"view"     => [
		"skip_h" => true,
	],
],

Skip pre code (<pre><code>)

The Code field type initially was made to output the <pre><code> HTML element. But I can imagine you'd want to use it slightly different (classes maybe, or an ID on the element or whatever), and use the prefix/suffix instead. So by setting the "skip_pre_code" to true, the pre and code HTML element will not be rendered.

"exampleCodeHere" => [
    "type"  => "Code",
	"label" => t("Some example code"),
	"view"     => [
		"skip_pre_code" => true,
	],
],

Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $35.70
Add to Concrete5 Cart

Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $142.80
  • Save an extra: $119.00
Add to Concrete5 Cart

Use, by you or a client, in x/xx single end products.

Upon request, quote will be made and sent to you via email.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Saves extra $$
Request Quote
Released 6 years ago
Updated 1 year ago
Installs 3
Requires concrete5 5.7.5.3
Current version 1.4.5
Skill level Bleeding Edge

Buyer Rating:

5 average based on 3 ratings More information

Got something to say? Need help?

View support forum