KP

Morning guys, anyone else had the issue with the sheadawson/silverstripe-linkable module and the latest 3.x version 3.7.1 not working. When you select "Page on this website" there is no sitetree dropdown below it to choose a page from anymore:

Currently: https://www.dropbox.com/s/x9ntt5ub371rzl5/Screenshot%202018-10-02%2010.10.51.png?dl=0

Should be: https://www.dropbox.com/s/olb5ydp3yncqpth/Screenshot%202018-10-02%2010.11.03.png?dl=0

Any work arounds?

KP

Worked this out, needed to drop back the version of display-logic from 1.6.0 -> 1.5.0

KP
  1. "unclecheese/display-logic" : "1.5.0"
thats4shaw

Looks like there must of been a regression in the PHP 7.2 support commit.

thats4shaw

1.5.1 and 1.6.0 tags for display logic are missing quite a few commits - i’ve opened an issue https://github.com/unclecheese/silverstripe-display-logic/issues/101.

Show 1 attachment(s)
thats4shaw

Hi https://github.com/unclecheese|@unclecheese - just noticed that the 1.5.1 and 1.6.0 tags is missing a bunch of commits from 2016 and 2017.

Hopefully an easy one to sort :+1:.

Hide attachment content
KP

yeah same here haven't seen it before

KP

@MichalKleiner - Intended functionality would be it would assign that colour to that swatch

KP

Hey guys, is it possible to have checkboxes in the summary fields grid view? Mockup here: https://www.dropbox.com/s/b7yf3g4ltnszd91/Screenshot%202018-09-03%2016.32.57.png?dl=0

KP

Hey guys, how do we log in SS4 now, I have some SS3 code that I need to convert:

  1. SS_Log::log('Unable to update the feed for ' . $hashTag, SS_LOG::ERR, array('CURL_ERROR_NO' => curl_errno($ch), 'CURL_HTTP_CODE' => curl_getinfo($ch, CURLINFO_HTTP_CODE), 'Response' => $response));
KP

yeah well thats the other idea, havin a plugin to autocomplete it

KP

Morning - does anyone know in PHPstorm is there anyway for it to automatically add in the namespace if you use a snippet or paste code in? Only seems to do it if you actually are typing the class name in from scratch e.g: https://cl.ly/0x2C1C1n2S3L

You can do the whole option + enter of course but wanting to know if it can automatically do it 🙂

KP

@null - Cool yeah I saw that and have used, what about in these situation where using javascriptTemplate:

  1. $vars = [
  2. "MemberID" => Security::getCurrentUser()->ID,
  3. ];
  4.  
  5. Requirements::javascriptTemplate("<my-module-dir>/javascript/some_file.js", $vars);

Looks like you would still have to hard code in the actual theme location?

KP

Whats the best way to pull in files, e.g:

  1. // 3.x Way
  2. Requirements::javascript(SSViewer::get_theme_folder() . '/javascript/testing.js');
  3.  
  4. // 4.x - One way of doing it
  5. Requirements::javascript('themes/mint-base/javascript/testing.js');

However if the theme name changes this will break? Is there a nicer way of handling this in 4.x?