Questions tagged [concrete5-5.7]

concrete5 version 7 is a major version of concrete5. It has been since surpassed by version 8.

Concrete5 version 7 is a major update to the concrete5 product, overhauling the architecture significantly from previous versions. This update brings many large changes, including a new architecture based on Laravel, a new asset handling layer, changes to the theme engine and much more.

74 questions
2
votes
1 answer

Composer autload check for already loaded classes

I'm using Composer dependency manager for php in my project. I'm building my project to off open source CMS called Concrete5. They are also loading stuffs with Composer. Concrete5 and my own package for that uses Doctrine and Doctrine is included in…
user257980
  • 1,059
  • 2
  • 15
  • 31
2
votes
1 answer

Concrete5.7.5.2: Full page caching turned on but page doesn't seem to get retrieved from cache

I've turned on "Full Page Caching" to "On - In all cases" under "Cache & Speed Settings" and tested it by clearing cache and loading my home page in a separate browser. But it seems the load time seems to remain the same no matter how many times I…
Ron Lim
  • 129
  • 1
  • 7
2
votes
1 answer

Concrete5.7.5.2 - Where to put form file attachment headers?

I build my email headers like this: $txt_message .= $this->txt_message; $html_message .= $this->html_message; $mh = Core::make('helper/mail'); $mh->to($this->email_to, $this->site_name); $mh->from($this->email,…
linuxoid
  • 1,415
  • 3
  • 14
  • 32
2
votes
1 answer

Concrete 5.7 switch database on the fly

I want to write the form result to another database. In Concrete 5.6 you can switch to another database on the fly. I am unable to find out how this works in Concrete 5.7. The 5.6 way $db = Loader::db( 'newserver', 'newuser', 'newpassword',…
Rik
  • 308
  • 1
  • 2
  • 11
2
votes
1 answer

Concrete5 5.7: using a ServiceProvider cross-package

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…
Joost
  • 4,094
  • 3
  • 27
  • 58
1
vote
1 answer

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

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…
Andrew Dinmore
  • 804
  • 7
  • 14
1
vote
1 answer

Overwrite Authentication Type's form.php in a Package

I am trying to overwrite the form.php file for the 'concrete' authentification type. I can make it work if I place the form.php file in the /application/authentication/concrete directory, but not from within my theme package directory.
Jakob Fuchs
  • 386
  • 2
  • 4
  • 12
1
vote
2 answers

Concrete5 import JS or CSS in single page

I've been checking this page out on their docs: http://documentation.concrete5.org/developers/assets/requiring-an-asset But none of the options are working out for me. No errors or anything. It just ignores the requireAsset…
adamj
  • 4,672
  • 5
  • 49
  • 60
1
vote
0 answers

Form Block - add help text to form input

I'm trying to add a 'help text' to the questions added by the Form block. Something like this but on the front-end part of the form. For some reason its not saving the value or getting the value into the edit form. Even when I add it manually to the…
moonshard
  • 66
  • 1
  • 10
1
vote
1 answer

Concrete5 Dynamic select list on user account / add user page

I want to add a form select input on the user account page / add user page with a dynamic list of options / values. I know how to get the dynamic list form a database table and create a dynamic list for the select options. echo…
moonshard
  • 66
  • 1
  • 10
1
vote
2 answers

Concrete5 controller logic

I have the following use case that i need to retrieve some data from ip-api.com and put it in a session so that some specific customer data can be used later in the process in my application. Problem is that i have no idea where to put the logic in…
Dirkos
  • 488
  • 1
  • 10
  • 33
1
vote
1 answer

Concrete5 Autonav Block Get Number of Descendants

I'm doing a custom template for the Concrete5 autonav block and am wondering if there is a way to get the total number of descendants (children, grandchildren, and so on) for each particular nav item? For example, get descendants for the top level…
jonkratz
  • 123
  • 1
  • 10
1
vote
1 answer

Programmatically render 404 in single page in concrete5 (version 7)

I've got a single page, where it checks a slug. If this slug can not be found in a database table, the single page should render the 404 page. Something like this I have tried: $this->render('/page_not_found'); Now, this goes to your active…
1
vote
0 answers

Concrete5 (5.7.5.6) How to register package service provider the whole application?

If I use provider located from the application source it works: app.php: return array( 'providers' => append_config(array( '\Application\Src\Utility\UtilityServiceProvider', )) ); but if I try to register a provider located from a…
John Henry
  • 109
  • 2
  • 5
1
vote
1 answer

Single page controller not working

So I have created a single page as subpage at: /application/single_pages/leden/mijnaccount.php Added it at the single pages list in dashboard. The page is working fine. But when I add a controller…
seymar
  • 3,993
  • 6
  • 25
  • 30