Main Menu
Contact
Popular Plugins
Sign In

In the config array, you can set a new key "assets" to set some assets you want to include in your Block Type. This can be a stylesheet (.css/.scss) or a PHP file (tools/some_tool.php) or whatever extension you'd like to have. Let's look at the example below.

"assets"    => [
	'tests/epic/test.php' => '<?php echo "test";',
	'app.css'             => '.style-class { color: red; }',
	'css/sass.scss'       => '.style-class { .style-class--item { background: blue; } }',
],

As you can see, you can also use a slash (/) to create a file within a different directory. Could be useful to group your files nicely or whenever it's a requirement of concrete5 itself to place in a given directory. Be sure not to override existing default files like these though if you don't mean to: 

  1. add.php
  2. composer.php
  3. controller.php
  4. db.xml
  5. edit.php
  6. form.php
  7. view.php

Of course, feel free to do so if you have a good reason for edits. In case you do think the default files could use an upgrade and other can profit from that, do let me know. Happy to make the Add-On better together with you!

In case you remove assets AFTER running the CLI command, the Add-On will not remove files that aren't available in this array. So please remove files manually if you don't need/want them anymore. No files will be removed, untill you actually do so yourself. That will prevent bad things from happening.

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