#silverstripe IRC Log

IRC log for 9 September 2015

All timestamps are in UTC.

1: [00:01:20] <novaweb> zippy no
2: [00:01:22] <novaweb> lunch
3: [00:01:24] <novaweb> back soon
4: [00:05:56] <Hailwood> Hey folks, Does anyone know how you can modify a gridfields list in a model admin once a config item has applied it's modifiications? https://gist.github.com/hailwood/92f78ae37d932c16b57d
5: [00:07:09] * kerozene has joined #silverstripe
6: [00:12:38] * helenclark0 has joined #silverstripe
7: [00:13:09] * helenclarko quit (Ping timeout: 255 seconds)
8: [00:13:24] * helenclark0 is now known as helenclarko
9: [00:14:42] * r_hector quit (Remote host closed the connection)
10: [00:17:11] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11: [00:19:28] * wmk has joined #silverstripe
12: [00:25:41] * wmk quit (Ping timeout: 268 seconds)
13: [00:32:53] * Stomach quit (Ping timeout: 246 seconds)
14: [00:36:12] * Stomach has joined #silverstripe
15: [00:38:45] * Stomach quit (Client Quit)
16: [00:43:13] <DanaeNZ> Oh no I forgot to call the internet company again!!
17: [00:43:37] <DanaeNZ> I'm terrible at adulting
18: [00:47:34] * Colin[pi] slaps DanaeNZ with a 56k modem
19: [00:47:45] <DanaeNZ> ow
20: [00:47:46] * AshKyd quit (Ping timeout: 246 seconds)
21: [00:47:46] * BackEndCoder quit (Ping timeout: 246 seconds)
22: [00:48:02] <Colin[pi]> I kinda miss the modem sounds
23: [00:48:25] * EasyCo quit (Read error: Connection reset by peer)
24: [00:48:54] * zippy has joined #silverstripe
25: [00:49:11] * TheVoid_ quit (Remote host closed the connection)
26: [00:49:15] <Colin[pi]> dat nostalgia: https://www.youtube.com/watch?v=gsNaR6FRuO0
27: [00:49:30] * wmk has joined #silverstripe
28: [00:49:52] * spekulatius quit (Ping timeout: 246 seconds)
29: [00:51:23] * EasyCo has joined #silverstripe
30: [00:52:22] * TheVoid has joined #silverstripe
31: [00:53:01] * Olliepop has joined #silverstripe
32: [00:53:39] * AshKyd has joined #silverstripe
33: [00:53:58] * spekulatius has joined #silverstripe
34: [00:55:16] * wmk quit (Ping timeout: 265 seconds)
35: [00:55:36] * BackEndCoder has joined #silverstripe
36: [00:58:31] * chillu23 quit (Quit: chillu23)
37: [01:19:33] * wmk has joined #silverstripe
38: [01:20:37] * Stomach has joined #silverstripe
39: [01:25:01] <Hailwood> Is it possible to extend an extension? Basically I have Product - which is pulled in from a third party package - which has an extension automatically applied from another third party package - but then I want to from another extension applied to to Product (my extension) alter a field that is added by that first extension
40: [01:25:39] * wmk quit (Ping timeout: 256 seconds)
41: [01:27:07] <zippy> like.. inception
42: [01:28:45] * Liquide quit ()
43: [01:30:09] * Tanger has joined #silverstripe
44: [01:34:18] <helenclarko> !paste
45: [01:34:19] <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.
46: [01:35:59] <Tanger> Hi guys, a couple of users on a mobile are having issues sending a form with an image attached, but only on a particular type of phone. Line 278 from framework/forms/Form.php is the error message they get
47: [01:36:40] <Tanger> But it looks like CSRF token issue
48: [01:38:59] * Sticks has joined #silverstripe
49: [01:40:33] <Stomach> Hailwood - yeah you can
50: [01:40:42] <Stomach> you just need to define the order of extensions
51: [01:41:11] <Stomach> so your one comes "before" (higher priority than) the other one
52: [01:41:55] <Stomach> so a yml config block like http://pastie.org/10406437
53: [01:43:34] <Sticks> Hi all, does anyone know if the Static Export should work with Subsites fine? Reffering to this module https://github.com/silverstripe-labs/silverstripe-staticpublisher ping: willr
54: [01:44:18] <willr> Sticks never used it with subsites. May cause issues if running cli
55: [01:48:07] <novaweb> Repost: Trying to escape $className on line 3: http://pastie.org/10406321
56: [01:48:21] <Hailwood> Stomach, Ah, that makes sense - I had actually almost done that, but I misunderstood the config options and thought I wanted After to say it should run 'after' said extension
57: [01:48:38] <Stomach> yeah they are confusing
58: [01:48:51] <Stomach> I always just say higher priority than and lower priority than in my head
59: [01:49:38] * wmk has joined #silverstripe
60: [01:50:29] <micmania1> novaweb: $this->owner->hasMethod($className)?
61: [01:51:19] <novaweb> micmania1... cool, so a $has_one relationship is considered a method in SilverStripe terms?
62: [01:51:41] <zippy> novaweb: you don't use the () in the string
63: [01:52:07] <zippy> you may need to use {}
64: [01:52:23] <micmania1> hmmm… I’m not 100% sure. I know methods are picked up from DataExtension’s but not sure about has one.
65: [01:52:38] <zippy> $this->owner->{$className}{}->
66: [01:52:48] <zippy> $this->owner->{$className}()->
67: [01:53:01] <micmania1> novaweb: if not, array_key_exists($className, $this->owner->config()->has_one);
68: [01:54:04] <zippy> maybe I don't get what escaped means :)
69: [01:54:25] <Hailwood> Ok Stomach so I've got this yml file - https://gist.github.com/hailwood/ae63e154c2c30da63300 but the ProductExtension still cannot see the fields added by https://github.com/markguinn/silverstripe-shop-extendedimages/blob/master/code/MultipleProductImages.php
70: [01:55:29] * wmk quit (Ping timeout: 252 seconds)
71: [01:56:44] <Hailwood> All I really want to do is call setFolderName() on the SortableUploadField that gets added :/
72: [01:57:58] <Hailwood> Can you block an extension from actually applying? If so I could always extend the extension and then overload updateCMSFields()...
73: [01:58:42] <Stomach> what does your product extension look like
74: [02:00:51] <Hailwood> Stomach, https://gist.github.com/hailwood/dcf54ab2fd2039b8b1e3
75: [02:01:43] <Stomach> thats because it doesn't have that field at that stage most likely
76: [02:02:00] <Stomach> can you instead add this line and then set the folder on it
77: [02:02:01] <Stomach> https://github.com/markguinn/silverstripe-shop-extendedimages/blob/master/code/MultipleProductImages.php#L27
78: [02:02:28] <zippy> is it nap time?
79: [02:02:46] <Hailwood> I tried that, it ends up getting overridden when the MultipleProductImages re-adds the field
80: [02:04:23] * willr quit (Ping timeout: 265 seconds)
81: [02:04:26] <Stomach> but that should be run after the multiple images one is run :D
82: [02:05:16] <Stomach> so weird
83: [02:06:59] <Hailwood> it's really really odd aye
84: [02:08:50] <Colin[pi]> is there a way in SS to share a draft link with people who do not have a CMS login?
85: [02:09:18] <Hailwood> *sigh* had to do a flush on the actual edit page
86: [02:12:54] * jakx has joined #silverstripe
87: [02:13:59] <jakx> If I'm making my own list, with injected values, what object should I use instead of DataList?
88: [02:14:52] <jakx> The reason I ask if, I'm using ArrayList at the moment, but I need to ->filter("FieldName:LessThanOrEqual")
89: [02:15:27] * micmania1 quit (Quit: micmania1)
90: [02:16:54] <novaweb> micmania1 I'll PM you
91: [02:17:31] <Tanger> jakx: ArrayList is probably best for that. You can use $casting[] fields to filter on ArrayLists in the same fashion you would on DataLists
92: [02:18:33] <jakx> Tanger, sounds good. Could you give me a quick snippet of how to use $casting[] ?
93: [02:18:41] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
94: [02:19:40] * wmk has joined #silverstripe
95: [02:20:41] * ccburns quit (Quit: ccburns)
96: [02:22:39] <novaweb> OK attempt 3. Can anyone help me turn this in to a for loop? http://pastie.org/10406476
97: [02:22:51] <novaweb> Posing the question a different way now.
98: [02:23:04] <novaweb> Previous attempt was: http://pastie.org/10406321
99: [02:23:41] * ccburns has joined #silverstripe
100: [02:24:30] <jakx> Tanger, unless what you mean is that syntax can remain the same, because if so, I'm not having much luck sadly.
101: [02:25:11] * wmk quit (Ping timeout: 252 seconds)
102: [02:27:14] <Stomach> Hailwood :D glad you fixed it
103: [02:27:25] <Stomach> Colin[pi] - https://github.com/silverstripe-labs/silverstripe-sharedraftcontent
104: [02:29:57] * camfindlay quit (Quit: camfindlay)
105: [02:31:07] <Stomach> novaweb - that will go one too many? to $i = 6 ?
106: [02:31:10] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
107: [02:31:15] <Stomach> shouldnt it just be $i < 5 in your loop
108: [02:31:22] <Stomach> otherwise it looks fine
109: [02:32:25] * micmania1 has joined #silverstripe
110: [02:33:32] <Colin[pi]> Stomach: sweet! thx
111: [02:34:41] * Azure has joined #silverstripe
112: [02:35:39] <ss-helper> Silverstripe 3 Extending Error Mail with HTTP_X_FORWARDED_FOR - http://stackoverflow.com/questions/26296267/silverstripe-3-extending-error-mail-with-http-x-forwarded-for
113: [02:38:18] * ccburns quit (Quit: ccburns)
114: [02:39:59] * ccburns has joined #silverstripe
115: [02:43:12] <antmas> :|
116: [02:43:14] <antmas> :o
117: [02:43:16] <antmas> :O
118: [02:43:17] <antmas> :()
119: [02:43:19] <antmas> :O
120: [02:43:20] <antmas> :o
121: [02:43:22] <antmas> :|
122: [02:49:35] * ccburns has left #silverstripe
123: [02:49:41] * wmk has joined #silverstripe
124: [02:50:13] * Stomach quit (Quit: zzz)
125: [02:54:20] <spronk> fuuuuck
126: [02:54:23] <spronk> what's happened to antmas
127: [02:54:24] <spronk> he broke
128: [02:54:29] <DanaeNZ> XD
129: [02:54:43] <DanaeNZ> he finally yawned
130: [02:55:00] * wmk quit (Ping timeout: 250 seconds)
131: [02:55:01] <MichalKleiner> but he forgot the :( ) one :-D
132: [02:55:15] <antmas> spronk: :D
133: [02:55:18] <antmas> it's my yawn art
134: [02:55:25] <antmas> *art*
135: [02:55:34] <MichalKleiner> asciiyawn
136: [03:01:56] * Stomach has joined #silverstripe
137: [03:02:21] <novaweb> Stomach that's not the issue. The issue was escaping the string FeatureImage$i() so it called the has_one relation on the extension
138: [03:02:33] <novaweb> Not sure if escape is the right term to use in this instance
139: [03:09:54] * timack_ has joined #silverstripe
140: [03:16:12] <novaweb> So, my first pastie works fine. I'd just like to optimise the code
141: [03:19:44] * wmk has joined #silverstripe
142: [03:25:20] * wmk quit (Ping timeout: 250 seconds)
143: [03:30:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
144: [03:35:44] * Audlex has joined #silverstripe
145: [03:36:27] <Audlex> Does anyone know what would be causing this? [Notice] Use of undefined constant CMS_DIR - assumed 'CMS_DIR'
146: [03:36:31] * Stomach quit (Quit: zzz)
147: [03:36:38] <Audlex> prevents me from getting into /admin
148: [03:37:26] * novaweb quit (Remote host closed the connection)
149: [03:38:41] <Colin[pi]> Audlex: that constant should be getting defined in your /cms/_config.php file, did you check there?
150: [03:38:57] * Stomach has joined #silverstripe
151: [03:42:29] <Olliepop> Keen to get emoji support merged ;) https://github.com/silverstripe/silverstripe-framework/pull/4584
152: [03:42:57] <Colin[pi]> is there a way I can go <% include $VarName %> ?
153: [03:46:47] <Audlex> thank you Colin[pi]! I now see the error in my ways.
154: [03:46:59] * Hailwood quit (Remote host closed the connection)
155: [03:49:47] * wmk has joined #silverstripe
156: [03:51:41] * Stomach quit (Quit: zzz)
157: [03:55:43] * wmk quit (Ping timeout: 244 seconds)
158: [04:19:53] * wmk has joined #silverstripe
159: [04:20:15] * Stomach has joined #silverstripe
160: [04:25:36] * wmk quit (Ping timeout: 255 seconds)
161: [04:34:39] * Olliepop quit (Quit: Page closed)
162: [04:37:28] * r_hector has joined #silverstripe
163: [04:39:55] <Tanger> jakx: Sorry, didn't spot that. http://www.sspaste.com/paste/show/55efb80d4dbcf
164: [04:40:46] <Tanger> jakx: From there, if you call the class with casting on as a DataList and convert it to an ArrayList, you can use filter() in the same way, but with your own functions instead of normal SQL filtering
165: [04:41:37] <Tanger> jakx: Only caveat is the function name has to be prepended with 'get' in order for the DO to recognise it as a getter/setter for a pseudo property
166: [04:45:02] * novaweb has joined #silverstripe
167: [04:47:31] * antmas quit (Quit: Page closed)
168: [04:49:54] * Stomach quit (Ping timeout: 255 seconds)
169: [04:49:57] * wmk has joined #silverstripe
170: [04:51:57] <Colin[pi]> no matter how many extensions I write, I still forget $this->owner instead of $this ;P
171: [04:55:13] <jakx> Tanger, thanks!
172: [04:56:07] * wmk quit (Ping timeout: 260 seconds)
173: [05:01:18] * helenclarko quit (Read error: Connection reset by peer)
174: [05:08:39] * micmania1 quit (Quit: micmania1)
175: [05:09:43] * DanaeNZ quit (Remote host closed the connection)
176: [05:15:29] <novaweb> Colin[pi] glad i'm not the only one
177: [05:15:39] <Colin[pi]> novaweb: errytime
178: [05:19:57] * wmk has joined #silverstripe
179: [05:25:27] * timack_ quit (Quit: timack_)
180: [05:26:00] * wmk quit (Ping timeout: 268 seconds)
181: [05:27:38] * Stomach has joined #silverstripe
182: [05:49:59] * wmk has joined #silverstripe
183: [05:53:36] * Frans_Amsterdam has joined #silverstripe
184: [05:55:42] * wmk quit (Ping timeout: 250 seconds)
185: [06:00:39] <Tanger> Anybody know SilverStripe
186: [06:00:45] <Tanger> s forms system in and out?
187: [06:04:36] * nikob quit (Ping timeout: 265 seconds)
188: [06:05:43] * nikob has joined #silverstripe
189: [06:05:53] * nikob quit (Remote host closed the connection)
190: [06:09:38] * Embraden has joined #silverstripe
191: [06:09:38] * Embraden quit (Changing host)
192: [06:09:38] * Embraden has joined #silverstripe
193: [06:16:24] * mahfuz quit (Ping timeout: 246 seconds)
194: [06:19:10] * nathanz has joined #silverstripe
195: [06:20:01] * wmk has joined #silverstripe
196: [06:20:28] * Stomach quit (Quit: zzz)
197: [06:25:52] * wmk quit (Ping timeout: 246 seconds)
198: [06:26:35] * sminnee_ quit (Ping timeout: 244 seconds)
199: [06:27:01] * Stomach has joined #silverstripe
200: [06:27:11] * sminnee_ has joined #silverstripe
201: [06:30:39] * Stomach quit (Client Quit)
202: [06:30:44] * Eliseth has joined #silverstripe
203: [06:31:59] * sminnee_ quit (Ping timeout: 268 seconds)
204: [06:39:28] * Stomach has joined #silverstripe
205: [06:41:31] * Embraden quit (Read error: Connection reset by peer)
206: [06:42:07] * Embraden has joined #silverstripe
207: [06:42:42] * sminnee_ has joined #silverstripe
208: [06:43:08] * Stomach quit (Client Quit)
209: [06:44:08] * swaiba has joined #silverstripe
210: [06:49:55] * wmk has joined #silverstripe
211: [06:53:20] <swaiba> mornin wmk how are you doing?
212: [06:55:47] * wmk quit (Ping timeout: 252 seconds)
213: [06:58:19] * DanaeNZ has joined #silverstripe
214: [07:02:39] * DanaeNZ quit (Ping timeout: 255 seconds)
215: [07:06:01] * r_hector quit (Remote host closed the connection)
216: [07:20:09] * wmk has joined #silverstripe
217: [07:26:00] * saiyan has joined #silverstripe
218: [07:29:46] * spronk quit (Quit: I may need a longer sleep timer...)
219: [07:33:48] * Stomach has joined #silverstripe
220: [07:36:04] * spronk has joined #silverstripe
221: [07:36:49] <ss-helper> Config YML syntax for replace/remove as well as append/merge - https://groups.google.com/d/msg/silverstripe-dev/zYQLV8_AaDk/7LmQ7Z6MLwAJ
222: [07:38:02] * zlinux has joined #silverstripe
223: [07:51:50] <ss-helper> Re: [silverstripe-dev] Config YML syntax for replace/remove as well as append/merge - https://groups.google.com/d/msg/silverstripe-dev/zYQLV8_AaDk/J8UbqxmNLwAJ
224: [07:53:16] * Stomach quit (Quit: zzz)
225: [07:55:29] * sminnee_ quit (Ping timeout: 244 seconds)
226: [07:59:20] * kinglozzer has joined #silverstripe
227: [08:03:08] * GioVdK has joined #silverstripe
228: [08:12:04] * novaweb quit (Remote host closed the connection)
229: [08:23:51] * Sticks quit (Quit: Leaving)
230: [08:39:20] * r_hector has joined #silverstripe
231: [08:39:56] * spronk quit (Quit: I may need a longer sleep timer...)
232: [08:42:22] * travis-ci has joined #silverstripe
233: [08:42:23] <travis-ci> kinglozzer/sapphire#12 (uploadfield-attach-nonexistent - 06cc185 : Loz Calver): The build passed.
234: [08:42:23] <travis-ci> Change view : https://github.com/kinglozzer/sapphire/commit/06cc18526a1f
235: [08:42:23] <travis-ci> Build details : https://travis-ci.org/kinglozzer/sapphire/builds/79430135
236: [08:42:23] * travis-ci has left #silverstripe
237: [08:45:39] * Otterpocket has joined #silverstripe
238: [08:46:47] <Otterpocket> If I have the date as a string '2006-01-18 16:32:04', How do I need to format it to save it in my SS_Datetime ?
239: [08:48:08] <swaiba> Otterpocket that is fine
240: [08:48:29] <swaiba> just do $myObj->Datetime = '2015-01-01 00:00:00';
241: [08:48:37] <swaiba> (or a string variable)
242: [08:49:52] <Otterpocket> hmmm, that was the first thing I tried, I'll double check
243: [08:52:14] <Otterpocket> in my $db 'LastPing' => 'SS_Datetime'
244: [08:52:25] <Otterpocket> im my controller $member->LastPing = $obj_body->date.' '.$obj_body->time;
245: [08:52:39] <Otterpocket> string '15/04/30 09:05:53' (length=17)
246: [08:52:39] * Pyaslgjivwmek has joined #silverstripe
247: [08:52:40] <ss-helper> Pyaslgjivwmek: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
248: [08:52:53] <Pyaslgjivwmek> ss-helper: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
249: [08:53:12] <swaiba> Pyaslgjivwmek you like the new welcome message yet?
250: [08:53:42] <swaiba> Otterpocket uh-huh - so all good, then $member->write(); obviously
251: [08:53:55] <Otterpocket> swaiba, It is writing the other values
252: [08:54:12] <swaiba> how is your db thing set? an extension?
253: [08:54:28] <swaiba> I can be sure setting a SS_Datetime works when set with a string
254: [08:54:48] <Otterpocket> create a new ss_datetime object and save that maybe?
255: [08:55:28] <swaiba> how is your db thing set? an extension?
256: [08:55:42] <Otterpocket> class MemberExtension extends DataExtension
257: [08:56:35] <swaiba> and you're setting this field with athe string where?
258: [08:58:17] <Otterpocket> In a controller
259: [08:58:51] <Pyaslgjivwmek> swaiba: it'd be a bit better if... oh maybe it does. IDK.
260: [08:59:05] <Pyaslgjivwmek> if the bot tracked those who joined and didn't greet them on every /join
261: [08:59:26] <Pyaslgjivwmek> but then the new name every day ain't gonna help.
262: [08:59:32] <swaiba> Pyaslgjivwmek bingo!
263: [08:59:41] <wmk> Otterpocket, you have date 15/04/30, you need 2015-04-30 instead
264: [08:59:50] <swaiba> if people use a consistent name...
265: [09:00:00] <swaiba> I might have discuss an exception for you
266: [09:00:07] <Pyaslgjivwmek> I think it still greeted me last night though.
267: [09:00:14] * Pyaslgjivwmek shrugs.
268: [09:00:14] <swaiba> then joked about it asking you to use the same name...
269: [09:00:28] <Pyaslgjivwmek> lol
270: [09:00:29] <Otterpocket> wmk, aha, ok thanks, it's another service that is sending me the date
271: [09:00:34] <swaiba> it's to avoid those that sign on, ask a question and then 2 minutes later leave frustrated
272: [09:00:39] <wmk> so you need to reformat it
273: [09:00:41] <wmk> Otterpocket,
274: [09:00:56] <Otterpocket> Yep
275: [09:01:05] <Pyaslgjivwmek> swaiba: it's a fair thing, because no one ever reads the topic
276: [09:01:15] <wmk> topic?
277: [09:01:33] <Pyaslgjivwmek> even though with the recent update to the web client it's very big, and white background...
278: [09:01:39] <swaiba> Otterpocket wmk - sorry should have seen the format
279: [09:01:39] <Pyaslgjivwmek> wmk: /topic
280: [09:01:42] * swaiba face to palm
281: [09:02:08] <wmk> well, Pyaslgjivwmek THAT topic is way too long for been read
282: [09:02:20] <Pyaslgjivwmek> yup.
283: [09:02:26] <Pyaslgjivwmek> like ALLLLL the informations!
284: [09:02:27] * the_sandman has joined #silverstripe
285: [09:04:48] <Otterpocket> tbh, I did see the format but I didn't think it was a problem because I saved the date through the CMS in the same format and it worked fine
286: [09:05:00] <Otterpocket> So I thought setting it the same in the controller would work
287: [09:06:14] <Pyaslgjivwmek> Otterpocket: depends on locale settings too
288: [09:06:16] <Pyaslgjivwmek> iirc
289: [09:06:37] <Pyaslgjivwmek> as to whether it tries to parse dd/mm/yy or mm/dd/yy
290: [09:06:38] <Pyaslgjivwmek> etc
291: [09:06:47] <swaiba> Otterpocket it depends on the format you've set globally for the DateField
292: [09:07:11] <Pyaslgjivwmek> the best thing to do is to tell people to stop being stupid and yyyy-mm-dd hh:mm:ss like normal folk.
293: [09:07:23] <Otterpocket> Yea, it still does not work with string '15-04-30 09:05:53' (length=17)
294: [09:07:23] <Pyaslgjivwmek> (because that works :P)
295: [09:07:38] <swaiba> DateField: default_config: dateformat: 'dd-MM-yyyy'
296: [09:07:48] <Pyaslgjivwmek> 1930
297: [09:07:55] <swaiba> that works and slighty matches "human" readable more
298: [09:07:57] <Pyaslgjivwmek> 15 april?
299: [09:07:57] <wmk> Otterpocket, have you looked at the datefield api?
300: [09:08:31] <Otterpocket> actually...it is working now, I was being a turbonoob
301: [09:09:20] <wmk> ;)
302: [09:09:34] <Pyaslgjivwmek> I drink my coffee from a red mug. It makes it go faster.
303: [09:09:53] <Pyaslgjivwmek> and if I forget to breathe then it can make a psh sound, so I have turbo fast coffee.
304: [09:10:12] <Otterpocket> Is the Europe meetup going to be bigger than last year?
305: [09:10:20] <Pyaslgjivwmek> and if I gulp loudly I can make the doof doof
306: [09:10:42] <Pyaslgjivwmek> Otterpocket: well it's in London, and UK office means that there might be a number of more beginner type folk there
307: [09:12:24] <Otterpocket> Ironically I live in UK and its not really any cheaper for me to get to london than it was to get to Austria
308: [09:12:36] * novaweb has joined #silverstripe
309: [09:13:15] * samlander has joined #silverstripe
310: [09:13:22] <samlander> mornin folks
311: [09:14:50] <Pyaslgjivwmek> heya
312: [09:15:09] <Pyaslgjivwmek> typical Otterpocket
313: [09:15:20] <Pyaslgjivwmek> UK goes full retard on Sundays too
314: [09:15:46] <samlander> i got a good question for ya guys... i got an mp4 file i need to put into my assets library, but it's too large to upload thru the cms
315: [09:16:00] <samlander> what's the best way of going about manually adding it?
316: [09:16:08] * spronk has joined #silverstripe
317: [09:18:50] * novaweb quit (Ping timeout: 240 seconds)
318: [09:20:12] <Pyaslgjivwmek> ftp would do it.
319: [09:20:32] <samlander> ie, to make it avaialbe to the user to choose from the assets dialog
320: [09:23:01] <wmk> samlander, either ftp and sync assets afterwards (there might be a task or you write it yourself)
321: [09:23:16] <wmk> or increase max post size for that project if possible
322: [09:24:46] <Pyaslgjivwmek> samlander: you sync it, yeah
323: [09:28:10] <swaiba> Otterpocket - how come it's too expense - considered the coach?
324: [09:28:34] <swaiba> I'm in brizzle and train is expensive, but a coach is dead cheap
325: [09:30:34] <Pyaslgjivwmek> Oh fuck, they announced cheap tickets on the train but I divin book yet :<
326: [09:30:43] <Pyaslgjivwmek> london for £15!
327: [09:43:07] <wmk> swaiba, coach is bus?
328: [09:43:23] <swaiba> wmk kinda
329: [09:43:35] <swaiba> I mean a coach is like "inter-city" bus
330: [09:43:37] <wmk> ok
331: [09:43:53] <wmk> i know coach as trainer of a sports team
332: [09:46:30] * willr has joined #silverstripe
333: [09:47:32] <willr> @ss23 DANGERZONE
334: [09:49:24] * spronk quit (Quit: I may need a longer sleep timer...)
335: [09:49:34] <ss23> :O
336: [09:49:35] <ss23> help help
337: [09:51:32] * spronka has joined #silverstripe
338: [10:07:46] * zippy has joined #silverstripe
339: [10:07:58] <zippy> hi
340: [10:08:53] <wmk> yo
341: [10:09:00] <zippy> hows it going
342: [10:09:26] <veb> https://github.com/veb/textual5-giphy
343: [10:09:27] <veb> luls
344: [10:09:34] * r_hector quit (Remote host closed the connection)
345: [10:10:00] <veb> it doesn't pull the right URL anyway
346: [10:10:07] <veb> http://giphy.com/gifs/transparent-silver-8IBTVnCc5lDy0
347: [10:10:53] <wmk> zippy, fine, thanks ;)
348: [10:11:02] <zippy> api_key in the repo, sacrilege
349: [10:11:19] <veb> it's public
350: [10:11:23] <veb> look at the API
351: [10:12:45] <zippy> haxoring the api with your key
352: [10:12:51] <veb> k
353: [10:12:57] <veb> it's not my key
354: [10:13:00] <veb> sigh
355: [10:13:06] <zippy> :)
356: [10:13:50] <zippy> http://addons.silverstripe.org/add-ons/simonwelsh/hasoneedit is gone... is there something else suitable?
357: [10:14:09] <zippy> editing a has_one without having to go to that edit page
358: [10:14:25] <Pyaslgjivwmek> zippy: yeah, you gotta gaan get the copy someone got somewhere
359: [10:14:36] <Pyaslgjivwmek> I think it may have been Stomach.
360: [10:14:55] <wmk> zippy, i forked it once ago, might not be the _very_ latest version
361: [10:14:57] <zippy> ah yeap, nice nickname, big longer than usual
362: [10:15:04] <Pyaslgjivwmek> it's BSD iirc, so lisence isn't the issue.
363: [10:15:24] <zippy> I was just going to ask, how the license goes if code removed
364: [10:15:47] <wmk> https://github.com/wernerkrauss/hasoneedit zippy
365: [10:15:50] <Pyaslgjivwmek> He had a bunch of nice modules, but for the most part 2fa and hasoneedit
366: [10:15:54] <Pyaslgjivwmek> were the main ones
367: [10:16:01] <wmk> https://github.com/wernerkrauss/hasoneedit/blob/master/LICENSE
368: [10:16:07] <wmk> DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
369: [10:16:13] <wmk> so i guess no problem zippy
370: [10:16:26] <zippy> yea thats pretty open eh
371: [10:16:44] <zippy> ah yeap; https://github.com/stevie-mayhew/hasoneedit
372: [10:17:31] <Pyaslgjivwmek> The twitter 'thread' (as much as they can handle threads) has a bunch of folk asking for module copies.
373: [10:17:43] <Pyaslgjivwmek> some rudely, which get aptly met with a rude reply.
374: [10:17:57] <Pyaslgjivwmek> folks who asked nicely like Stomach got code :>
375: [10:18:25] <wmk> zippy, dunno if stevie's version is more up to date, but good to know
376: [10:18:35] <Pyaslgjivwmek> ah yeah, trait-loader was also simon_w iirc
377: [10:18:49] <wmk> Pyaslgjivwmek, good to know.
378: [10:18:57] <wmk> i didn't ask, cause i forked it long time ago ;)
379: [10:19:06] <wmk> this module once saved my (you know)
380: [10:19:11] <wmk> ehem, work
381: [10:19:20] <Pyaslgjivwmek> :>
382: [10:19:33] <Pyaslgjivwmek> wmk: afaik it's up to date.
383: [10:19:41] <Pyaslgjivwmek> he's missing the 2fa module though :(
384: [10:20:03] <wmk> isn't 2fa overestimated?
385: [10:20:05] <willr> Someone can politely ask simon_w for 2fa module source code
386: [10:20:23] <wmk> Pyaslgjivwmek, politely, that's your task then
387: [10:21:37] <Pyaslgjivwmek> haha. I can do polite :>
388: [10:21:47] <Pyaslgjivwmek> I just don't often do polite :P
389: [10:22:03] <Pyaslgjivwmek> well, at least not when talking candidly in a familiar community.
390: [10:22:37] * wmk wonders if something like "hasone_edit" works for "has_many"
391: [10:22:59] <wmk> so adding/editing new items in another tab directly (with a + button to add another)
392: [10:23:45] <Pyaslgjivwmek> wmk: sounds like editable fields by ajshort
393: [10:23:51] <Pyaslgjivwmek> gridfield module
394: [10:23:58] <Pyaslgjivwmek> err component*
395: [10:24:05] <wmk> nah, without gridfield detailform
396: [10:24:18] <wmk> well, for "simple" items (title, sortorder, whatever) it should be enough.
397: [10:24:22] <wmk> good idea
398: [10:26:32] <wmk> WOW... mockdata module rocks
399: [10:28:00] <zippy> that UC's one?
400: [10:29:42] <wmk> yup
401: [10:32:38] <zippy> yea; I like faker
402: [10:32:49] <zippy> the random generator
403: [10:33:04] <zippy> UC pushes out some good modules eh
404: [10:36:30] <wmk> hmm, on a page where i manage some has-many relations, can i also put there a grid for unrelated dataobjects? like in ModelAdmin?
405: [10:37:21] <Pyaslgjivwmek> [11:24] <wmk> nah, without gridfield detailform
406: [10:37:29] <Pyaslgjivwmek> so remove the detailform component! ;)
407: [10:37:46] <Pyaslgjivwmek> I think it's called inline-editing or something
408: [10:38:10] <Pyaslgjivwmek> https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/docs/en/index.md#inline-editing
409: [10:38:12] <zippy> wmk: sure, you could just do Whatever::get() instead of $this->Whatever()
410: [10:38:50] <Pyaslgjivwmek> https://pbs.twimg.com/media/BGXznckCMAEsl3E.png
411: [10:39:28] <Pyaslgjivwmek> wmk: of course, gridfield just takes a list, doesn't have to be one from the hosting page! :>
412: [10:39:44] <wmk> hmm, let's see why it didn't work
413: [10:40:12] <Pyaslgjivwmek> if you have relation_editor config then it might cause issues maybe though
414: [10:40:25] <Pyaslgjivwmek> just need a more generic record editor or somethign
415: [10:40:56] * marteng has joined #silverstripe
416: [10:40:56] <ss-helper> marteng: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
417: [10:41:11] <marteng> How can i in php force a visitor to log in
418: [10:41:18] <Pyaslgjivwmek> https://twitter.com/zauberfisch/status/316927207798878209
419: [10:41:26] <Pyaslgjivwmek> marteng: set the access level on the page
420: [10:42:00] <Pyaslgjivwmek> ... in the cms
421: [10:42:46] <marteng> yeah , but i want it on certain conditions. So I need it in php
422: [10:43:02] <Pyaslgjivwmek> in php if(Member::currentUser() == null) $this->redirect(dun go login)
423: [10:43:11] <Pyaslgjivwmek> or something like that
424: [10:43:16] <Pyaslgjivwmek> throw permission error
425: [10:43:17] <Pyaslgjivwmek> or something
426: [10:43:22] <Pyaslgjivwmek> not entirely sure.
427: [10:43:45] <Pyaslgjivwmek> but that'd about do it (what I mean is I think there is a better way / shortcut method on Security itself or something)
428: [10:44:13] <Pyaslgjivwmek> something like canView() { return Permission::check('LOGGEDIN'); } or something
429: [10:44:22] <Pyaslgjivwmek> look it up in the docs/api
430: [10:46:08] <wmk> nope, still no grid
431: [10:46:25] <marteng> thanx Pyaslgjivwmek
432: [10:47:35] <wmk> oh, that damn pebkac bug...
433: [10:52:24] <Pyaslgjivwmek> :P
434: [10:52:48] <Pyaslgjivwmek> ID ten tee error?
435: [10:53:05] <Pyaslgjivwmek> (id10t)
436: [10:53:20] <Pyaslgjivwmek> :>
437: [10:54:38] <wmk> more "it's time for lunch" error
438: [10:55:12] <Pyaslgjivwmek> indeeds
439: [10:55:54] <wmk> is there a way to share a grid config for more grids?
440: [10:56:02] <wmk> or do i have to define everything again?
441: [10:58:29] * Otterpocket quit (Quit: Leaving)
442: [11:01:03] <willr> wmk store it in a variable?
443: [11:01:08] <willr> or make it a class
444: [11:02:12] * ec8or_ quit (Remote host closed the connection)
445: [11:06:11] <zippy> hm
446: [11:06:21] <zippy> be nice if 'save and close' took you back to the same tab you were on
447: [11:18:07] * novaweb has joined #silverstripe
448: [11:23:23] <zippy> http://www.nbr.co.nz/opinion/wikileaks-cables-us-govt-pressured-nz-over-internet-file-sharing-law
449: [11:23:51] <zippy> ah thats old...
450: [11:24:54] * novaweb quit (Ping timeout: 268 seconds)
451: [11:34:13] * jakx quit (Quit: Leaving)
452: [11:39:06] * marteng quit (Ping timeout: 246 seconds)
453: [11:49:37] * novaweb has joined #silverstripe
454: [11:51:42] * novaweb quit (Read error: Connection reset by peer)
455: [11:55:12] * MarkGuinn has joined #silverstripe
456: [12:06:03] * Colin[pi] quit (Ping timeout: 246 seconds)
457: [12:12:00] * saiyan quit (Quit: Verlassend)
458: [12:19:48] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
459: [12:19:58] * UndefinedOffset has joined #silverstripe
460: [12:22:08] * Mathew has joined #silverstripe
461: [12:24:01] <Mathew> Hi all. I'm looking for a bit of help. I have created a 3 new tabs for a page, asked for 3 new tabs (which appear), and a HTML box on each. The tabs are there, but there's no HTML box, nor errors
462: [12:24:16] <Mathew> It's probably just me, but I'm a little bit stuck! http://pastebin.com/sccTD0VL
463: [12:25:25] * DanaeNZ has joined #silverstripe
464: [12:29:47] <Zauberfi1ch> Mathew: yeah, not sure if it can be classified as a bug
465: [12:29:56] <Zauberfi1ch> it just sucks that there is no warning
466: [12:30:03] <Zauberfi1ch> you are calling: $fields->addFieldToTab("Root.Column1", $Col1Content, "Content");
467: [12:30:08] * DanaeNZ quit (Ping timeout: 272 seconds)
468: [12:30:31] <Zauberfi1ch> with the third parameter "Content", which means "please put the new field before the field with the name content"
469: [12:30:46] <Zauberfi1ch> but you don't have a field "Content" in that tab, so silverstripe doesn't put it in
470: [12:30:54] <Zauberfi1ch> just remove the last parameter and it should work
471: [12:33:59] <Mathew> Ah!
472: [12:34:02] <Mathew> Thank you :)
473: [12:34:33] <zippy> also; $fields->addFieldToTab("Root.Column1", HTMLEditorField::create('Col1Content', 'Column 1 Content')->setRows(6));
474: [12:34:49] <zippy> if you use ::create you can then chain the ->setRows
475: [12:35:09] <Mathew> Well that would make life a bit easier :)
476: [12:35:12] <Mathew> Cheers
477: [12:36:33] * Tanger quit (Quit: sleep())
478: [12:38:55] * spronk has joined #silverstripe
479: [12:39:28] <zippy> spronk: o/ hopefully osx11 in 5hrs time eh
480: [12:39:34] <spronk> mm
481: [12:39:40] <spronk> cool cool cool
482: [12:39:51] <zippy> well, 4 hours 20 minutes and 13 seconds, but whos counting
483: [12:40:50] <zippy> oh, the apple stores are all 'be back soon' eh
484: [12:41:02] <zippy> wonder if anything new coming out except iphone
485: [12:41:45] * Mathew quit (Ping timeout: 246 seconds)
486: [12:42:09] * arnhoe has joined #silverstripe
487: [12:42:29] <zippy> mmm might not be tomorrow, might be a few weeks away yet... hm
488: [12:42:32] <zippy> we'll see
489: [12:42:43] * arnhoe quit (Client Quit)
490: [12:43:32] * willr quit (Quit: willr)
491: [13:01:21] * Pyaslgjivwmek quit (Ping timeout: 246 seconds)
492: [13:03:43] * Pyaghlnrnmbck has joined #silverstripe
493: [13:03:43] <ss-helper> Pyaghlnrnmbck: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
494: [13:09:53] <zippy> Pyaghlnrnmbck: lol you lovin that onjoin, every... single... day
495: [13:13:53] <swaiba> zippy he only has to _confirm_ to avoid it
496: [13:14:00] <swaiba> but what fun would that be for anyone :)
497: [13:23:53] <elgabbu__> hi there any way i could get a list of all data objects ?
498: [13:23:56] <Pyaghlnrnmbck> confirm?
499: [13:24:18] <Pyaghlnrnmbck> elgabbu__: ClassManifest
500: [13:24:20] <zippy> it wont message that nick again, even if he says nothing
501: [13:24:33] <Pyaghlnrnmbck> zippy: pfft, where's the fun in that
502: [13:24:41] <zippy> :)
503: [13:24:43] <Pyaghlnrnmbck> It makes me feel wanted man
504: [13:24:52] <Pyaghlnrnmbck> like an outlaw
505: [13:24:59] <zippy> if you change your nick (like usual) then you will get a message..
506: [13:25:05] <Pyaghlnrnmbck> I know
507: [13:25:16] <Pyaghlnrnmbck> It's areet, I leave soon
508: [13:25:40] <Pyaghlnrnmbck> and it's not like it messages me every 5 minutes or something
509: [13:25:47] <zippy> I could change that.....
510: [13:25:48] <zippy> :P
511: [13:25:53] <Pyaghlnrnmbck> You could
512: [13:25:54] <zippy> right im out, zzz
513: [13:26:03] <Pyaghlnrnmbck> gnite
514: [13:26:04] <zippy> o/
515: [13:26:07] <Pyaghlnrnmbck> \o
516: [13:26:09] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
517: [13:27:31] <elgabbu__> Pyaghlnrnmbck SS_ClassManifest you mean?
518: [13:27:51] <Pyaghlnrnmbck> something ike that, ya
519: [13:29:29] <kinglozzer> elgabbu__: ClassInfo::subclassesFor('DataObject')
520: [13:31:17] * EasyCo quit (Quit: Connection closed for inactivity)
521: [13:33:45] <elgabbu__> kinglozzer ... i went for $classManifest = new SS_ClassManifest(); $classes = $classManifest->getDescendantsOf('DataObject');
522: [13:34:54] <Pyaghlnrnmbck> yeah, what kinglozzer said.
523: [13:35:12] <Pyaghlnrnmbck> it's basically the same thing though I think
524: [13:35:14] <elgabbu__> ok looks like they give the same result
525: [13:35:24] <Pyaghlnrnmbck> one is probably a shortcut to the other
526: [13:35:31] <kinglozzer> elgabbu__: Use ClassInfo
527: [13:35:34] <elgabbu__> public static function subclassesFor($class) { $descendants = SS_ClassLoader::instance()->getManifest()->getDescendantsOf($class);
528: [13:35:49] <elgabbu__> will do
529: [13:36:03] <kinglozzer> If you construct your own ClassManifest instance, then you're loading the data from the manifest a second time when it's already available
530: [13:36:15] <kinglozzer> Micro-optimisations :D
531: [13:36:26] <elgabbu__> hehe fair enough :)
532: [13:39:08] <Pyaghlnrnmbck> I can feel my brain melting :<
533: [13:39:51] <elgabbu__> ok so next steps is to list all of the DB fields and fieldtypes of each class
534: [13:41:55] * cloph is now known as cloph_away
535: [13:54:44] <kinglozzer> elgabbu__: Just curious, why do you need to do that?
536: [14:03:47] * Audlex quit (Ping timeout: 264 seconds)
537: [14:14:51] * Pyaghlnrnmbck quit (Ping timeout: 246 seconds)
538: [14:15:09] * Audlex has joined #silverstripe
539: [14:26:30] * Audlex quit (Ping timeout: 240 seconds)
540: [14:38:07] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
541: [14:38:34] * Audlex has joined #silverstripe
542: [15:26:00] * lerni_ has joined #silverstripe
543: [15:29:25] <Zauberfi1ch> elgabbu__: didn't look through the whole chat log, but as Pyaghlnrnmbck pointed out, the manifest collects/contains that information
544: [15:29:50] <Zauberfi1ch> and the way to access it is via the class ClassInfo
545: [15:30:01] <Zauberfi1ch> eg: ClassInfo::subclassesFor('DataObject')
546: [15:30:26] <Zauberfi1ch> ah, fail, someone posted that already
547: [15:32:54] * spronk quit (Quit: I may need a longer sleep timer...)
548: [15:42:48] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
549: [15:43:44] * lerni_ quit ()
550: [15:58:48] * MarkGuinn quit (Ping timeout: 246 seconds)
551: [16:02:55] * the_sandman quit (Quit: My Mac has gone to sleep. ZZZzzz…)
552: [16:05:43] * swaiba quit (Remote host closed the connection)
553: [16:08:02] * mmkjay has joined #silverstripe
554: [16:08:36] <mmkjay> Hi, is there away to trigger a function for add() like there is write() ?
555: [16:08:58] <kinglozzer> mmkjay: I'm not sure what you're asking, do you mean an extension point?
556: [16:10:02] <mmkjay> kinglozzer: so when I do Zoo->animals()->add($animal) I want this to trigger an onAfterWrite()
557: [16:10:23] <kinglozzer> mmkjay: That depends, is "animals" a many_many relation?
558: [16:10:29] <mmkjay> yes
559: [16:10:55] <kinglozzer> Okay, you'll need to override ManyManyList with Injector, I think I have a gist for it somewhere, 1 sec..
560: [16:11:31] <mmkjay> wicked
561: [16:12:43] <kinglozzer> mmkjay: https://gist.github.com/kinglozzer/d4c3aa80f7015a89d183
562: [16:12:49] <kinglozzer> That's what I've used in the past
563: [16:12:59] <kinglozzer> (there's no extension point in core atm, so that's the best you can do really)
564: [16:13:40] <mmkjay> Cheers! Will give it a go
565: [16:21:02] <mmkjay> kinglozzer: How do we run that? Do we create a function onManyManyAdd in our model?
566: [16:21:44] <kinglozzer> mmkjay: It's an extension point, so you add a onManyManyAdd method to an extension that you then apply to your model
567: [16:22:25] <kinglozzer> e.g. class MyModelExtension extends Extension { public function onManyManyAdd() { $this->owner->doStuff(); // "owner" is the DataObject } }
568: [16:22:38] <kinglozzer> Then in config.yml MyModel: extensions: MyModelExtension
569: [16:23:08] <kinglozzer> https://docs.silverstripe.org/en/3.1/developer_guides/extending/extensions/
570: [16:23:36] <kinglozzer> If you're really desperate or short of time, you could just change the ManyManyList class to call $item->whateverMethod();
571: [16:23:45] <kinglozzer> But extension points are reusable :)
572: [16:29:36] * mmkjay quit (Ping timeout: 246 seconds)
573: [16:30:07] * kinglozzer home tima
574: [16:30:12] <kinglozzer> s/a/e
575: [16:30:12] * kinglozzer quit ()
576: [16:32:55] * zlinux quit (Ping timeout: 252 seconds)
577: [16:41:27] * DimiStripe quit (Quit: DimiStripe)
578: [16:46:52] * cloph_away is now known as cloph
579: [16:56:35] * Copperis has joined #silverstripe
580: [16:59:10] * GioVdK quit (Ping timeout: 240 seconds)
581: [17:22:23] * zlinux has joined #silverstripe
582: [17:25:35] * Liquide has joined #silverstripe
583: [18:49:38] <samlander> i just created a brand new checkboxfield, in my template how do i check for null or unchecked?
584: [18:49:50] <samlander> <%if MyField == 'False' %> ?
585: [18:59:15] * Stomach has joined #silverstripe
586: [19:22:25] * Nafetsch has joined #silverstripe
587: [19:22:31] <Nafetsch> hi guys
588: [19:22:42] <Nafetsch> I have a nice bug
589: [19:22:51] <Nafetsch> I created a new template
590: [19:23:01] <Nafetsch> and i have 2 langueages in place
591: [19:23:10] <Nafetsch> and the second language shows the old tempalte
592: [19:23:20] <Nafetsch> i change it in settings and in config
593: [19:23:26] <Nafetsch> and it won´t change
594: [19:23:32] <Nafetsch> just on the main language
595: [19:23:41] <Nafetsch> do you have a hint for me?
596: [19:26:04] * nathanz quit (Quit: Leaving.)
597: [19:33:06] * Stomach quit (Quit: zzz)
598: [19:35:04] * Colin[pi] has joined #silverstripe
599: [19:39:35] * zlinux quit (Ping timeout: 250 seconds)
600: [19:41:42] <wmk> Nafetsch, hmm, sounds weird.
601: [19:41:46] <wmk> did you flush?
602: [19:41:48] * gelignite has joined #silverstripe
603: [19:41:52] <Nafetsch> yes
604: [19:41:53] <wmk> any caching? dev or live mode?
605: [19:41:55] <Nafetsch> flush=1
606: [19:41:57] <Nafetsch> fush=all
607: [19:42:07] <wmk> dev mode?
608: [19:42:08] <Nafetsch> I look at the database at themoment
609: [19:42:21] <Nafetsch> also I switch to dev moe
610: [19:42:33] <Nafetsch> the DB sais that the old theme is in place
611: [19:42:39] <wmk> dev moe (sounds like a cool bar for developers?)
612: [19:42:47] <wmk> translatable?
613: [19:43:01] <wmk> ah, different themes?
614: [19:43:11] <Nafetsch> yes
615: [19:43:11] <wmk> or just updated template?
616: [19:43:21] <Nafetsch> I have 2 themes in place
617: [19:43:26] <Nafetsch> and 2 languages
618: [19:43:31] <wmk> so you might set your theme in translated site config?
619: [19:43:34] <Nafetsch> and I want to switch the theme
620: [19:43:42] <Nafetsch> how to do that
621: [19:43:48] <wmk> yup. goto site config (settings) on the left menu in admin
622: [19:44:09] * wmk always uses "default" there and sets the theme in config.yml
623: [19:44:49] * Copperis quit (Quit: Leaving)
624: [19:45:05] <Nafetsch> Ok
625: [19:45:10] <Nafetsch> thank you very much !
626: [19:46:56] <wmk> got it Nafetsch ?
627: [19:47:02] <Nafetsch> yes
628: [19:47:04] <Nafetsch> thank you
629: [19:47:11] <Nafetsch> works now
630: [19:47:13] <wmk> zachfeddisch...
631: [19:47:18] <Nafetsch> hehe
632: [19:47:28] <wmk> you also know the bastel brothers?
633: [19:47:34] <Nafetsch> nope
634: [19:47:37] <wmk> mom
635: [19:48:10] <wmk> Nafetsch, https://www.youtube.com/watch?v=o_ckBfgIwM4
636: [19:50:42] <Nafetsch> :)
637: [19:50:44] <Nafetsch> hhaha
638: [19:50:53] <wmk> the last one is the best!
639: [19:52:54] <Nafetsch> yes
640: [19:52:57] <Nafetsch> ok. thx mate
641: [19:52:59] <Nafetsch> again
642: [19:53:02] <Nafetsch> I am off
643: [19:53:07] * Nafetsch quit ()
644: [19:57:42] * muskie9 has joined #silverstripe
645: [20:01:56] * Phlunk3 has joined #silverstripe
646: [20:03:44] * wmk quit (Quit: nice to meet you ;))
647: [20:11:58] * Stomach has joined #silverstripe
648: [20:18:31] * nathanz has joined #silverstripe
649: [20:32:47] * Olliepop has joined #silverstripe
650: [20:39:22] * UndefinedOffset quit (Quit: Leaving.)
651: [20:52:57] * Stomach quit (Quit: zzz)
652: [20:53:50] * helenclarko has joined #silverstripe
653: [20:54:07] * Stomach has joined #silverstripe
654: [20:54:13] <helenclarko> Morning 0/
655: [21:04:21] * Olliepop quit (Ping timeout: 246 seconds)
656: [21:07:13] * micmania1 has joined #silverstripe
657: [21:09:20] * Hailwood has joined #silverstripe
658: [21:24:22] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
659: [21:28:40] * zippy has joined #silverstripe
660: [21:29:35] * DanaeNZ has joined #silverstripe
661: [21:34:03] * DanaeNZ quit (Ping timeout: 265 seconds)
662: [21:35:20] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
663: [21:36:12] <Stomach> hey helenclarko \o
664: [21:42:49] <zippy> morning
665: [21:44:18] * DanaeNZ has joined #silverstripe
666: [21:49:02] <zippy> any php storm users? https://twitter.com/PhpStormTips
667: [21:49:08] <zippy> some good ones on there, like CMD+E
668: [21:49:29] <zippy> and CMD+Shift+N - often I need just a scratch area
669: [21:49:51] * AshKyd quit (Ping timeout: 246 seconds)
670: [21:51:46] * AshKyd has joined #silverstripe
671: [21:52:17] * DanaeNZ sips coffee
672: [21:54:03] <zippy> DanaeNZ: so filling Ryans shoes nicely then?
673: [21:54:56] <DanaeNZ> lol Ryan hates coffee
674: [21:54:58] <DanaeNZ> he's weird
675: [21:55:07] <DanaeNZ> he drinks green tea + milk
676: [21:55:24] <zippy> O.o
677: [22:04:34] * Stomach quit (Quit: zzz)
678: [22:08:21] * Stomach has joined #silverstripe
679: [22:09:06] <Colin[pi]> DanaeNZ: he drinks green tea + milk
680: [22:09:08] <Colin[pi]> ^ wat
681: [22:09:55] * chocolatemoose has joined #silverstripe
682: [22:10:39] <DanaeNZ> i know
683: [22:10:47] <DanaeNZ> so in ways I am an improvement
684: [22:11:08] * chocolatemoose quit (Client Quit)
685: [22:11:26] * chocolatemoose has joined #silverstripe
686: [22:11:31] <Colin[pi]> DanaeNZ: on Ryan? yes
687: [22:11:32] <Colin[pi]> ;P
688: [22:12:41] <DanaeNZ> hahahaha
689: [22:14:30] * micmania1 quit (Quit: micmania1)
690: [22:16:49] * micmania1 has joined #silverstripe
691: [22:23:34] <DanaeNZ> aw yiss party party this saturday
692: [22:23:53] * DanaeNZ is finally embracing her youth while she can
693: [22:24:53] <Colin[pi]> DanaeNZ: embrace it while you can, the biggest party of the year for me soon will be when I get a prostate exam
694: [22:25:05] <DanaeNZ> lawd XD
695: [22:25:31] <DanaeNZ> I want a sunday tho...
696: [22:25:39] <DanaeNZ> so conflicted
697: [22:27:19] <Colin[pi]> why sunday?
698: [22:27:22] <Colin[pi]> oh
699: [22:27:24] <Colin[pi]> I see
700: [22:27:24] <Colin[pi]> :P
701: [22:27:28] <DanaeNZ> XD
702: [22:27:33] * Colin[pi] blushes
703: [22:31:05] <zippy> :)
704: [22:33:22] <Colin[pi]> whats the part of SS that shows the little status message popup in the cms?
705: [22:33:29] <Colin[pi]> (and how can I make my own?)
706: [22:40:26] <DanaeNZ> AFAIK it's just how it throws exceptions
707: [22:40:49] <DanaeNZ> maybe try throwing an exception and seeing what happens
708: [22:41:51] <Colin[pi]> k, found it as well statusMessage()
709: [22:44:35] <Stomach> zippy - that scratch area is fucking handy
710: [22:45:00] <zippy> yeap. I would always open another editor like sublime to paste and format some stuff
711: [22:48:24] <Stomach> yeah I just copied over some stuff
712: [22:48:29] <Stomach> in a template
713: [22:48:31] <Stomach> like right then
714: [22:48:33] <Stomach> :D
715: [22:50:05] <Colin[pi]> if I'm making an api wrapper class, should I use $api = singleton('DatAPIClass') ? What's the best pattern?
716: [22:50:44] <Colin[pi]> i.e. so I use the one api class for each r/r cycle
717: [22:50:45] <Stomach> singletons are bad mmmkay
718: [22:51:08] <Colin[pi]> Stomach: should I be all like: $api = DatAPIClass::get_instance() ?
719: [22:51:24] <Colin[pi]> or just new DatAPIClass()?
720: [22:52:58] <Stomach> use DI and inject the API into whereever you need it :D
721: [22:53:07] <Colin[pi]> Stomach: :o
722: [22:53:10] <Colin[pi]> example?
723: [22:54:18] <Stomach> would be similar to something like https://github.com/camspiers/silverstripe-loggerbridge
724: [22:54:49] <Colin[pi]> thx will have a browse
725: [22:55:14] <Stomach> or you could use a trait for the API which would be handier
726: [22:59:11] <Colin[pi]> Stomach: might go with the static instance method + return Injector::inst()->get( bla bla )
727: [22:59:16] <Colin[pi]> think that'll be ok for this case
728: [22:59:45] * EasyCo has joined #silverstripe
729: [23:00:50] * Stomach quit (Quit: zzz)
730: [23:03:46] * Stomach has joined #silverstripe
731: [23:03:46] <Stomach> :D
732: [23:08:54] * r_hector has joined #silverstripe
733: [23:11:52] * mahfuz has joined #silverstripe
734: [23:24:07] * torican quit (Remote host closed the connection)
735: [23:26:59] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
736: [23:27:45] * torican has joined #silverstripe
737: [23:41:44] * samlande has joined #silverstripe
738: [23:43:23] * samlander quit (Ping timeout: 264 seconds)
739: [23:49:03] * Stomach quit (Quit: zzz)
740: [23:52:47] * Azure|dc has joined #silverstripe
741: [23:56:12] * Azure quit (Ping timeout: 264 seconds)
742: [23:57:25] * spronk has joined #silverstripe
743: [23:58:30] * spronk quit (Max SendQ exceeded)
744: [23:59:09] * torican quit (Ping timeout: 250 seconds)
745: [23:59:49] * torican has joined #silverstripe

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