#silverstripe IRC Log

IRC log for 25 July 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:14] <Hailwood> ^ That typing
3: [00:00:17] * ss-helper has joined #silverstripe
4: [00:16:09] * Stomach quit (Quit: zzz)
5: [00:16:58] * micmania1 quit (Quit: micmania1)
6: [00:19:04] <Nightjar> Hailwood, oh so it's a frontend thing, not the icon on the site tree in the cms? That's ok then :P
7: [00:19:20] <Nightjar> I've done things like that before, yeh seems legit.
8: [00:19:34] <Hailwood> Nightjar, ahaha I had never thought of doing that, but yeah frontend only.
9: [00:19:48] <Nightjar> Hailwood, it's good for usability in the CMS, yeh.
10: [00:19:59] <Nightjar> Lots don't do it, but it's generally a good idea.
11: [00:20:13] <Nightjar> (not that I've ever been bothered, personally; guilty!)
12: [00:22:27] <Hailwood> Oh I set icons on most of my pages normally I just grab them from here http://www.flaticon.com/ since it allows you to change the colour before you convert them to png
13: [00:56:47] * Stomach has joined #silverstripe
14: [00:58:54] * micmania1 has joined #silverstripe
15: [01:03:55] * zippy has joined #silverstripe
16: [01:14:00] * Stomach quit (Quit: zzz)
17: [01:16:14] * DanaeNZ quit (Remote host closed the connection)
18: [01:16:50] * DanaeNZ has joined #silverstripe
19: [01:21:27] * DanaeNZ quit (Ping timeout: 276 seconds)
20: [02:00:44] * Stomach has joined #silverstripe
21: [02:03:13] * helenclarko has joined #silverstripe
22: [02:05:23] <helenclarko> Hey all
23: [02:06:50] <helenclarko> So quick question... What is the best way to set gridfieldconfig globally?
24: [02:12:00] <Nightjar> huh?
25: [02:12:11] <Nightjar> Injector, at a guess.
26: [02:12:15] * DanaeNZ has joined #silverstripe
27: [02:12:45] * pweh has joined #silverstripe
28: [02:17:47] * Stomach quit (Ping timeout: 260 seconds)
29: [02:17:48] * Stomach_ has joined #silverstripe
30: [02:32:57] * DanaeNZ quit (Quit: TIME TO FEED)
31: [02:38:56] <Hailwood> I could see that going horribly wrong... I could create a new GridFieldConfig and just sub it out where you need it
32: [02:41:44] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
33: [02:42:49] * Stomach_ quit (Quit: zzz)
34: [02:49:07] * Stomach has joined #silverstripe
35: [02:50:10] * Hailwood quit (Read error: Connection reset by peer)
36: [02:53:32] * zippy has joined #silverstripe
37: [02:54:53] * zippy quit (Client Quit)
38: [02:57:03] * pweh quit (Read error: Connection reset by peer)
39: [02:57:07] * Hailwood has joined #silverstripe
40: [03:14:28] * CodeTrap1 has joined #silverstripe
41: [03:16:52] * CodeTrap quit (Ping timeout: 244 seconds)
42: [03:16:52] * CodeTrap1 is now known as CodeTrap
43: [03:20:44] * helenclarko quit (Ping timeout: 250 seconds)
44: [03:39:47] * Stomach quit (Quit: zzz)
45: [03:51:48] * Stomach has joined #silverstripe
46: [04:00:06] <ss-helper> Silverstripe: Email Templates Mac Mail - http://stackoverflow.com/questions/38559410/silverstripe-email-templates-mac-mail
47: [05:14:34] * Stomach quit (Ping timeout: 240 seconds)
48: [05:23:30] * vitaly__ has joined #silverstripe
49: [05:25:10] * vitaly_ quit (Ping timeout: 258 seconds)
50: [05:59:33] * Nightjar quit (Quit: Leaving)
51: [06:13:18] * vitaly__ quit (Ping timeout: 276 seconds)
52: [06:16:14] * vitaly has joined #silverstripe
53: [06:23:51] * CodeTrap quit (Ping timeout: 240 seconds)
54: [06:23:52] * vitaly quit (Ping timeout: 264 seconds)
55: [06:26:36] * vitaly has joined #silverstripe
56: [06:37:40] * vitaly quit (Ping timeout: 244 seconds)
57: [06:45:17] * vitaly_ has joined #silverstripe
58: [06:57:32] * Mike123 has joined #silverstripe
59: [06:58:34] * arnhoe has joined #silverstripe
60: [07:12:08] <Mike123> Morning :)
61: [07:12:15] <Mike123> anyone tried SS 3.4 yet ?
62: [07:15:21] * swaiba has joined #silverstripe
63: [07:16:39] * pweh has joined #silverstripe
64: [07:21:38] * pweh is now known as ^pwehewp^
65: [07:29:57] * zippy has joined #silverstripe
66: [07:41:06] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
67: [07:58:50] * kinglozzer has joined #silverstripe
68: [08:00:52] * ^pwehewp^ quit (Ping timeout: 252 seconds)
69: [08:02:11] * slievr has joined #silverstripe
70: [08:02:58] * slievr1 has joined #silverstripe
71: [08:03:52] * guci0 has joined #silverstripe
72: [08:03:53] <guci0> Hello World!
73: [08:06:11] * slievr quit (Ping timeout: 240 seconds)
74: [08:08:41] * pweh has joined #silverstripe
75: [08:14:54] <slievr1> guci0: \o
76: [08:15:03] * slievr1 is now known as slievr
77: [08:22:27] * hewp has joined #silverstripe
78: [08:22:52] * pweh quit (Ping timeout: 252 seconds)
79: [08:46:37] * pweh has joined #silverstripe
80: [08:48:43] * hewp quit (Ping timeout: 252 seconds)
81: [08:50:11] * pweh is now known as hewpweh
82: [08:52:59] * agent44 has joined #silverstripe
83: [09:14:37] * hewpweh quit (Changing host)
84: [09:14:37] * hewpweh has joined #silverstripe
85: [09:16:45] * hewpweh quit (Changing host)
86: [09:16:45] * hewpweh has joined #silverstripe
87: [09:22:36] * Stomach has joined #silverstripe
88: [09:43:36] * janneklouman-- has joined #silverstripe
89: [09:47:58] * Stomach quit (Quit: zzz)
90: [10:22:40] * arnhoe quit ()
91: [10:28:16] * hewpweh quit (Ping timeout: 252 seconds)
92: [10:29:04] * agent44 quit (Quit: zzz)
93: [10:30:13] <ss-helper> CountryDropdownField - Setting default to what is set in setEmptyString()? - http://stackoverflow.com/questions/38565172/countrydropdownfield-setting-default-to-what-is-set-in-setemptystring
94: [10:31:13] * agent44 has joined #silverstripe
95: [10:44:40] * hewpweh has joined #silverstripe
96: [11:11:30] * agent44 quit (Ping timeout: 244 seconds)
97: [11:11:30] * lucinderella has joined #silverstripe
98: [11:15:03] * arnhoe has joined #silverstripe
99: [11:46:54] <janneklouman--> Hey guys, how often does the SilverStripe add-on/module bot scrape packagist and update module scores (does it ever)?
100: [11:51:59] <swaiba> at least once per day, is all I know
101: [11:52:04] <swaiba> why you have a new module :) ?
102: [11:55:17] <janneklouman--> Haha, I have a module that I've updated with a couple of tests, travis, and scrutinizer, but it hasn't been updated on the silverstripe addon site for about a week.
103: [11:55:27] <janneklouman--> It's a very simple module, just a field
104: [11:55:45] <janneklouman--> https://github.com/janneklouman/silverstripe-spinner-field
105: [11:56:17] <janneklouman--> uses this: https://jqueryui.com/spinner/
106: [12:00:15] <ss-helper> SilverStripe extensions for GridFieldConfig - http://stackoverflow.com/questions/38566910/silverstripe-extensions-for-gridfieldconfig
107: [12:55:07] * muskie9 has joined #silverstripe
108: [12:57:55] * pweh has joined #silverstripe
109: [12:59:31] * hewpweh quit (Ping timeout: 252 seconds)
110: [13:00:15] * hewp has joined #silverstripe
111: [13:03:07] * hewp quit (Read error: Connection reset by peer)
112: [13:03:22] * pweh quit (Ping timeout: 252 seconds)
113: [13:12:02] <gamma> Hey - we've got a link in our website which goes to an external page. We've set it to open in a new window through the CMS, but it's still opening in the same window. Does anyone know how to fix this?
114: [13:16:43] <janneklouman--> gamma: is this through a WYSIWYG-editor for content, or in some custom field for a module, or something else?
115: [13:19:21] <gamma> janneklouman--: Just through the content editor
116: [13:23:03] <janneklouman--> That's odd, it works for me, and it should work... Other changes in the same editor being reflected on page?
117: [13:24:26] <slievr> gamma: I this just one occurrence or site wide?
118: [13:30:28] <gamma> slievr: Most of the links are set to open in the same window. These two are the only ones that are meant to open in a new window.
119: [13:30:31] <gamma> janneklouman--: Yep.
120: [13:39:08] <janneklouman--> Weird. Well it's not pretty but to save some troubleshooting time if it's not that big of an issue you could just add target="_blank" in the html editor of the wysiwyg I guess
121: [15:06:38] * Mike123 quit (Ping timeout: 250 seconds)
122: [15:19:23] * arnhoe quit ()
123: [15:20:06] * shellbac1pacific quit (Quit: leaving)
124: [15:20:32] * shellbackpacific has joined #silverstripe
125: [15:21:42] <shellbackpacific> i have a dataobject and a model admin for it. I want to restrict access to it to a role/group. I need to preserve csv import though. Is this possible?
126: [15:23:48] <muskie9> shellbackpacific you might be able to override ImportForm() in your model admin... have it call parent::ImportForm() first to get the form that would normally show up, then do your permission checks and return either the form or false... never tried that, but in theory should work
127: [15:25:23] <shellbackpacific> ok sweet. i'll check it out thanks
128: [15:29:05] <shellbackpacific> muskie9 bah my issue was that the canCreate permission wasn't set on the dataobject.
129: [15:30:10] <muskie9> that'll do it lol
130: [15:30:29] <muskie9> DO's always require the can methods to be declared for non-admin users
131: [15:48:01] <shellbackpacific> yeah i'm an idiot lol. though in my defense...it was someone else's code and i usually add those can's XD
132: [16:02:42] * UndefinedOffset has joined #silverstripe
133: [16:03:21] * swaiba quit (Remote host closed the connection)
134: [16:11:38] * janneklouman-- quit (Ping timeout: 250 seconds)
135: [16:36:57] * kinglozzer quit ()
136: [16:57:22] * lucinderella quit (Quit: Bai!)
137: [17:06:48] * thesaysora_ has joined #silverstripe
138: [17:22:10] * janneklouman-- has joined #silverstripe
139: [17:37:52] * neomang quit (Ping timeout: 250 seconds)
140: [18:13:31] * janneklouman-- quit (Ping timeout: 240 seconds)
141: [18:40:16] * thesaysora_ quit (Ping timeout: 250 seconds)
142: [19:16:39] * neomang has joined #silverstripe
143: [19:28:29] <neomang> What would be the easiest way to add a stylesheet to the CMS in 3.3+?
144: [19:28:52] * muskie9__ has joined #silverstripe
145: [19:29:00] <neomang> I've seen a way but it's for 2.4 and it's a little hack-ish so I wanted to see if there was a proper way to do it
146: [19:30:36] * muskie9 quit (Ping timeout: 244 seconds)
147: [19:31:15] * Admonish has joined #silverstripe
148: [19:31:23] <muskie9__> neomang you can use the config.yml...
149: [19:31:55] <muskie9__> https://gist.github.com/muskie9/6e9d17f6bafed25a065b1b132c623833
150: [19:32:19] * muskie9__ is now known as muskie9
151: [19:32:26] * slievr quit (Quit: Leaving.)
152: [19:32:36] <neomang> Ah, alright, thanks muskie9, that's exactly what I was looking for
153: [19:33:19] <Admonish> Hey guys. A while back I was reading through the documentation and I thought I had read something about creating post install events for modules. Does anyone know if their is this sort of thing in SS ?
154: [19:41:06] * Stomach has joined #silverstripe
155: [19:48:18] <Admonish> Does anyone know if silverstripes modules have post-install hooks?
156: [19:55:20] <muskie9> Admonish what do you mean by post-install hook? do you mean after it's been included by composer (if you're using composer to manage dependencies)?
157: [19:56:51] * Azure quit (Ping timeout: 276 seconds)
158: [19:57:10] * thesaysora_ has joined #silverstripe
159: [19:58:30] <Admonish> muskie9 well basically I would like my modules to be able to configure themselves differently depending on certian logic after they have been included by composer. This way I could change how the module is configured depending on whether or not other modules are installed.
160: [19:59:49] <muskie9> I guess it depends on the configuration you're looking for... we put logic in areas like getCMSFields() that add components to gridfields if certain modules are installed, but would work without them... so it really depends on what configuration you're looking for
161: [20:01:00] <muskie9> there is config.yml logic for applying things like extensions or configuration if something else exists... https://docs.silverstripe.org/en/3.4/developer_guides/configuration/configuration/#exclusionary-rules
162: [20:02:48] <Admonish> muskie9 Yeah I think that is what im looking for. Thanks :D
163: [20:02:59] <muskie9> đź‘Ť
164: [20:05:20] * gelignite has joined #silverstripe
165: [20:17:00] * UndefinedOffset quit (Quit: Leaving.)
166: [20:17:47] * Stomach quit (Read error: Connection reset by peer)
167: [20:17:59] * Azure has joined #silverstripe
168: [20:21:00] * UndefinedOffset has joined #silverstripe
169: [20:21:07] * Stomach has joined #silverstripe
170: [20:22:26] <neomang> anyone here familiar with entwine?
171: [20:22:33] <Admonish> muskie9 So I took a look at that link you sent me, and I definitly think I will be using those exclusionary rules in some of my modules. So Im super greatful for that. But in regards to using the getCMSFields() method for changing fields based on whether or not a module is installed, I can't see this as a good large scale solution. For instance lets say I created a social networking module (for the backend) that allows me to share some data to all
172: [20:22:34] <Admonish> my configured social networks. Now if I wanted to integrate that module into other modules I create (e.g. an articles module,comment module,news module,etc) I would have to duplicate the logic for each of those modules. So im wondering if there is something like the widgets module but for the backend instead of the frontend?
173: [20:26:00] * UndefinedOffset quit (Quit: Leaving.)
174: [20:36:12] <Stomach> neomang - whats up
175: [20:37:24] <neomang> I'm trying to write some code to hide some fields in the CMS if they're not needed. I've got a checkbox for each and I've got them set up in an entwine wrapper like I did for another code block i got working, but nothing happens
176: [20:38:54] <neomang> I'm not sure if it's using the wrong action or what but I've got the class working (set it on the fields via php and they were hidden) but my js doesn't run right. I confirmed it is included on the page though.
177: [20:39:02] <neomang> http://www.sspaste.com/paste/show/5796789ed3156
178: [20:39:33] <muskie9> neomang why not use UncleCheese's display logic module
179: [20:39:56] <neomang> muskie9 I havent seen that, let me take a look for it
180: [20:40:08] <muskie9> it's _much_ easier than writing entwine
181: [20:40:39] <neomang> oh wow that is perfect for what I need
182: [20:40:51] <neomang> Thanks, gonna save me a lot of hassle
183: [20:43:11] <Admonish> +1 that module. I also will be using this
184: [20:43:30] <muskie9> we use it ALL THE TIMEZ
185: [20:44:40] <neomang> is it just drop in place to install or do I use composer? I don't see specifics
186: [20:45:14] <neomang> first module I've installed for SS
187: [20:46:28] <muskie9> are you using composer currently for module management?
188: [20:47:37] <muskie9> or a better question is, did you use composer to install SS, or did you download the installer
189: [20:48:08] <neomang> i used composer
190: [20:48:18] <muskie9> cool, then you can use composer to install this module
191: [20:48:33] <muskie9> https://packagist.org/packages/unclecheese/display-logic
192: [20:48:39] <muskie9> composer require unclecheese/display-logic
193: [21:14:46] * adrexia has joined #silverstripe
194: [21:18:42] * Stomach quit (Quit: zzz)
195: [21:23:10] * adrexia quit (Read error: Connection reset by peer)
196: [21:31:15] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
197: [21:34:15] * Stomach has joined #silverstripe
198: [21:50:57] * DanaeNZ has joined #silverstripe
199: [21:54:34] <DanaeNZ> it's tuueeesdaaaay
200: [21:54:42] <DanaeNZ> which means it's not monday
201: [21:54:43] <DanaeNZ> thank god
202: [21:58:41] <guci0> :)
203: [22:21:28] * micmania1 quit (Read error: Connection reset by peer)
204: [22:21:34] * micmania2 has joined #silverstripe
205: [22:32:49] * janneklouman-- has joined #silverstripe
206: [22:37:32] * janneklouman-- quit (Ping timeout: 260 seconds)
207: [22:39:35] * cloph_away quit (Remote host closed the connection)
208: [22:39:51] * cloph_away has joined #silverstripe
209: [22:39:53] * darianno|aw quit (Ping timeout: 250 seconds)
210: [22:40:50] * janneklouman-- has joined #silverstripe
211: [22:48:56] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
212: [23:13:31] * Stomach_ has joined #silverstripe
213: [23:14:19] * Stomach quit (Ping timeout: 244 seconds)
214: [23:16:04] * janneklouman-- quit (Ping timeout: 252 seconds)
215: [23:17:25] * Nightjar has joined #silverstripe
216: [23:19:12] * pippy has joined #silverstripe
217: [23:19:36] <pippy> So SilverStripe 4.0 is going to use PSR-4, right?
218: [23:19:43] <pippy> so is now a good time to convert my code base?
219: [23:19:52] <Nightjar> idk
220: [23:19:59] <Nightjar> which one is 4?
221: [23:20:06] <muskie9> Nightjar autoloader
222: [23:20:28] <Nightjar> I think there's a push to use mcgigggy's autoloader, yeh.
223: [23:20:36] <Nightjar> McGiggy being composer.
224: [23:20:45] <Nightjar> just forgot the name for a sec there.
225: [23:21:02] <Nightjar> but idk what state that work is in.
226: [23:21:13] <muskie9> pippy probably worth looking at if not starting... we haven't started our modules, but it's on our list to do if we ever get down time
227: [23:21:39] <pippy> sweet
228: [23:21:46] <Nightjar> I know whatever the case will be, there will be docs and/or tools to accompany it to help with migration.
229: [23:21:56] <pippy> muskie9: i'll start looking at doing it for modules too
230: [23:21:57] <Nightjar> for site & module maintainers.
231: [23:22:13] <Nightjar> The major difference is really only in where composer puts them.
232: [23:22:20] <Nightjar> currently in site root instead of /vendor
233: [23:22:46] <muskie9> Nightjar that and namespacing classes
234: [23:22:56] <Nightjar> afaik (in my limited knowledge) most of what'd need to happen is changing the composer.json
235: [23:23:01] <Nightjar> package.json
236: [23:23:03] <Nightjar> whatever it is
237: [23:23:05] <Nightjar> I forget
238: [23:23:29] <Nightjar> that too muskie9, but is less to do with 'compatiblity', since iirc psr4 is supposed to be BC with psr2
239: [23:23:40] <muskie9> true
240: [23:23:42] <Nightjar> or 0 or whichever the older one is that lets non namespace work
241: [23:24:02] * janneklouman-- has joined #silverstripe
242: [23:24:05] <Nightjar> But always handy anyway.
243: [23:24:09] <pippy> PSR-4, BEM, react, there's a lot of change there
244: [23:24:14] <Nightjar> tech debt 'n all that.
245: [23:24:35] <Nightjar> BEM isn't really a 'change' as such.
246: [23:25:23] <Nightjar> it's just a recommendation for classnames (which leads to css structure cleanlyness or whatever)
247: [23:25:31] <pippy> i've always found it hard to make CSS scale, so i hope bem can help out with that
248: [23:25:41] <Nightjar> yeah, should do.
249: [23:25:48] <Nightjar> It's not the be all and end all though.
250: [23:26:23] <pippy> the added benifit of having SS4.0 plug and play with bootstrap will be nice
251: [23:26:37] <Nightjar> mmm. That is definitely a thing, can confirm.
252: [23:26:47] <Nightjar> formfields currently all getting reworked.
253: [23:27:13] <Nightjar> gridfield has had some updates too, but iirc not 'finished' yet.
254: [23:27:56] * Stomach_ quit (Quit: zzz)
255: [23:28:37] <pippy> yeah the 4.0 alpha has the gridfield looking out of place
256: [23:37:28] * Stomach has joined #silverstripe
257: [23:40:19] * Stomach quit (Read error: Connection reset by peer)
258: [23:40:29] * Stomach_ has joined #silverstripe
259: [23:43:14] * janneklouman-- quit (Ping timeout: 260 seconds)
260: [23:50:42] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
261: [23:52:08] * UncleCheese has joined #silverstripe
262: [23:57:16] * muskie9 has joined #silverstripe
263: [23:58:37] <Nightjar> yeah but alpha was released a month or two ago right?
264: [23:58:43] <Nightjar> that's quite some time ago for active development

These logs were automatically created by ss-log on irc.freenode.net.