concrete5-5.7

Concrete5 5.7: using a ServiceProvider cross-package

穿精又带淫゛_ 提交于 2019-12-24 04:13:13
问题 I'm migrating old code to 5.7, and I'm running into a weird issue when it comes to helpers. I'm working with two packages - let's call them A and B. Package A one implements a ServiceProvider. I would like to use it in a controller in package B, but it seems unable to find it properly. I'm configuring it in the install() function of package A, as follows $providers = Config::get('providers'); if (!$providers) { $providers = array('group_membership' => '\Concrete\Package\A\Src\GroupMembership

Concrete5 (5.7) - Don't cache page or current block on block error

♀尐吖头ヾ 提交于 2019-12-14 03:59:01
问题 I've got a block that relies on a fairly flaky third party service to get data to render so, when it does encounter a problem, I'd like to display an error message, rather than throw an exception and not render the page. Easy enough to do until you come to block/page caching. The data has a long lifetime so, when found, it's fine to cache everything. When it isn't, though, the page is cached with the error message in place. As such, I need to tell the CMS not to save the block or page output

concrete5 website API

此生再无相见时 提交于 2019-12-10 12:08:23
问题 I have some hierarchical data which I have organized in the concrete5 filemanager. I'd like to know if it is possible to access the filemanager from outside the concrete5 website by other apps (something in the manner of an API). This website made me hopeful that there could be an answer to this. Unfortunately, there was no followup tutorial. http://c5hub.com/learning/building-rest-api-using-concrete5-part-1/ My second question is very much related: is it possible to do the same thing to