Developing (v7+)

Block Field Validation

Whats the best way to validate fields on the edit popup for a block. All i want to be able to do is make it unable to save if the field is empty. I could write my own JS validation in the auto.js to run when someone clicks on the save button, but f…

Can't Find Database Password in site.php

I hope this is an easy one. I am about to transfer a site to a new host and I do not know the MySQL database password. I have looked in /config/site.php but there is no reference of it there. Environment: # concrete5 Version Core Version - 8.2.1 Ve…

Encrypting data sent via Express Forms

I've been reading this guide on how to encrypt and decrypt text: https://documentation.concrete5.org/developers/security/encryption-service I want to make use of this with all block types that accept user input. Mainly: - Form block (express_form…

Bootstrap concrete5 from composer dependency

Goal: Bootstrap concrete5 to run unit tests in a Composer based concrete5 package. Issue: I don't know how to Bootstrap a _Composer_ based installation and I can't find any public repositories that have implemented it. It seems impossible at the mom…

Sagepay Paymant Module

I am looking for a sagepay payment module for Community store (5.7 + ). Can someone share this package ? We have developed one, it charges only few cards and sometimes it fails to create card identifier or Merchant session key. May be we coded it wrong…

How to change the 'Unexpected Error' page?

I can't find how to provide an error page of my choice for the 'Unexpected error has occurred' page. I read that creating /core/error.php under your themes dir works but not for me, not in a package themes dir at least. So how do we provide a non-ug…

Localization States/Provinces

Can anyone tell me how I can add to the list of UK Counties in the Src/Localization/Services/StateProvince.php. I need to add West Midlands to the list and want to find a way to override the core version without editing the core. It would be even better i…

PageList - filtering by custom attribute with comparison

Hello, Everyone! I have a custom page attribute (Multi-Page selector) that contains array of related pages IDs. How can I filter this attribute with the PageList object by "equal" comparison? Methods, like this: $pl->filterByAttribute('related_pa…

Filter Posts