Main Menu
Contact
Popular Plugins
Sign In

As with Block Designer, you can add code before and after the field value. Let’s say we have a “Wysiwyg” field type and want to do just that. It’s as simple as:

"content" => [
	"type"        => "Wysiwyg",
	"label"       => t("Some content"),
	"required"    => true,
    "searchable"  => true,
    "view"        => [
	    "prefix" => '<div class="alert alert-info">',
		"suffix" => '</div>',
    ]
],

The “view” (line 6) will let the Add-On know it’s for the view file, and prefix will be added before the value and suffix after the value. This will only be added when the value has been validated, so for this content field it will only appear if you have something entered in the editor. If you leave the field empty in the form, it won’t appear. If you do this for the “Image” field type, it will only appear when there’s an image to be shown.

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