Developing (v7+)

8.4.2: how to save block entity in doctrine

I need to keep track of blocks used in my package and save them in a table created by my package's doctrine. The problem is if the block is edited and saved it gets a new id. How can I keep track of the block and have it updated automatically if it cha…

8.4.2: is there better way of getting searchable content?

At the moment I get searchable content in a block with the following: [code] public function getSearchableContent() { $content = ''; $page = $this->getCollectionObject(); if (!$page->isError()) { $cid = $page->getCollectionID();…

Upgrade from 8.3.2 to 8.5.2 fails using CLI

Firstly the CLI must be used as PHP 7.3 isn't supported by 8.3.2 (get the continue/break fatal error with V7.3) so to upgrade is being done following the CLI instructions at https://documentation.concrete5.org/developers/introduction/installation/upgradin…

Custom Template for Form Output of Page Type

Hello all, I am having a hard time getting a custom template for the File block to show up in the Compose Form area of a my Page Type (see image attachment). I see there is an option to use a custom template in the modal, but I don't know where the act…

Empty error after saving block

I'm getting a blank error when saving a block on a website using the last version of concrete5. I only get this error on Chrome (83.0.4103.61). In Safari and Firefox there are no errors. Any Idea what the problem could be?

8.4.2: Code in CKEditor addon - JS error "codesnippet" was not found

I've installed the addon, it's enabled in the Dashboard. But when I load an editor it throws the following error: Error: [CKEDITOR.resourceManager.load] Resource name "codesnippet" was not found at "http://localhost/c584/concrete/js/ckeditor4/vendor/plug…

Gallery for Video and Images

Hi, I am looking for a way to show both images and videos within a gallery. I like fancybox3 as you can use videos and images. Do you know if there is a package similar to this? The only other way would be for me to install https://fancyapps.com/…

default.less variables

My question is where is the path for the variable in the default.less: [code]@image-slider-background-image: '../images/background-slider-default.png';[/code] resolved in Concrete 8.5.1. I.e where is the relative path '../ ' resolved? The actual…

8.4.2: rich text sanitizing

A string can be sanitized with [code] $service = $this->app->make('helper/security'); $data['string'] = $service->sanitizeString($data['string']); [/code] Should rich text be sanitized at all? If yes, then how? Thank you.

AAWP and Content Egg

Hello I have both Concrete 5 and WP websites. On WP, I use AAWP and Content Egg extensions to build nice amazon affiliate buttons. Is AAWP and Content Egg available on Concrete 5 ? I don't see them in the add on. Can we use AAWP or Content Egg htm…

Filter Posts