#silverstripe IRC Log

IRC log for 29 March 2015

All timestamps are in UTC.

1: [00:27:20] * Stomach has joined #silverstripe
2: [00:35:02] * Stomach quit (Quit: zzz)
3: [00:55:09] * o3d has joined #silverstripe
4: [00:58:42] * o3d quit (Remote host closed the connection)
5: [01:25:05] * Stomach has joined #silverstripe
6: [01:30:56] * Stomach quit (Quit: zzz)
7: [01:35:17] * nontgor quit (Ping timeout: 248 seconds)
8: [01:48:09] * nontgor has joined #silverstripe
9: [01:53:45] * JamieT has joined #silverstripe
10: [01:55:04] <JamieT> hello, has anyone ever created a custom search form (with combined search parameters)? I've been trying and i'm stuck and i'm not sure why
11: [02:02:04] * cloph quit (Remote host closed the connection)
12: [02:02:16] * cloph_away has joined #silverstripe
13: [02:19:05] * Stomach has joined #silverstripe
14: [02:22:56] * Stomach quit (Client Quit)
15: [03:04:45] * Stomach has joined #silverstripe
16: [03:07:02] * nontgor quit (Remote host closed the connection)
17: [03:07:19] * Stomach quit (Client Quit)
18: [04:36:03] * Error404NotFound quit (Ping timeout: 265 seconds)
19: [04:36:07] * Stomach has joined #silverstripe
20: [05:00:02] * Stomach quit (Quit: zzz)
21: [05:34:41] * Stomach has joined #silverstripe
22: [05:41:17] * Stomach quit (Quit: zzz)
23: [05:41:35] * mobiusnz has joined #silverstripe
24: [05:47:05] * mobiusnz quit (Quit: Leaving.)
25: [06:08:23] * Stomach has joined #silverstripe
26: [06:14:41] * Stomach quit (Quit: zzz)
27: [06:20:40] * Stomach has joined #silverstripe
28: [06:26:27] * Stomach quit (Quit: zzz)
29: [06:32:25] * Stomach has joined #silverstripe
30: [06:51:14] * Stomach quit (Quit: zzz)
31: [06:51:48] * gordon has joined #silverstripe
32: [06:51:52] * gordon is now known as nontgor
33: [06:53:28] * JamieT quit (Ping timeout: 246 seconds)
34: [06:55:47] * r_hector has joined #silverstripe
35: [06:57:52] * Stomach has joined #silverstripe
36: [07:08:10] * Stomach quit (Quit: zzz)
37: [07:16:08] * Stomach has joined #silverstripe
38: [07:38:08] * Stomach quit (Quit: zzz)
39: [07:42:11] * benjhocking has joined #silverstripe
40: [07:53:29] * Stomach has joined #silverstripe
41: [07:54:50] * tmro quit (Max SendQ exceeded)
42: [07:57:21] * tmro has joined #silverstripe
43: [07:59:24] * Stomach quit (Quit: zzz)
44: [08:05:00] * nontgor quit (Ping timeout: 252 seconds)
45: [08:13:48] * Stomach has joined #silverstripe
46: [08:18:02] * nontgor has joined #silverstripe
47: [08:20:18] * Stomach quit (Quit: zzz)
48: [08:22:20] * r_hector quit (Quit: Leaving.)
49: [09:04:29] * nontgor quit (Ping timeout: 250 seconds)
50: [09:18:41] * Stomach has joined #silverstripe
51: [09:25:12] * Stomach quit (Quit: zzz)
52: [09:33:43] * Stomach has joined #silverstripe
53: [09:34:17] * Stomach quit (Client Quit)
54: [09:34:44] * wmk has joined #silverstripe
55: [10:02:11] * Liquide quit ()
56: [10:11:25] * Stomach has joined #silverstripe
57: [10:13:38] * wmk quit (Ping timeout: 250 seconds)
58: [10:26:50] * Stomach quit (Quit: zzz)
59: [10:43:51] * gelignite has joined #silverstripe
60: [10:55:11] * zfmf has joined #silverstripe
61: [11:13:33] * Pyromanik has joined #silverstripe
62: [11:14:23] * Pyromanik quit (Client Quit)
63: [11:45:52] * zfmf quit ()
64: [11:56:00] * tmro quit (Max SendQ exceeded)
65: [12:11:18] * tmro has joined #silverstripe
66: [13:04:29] * Shrike_Finland has joined #silverstripe
67: [13:21:28] * benjhocking quit (Read error: Connection reset by peer)
68: [13:22:38] * benjhocking has joined #silverstripe
69: [13:25:38] * gordon__ has joined #silverstripe
70: [13:25:44] * gordon__ is now known as nontgor
71: [13:26:03] * nupnups quit (Quit: brb)
72: [13:30:40] * bruce_lee has joined #silverstripe
73: [13:41:15] * ocmnt has joined #silverstripe
74: [13:41:24] <ocmnt> ´lo
75: [13:53:57] * bruce_lee has left #silverstripe
76: [14:24:13] * Liquide has joined #silverstripe
77: [14:48:27] * Azure quit (Quit: My MBP went to sleep.)
78: [15:01:34] * Shrike_Finland quit (Quit: Leaving.)
79: [15:03:52] * Azure has joined #silverstripe
80: [15:20:47] * Shrike_Finland has joined #silverstripe
81: [15:25:23] * Shrike_Finland1 has joined #silverstripe
82: [15:26:29] * Shrike_Finland quit (Ping timeout: 245 seconds)
83: [15:59:31] * benjhocking quit (Read error: Connection reset by peer)
84: [17:02:16] * Shrike_Finland1 quit (Quit: Leaving.)
85: [17:15:52] <ss-helper> How to use Controller::handleRequest() correctly - http://www.silverstripe.org/community/forums/general-questions/show/101429
86: [17:23:07] * benjhocking has joined #silverstripe
87: [17:33:44] * Azure quit (Ping timeout: 265 seconds)
88: [17:38:07] * Azure has joined #silverstripe
89: [18:04:04] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
90: [18:21:01] * Shrike_Finland has joined #silverstripe
91: [18:50:00] * mobiusnz has joined #silverstripe
92: [19:03:16] * mobiusnz quit (Quit: Leaving.)
93: [19:11:59] * Stomach has joined #silverstripe
94: [19:31:22] * mobiusnz has joined #silverstripe
95: [19:49:19] * Stomach quit (Read error: Connection reset by peer)
96: [19:51:54] * Stomach has joined #silverstripe
97: [20:05:16] * wmk has joined #silverstripe
98: [20:06:17] * Ryan-Toast has joined #silverstripe
99: [20:14:38] * Hailwood has joined #silverstripe
100: [20:17:22] * novaweb has joined #silverstripe
101: [20:18:12] * Stomach quit (Quit: zzz)
102: [20:28:41] * UncleCheese has joined #silverstripe
103: [20:41:46] * Stomach has joined #silverstripe
104: [20:46:28] <ss-helper> Change a image in the Theme through CMS - http://www.silverstripe.org/community/forums/template-questions/show/101430
105: [20:57:59] <Hailwood> When running sake /dev/build is it possible to get it to output something at the start to say "hey I'm actually doing something here!"
106: [21:09:37] * mahfuz has joined #silverstripe
107: [21:28:19] <Ryan-Toast> Mmm, sorted all my icons.
108: [21:28:24] <Ryan-Toast> omnomnom
109: [21:46:13] <Ryan-Toast> Did everyone take today off for bereavement leave or something?
110: [21:47:57] <adrexia> did something happen?
111: [21:54:34] * wmk quit (Ping timeout: 255 seconds)
112: [21:59:02] <MichalKleiner> hola
113: [21:59:13] <MichalKleiner> kinda quiet Monday
114: [22:07:58] * Colin[pi] has joined #silverstripe
115: [22:09:45] <Hailwood> Is there any way to do batch writes in SS? e.g. something like create a bunch of DataObjects, add them to an SS_List and then call ->write() on the list?
116: [22:09:51] <Ryan-Toast> Yeah, everyone took Monday off.
117: [22:10:00] <Hailwood> Why?
118: [22:10:09] <Ryan-Toast> Cricket last night.
119: [22:10:20] <Hailwood> Aha that makes sense. I don't watch cricket
120: [22:10:35] <Colin[pi]> morning all o/
121: [22:10:37] <Colin[pi]> condolences NZers
122: [22:10:55] <Ryan-Toast> We’re still happy with the tournament. The boys did well. A shame about the final though.
123: [22:11:33] <Colin[pi]> they did extremely well
124: [22:11:54] <Stomach> Hailwood - no batch write, just loop and write
125: [22:11:56] <Ryan-Toast> but yeah, dem ducks.
126: [22:12:27] <Hailwood> Stomach, Damn, If I wrote the method I described above as a pull request to SS_List think it would get accepted?
127: [22:12:28] <Ryan-Toast> I think my cms theme is perfect for what it is.
128: [22:13:10] <Stomach> Hailwood - I don't think so, but worth a try :)
129: [22:15:02] <Ryan-Toast> so pretty http://i.imgur.com/ncFTsRs.png
130: [22:16:27] <Colin[pi]> Ryan-Toast: svg icons?
131: [22:16:36] <Ryan-Toast> not yet
132: [22:16:44] <ss-helper> Best way to make a module extend from custom page type - http://www.silverstripe.org/community/forums/customising-the-cms/show/101431
133: [22:19:45] <Ryan-Toast> Someone answer that “Have better architecture”
134: [22:19:59] <Colin[pi]> Ryan-Toast: looks good, though the gradient buttons look a bit out of place, gonna skin them too?
135: [22:20:05] <Ryan-Toast> Nah
136: [22:20:09] <Colin[pi]> cbf?
137: [22:20:10] <Colin[pi]> :D
138: [22:20:18] <Ryan-Toast> I will when I can be fucked sorting the icons
139: [22:20:23] <Colin[pi]> lol
140: [22:20:31] <Ryan-Toast> They’re all implemented so backwards.
141: [22:29:12] <adrexia> that does appear to be the case
142: [22:29:17] <Ryan-Toast> adrexia: yup.
143: [22:29:22] <adrexia> I wonder why they chose to do it that way
144: [22:29:36] <Ryan-Toast> “How can I use OOP by using spaghetti code instead.”
145: [22:30:12] <adrexia> I'm just unsure why they didn't put functionality meant for all pages in page.php
146: [22:30:28] <adrexia> if in fact it is meant for all pages
147: [22:31:05] <Colin[pi]> adrexia: link? think I missed the lead up conversation
148: [22:31:16] <adrexia> <ss-helper> Best way to make a module extend from custom page type - http://www.silverstripe.org/community/forums/customising-the-cms/show/101431
149: [22:31:31] <Colin[pi]> k thx
150: [22:31:34] * spronk2 has joined #silverstripe
151: [22:31:51] <adrexia> cut/paste it all back into page.php
152: [22:31:56] <Colin[pi]> ahh I see
153: [22:32:08] <adrexia> or rename custompage to page
154: [22:32:16] <adrexia> :D
155: [22:33:15] <Colin[pi]> in my stuff, I made a "BasePage" class which extends SiteTree
156: [22:33:19] <adrexia> there is a case for having most things extend something that extends page.
157: [22:33:25] <Colin[pi]> and my Page class extends BasePage
158: [22:33:32] <adrexia> Colin[pi], that's what cwp does too
159: [22:33:41] <Colin[pi]> mm
160: [22:33:47] <adrexia> its a good modal I think
161: [22:33:49] <Colin[pi]> just put everything for all pages in basepage
162: [22:33:59] <Colin[pi]> and then any other module can use it that extends page
163: [22:34:32] <Colin[pi]> seems to work pretty well
164: [22:34:39] <adrexia> and it can be flexible enough to drop into most projects when you find you are doing the same thing everytime
165: [22:35:43] <adrexia> it's interesting that a lot of modules appear to rely on the existence of page.php though
166: [22:36:24] <Colin[pi]> adrexia: well I guess it's assumed since it's part of the standard mysite code folder
167: [22:36:52] <adrexia> if you use the installer, yes
168: [22:37:13] <adrexia> its not a wild assumption though
169: [22:37:14] <adrexia> :)
170: [22:37:23] <adrexia> and you do have to make some sort of choice
171: [22:37:45] <Colin[pi]> oh its not there if you don't use the installer?
172: [22:37:53] <Colin[pi]> I thought it was
173: [22:38:00] <adrexia> the whole mysite folder comes with the installer, yeah
174: [22:38:04] <Colin[pi]> oic
175: [22:38:07] <Colin[pi]> hmm
176: [22:38:17] <adrexia> https://github.com/silverstripe/silverstripe-installer
177: [22:38:45] <adrexia> though I guess most who don't use the installer know enough that they tend to use page.php if they are using pages
178: [22:38:53] <Colin[pi]> the tutorials still focus on having a Page class though, right?
179: [22:39:01] <adrexia> yep - it is standard
180: [22:39:28] <adrexia> going away from the standard should always be a conscious choice
181: [22:39:35] <Colin[pi]> mm since I did the first tutorial I always assumed every SS site has a Page class
182: [22:39:41] <adrexia> :D
183: [22:39:59] <adrexia> not all ss sites have pages
184: [22:40:08] <adrexia> but yes - 99% of the time that is the case
185: [22:43:10] <Stomach> screw putting things into page class
186: [22:43:19] <Stomach> most of the stuff I use is for front end display
187: [22:43:26] <Stomach> so templateglobalhelpers everywhere
188: [22:43:49] <adrexia> yep :D
189: [22:45:20] <adrexia> ...which the tutorials don't make any mention of
190: [22:48:39] <Stomach> yeah I only found them a couple of years ago
191: [22:48:43] <Stomach> was like "OH WOW"
192: [22:49:10] <Colin[pi]> should I know what they are? because I don't think I do :P
193: [22:54:49] <Ryan-Toast> template global helpers?
194: [22:54:55] <Colin[pi]> yeah
195: [22:55:06] <Ryan-Toast> I was asking what they were :P
196: [22:57:16] <Ryan-Toast> What are they, based Stomach?
197: [22:57:53] <Stomach> https://github.com/heyday/silverstripe-templatehelpers/blob/master/code/TemplateHelpers.php
198: [22:57:57] <Stomach> thats a good example
199: [22:58:38] <Ryan-Toast> Stomach: ah, right.
200: [22:58:41] <Hailwood> Hey does anyone know the easiest way to ->filter() to only objects created today?
201: [22:59:33] <Colin[pi]> Stomach: so classes that add additional functionality to templates?
202: [22:59:37] <Ryan-Toast> Does anyone who actually works for heyday come on IRC?
203: [22:59:47] <Stomach> Colin[pi] - yes
204: [22:59:53] <Stomach> Ryan-Toast - yeah
205: [22:59:56] <Ryan-Toast> Stomach: Who?
206: [22:59:59] <Stomach> stecman, glenn-bautista
207: [23:00:08] <Ryan-Toast> Ah, cool.
208: [23:01:20] <Hailwood> Would ->filter(['Created:StartsWith' => Date('Y-m-d')]) be the most efficient - or does ss have something specific for querying date columns?
209: [23:02:38] * shellbackpacific has joined #silverstripe
210: [23:02:57] <Ryan-Toast> Hailwood ->sort(‘Date’)?
211: [23:03:10] <Ryan-Toast> well, ’Created’
212: [23:03:24] <Ryan-Toast> wait
213: [23:03:24] <Ryan-Toast> nvm
214: [23:03:32] <Ryan-Toast> hungover brain reading the wrong things
215: [23:03:32] * shellbackpacific has left #silverstripe
216: [23:04:48] <Hailwood> Ryan-Toast, Yeah, sorting is the easy part, from what I can see SS doesn't have any magic 'SomeDateTimeColumn:Date' or 'SomeDateTimeColumn:Time' which would be pretty cool, so StartsWith and EndsWith seem to be the best alternative.
217: [23:06:37] <Ryan-Toast> Need to tell my designers to stop using so many typefaces. Getting annoying to implement.
218: [23:09:19] <Colin[pi]> Ryan-Toast: dat performance hit
219: [23:09:35] <Ryan-Toast> Colin[pi]: Dat annoying to implement as an optionin the cms hit.
220: [23:09:42] <Colin[pi]> heh
221: [23:09:59] <Colin[pi]> "use all the typefaces"
222: [23:10:30] <Ryan-Toast> “Use all the typefaces in one spot only"
223: [23:20:01] <ss-helper> Silverstripe - Best way to make a module extend from custom page type - http://stackoverflow.com/questions/29336079/silverstripe-best-way-to-make-a-module-extend-from-custom-page-type
224: [23:28:48] <adrexia> anyone used this before? It looks almost too nice. ;) http://quilljs.com/
225: [23:29:34] <Colin[pi]> it's responsive
226: [23:29:37] * Colin[pi] oohs and ahhs
227: [23:29:59] * shellbackpacific has joined #silverstripe
228: [23:30:09] <adrexia> yep - that's what got me too!
229: [23:30:19] <adrexia> ...and really _nicely_ responsive
230: [23:30:52] <adrexia> and does multiple cursor points (of course allowign multiple edits would be a bit more complex from a BE perspective, but I like that the frontend supports it)
231: [23:31:09] <adrexia> http://quilljs.com/docs/modules/multi-cursors/
232: [23:31:32] <Colin[pi]> adrexia: almost looks like the one they demoed at the conference I went to the other week, except it was commercial: http://textbox.io/demo/
233: [23:31:38] * shellbackpacific quit (Client Quit)
234: [23:31:52] <adrexia> oh yeah - this one is BSD-3 clause
235: [23:31:56] <ss-helper> Re: Best way to make a module extend from custom page type - http://www.silverstripe.org/community/forums/customising-the-cms/show/101431#post400924
236: [23:31:56] <ss-helper> Re: Best way to make a module extend from custom page type - http://www.silverstripe.org/community/forums/customising-the-cms/show/101431#post400923
237: [23:32:07] <adrexia> so actually usable in the silverstripe ecosystem :)
238: [23:32:13] <Colin[pi]> go home ss-helper, you're drunk
239: [23:32:19] <adrexia> hahah
240: [23:32:19] <Colin[pi]> adrexia: !!!!
241: [23:32:56] <Colin[pi]> adrexia: responsive cms + editor in SS would be so sexy
242: [23:33:04] <adrexia> it really would be
243: [23:33:30] <adrexia> oh, and its thanks to these people apparently: http://www.salesforce.com/au/?ir=1 They made it and open sourced it
244: [23:33:59] <Colin[pi]> ima bookmark that because it looks worthy of some further experimentation
245: [23:34:24] <adrexia> which is really not what I would have expected from a sales company ;)
246: [23:34:32] <adrexia> yeah - me too
247: [23:35:11] <Colin[pi]> the textbox presentation was quite impressive, but yeah, not free
248: [23:35:44] <adrexia> not free just doesn't work for me.
249: [23:36:14] <adrexia> I am willing to pay for stuff, but usually I'm not allowed ;)
250: [23:36:29] <adrexia> and it limits what I can do with the thing I make if I use non-free components
251: [23:36:56] <Colin[pi]> I mainly just want tinymce to die in a fire
252: [23:37:13] <adrexia> so,perhaps, fine for a specific client's frontend use, but not so useful for cms stuff
253: [23:37:16] <adrexia> me too!
254: [23:37:17] <adrexia> ;)
255: [23:37:27] <Colin[pi]> mm]
256: [23:37:44] <adrexia> though, I have found templates and shortcodes really useful when tehy have been needed... it's still very very rare
257: [23:37:52] <Colin[pi]> wasn't someone working on integrating ckeditor with the SS CMS?
258: [23:37:56] <adrexia> and there must be a better way
259: [23:38:04] <adrexia> apaprently that has been done
260: [23:38:10] <adrexia> I'm not fond of that eitehr though
261: [23:38:30] <Colin[pi]> mm I had some bad experiences back when it was called the very aptly named FCKeditor
262: [23:38:31] <adrexia> I like lightweight responsive editors
263: [23:38:36] <adrexia> lol
264: [23:38:52] <adrexia> Drupal projects tend to use it a lot
265: [23:39:01] <adrexia> I am usually quite underwhelmed
266: [23:40:12] <Colin[pi]> adrexia: fckeditor back in the day had a rather nasty file upload exploit which allowed rootkits to be uploaded to our server :(
267: [23:40:17] <Colin[pi]> it wasn't pretty
268: [23:41:17] <adrexia> erg
269: [23:41:18] <adrexia> :-/
270: [23:41:57] <Colin[pi]> adrexia: resulted in a rather high profile site appearing in the zdnet news (this was the old company I worked for)
271: [23:42:00] <Colin[pi]> was not a good day
272: [23:42:10] <adrexia> :-/
273: [23:42:42] <Colin[pi]> they were nice about it, but yeah, we lost that client (lol)
274: [23:56:08] * Sticks has joined #silverstripe

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