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: $32.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: $130.80
  • Save an extra: $109.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 4 years ago
Updated 3 years ago
Requires concrete5 5.7.5.3
Current version 0.9.7
Skill level Bleeding Edge

Buyer Rating:

5 average based on 2 ratings More information

Got something to say? Need help?

View support forum