Developing (v7+)

Session getId return error

Hi, I used to write code like this on 5.7+ to get the current session id: [code] $session = new SymfonySession(); $sessionId = $session->getId(); [/code] But in latest version of Concrete5 it returns error. Has something changed regarding session ha…

Thumbnail Cropping

This code used to work in PHP 5.6 but when I upgraded to PHP7.1 yesterday, this code isn't working anymore [code] $ih = Loader::helper('image'); $thumb = $ih->getThumbnail($thumbnail, 185, 139, true); echo ' [/code] I read that the image helper is d…

Programmatically assign permissions to a User Group

Not having much luck finding anything in the developer docs, so wondering if anyone here can help? I've programmatically created a user group and been able to assign users to the group, but how do i now assign permissions to that group? I want to as…

Suggestion delete box

It would be most helpful if when deleting a block the message will also give you the name/type of the block you are deleting. Are you sure you wish to delete this "content" block? Are you sure you wish to delete this "search" block? Are you sure yo…

Get ID's of users in group in array

How do i get the ID's of users in a user group? I can get an array of "UserInfo Objects" by doing this: [code] $group = \Concrete\Core\User\Group\Group::getByName('GROUPNAME'); $usersInGroup = $group->getGroupMembers(); [/code] but how can I g…

Rendering a multiple select attribute in dashboard form

Hi, I have created a select attribute an selected 'allow multiple options to be selected'. I am building a custom single page in the dashboard and want to output the multiple select field in my form. I can only find old 5.7 documentation. Is any o…

Toolbar is visible but not working

My toolbar is not working which I have determined is because of the following JavaScript function: [code] jQuery('#toc .toc_item').each(function() { "use strict"; var id = jQuery(this).find('a').attr('href'); var pos = id.indexOf('#menu'); …

Filter Posts