#silverstripe IRC Log

IRC log for 7 September 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [00:26:36] * Stomach quit (Quit: zzz)
4: [00:29:37] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
5: [00:34:57] * pweh has joined #silverstripe
6: [00:38:32] * spronk has joined #silverstripe
7: [00:46:13] <spronk> lo all
8: [00:48:50] * micmania1 quit (Quit: micmania1)
9: [00:54:49] * adrexia has joined #silverstripe
10: [00:55:14] * Stomach has joined #silverstripe
11: [00:55:53] * Nightjar quit (Read error: Connection reset by peer)
12: [00:57:02] * Nightjar has joined #silverstripe
13: [01:15:31] * pweh quit (Ping timeout: 252 seconds)
14: [01:16:21] * Stomach quit (Quit: zzz)
15: [01:18:21] * Stomach has joined #silverstripe
16: [01:21:53] * Nightjar quit (Ping timeout: 265 seconds)
17: [01:29:14] * wat quit (Ping timeout: 264 seconds)
18: [01:31:20] * micmania1 has joined #silverstripe
19: [01:32:16] * bananarama_ has joined #silverstripe
20: [01:32:16] <ss-helper> bananarama_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
21: [01:33:16] <bananarama_> hi guys - if I hit a form with a custom form and have a ?BackURL=/home on the end of my URL - will SS automatically respect that BackURL or do I need to do something special when I return the user after form submit? :)
22: [01:33:37] <bananarama_> hit a page* with a custom form (doh)
23: [01:35:54] * Stomach quit (Ping timeout: 265 seconds)
24: [01:36:20] * Nightjar has joined #silverstripe
25: [01:37:49] * Stomach has joined #silverstripe
26: [01:43:29] * pweh has joined #silverstripe
27: [01:53:18] <DanaeNZ> omg I can't DataObject::get()->first()->toMap('ID', 'SomeField')->toArray()
28: [01:53:25] <DanaeNZ> I completely forgot
29: [01:53:32] <DanaeNZ> I don't think you can map a single DataObject
30: [01:53:34] <DanaeNZ> oh gods
31: [01:59:55] <Nightjar> you can toArray though I'm pretty sure.
32: [02:00:39] <Nightjar> but yeh, your logic is a little flawed (and unnecessary)
33: [02:07:44] * micmania1 quit (Quit: micmania1)
34: [02:15:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
35: [02:15:29] * micmania1 has joined #silverstripe
36: [02:23:38] * DanaeNZ_ has joined #silverstripe
37: [02:25:09] * zippy has joined #silverstripe
38: [02:25:36] * Kapdap_ quit (Ping timeout: 265 seconds)
39: [02:25:44] * Kapdap has joined #silverstripe
40: [02:26:05] * DanaeNZ quit (Ping timeout: 265 seconds)
41: [02:37:59] * Nightjar_ has joined #silverstripe
42: [02:37:59] * Nightjar quit (Read error: Connection reset by peer)
43: [02:41:36] * Audlex has joined #silverstripe
44: [02:44:01] * bananarama_ quit (Quit: Page closed)
45: [02:54:39] <zippy> With the GridBulkUploadField - doesn't seem to want to handle validation or anything
46: [02:54:49] <zippy> I am trying to prevent duplicate images being added to a GridField..
47: [02:57:36] * UncleCheese has joined #silverstripe
48: [03:24:13] * pweh quit (Ping timeout: 252 seconds)
49: [03:41:12] <Nightjar_> think you might have to do something a bit like validate() on the DO
50: [03:49:01] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
51: [03:59:15] * chillu_23 quit (Quit: chillu_23)
52: [04:01:11] * chillu_23 has joined #silverstripe
53: [04:25:16] * chillu_23 quit (Quit: chillu_23)
54: [04:33:10] * chillu_23 has joined #silverstripe
55: [04:37:21] * micmania1 quit (Quit: micmania1)
56: [04:38:23] * pweh has joined #silverstripe
57: [04:38:41] * micmania1 has joined #silverstripe
58: [04:42:06] * DanaeNZ_ quit (Remote host closed the connection)
59: [04:42:43] * DanaeNZ has joined #silverstripe
60: [04:47:13] * DanaeNZ quit (Ping timeout: 265 seconds)
61: [04:55:31] * pweh quit (Ping timeout: 252 seconds)
62: [05:10:16] * hailwood quit (Remote host closed the connection)
63: [05:20:22] * micmania1 quit (Quit: micmania1)
64: [05:27:21] * Nightjar_ quit (Quit: Leaving)
65: [05:39:33] * Stomach quit (Ping timeout: 276 seconds)
66: [06:04:10] * syanaputra has joined #silverstripe
67: [06:08:54] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
68: [06:25:45] * micmania1 has joined #silverstripe
69: [06:26:14] * Stomach has joined #silverstripe
70: [06:45:17] * micmania1 quit (Quit: micmania1)
71: [06:49:51] * saiyan_ has joined #silverstripe
72: [06:49:51] <ss-helper> saiyan_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
73: [06:51:30] * saiyan quit (Ping timeout: 250 seconds)
74: [06:51:30] * saiyan_ is now known as saiyan
75: [07:00:08] <ss-helper> Silverstripe: Filter blog posts by Author - http://stackoverflow.com/questions/39135851/silverstripe-filter-blog-posts-by-author
76: [07:03:10] * darianno has joined #silverstripe
77: [07:11:19] * lerni has joined #silverstripe
78: [07:13:38] * syanaputra quit (Ping timeout: 264 seconds)
79: [07:23:52] * marvanni has joined #silverstripe
80: [07:26:19] * Stomach quit (Quit: zzz)
81: [07:53:54] * Stomach has joined #silverstripe
82: [07:56:10] * pweh has joined #silverstripe
83: [07:56:46] * chillu_23 quit (Quit: chillu_23)
84: [07:58:44] * zippy has joined #silverstripe
85: [07:59:18] * micmania1 has joined #silverstripe
86: [08:02:12] * janneklouman-- has joined #silverstripe
87: [08:06:26] * darianno quit (Ping timeout: 265 seconds)
88: [08:06:26] * kinglozzer has joined #silverstripe
89: [08:08:20] * Stomach quit (Quit: zzz)
90: [08:20:24] * chillu_23 has joined #silverstripe
91: [08:21:55] * spronka has joined #silverstripe
92: [08:22:26] * Stomach has joined #silverstripe
93: [08:25:43] <zippy> Does anyone know... GridFieldBulkUpload... it doesn't seem to support validation very well. In my DO I do validation and if you mass upload 5 images, it sort of craps out and you don't know what one it failed on and whats been completed.
94: [08:34:21] * spronk quit (Quit: I may need a longer sleep timer...)
95: [08:34:40] * Mike123 has joined #silverstripe
96: [08:34:45] <Mike123> Hey
97: [08:35:07] <Mike123> is there a possibility to dublicate(copy) selected record from gridfield ?
98: [08:44:12] * DanaeNZ has joined #silverstripe
99: [08:47:30] * agent44 has joined #silverstripe
100: [08:48:32] * DanaeNZ quit (Ping timeout: 240 seconds)
101: [08:57:28] * kinglozz_ has joined #silverstripe
102: [08:57:28] * kinglozzer quit (Read error: Connection reset by peer)
103: [08:57:29] <swaiba> Mike123 yes
104: [08:57:52] <swaiba> https://github.com/unisolutions/silverstripe-copybutton
105: [09:02:22] <Mike123> swaiba, thank you !
106: [09:04:22] * swaiba quit (Ping timeout: 255 seconds)
107: [09:05:50] * swaiba has joined #silverstripe
108: [09:18:32] * Stomach quit (Quit: zzz)
109: [09:26:08] * micmania1 quit (Quit: micmania1)
110: [09:36:37] * Shrike_Finland has joined #silverstripe
111: [09:38:19] * Shrike_Finland quit (Client Quit)
112: [09:44:37] * agent44 quit (Quit: zzz)
113: [09:47:02] * agent44 has joined #silverstripe
114: [09:52:34] * micmania1 has joined #silverstripe
115: [10:13:32] * Shrike_Finland has joined #silverstripe
116: [10:30:19] * agent44 quit (Ping timeout: 255 seconds)
117: [10:35:13] * agent44 has joined #silverstripe
118: [11:16:39] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
119: [11:23:40] * Shrike_Finland quit (Quit: Leaving.)
120: [11:26:03] * swaiba quit (Remote host closed the connection)
121: [11:27:31] <slievr> can I namespace Email without breaking anything?
122: [11:59:18] * marvanni quit (Read error: Connection reset by peer)
123: [11:59:46] * marvanni has joined #silverstripe
124: [12:02:15] * chillu_23 quit (Quit: chillu_23)
125: [12:10:22] * muskie9 has joined #silverstripe
126: [12:12:17] * micmania1 quit (Quit: micmania1)
127: [12:15:55] <elgabbu> hi, all ... if an object has_many image ... what is the best way to manage that relationship ...
128: [12:16:32] * Shrike_Finland has joined #silverstripe
129: [12:16:33] <muskie9> elgabbu I always make a DataObject that is the has_many, then do a has_one from that DataObject... less painful in the long run
130: [12:17:06] <elgabbu> hey muskie9 ... yh i went for that solution too was just wondering if there is a way to manage it directly
131: [12:17:29] <muskie9> probably is, but it's been so long since I've needed just an image in the relation
132: [12:22:52] * UndefinedOffset has joined #silverstripe
133: [12:39:20] * cloph_away is now known as cloph
134: [12:42:48] * Shrike_Finland quit (Quit: Leaving.)
135: [12:45:40] * DanaeNZ has joined #silverstripe
136: [12:50:17] * DanaeNZ quit (Ping timeout: 250 seconds)
137: [12:51:08] * WebDevB has joined #silverstripe
138: [12:51:32] <WebDevB> Hey guys, is it possible to set the Lockedout Until count for logins?
139: [12:54:47] <muskie9> WebDevB I've never used it, but it looks like in Member there are some private statics you can adjust as far as the number of attempts before a lockout, and the time in minutes the user is locked out
140: [12:55:49] <muskie9> http://api.silverstripe.org/3.3/source-class-Member.html#187
141: [12:57:26] * Mike123 quit (Ping timeout: 264 seconds)
142: [12:57:51] <WebDevB> muskie9: thanks for this... do you know where i'd set this?
143: [12:58:31] <muskie9> you should be able to set it in your project's _config/config.yml or in your _config.php using Config::inst()->update()
144: [12:58:51] <muskie9> preferably the yml I think for performance
145: [13:00:02] <WebDevB> muskie9: sorry, i'm not used to silverstripe how would I set this up.
146: [13:00:10] <WebDevB> I'm in the config.yml file.
147: [13:00:29] * keroberos quit (Read error: Connection reset by peer)
148: [13:01:22] <muskie9> something like this: https://gist.github.com/muskie9/84c7be3c6831384a80751eee66803596
149: [13:01:54] <muskie9> defaults for the number of incorrect allowed logins is 10 and the default lockout time is 15 minutes
150: [13:02:47] <WebDevB> Thanks muskie9!!!!!
151: [13:02:53] <muskie9> 👍
152: [13:03:28] * kerozene has joined #silverstripe
153: [13:15:55] * pweh quit (Read error: Connection reset by peer)
154: [13:18:00] * marvanni quit (Quit: marvanni)
155: [13:31:49] * Shrike_Finland has joined #silverstripe
156: [13:32:09] * Shrike_Finland quit (Client Quit)
157: [13:37:15] <janneklouman--> Is it possible to use Injector to replace a class that is a DataExtension extending a DataObject?
158: [13:38:38] <janneklouman--> Nevermind
159: [13:47:51] * lerni quit (Remote host closed the connection)
160: [13:48:12] * lerni has joined #silverstripe
161: [14:02:03] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
162: [14:02:14] * DanaeNZ has joined #silverstripe
163: [14:04:12] * wmk has joined #silverstripe
164: [14:04:56] * marvanni has joined #silverstripe
165: [14:11:23] * ocmnt has joined #silverstripe
166: [14:11:27] <ocmnt> ola
167: [14:11:51] <ocmnt> where does renderWith() look for a template? I put the template in every directory within the theme, but still without any success
168: [14:12:30] <muskie9> ocmnt it sort of depends on the use case, but generally in Layout
169: [14:13:02] <ocmnt> in my page_controller I call return $this->renderWith('TemplateName')
170: [14:13:04] <muskie9> so ->renderWith(array('MyLayout', 'Page')) would use the MyPage.ss in Layout and the top level Page.ss in templates
171: [14:13:16] <ocmnt> not much luck, only getting timeouts now (after adding it everywhere)
172: [14:13:49] <muskie9> did you flush after moving the ss file?
173: [14:13:59] <ocmnt> it broke on flushing
174: [14:14:10] <ocmnt> feels like my toilet :P
175: [14:14:15] <muskie9> lol
176: [14:14:32] <muskie9> can you paste your controller method?
177: [14:14:34] <muskie9> !paste
178: [14:14:34] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
179: [14:16:08] <ocmnt> http://www.sspaste.com/paste/show/57d02124446d4
180: [14:16:11] <ocmnt> that is all it does
181: [14:17:17] <ocmnt> I think I fixeded it
182: [14:17:34] <ocmnt> ContentBlocks was also a has_many relationship
183: [14:17:43] <ocmnt> renamed the function and now its working
184: [14:17:44] * marvanni quit (Quit: marvanni)
185: [14:17:47] <ocmnt> thnx :D
186: [14:17:49] <muskie9> ah, that's an interesting behaviour
187: [14:20:19] <ocmnt> it is, but all solved now :D
188: [14:20:34] * lerni quit (*.net *.split)
189: [14:25:13] <muskie9> well, meetings today 😞 hopefully I'll get to watch the apple event
190: [14:25:16] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
191: [14:33:13] * r3v3rb has joined #silverstripe
192: [14:35:11] <ocmnt> another question, is there a way to make a public function from controller available to call from the editor?
193: [14:35:34] <ocmnt> like $MyVariable (the function returns a template, using $MyVariable from template is working)
194: [14:36:31] <kinglozz_> ocmnt: You can hack it in like the userforms module does: https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L383-L407
195: [14:36:32] <r3v3rb> Anyone home
196: [14:36:42] <kinglozz_> Or you could create a shortcode instead
197: [14:36:45] <ocmnt> ah, I can check that out
198: [14:36:54] <ocmnt> what would be prefered? shortcode or userformshack?
199: [14:37:02] <kinglozz_> r3v3rb: Not home, no :P
200: [14:37:12] <kinglozz_> ocmnt: userforms approach is probably easiest
201: [14:37:28] <r3v3rb> Worling hard kinglozz_?
202: [14:37:36] <ocmnt> I already have some shortcodes, so prolly for the best to expand on that
203: [14:37:45] <kinglozz_> /nick er
204: [14:37:49] * kinglozz_ is now known as kinglozzer
205: [14:37:57] <kinglozzer> Of course r3v3rb ;)
206: [14:40:52] <r3v3rb> Yeh right, now that Norwich airport is fixed you've all gone back to sleep i hear ;)
207: [14:40:58] <r3v3rb> Stuch on a hot train, not able to use laptop due to bloody tablet tv watchers! Grrr, watch it at home!
208: [14:42:09] * lerni has joined #silverstripe
209: [14:42:53] <kinglozzer> r3v3rb: If only :P haha really?! just tell them to hold them in their hands
210: [14:46:12] * r3v3rb quit (Ping timeout: 276 seconds)
211: [14:55:43] * lerni quit ()
212: [15:00:20] <ocmnt> grrr
213: [15:00:27] <ocmnt> why cant I use $this-> in a shortcode parser?
214: [15:00:40] <ocmnt> "Using $this when not in object context"
215: [15:06:56] <ocmnt> ah nvm, I am nubbing
216: [15:15:18] * r3v3rb has joined #silverstripe
217: [15:15:40] <r3v3rb> Sorry, got disconnected
218: [15:20:48] * r3v3rb quit (Read error: Connection reset by peer)
219: [15:21:06] * r3v3rb has joined #silverstripe
220: [15:22:53] * r3v3rb quit (Client Quit)
221: [15:31:56] * MichalKleiner quit (Ping timeout: 244 seconds)
222: [16:00:30] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
223: [16:07:02] * kinglozzer quit ()
224: [16:15:05] * ocmnt quit (Quit: Page closed)
225: [16:18:59] * MichalKleiner has joined #silverstripe
226: [16:23:47] * MichalKleiner quit (Ping timeout: 265 seconds)
227: [16:30:19] * WebDevB quit (Remote host closed the connection)
228: [16:32:34] * wmk quit (Ping timeout: 240 seconds)
229: [16:34:45] * DanaeNZ quit (Ping timeout: 276 seconds)
230: [16:36:57] * AlphaCactus quit (Read error: Connection reset by peer)
231: [16:37:28] * AlphaCactus has joined #silverstripe
232: [16:42:21] * CodeTrap has joined #silverstripe
233: [16:42:35] * CodeTrap quit (Client Quit)
234: [16:49:39] * slievr quit (Quit: Leaving.)
235: [16:56:27] * agent44 quit (Quit: zzz)
236: [16:56:54] * shellbackpacific quit (Read error: Connection reset by peer)
237: [16:57:10] * shellbackpacific has joined #silverstripe
238: [17:02:00] <DimiStripe> Hi guys, whats the best way of changing theme for some of Classes ? So that HomePage would use theme1 but rest pages would use theme2 ?
239: [17:03:07] * janneklo1man-- has joined #silverstripe
240: [17:05:50] * janneklouman-- quit (Ping timeout: 265 seconds)
241: [17:10:27] * janneklo1man-- quit (Ping timeout: 244 seconds)
242: [17:39:13] * wmk has joined #silverstripe
243: [17:52:35] * marvanni has joined #silverstripe
244: [17:52:42] * marvanni quit (Client Quit)
245: [18:24:10] * MichalKleiner has joined #silverstripe
246: [18:47:19] * Stomach has joined #silverstripe
247: [19:03:55] * Stomach quit (Quit: zzz)
248: [19:21:14] * Stomach has joined #silverstripe
249: [19:33:32] <AlphaCactus> DimiStripe: You can have a custom homepage by creating a Homepage class that extends SiteTree and then put a template for it in the root of your theme/templates folder.
250: [19:34:07] <AlphaCactus> If you need a more general solution, maybe you could try SSViewer::set_theme() in your Page::init() and pass in themes based on whatever your decision criteria is.
251: [20:07:57] * Azure quit (Ping timeout: 276 seconds)
252: [20:17:11] * UndefinedOffset quit (Quit: Leaving.)
253: [20:18:53] * willr has joined #silverstripe
254: [20:27:25] * chillu_23 has joined #silverstripe
255: [20:31:33] * DanaeNZ has joined #silverstripe
256: [20:36:01] * DanaeNZ quit (Ping timeout: 255 seconds)
257: [21:02:24] * adrexia has joined #silverstripe
258: [21:04:45] * DanaeNZ has joined #silverstripe
259: [21:11:03] * Hailwood has joined #silverstripe
260: [21:15:08] <Hailwood> Hey folks, we have a bunch of pages that have been archived in the draft site, but not unpublished, as such they are still on the frontend website, but aren't in the CMS. IDeas?
261: [21:16:03] * wmk quit (Ping timeout: 240 seconds)
262: [21:24:25] <DanaeNZ> Hailwood: They'll be on the Live table
263: [21:28:42] <Hailwood> DO I just nuke them from the live table?
264: [21:30:43] <DanaeNZ> Hailwood: either that or copy the row to the draft table
265: [21:30:52] <DanaeNZ> then remove it from the CMS correctly
266: [21:43:06] * darjusIT has joined #silverstripe
267: [21:43:50] <darjusIT> Hi, any of you developing on linux?
268: [21:44:57] <Hailwood> I'd imagine most us are, or mac.
269: [21:48:34] <darjusIT> you mean win or mac?
270: [21:49:41] * xyphoid quit (Ping timeout: 250 seconds)
271: [21:50:37] * xyphoid has joined #silverstripe
272: [21:54:08] * micmania1 has joined #silverstripe
273: [22:01:18] <Hailwood> No I mean most of us are linux or mac
274: [22:05:12] <DanaeNZ> I was gonna say windows but I my work comp is a mac
275: [22:05:17] <DanaeNZ> i have windows at home
276: [22:11:26] * micmania1 quit (Quit: micmania1)
277: [22:12:33] <Hailwood> I dual boot at home, but only use Windows for Gaming really.
278: [22:15:54] <darjusIT> for PSD formats you are using photoshop on linux?
279: [22:16:47] * micmania1 has joined #silverstripe
280: [22:16:54] <darjusIT> have any good tuts how to set up good working enviroment in linux?
281: [22:17:57] * Azure has joined #silverstripe
282: [22:18:58] <Hailwood> darjusIT, I don't remember the last time we actually converted a PSD to a template, we use local (to Hawkes Bay) designers for that.
283: [22:19:30] <Hailwood> Thing is with linux a "good working environment" is totally dependent on how you want to work, but your basic lamp stack, the digital ocean tutorials are always awesome.
284: [22:19:42] <darjusIT> nice in our country psd still rules
285: [22:20:51] <Hailwood> Oh man I always forget SS is global haha. But yeah, we focus on what we're good at (making it work, and making it work well) and let the designers focus on what they're good at :)
286: [22:23:25] <darjusIT> :)
287: [22:24:11] <darjusIT> using vagrant on linux?
288: [22:27:46] * Stomach quit (Quit: zzz)
289: [22:28:02] * UncleCheese has joined #silverstripe
290: [22:28:37] * Stomach has joined #silverstripe
291: [22:30:35] <ss-helper> More helpful exceptions/warnings - https://groups.google.com/d/msg/silverstripe-dev/14lJBw13jQI/LyHvO9unBwAJ
292: [22:34:21] * spronk has joined #silverstripe
293: [22:46:15] <DanaeNZ> oh shit, Gojira dropped a new album while I wasn't looking
294: [23:01:44] <Hailwood> If I want to remove a page - $Page->doUnpublish; $Page->delete(); should do it right?
295: [23:01:58] <Hailwood> (this is running from a build task)
296: [23:05:47] <Hailwood> er that was ->doUnpublish();
297: [23:08:51] * isaac_ has joined #silverstripe
298: [23:09:38] <isaac_> hey guys, with sake cli, is it possible to pass cookies? or prompt xdebug in phpstorm?
299: [23:19:52] <Hailwood> isaac_, try
300: [23:19:52] <Hailwood> XDEBUG_SESSION_START=phpstorm /path/to/sake 'what/ever' 'yup=ok'
301: [23:20:13] <Hailwood> just need to make sure you've got xdebug enabled in your cli php.ini
302: [23:20:57] <isaac_> sweet thanks @Hailwood :)
303: [23:43:17] * vanny has joined #silverstripe
304: [23:43:43] <vanny> hey all
305: [23:44:50] * isaac_ quit (Ping timeout: 264 seconds)
306: [23:48:04] * thesaysora has joined #silverstripe
307: [23:48:54] <thesaysora> anybody seen this? [Warning] SS_HTMLValue::getContent(): ID action_reset_Holder already defined

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