Developing (v7+)

Concrete5 and Lazy Loading Images

Why isn't a lazy-loading option built-in to Concrete5 and/or the themes? Without this functionality, what do you use to lazy load images? Native support is available, but only in Chrome releases above 75. I'm considering using lozad.js ( https://…

Error: Call to a member function has() on null - in packages

Hello, i have page "packages/packagename/elements/addpagetositemap.php". In page is this only Code: [code][/code] In controller.php package is this: [code]public function on_start() { Route::register('/addpagetositemap', function() { V…

Block caching

Block caching is quite well explained under API https://documentation.concrete5.org/developers/working-with-blocks/creating-a-new-block-type/making-blocks-cacheable CMS https://documentation.concrete5.org/editors/dashboard/system-and-maintenance/…

CSS not loading on dashboard

I just set up a site but when loading in Firefox, the image slider doesn't work, and the CSS for the dashboard doesn't load - See attached. In looking at the console, it appears that none of the scripts are loading. It works OK in Chrome just doesn'…

8.4+ How is that possible?

controller: [code] if ($data['attach'] == true) { \Log::Info($data['attach']); [/code] Dashboard log: Application user1 false If the variable is false, how come it gets through the if? Am I going crazy?

8.4+ Is there a list of outputStandardEditor plugin key words?

Hello, I want to deselect some plugins/functionality from the outputStandardEditor which is done as [code] $editor->getPluginManager()->deselect(array('table', 'underline', 'specialcharacters')); [/code] Is there a complete list of the editor key w…

Conflicts in core with PHP/7.2.20

We're having some major issues with slowness on our server. I'm wondering if the php processing is causing some of the headache? Anyone know of any conflicts with PHP/7.2.20 and Concrete 5.8?

File Manager selector - filter

I'm trying to make a new file selector field which when clicked has the file manager pre-filtered by a certain attribute. I tried taking a look at the edit form for the "Image" block, as I noticed that whenever you click on the "choose image" button, …

Custom calendar event attributes within page template

Hi Need some help. How do I use custom attributes from calendar events in custom page templates Online i saw this: $event->getAttribute() but it isnt working. I don't want to use the calendar event block. I just want to echo each attribute value ou…

Converting HTML to C5

Hello, I was easily able to convert the homepage to a template, but how would I add pages? Ideally, I would like to do the same thing I did to convert the homepage for the remaining 50 pages or so. All HTML is fine for now. Thank you in advance…

Filter Posts