#silverstripe IRC Log

IRC log for 4 September 2014

All timestamps are in UTC.

1: [00:05:11] <hailwood> Hey guys, when using the subsites module we want to have basically an umbrella site, and then two sub sites, on the umbrella site we want the search to search the umbrella and the sub sites, on the sub sites we want it to search only the subsites content - any docs on this?
2: [00:09:45] * superspring_ has joined #silverstripe
3: [00:11:20] * Anselm_ has joined #silverstripe
4: [00:11:22] * shellbackpacific has joined #silverstripe
5: [00:12:14] * Anselm quit (Ping timeout: 255 seconds)
6: [00:12:16] * superspring quit (Ping timeout: 255 seconds)
7: [00:12:17] * eagles0513875 quit (Ping timeout: 255 seconds)
8: [00:16:32] <Colin[pi]> hailwood: yes, look under 'M' for Masochist's Handbook
9: [00:26:06] * eagles0513875 has joined #silverstripe
10: [00:31:15] * micmania1 quit (Quit: micmania1)
11: [00:33:57] <hailwood> SO I take that I should file it as "Not gonna be easy". What is the default when using the subsites module? will the search just search all sites?
12: [00:36:44] <simon_w|work> Search will just search the current subsite
13: [00:37:15] <simon_w|work> You'll need to override wherever's doing the search to disable the subsite filter, run the search, then re-enable it
14: [00:37:46] <hailwood> Sweet, well that's easier than I was anticipating anyway
15: [00:48:51] * shellbackpacific quit (Quit: Leaving.)
16: [00:50:20] * shellbackpacific has joined #silverstripe
17: [00:50:31] * shellbackpacific quit (Client Quit)
18: [00:55:48] <Stomach> anyone ever had problems with nested gridfields not recognising which record they are editing
19: [00:56:04] <Stomach> $this->record is returning null on the 3rd level of gridfield :\
20: [01:05:30] <UncleCheese> only at the third level?
21: [01:08:00] <spronk> can someone say something in like 5 seconds? trying to track down a sound..
22: [01:08:16] <Kingy> kjh'
23: [01:08:24] <spronk> damnit
24: [01:08:26] <spronk> (thx)
25: [01:08:27] <spronk> not hexchat..
26: [01:13:24] * oddnoc quit (Quit: oddnoc)
27: [01:18:39] * shellbackpacific has joined #silverstripe
28: [01:18:57] <Colin[pi]> spronk: lol I hate it when that happens
29: [01:19:09] <spronk> its showing as "system sounds"
30: [01:19:17] <spronk> random keyboard typing sound
31: [01:21:05] <Stomach> UncleCheese - worked it out, its because the items were versioned and it was attempting to get the live versions when they didnt exist
32: [01:21:15] <UncleCheese> ah, yeah
33: [01:22:57] <adrexia> <Stomach> yes, I have had similar issues, but only for gridfields attached to pages. Can't remember why ore what fixed it, unfortunately
34: [01:23:08] <adrexia> *or
35: [01:23:45] <adrexia> ahh, right :)
36: [01:24:36] <adrexia> my issues were with versioned things too
37: [01:24:53] <Stomach> adrexia - yeah I just added a versioned::reading_stage before the gridfield call
38: [01:25:00] <Stomach> its really odd though as its working in other situations
39: [01:25:06] <Stomach> with other versioned objects
40: [01:25:08] <Stomach> the mind boggles
41: [01:27:04] <simon_w|work> Are those other situations going through CMSMain instead of ModelAdmin?
42: [01:27:10] * superspring_ is now known as superspring
43: [01:27:38] <Stomach> they are all going through modeladmin
44: [01:28:20] <Stomach> but this one is attached to a versioned object, so the handler might actually be CMSMain instead of ModelAdmin once you get into it
45: [01:28:25] * micmania1 has joined #silverstripe
46: [01:39:09] <Kingy> Off to the North of Palmerston today. Hope the Men of the Nights Watch let me through the Wall #bighouseofcardsfan
47: [01:39:19] <Kingy> I lol'd
48: [01:40:52] <UncleCheese> Palmerston North.. spend a month there one night
49: [01:48:52] * joelpittet has joined #silverstripe
50: [01:49:34] * joelpittet quit (Client Quit)
51: [01:55:34] <Colin[pi]> dat feel when you tweak things for 10 mins using firebug and then accidentally refresh
52: [01:58:13] <Ryan-Toast> Colin[pi]: http://i.imgur.com/J3dmLrK.gif
53: [01:58:29] <Colin[pi]> ROFL
54: [01:58:32] <Colin[pi]> that gif is great
55: [02:00:00] <Ryan-Toast> Colin[pi]: Alt: http://i.imgur.com/uudTwgd.gif
56: [02:00:13] <spronk> ughh
57: [02:00:16] <spronk> hate that Colin[pi]
58: [02:00:54] <adrexia> I want an irc client that renders gifs
59: [02:01:00] <spronk> oo
60: [02:01:02] <spronk> textual
61: [02:01:10] <Ryan-Toast> adrexia: I think simon_w has one
62: [02:01:14] <adrexia> have that on my mac
63: [02:01:20] <spronk> http://www.codeux.com/textual/
64: [02:01:22] <adrexia> have switched to xchat on linux
65: [02:01:34] <simon_w|work> And then I turned off image previews for #silverstripe
66: [02:01:35] <adrexia> because I found a version that lets me give it pretty colours
67: [02:01:47] <adrexia> hahahaha
68: [02:02:12] <spronk> hmm
69: [02:02:21] <spronk> i kinda want to build an irc client
70: [02:02:36] <adrexia> yeah, probably a good idea. else ss23 will licky dog spam
71: [02:02:50] <adrexia> spronk - me too
72: [02:02:58] <adrexia> I want flowdock but using IRC
73: [02:03:07] <spronk> yeah
74: [02:03:15] <Stomach> whats wrong with my home town Palmerston North
75: [02:03:20] <Stomach> its a great place to have come from
76: [02:03:22] <adrexia> so - the ability to have integrations from other services etc in a panel down the side
77: [02:03:28] <spronk> yeah
78: [02:03:33] * spronk was kinda thinking along those lines too
79: [02:03:36] <spronk> esp for freenode channels
80: [02:03:54] <adrexia> it would be an awesome development tool
81: [02:04:41] <adrexia> you can either have channel based things, like flowdock, or user based so individuals can add things they want to watch... or both
82: [02:20:47] * travis-ci has joined #silverstripe
83: [02:20:48] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3312 (3.1 - 9f3506b : Stig Lindqvist): The build passed.
84: [02:20:48] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5168fadbe052...9f3506bf0235
85: [02:20:48] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34352645
86: [02:20:48] * travis-ci has left #silverstripe
87: [02:21:51] <Ryan-Toast> How do I make renderWith use a root level template andnot one in /Layout ?
88: [02:22:09] <spronk> you ask it nicely
89: [02:24:25] <simon_w|work> Ryan-Toast, that's what it does by default
90: [02:24:46] <Ryan-Toast> simon_w|work: Is there a way to use root templates?
91: [02:25:02] <simon_w|work> Ryan-Toast, $thing->renderWith('NameOfTemplate')
92: [02:25:16] <simon_w|work> If you really want, you can pass in the full path instead
93: [02:30:50] <Ryan-Toast> simon_w|work: Say I have a model CustomPage, and I have a Layout for it CustomPage.ss, now if I just use things as normal that works fine, but if I use renderWith(‘CustomPage’) it will only use the layout file (as designed), how can I specify to renderWith a specific template, but still only pull it in as the $layout?
94: [02:35:28] <spronk> ohh
95: [02:35:31] * shellbackpacific quit (Quit: Leaving.)
96: [02:35:43] <spronk> array('CustomPageRoot', 'CustomPageLayout') ?
97: [02:36:09] <spronk> actually nvm
98: [02:36:14] <spronk> misread your thing
99: [02:36:28] <Ryan-Toast> spronk: nah that just tries for a template in order
100: [02:36:32] <spronk> yeah
101: [02:37:20] <spronk> so
102: [02:37:27] <spronk> you want the outer template?
103: [02:37:35] <spronk> but keep the standard layout template?
104: [02:37:46] <spronk> outer template to change*
105: [02:37:59] <Ryan-Toast> Layout to change, outer to stay the same
106: [02:38:04] <spronk> oh?
107: [02:38:17] <spronk> specifying the layout templatje should still work iirc
108: [02:38:52] <Ryan-Toast> So I could do something like if($layout == ‘grid’){render with CustomModel_Grid}
109: [02:39:18] <spronk> i havent used renderwith in ages, but i thought it looked for layout templates first?
110: [02:39:37] <spronk> then it'll use page.ss for the root template
111: [02:39:47] <Ryan-Toast> It doesn’t use a root template
112: [02:39:55] <Ryan-Toast> It finds the Layout template and uses that for the root
113: [02:42:15] <spronk> well
114: [02:42:27] <spronk> renderWith( string|array|SSViewer $template, array $customFields = null )
115: [02:42:29] <spronk> so.....
116: [02:42:41] <Stomach> I always just use $this->renderwith(array('CustomLayout', 'Page'));
117: [02:42:42] <spronk> renderWith(Outer, $this->renderWith(Layout)) ?
118: [02:43:00] <Ryan-Toast> spronk, I think I go it
119: [02:43:03] <Ryan-Toast> got**
120: [02:43:07] <spronk> how did?
121: [02:43:34] <Ryan-Toast> http://pastebin.com/E5qpRLbz
122: [02:45:53] <spronk> o_O
123: [02:45:54] <spronk> interesting..
124: [02:46:20] <Ryan-Toast> spronk: I’ll work up an example, give me 5
125: [02:48:32] <spronk> is this outisde a controller or is the controller part necessary for the template hook?
126: [02:48:45] <Stomach> if you're in an index function, then $this should already be that controller ? :S
127: [02:49:00] <spronk> well, unawell, unless its index() on SomeRandomClass :p
128: [02:50:07] <Ryan-Toast> Stomach: yeah, but you’re creating a new ClassName_Controller and populating it with $this
129: [02:50:11] <Ryan-Toast> for the render
130: [03:00:32] <Ryan-Toast> spronk: works pretty well: http://www.gfycat.com/ScaryAccurateEmu
131: [03:00:45] <spronk> nice
132: [03:01:14] <spronk> though
133: [03:01:17] <spronk> you could do that with just css
134: [03:01:20] <spronk> :P
135: [03:01:39] <Ryan-Toast> yes, but it’s nice being able to have seperated ytemplates run off one controller
136: [03:01:44] <spronk> mm
137: [03:02:18] <Ryan-Toast> especially if you want to add/remove certain things from a view, and you dson’t want to just hide them with css
138: [03:03:41] <Ryan-Toast> adrexia: I know you were interested in the code this morning: http://www.sspaste.com/paste/show/5407d1b55dc8f
139: [03:13:26] * r_hector has joined #silverstripe
140: [03:28:01] <adrexia> 21<Ryan-Toast>21 thanks :)
141: [03:28:14] <adrexia> has anyone done much with the registry module?
142: [03:28:41] <adrexia> is it limited to db fields? it doesn't seem to like has_one's or anything
143: [03:30:09] <Stomach> why not just use a model admin instead? o_O
144: [03:31:00] <adrexia> ....
145: [03:31:16] <adrexia> registry model is basically gridfields for the frontend
146: [03:31:28] <adrexia> they allow users to search data
147: [03:31:30] <adrexia> :)
148: [03:31:37] <adrexia> sort of cool actually
149: [03:31:56] <adrexia> c.f. http://www.msi.govt.nz/update-me/who-got-funded/Form
150: [03:32:47] <adrexia> and the cms part works fine with all sorts of dataobjects. But the frontend throws a spaz
151: [03:34:47] <adrexia> Gunna take that as a no ;)
152: [03:35:35] <Stomach> oh I just read the docs on it and it looked like it was a backend thing and I was like this is weird
153: [03:35:58] <adrexia> yeah - the only picture is off the backend intrerface
154: [03:36:11] <adrexia> don't worry - I think most people make the same assumption.
155: [03:36:24] <adrexia> it's a very powerful module and is not often used
156: [03:36:57] <Stomach> yeah, I'd never heard of it
157: [03:37:00] <Stomach> registry is an odd name
158: [03:37:09] <adrexia> I think so too.
159: [03:37:13] <Stomach> I thought it was going to be some sort of settings manager or something
160: [03:37:19] <adrexia> though, not sure what would work better
161: [03:37:28] <Stomach> silverstripe-dataobject-search
162: [03:37:29] <Stomach> ? :D
163: [03:37:30] <adrexia> I suppose its a register
164: [03:37:33] <adrexia> hahah
165: [03:37:45] <adrexia> that could be backend too
166: [03:38:58] <adrexia> it *is* basically frontend gridfields. In read only mode
167: [03:40:05] <adrexia> it also throws errors for things in summary_fields that are methods
168: [03:40:35] <adrexia> I think the solution might be to store the relation as plain text
169: [03:47:49] * Phlunk3 has joined #silverstripe
170: [03:47:50] * cloph_away has joined #silverstripe
171: [03:47:57] * cloph quit (Ping timeout: 240 seconds)
172: [03:52:26] * Kingy is now known as Kingy[a]
173: [03:54:18] <Stomach> man so many versioning problems today
174: [03:54:26] <Stomach> I've done something wrong somewhere earlier for sure
175: [03:54:30] <Stomach> but fuck knows where it is
176: [03:54:36] <Stomach> and why it hates me so much
177: [04:01:50] <Stomach> aaaaaand it was due to a bad build or something creating unwanted fields in the database
178: [04:02:08] <Stomach> I wish the ORM cleaned those up
179: [04:03:35] * Phlunk33 has joined #silverstripe
180: [04:04:16] <Ryan-Toast> Stomach: I hate when you typo a lowercase into your $db and build, then you have to drop the whole row.
181: [04:07:09] * Phlunk3 quit (Ping timeout: 264 seconds)
182: [04:08:15] <Stomach> yup, its a pain
183: [04:20:51] <Ryan-Toast> Oh typograpy, I wish you made sense
184: [04:26:15] * JeremyRoundill has joined #silverstripe
185: [04:26:44] <JeremyRoundill> Hello!
186: [04:26:49] <Stomach> hiya
187: [04:27:18] <JeremyRoundill> I'm having a bit of trouble with saving related DataObjects in SilverStripe.
188: [04:28:31] <JeremyRoundill> More specifically, I have a ProjectPage which has an Album which in turn has several AlbumImages. These are managed by a GridField in the ProjectPage. When I try to save the page, I get an error "Uncaught LogicException: byID can't be called on an UnsavedRelationList."
189: [04:28:52] <JeremyRoundill> The error makes sense. The Album hasn't been created yet, so it can't save AlbumImages against it.
190: [04:29:45] <JeremyRoundill> Sorry, the description there is a bit wrong. I get that error when I try to save an AlbumImage against the ProjectPage's Album.
191: [04:29:57] <JeremyRoundill> Any ideas?
192: [04:30:54] <Ryan-Toast> Post your code, man. Will be easier
193: [04:31:00] <JeremyRoundill> Sure
194: [04:31:58] <JeremyRoundill> ProjectPage: http://pastebin.com/5Cc2VsbE
195: [04:32:06] <JeremyRoundill> Album: http://pastebin.com/tpxDQ00U
196: [04:32:14] <JeremyRoundill> AlbumImage: http://pastebin.com/iQbsDubA
197: [04:33:33] <Ryan-Toast> Try this without the sortorder component: https://github.com/Rhym/ss_snippets#gridfield
198: [04:36:57] <JeremyRoundill> Same dealio.
199: [04:37:35] <Ryan-Toast> what are you doing when you get the error?
200: [04:38:33] <JeremyRoundill> I start on the ProductPage, click "Add Album Image" above the GridField, enter values for the AlbumImage and click save.
201: [04:39:46] <Ryan-Toast> JeremyRoundill: Don’t you need to create an albumnn first?
202: [04:40:15] <JeremyRoundill> Yeah, which is why the error makes sense.
203: [04:40:41] <Ryan-Toast> JeremyRoundill: The gridfield for images should be in the albumn, not the product page
204: [04:41:32] <JeremyRoundill> Hmm
205: [04:41:59] <JeremyRoundill> I'd like to be able to create an album on the fly.
206: [04:42:18] <JeremyRoundill> So ProjectPage <-> Album is a 1 to 1 relationship.
207: [04:43:11] <Ryan-Toast> you could have the albumn as a forgein key for the images so you can add them on the fly to your images
208: [04:43:38] <hailwood> Hey guys, I have return $pages = BlogEntry::get()->sort('date', 'desc')->limit($limit); - how do I alter this to only return published pages?
209: [04:44:29] <Ryan-Toast> hailwood: status => published
210: [04:44:42] <Ryan-Toast> in a filter
211: [04:45:43] <Ryan-Toast> I believe running filter() only returns puvblished pages in the first place
212: [04:45:59] <Ryan-Toast> so just add ->filter() to your query
213: [04:47:17] <JeremyRoundill> Doesn't having Album in my $has_one in AlbumImage create a foreign key?
214: [04:47:19] <hailwood> ->filter() throws incorrect number of arguments since it expects either one or two
215: [04:47:49] <JeremyRoundill> hailwood: ->filter(array('status' => 'published'))
216: [04:49:28] * jordanmk quit ()
217: [04:50:03] <hailwood> Yeah that's what I just tried, but... there is no status column.. hmm
218: [04:50:51] <Ryan-Toast> JeremyRoundill: I’d have albumns many_many images, and has_one page
219: [04:54:14] <JeremyRoundill> Ryan-Toast: cheers, I'll keep on trucking.
220: [04:54:55] <JeremyRoundill> give ->filter(array()) a go.
221: [04:55:03] <JeremyRoundill> hailwood, that is
222: [04:56:16] <Ryan-Toast> finally decided on two fonts to use together: http://i.imgur.com/GRhx44O.jpg
223: [04:57:37] <JeremyRoundill> Nice
224: [04:57:41] <adrexia> Looks good to me, but I know almost nothing about typography :D
225: [04:57:48] * JeremyRoundill quit (Quit: Page closed)
226: [04:58:20] <Ryan-Toast> adrexia: When I have to figure out typography http://i.imgur.com/yftb5.gif
227: [05:00:42] * willr_ has joined #silverstripe
228: [05:00:56] * willr_ quit (Client Quit)
229: [05:01:02] * Phlunk33 quit (Quit: Leaving)
230: [05:01:45] * micmania1 has left #silverstripe
231: [05:06:47] <Zauberfisch> willr: you are stil rsvped for ss eu
232: [05:09:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
233: [05:09:16] * jedateach has joined #silverstripe
234: [05:11:06] <hailwood> Can anyone see what about this template would be tripping up a grunt htmlmin? https://gist.github.com/hailwood/5cea27490e9c527f8457
235: [05:20:38] <hailwood> Ok I've narrowed it down, anyone know why this line would trip up htmlmin? <form $AttributesHTML >
236: [05:22:04] * Olliepop quit (Ping timeout: 246 seconds)
237: [05:25:42] * Ryan-Toast quit (Quit: Ryan-Toast)
238: [05:31:23] * hailwood quit (Ping timeout: 276 seconds)
239: [05:33:41] * vebb has joined #silverstripe
240: [05:33:55] * vebb quit (Client Quit)
241: [06:03:27] * vebb has joined #silverstripe
242: [06:04:08] * vebb quit (Client Quit)
243: [06:13:35] * Shrike_Finland has joined #silverstripe
244: [06:45:10] * wmk has joined #silverstripe
245: [06:54:25] * ARNHOE has joined #silverstripe
246: [07:01:36] * Audlex has joined #silverstripe
247: [07:04:39] * jedateach quit (Quit: jedateach)
248: [07:25:11] * Shrike_Finland quit (Quit: Leaving.)
249: [07:25:56] * Shrike_Finland has joined #silverstripe
250: [07:42:45] * ocmnt has joined #silverstripe
251: [07:42:58] <ocmnt> howdy
252: [07:45:01] * vebb has joined #silverstripe
253: [07:45:08] * stnvh has joined #silverstripe
254: [07:45:28] <wmk> hey ocmnt
255: [07:45:51] <simon_w|work> Bye bye
256: [07:45:59] <wmk> g'night simon_w|work
257: [07:46:11] * simon_w|work quit (Quit: Ping timeout: your mum)
258: [07:49:34] * vebb quit (Client Quit)
259: [07:53:16] * vebb has joined #silverstripe
260: [07:56:53] * jedateach has joined #silverstripe
261: [08:00:22] * kinglozzer has joined #silverstripe
262: [08:03:14] * Shrike_Finland quit (Quit: Leaving.)
263: [08:04:27] * jedateach quit (Quit: jedateach)
264: [08:13:16] * Pysrmblk has joined #silverstripe
265: [08:15:46] <spronk> lol ss23 you know why that isnt core yet
266: [08:16:13] <Pysrmblk> spronk: because he wrote it?
267: [08:16:20] <spronk> LULZ NAH
268: [08:16:28] <ss23> QQ
269: [08:16:30] <spronk> he was talking about the error suppression suppression setting
270: [08:16:38] <spronk> for php
271: [08:17:05] <Pysrmblk> you mean like display_errors 0
272: [08:17:05] <Pysrmblk> ?
273: [08:17:09] <spronk> nah bro
274: [08:17:13] <spronk> the thing that cancels the affect of @
275: [08:17:16] <Pysrmblk> or @
276: [08:17:17] <Pysrmblk> yeah
277: [08:17:24] <Pysrmblk> cancels the effect?
278: [08:17:27] <spronk> mm
279: [08:17:29] <Pysrmblk> that sounds good.
280: [08:17:31] <spronk> break the silence operator
281: [08:17:31] <spronk> mm
282: [08:17:35] <spronk> http://php.net/manual/en/book.scream.php
283: [08:17:37] <spronk> it IS good
284: [08:17:38] <spronk> but
285: [08:17:41] <spronk> if it became core
286: [08:17:44] <spronk> hosts would turn that shit on
287: [08:17:45] <Pysrmblk> fruck yo slienz
288: [08:17:50] <spronk> and the entire wordderp would break
289: [08:17:55] <Pysrmblk> hahahahaha
290: [08:18:00] <spronk> and OMG SUPPORT TICKETS
291: [08:18:03] <Pysrmblk> really? Is it THAT bad?
292: [08:18:18] <spronk> what, wordderp?
293: [08:18:28] <Pysrmblk> bacon and eggs, or just the scrambled eggs?
294: [08:18:32] <Pysrmblk> spronk: mm.
295: [08:18:34] <spronk> haha
296: [08:18:35] <spronk> i dno
297: [08:18:39] <spronk> i havenm't looked inside wordpress in years
298: [08:18:47] <spronk> but it was pretty fucking awful a few years ago
299: [08:19:17] <Pysrmblk> last time I bagged it, it turned out I was talking to local members of the core team, and they told me it had come a long way in the past year... and it also hadn't.
300: [08:19:29] * willr_ has joined #silverstripe
301: [08:19:40] <spronk> heh
302: [08:19:55] <spronk> part of me thinks anyone who's crazy enough to become a wp core dev....
303: [08:19:59] <spronk> well, you know the rest
304: [08:21:36] <ss23> srsly it should be off by default but included
305: [08:21:40] <Pysrmblk> well, not really. but I assume it goes something like 'they're just crazy'.
306: [08:21:47] <ss23> Otherwise LITEARLLY THE ONLY WAY TO DEBUG THIS IS BY MANUALLY GOING THROUGH
307: [08:21:55] <Pysrmblk> ss23: and?
308: [08:22:01] <Pysrmblk> that's job security man.
309: [08:22:03] <Pysrmblk> although...
310: [08:22:04] <ss23> rage
311: [08:22:05] <Pysrmblk> probably not.
312: [08:22:12] <Pysrmblk> It's a high turnover position.
313: [08:22:12] <ss23> I can take 2 hours to turn on SCREAM too
314: [08:22:15] <ss23> Make your own job security
315: [08:22:26] <Pysrmblk> BECAUSE YOU HAVE NO OUTPUT, YOU HAVE NOTHING TO MEASURE FOR PRODUCTIVITY
316: [08:22:54] <ss23> My output is measured in terms of client agner
317: [08:22:57] <Pysrmblk> so get fired, get another debug dev, also no output, fixing bugs takes too long, roll over to another, another, another, etc.
318: [08:23:00] <ss23> Angry clients mean shit is doing bad
319: [08:23:04] <ss23> Other way around?
320: [08:23:07] <Pysrmblk> lol ss23
321: [08:23:10] <ss23> The high turn around is from devs leaving, not being fired
322: [08:23:18] <Pysrmblk> haha, yes and no.
323: [08:23:27] <Pysrmblk> depends on the place I guess.
324: [08:23:33] <ss23> I guess that's the difference between good v bad devs
325: [08:23:33] <ss23> :O
326: [08:23:48] <ss23> I only hear of like 1/20 devs being "fired" thoug
327: [08:23:50] <Pysrmblk> but suffice to say that if you can't account for what you've done all day, and you've no output to show for it, managment types don't really appreciate that.
328: [08:24:02] <ss23> stop working for places with shitty management
329: [08:24:05] <Pysrmblk> but I guess most recognise the importance of what's going on.
330: [08:24:16] <Pysrmblk> ss23: yeah, that's more my point. Shitty managements EVERYWHERES
331: [08:24:20] <ss23> No there's not
332: [08:24:25] <Pysrmblk> not in the places I work (well, not in that aspect)
333: [08:24:28] <ss23> STOP WORKING FOR PLACES WITH SHITTY MANAGEMENT AND YOUR PROBLEM IS SOLVED
334: [08:24:35] <Pysrmblk> but, it's the stereotype at least.
335: [08:24:46] <Pysrmblk> like... just about every SMB in NZ
336: [08:24:49] <Pysrmblk> or ... ever.
337: [08:24:50] <ss23> I've worked for one place with shitty management, and that was because he was stupid, not because he didn't value or understand productivity
338: [08:24:57] <Pysrmblk> ^^
339: [08:25:09] <Pysrmblk> yeah, it happens.
340: [08:25:18] * Stomach quit (Quit: bye)
341: [08:25:35] * Colin[pi] quit (Ping timeout: 276 seconds)
342: [08:25:45] <Pysrmblk> can also be a good place to work, but a misunderstanding in what output should looklike, etc. although that's not as big an issue because a bit of education usually sees it right.
343: [08:25:53] <Pysrmblk> on either end.
344: [08:26:07] * StefanLehmann quit (Ping timeout: 245 seconds)
345: [08:26:13] <Pysrmblk> politics man, the entire fucking world is nothing more than politics.
346: [08:27:35] <Pysrmblk> mostly shit politics.
347: [08:30:03] <kinglozzer> Morn'n
348: [08:37:33] <Pysrmblk> kia ora
349: [08:42:17] * zippy has joined #silverstripe
350: [08:42:23] <zippy> hi
351: [08:42:46] <ss23> hi2u
352: [08:47:43] * maxer has joined #silverstripe
353: [08:48:09] * Shrike_Finland has joined #silverstripe
354: [08:53:02] * hailwood has joined #silverstripe
355: [09:00:44] * maxer quit (Quit: maxer)
356: [09:02:39] <ss23> OKay guys I have a modeladmin that gives a 500 error ,nothing logged
357: [09:02:40] <ss23> what the fuck.
358: [09:02:40] <ss23> I'm tracing throuhg the execution pipeline and I'm finally up to the $template->process but goddam
359: [09:02:40] <ss23> It's not even a custom template at this point
360: [09:05:22] * spronk quit (Ping timeout: 250 seconds)
361: [09:06:42] * eagles0513875 quit (Max SendQ exceeded)
362: [09:08:01] <Pysrmblk> ss23: spelling mistake.
363: [09:08:12] <ss23> In *what*
364: [09:08:16] <Pysrmblk> file.
365: [09:08:20] <ss23> WHAT FILE?!
366: [09:08:23] <Pysrmblk> php
367: [09:08:24] <ss23> THERE ARE TOUSANDS OF THEM
368: [09:08:28] <ss23> rage
369: [09:08:31] <Pysrmblk> the one you wrote.
370: [09:08:43] <ss23> Jokes on you, it's not my code
371: [09:08:47] <ss23> I wrote none of it
372: [09:08:53] <Pysrmblk> 'you' - the collective.
373: [09:09:17] <Pysrmblk> ie, not core.
374: [09:09:24] <Pysrmblk> duh.
375: [09:10:12] <ss23> lol
376: [09:10:30] <ss23> I'm not ruling it out, but "spelling mistake" is the least helpful thing ever :P
377: [09:12:44] <Pysrmblk> yeah, I guess what I mean is that whenever I get a non-descript 500 it's usually a syntax error.
378: [09:12:59] <Pysrmblk> otherwise SS spits out it's stack dump
379: [09:14:16] <ss23> Not that kind of error
380: [09:14:22] * wmk thinks he shouldnt have used this module some years ago
381: [09:14:48] <hailwood> Is anyone here running htmlmin over their ss templates?
382: [09:15:04] <ss23> Uh
383: [09:15:08] <ss23> SS templates aren't HTML, so I hope not?
384: [09:15:41] * eagles0513875 has joined #silverstripe
385: [09:15:45] * Colin[pi] has joined #silverstripe
386: [09:16:11] <ss23> THIS IS FRUSTRATING
387: [09:16:12] <ss23> SIGH
388: [09:16:17] <wmk> hailwood, isn't gzipping in apache enough?
389: [09:16:24] <hailwood> mmm, I've take over several projects from another dev and part of their build process is running htmlmin over the templates, which is actually working pretty well except for one line - <form $AttributesHTML>
390: [09:16:43] <hailwood> (actually from another dev agency)
391: [09:16:50] <wmk> though ss could reduce spaces before outputting.
392: [09:17:45] <wmk> ss comments are reduced automatically in ss, afaik even normal comments
393: [09:17:45] * Shrike_Finland quit (Quit: Leaving.)
394: [09:17:45] <Pysrmblk> hailwood: sounds like a waste of time and a super optimiser jackass
395: [09:18:03] <Pysrmblk> wmk: no, normal comments come out.
396: [09:18:15] <hailwood> Probably, but I'd like to avoid changing their processes if I can (otherwise I'll tell them to suck it up heh)
397: [09:18:16] <wmk> ok. /me normally uses ss comments
398: [09:18:31] <Pysrmblk> in any case, min should be run AFTER the page is rendered.
399: [09:18:33] <wmk> hailwood, you can tell them it's not needed with silverstripe ;)
400: [09:18:41] <Pysrmblk> it's not needed ever by anyone.
401: [09:18:53] <Pysrmblk> people who do that are normally the overexcited twat kind.
402: [09:19:14] <Pysrmblk> OMG 0.001 extra milliseconds to load! THIS IS NOT GOOD ENOUGH
403: [09:19:42] <wmk> hehe...
404: [09:20:06] <Pysrmblk> If a page loads within even 2 seconds you're already doing better than 80% of the modern web.
405: [09:20:27] <Pysrmblk> popular sites, and apps, all take fucking forever to load.
406: [09:20:41] <wmk> Pysrmblk, every millisecond counts!
407: [09:20:46] <Pysrmblk> and taking a few spaces out of the html to save 57 bytes isn't going to make shit all difference.
408: [09:21:00] <ss23> $val .= $scope->locally()->XML_val('Tools', null, true);
409: [09:21:02] <ss23> THIS IS THE LINE YO
410: [09:21:07] <Pysrmblk> wd ss23
411: [09:21:09] <hailwood> Lol, I should redirect anyone that asks to these irc logs as the reason why I am not doing it
412: [09:21:12] <ss23> Well one of the fucking thousands I've traced execution through ONE BY ONE
413: [09:21:26] <ss23> Hmm
414: [09:21:31] <ss23> Should you...?
415: [09:21:33] <ss23> hailwood is lame!
416: [09:21:35] <Pysrmblk> hailwood: well it's a "nice to have" in any case - it does not need to happen in order for the stie to work.
417: [09:21:35] <ss23> Muahha! :D
418: [09:21:40] <ss23> Now anyone you direct here will think you're lame!
419: [09:21:57] <Pysrmblk> and I can almost guarantee that if you just remove it completely that NO ONE will even notice.
420: [09:22:17] <wmk> Pysrmblk, they will, as they have to change the workflow
421: [09:22:17] <Pysrmblk> if they do it'll be because they're looking at the page source, which isn't a measure of anything anyway.
422: [09:22:23] <Pysrmblk> wmk: no, any user.
423: [09:22:30] <wmk> user, yeah
424: [09:22:39] <Pysrmblk> ie, the person who's site it is.
425: [09:22:42] * spronk2 has joined #silverstripe
426: [09:22:55] <Pysrmblk> won't give two hoots, and probably doesn't even know this is happening anyway.
427: [09:23:03] <spronk2> ?
428: [09:23:05] <Pysrmblk> if they do it's because they're the overexcited twat that requested it in the first place.
429: [09:23:16] <wmk> though it wouldn't be too hard to implement with silverstripe i guess to strip this stuff when compiling the template???
430: [09:23:19] <Pysrmblk> spronk2: minification.
431: [09:23:20] <hailwood> Well, it's unlikely they will notice since it's never run independantly, it's just run as part of a bulk of jobs via grunt, so I'll just comment it heh
432: [09:23:20] <spronk2> mm
433: [09:23:33] <Pysrmblk> hailwood: exactly ;)
434: [09:23:41] <ss23> $val .= $scope->locally()->XML_val('EditForm', null, true);
435: [09:23:42] <Pysrmblk> not even changing workflow wmk :P
436: [09:23:43] <ss23> I MEANT THIS LINE
437: [09:23:44] * ss23 rages
438: [09:23:51] <wmk> wow, Pysrmblk
439: [09:24:42] <Pysrmblk> ??
440: [09:24:43] * wmk wonders how Pysrmblk chooses the nick every day
441: [09:24:43] <Pysrmblk> haha
442: [09:24:43] <wmk> ss23, raging against the debugger machine?
443: [09:24:43] <ss23> SILENT ERRORS ARE THE WROST, WMK
444: [09:24:45] * ss23 cries
445: [09:26:10] <ss23> Been like an hour now
446: [09:26:10] <Pysrmblk> today I'm getting scrabled eggs for breakfast. scrmbl 'd eggs.
447: [09:26:10] <wmk> ss23, i feel you
448: [09:26:10] <Pysrmblk> that's about it.
449: [09:26:10] <Pysrmblk> it's either something I saw, something I'm thinking about, something I'm going to do, something I'm raging about, or just a mash of keys.
450: [09:26:10] <Pysrmblk> that don't look too retarded.
451: [09:26:10] <Pysrmblk> eg if I mashed keyboard and it came out with wrdp - I'm not going to wear that badge :P
452: [09:26:16] <ss23> public function getEditForm($id = null, $fields = null) {
453: [09:26:19] <ss23> IT'S IN THIS FUNCTION GUYS
454: [09:26:21] <ss23> LETS FIGURE IT OUT TOGETHER
455: [09:27:14] <ss23> $list = $this->getList();
456: [09:27:16] <ss23> THIS LINE NOW GUYS
457: [09:27:22] <ss23> We're going on a bug hunt and I'm not scared!
458: [09:28:55] <ss23> $where = $this->filterString();
459: [09:28:57] <ss23> ALMOST THERE GUYS
460: [09:29:47] * maxer has joined #silverstripe
461: [09:31:00] <ss23> this is a fucked up bug
462: [09:32:01] <wmk> ss23, debugging virtual pages on ss24 is also ****
463: [09:32:27] <ss23> mmm
464: [09:33:04] <ss23> [Notice] Undefined variable: this
465: [09:33:06] <ss23> WHAT
466: [09:33:07] <ss23> THE SHIT
467: [09:33:12] <ss23> THEY SAID THIS WORKED ON DEV AND TEST
468: [09:33:18] <ss23> BUT THIS ERROR COULDN't HAPPEN ONLY IN UAT
469: [09:33:30] <ss23> goddam liars I actually believed them
470: [09:33:30] <ss23> ;_;
471: [09:34:03] <spronk2> man
472: [09:34:08] <spronk2> ss23 is totally outdated these days :P
473: [09:34:36] <wmk> even 2.4 is end of life
474: [09:34:47] <spronk2> mm
475: [09:34:49] <spronk2> :P
476: [09:35:15] <wmk> http://dulysquad.de/wp-content/uploads/2010/04/AlterSack.jpg <--- SS 2.4
477: [09:35:15] <ss23> spronk2: ;_;
478: [09:35:17] <ss23> So mean
479: [09:35:25] <spronk2> KEKE
480: [09:36:51] * gordon__ has joined #silverstripe
481: [09:38:07] <zippy> ss23: they probably had notice's turned off :)
482: [09:38:17] <zippy> "fixed" :D
483: [09:40:14] <ss23> Naw, would've been a fatal
484: [09:40:21] * elgrodo quit (Ping timeout: 240 seconds)
485: [09:40:23] <ss23> $params = $this->request->requestVar('q');
486: [09:41:55] * Otterpocket has joined #silverstripe
487: [09:43:51] <wmk> man, there are so many undocumented hooks...
488: [09:43:58] <ss23> Yes
489: [09:43:58] <ss23> :D
490: [09:44:01] <wmk> if($this->hasMethod('alternateAbsoluteLink'))
491: [09:44:02] <ss23> wmk: Wanna write some docs? ^.^
492: [09:44:12] <wmk> would have saved me some time years ago....
493: [09:44:34] <wmk> ss23, not alone.
494: [09:44:38] <ss23> Write docs so your future self has help!
495: [09:44:39] <ss23> :D
496: [09:45:02] <wmk> ss23 i know.
497: [09:45:07] <wmk> have to run, ttyl
498: [09:45:51] <ss23> Ciao
499: [09:51:20] <spronk2> K GUYS
500: [09:51:26] <spronk2> TALK ME OUT OF GOING WITH JAVA FOR THIS NEW PROJECT
501: [09:51:39] <spronk2> because. its looking pretty fucking appealing
502: [09:54:33] * NETim has joined #silverstripe
503: [09:55:02] <NETim> morning, fighting with the breadcrumbs. any experts?
504: [09:55:15] <spronk2> wat be the problem
505: [09:55:24] <spronk2> and, which version?
506: [09:55:37] * simon_w has joined #silverstripe
507: [09:56:02] <NETim> spronk2, pirate day?
508: [09:56:13] <NETim> also, just can't get SS3 to accept the override template
509: [09:56:16] <spronk2> nahhh
510: [09:56:22] <spronk2> hmm..?
511: [09:56:37] <spronk2> is it in the right place?
512: [09:56:47] <NETim> your sentence structure was very, um, piratey
513: [09:57:07] <NETim> as far as I can see yes, it's in the template/includes folder
514: [09:57:09] <spronk2> oh. im just lazy ;D
515: [09:57:13] <NETim> lol
516: [09:57:16] <spronk2> have you flushed?
517: [09:57:19] <NETim> yup.
518: [09:57:41] <NETim> and dev/build
519: [09:57:43] <spronk2> hmm
520: [09:57:58] <NETim> yup, it just keeps using the default
521: [09:58:00] <spronk2> Breadcrumbs.ss?
522: [09:58:21] <NETim> BreadcrumbsTemplate.ss
523: [09:58:25] <spronk2> mm
524: [09:58:26] <NETim> Breadcrumbs.ss is the holder
525: [09:58:51] <spronk2> and you're suuure that file is edited etc?
526: [09:59:18] <NETim> yep. even gone so far as to replace it with junk text.
527: [09:59:39] <spronk2> actually
528: [09:59:43] <spronk2> maybe it doesn't go in Includes
529: [09:59:47] <spronk2> move it to top level templates folder
530: [09:59:50] <NETim> que?
531: [10:00:08] <NETim> will try it, so just in tmpname/templates then?
532: [10:00:12] <spronk2> mm
533: [10:01:55] * Stomach has joined #silverstripe
534: [10:02:08] <NETim> nope. no joy
535: [10:02:45] * Stomach quit (Client Quit)
536: [10:03:19] <NETim> well, sh*t, seems that SS3 magic.php takes a while to cast it's spells.
537: [10:03:20] <Pysrmblk> [10:33] <@ss23> [Notice] Undefined variable: this
538: [10:03:24] <Pysrmblk> how the fuck does that even possible?
539: [10:03:31] <NETim> see above
540: [10:03:54] * Shrike_Finland has joined #silverstripe
541: [10:04:44] <Pysrmblk> [10:51] <spronk2> TALK ME OUT OF GOING WITH JAVA FOR THIS NEW PROJECT
542: [10:04:45] <Pysrmblk> nope.
543: [10:04:51] <ss23> Pysrmblk: When ti's not defined!
544: [10:04:56] <ss23> In this case, calling an anonymous function
545: [10:05:04] <ss23> $this wasn't passed in
546: [10:05:16] <Pysrmblk> [10:56] <NETim> spronk2, pirate day?
547: [10:05:24] <Pysrmblk> oh fuck yeah, that's coming up in ... 15 days!
548: [10:06:39] <Pysrmblk> ss23: ah, anon fucs.
549: [10:06:42] <Pysrmblk> DEFUNCTION
550: [10:07:05] <Pysrmblk> DEFUNCTION IS NOT FUNCTIONING
551: [10:07:16] <ss23> da func
552: [10:07:37] <Pysrmblk> www.youtube.com/watch?v=mmi60Bd4jSs
553: [10:07:40] * NETim quit (Ping timeout: 246 seconds)
554: [10:10:28] <spronk2> but php is too shit
555: [10:10:58] <spronk2> py/rub too slow. c++ too fucked. scala too cray. js too shit
556: [10:11:26] <spronk2> go is interesting but .... frameworks/libs a bit meh, dep management is shit
557: [10:11:41] <spronk2> java is fast, popular as fuck, great tooling, maven is actually semi ok now
558: [10:11:42] <Otterpocket> This is a Debug::show of a php object I would like to send to a template http://paste.opensuse.org/4826063 , How do I convert this to a SS Object that can be used in a template?
559: [10:11:50] <Pysrmblk> ss23: also relevant: https://www.youtube.com/watch?v=sGcdcVblZ-8
560: [10:12:19] <Pysrmblk> spronk2: so... it's a web proj?
561: [10:12:19] <spronk2> pitchshifter genius
562: [10:12:20] <spronk2> wow
563: [10:12:23] <spronk2> haven't heard this in aages
564: [10:12:27] <spronk2> Pysrmblk: yeah, REST API basically
565: [10:12:29] <spronk2> well
566: [10:12:43] <Pysrmblk> well
567: [10:12:55] <spronk2> front end to a database and messaging queue
568: [10:12:58] <spronk2> needs fast
569: [10:13:07] * NETim has joined #silverstripe
570: [10:13:10] <Pysrmblk> so... ja... v... a?
571: [10:13:18] <spronk2> java is fast as now
572: [10:13:21] <Pysrmblk> f....a....s....t....>
573: [10:13:27] <Pysrmblk> fast as?
574: [10:13:29] <Pysrmblk> ...
575: [10:13:30] <NETim> fast, spelled s l o w?
576: [10:13:31] <spronk2> only thing faster is like
577: [10:13:33] <spronk2> c
578: [10:13:37] <Pysrmblk> spelt!
579: [10:13:43] <NETim> depends
580: [10:13:59] <NETim> spelt is a type of grain :D
581: [10:14:01] <NETim> http://en.wikipedia.org/wiki/Spelt
582: [10:14:11] <Pysrmblk> also the past tense of spell
583: [10:14:20] <Pysrmblk> unless you're a yank.
584: [10:14:26] * Colin[pi] quit (Ping timeout: 252 seconds)
585: [10:14:34] <spronk2> http://www.techempower.com/benchmarks/
586: [10:14:35] <spronk2> loooooookl
587: [10:14:37] <NETim> how dare you... lol
588: [10:14:43] <Pysrmblk> bingo.
589: [10:14:44] <spronk2> c++, jav jav jav jav jav jav
590: [10:15:00] <spronk2> massive gap
591: [10:15:03] <spronk2> everything else
592: [10:15:15] <Pysrmblk> spronk2: oh, actually... have you seen Phalcon?
593: [10:15:20] <spronk2> yes
594: [10:15:24] <spronk2> is fast but
595: [10:15:35] <spronk2> suffers from php issues, like, easy to make fucked up behaviour thats hard to notice
596: [10:15:46] <spronk2> terrible error handling
597: [10:15:50] <Pysrmblk> same with C (++_
598: [10:15:58] <spronk2> mm
599: [10:16:01] <spronk2> hence java
600: [10:16:14] <Pysrmblk> I think the real trick here is no matter what you use, DON'T FUCK IT UP.
601: [10:16:21] <spronk2> yeaahh
602: [10:16:23] <Pysrmblk> so may as well just go with ASM
603: [10:16:33] <spronk2> but i want reasonably high productivity
604: [10:16:38] * willr_ quit (Quit: willr_)
605: [10:16:40] <Pysrmblk> then run it in a JS emulator.
606: [10:16:45] <spronk2> loool
607: [10:18:59] <Pysrmblk> spronk2: just use erlang
608: [10:19:00] <Pysrmblk> duh
609: [10:19:06] <spronk2> :(
610: [10:19:12] <spronk2> erlang looks really interesting
611: [10:19:12] <spronk2> but
612: [10:19:13] <spronk2> god
613: [10:19:14] <spronk2> that syntax
614: [10:19:23] <spronk2> i just cant
615: [10:20:01] <Pysrmblk> haha, like me and ruby @>
616: [10:20:02] <Pysrmblk> :<
617: [10:22:07] <spronk2> mmlol
618: [10:22:11] <spronk2> ugh
619: [10:22:13] <spronk2> i really just wish python was faster.
620: [10:27:33] <ocmnt> python aint that slow
621: [10:28:03] * Shrike_Finland quit (Quit: Leaving.)
622: [10:28:11] <spronk2> it really is
623: [10:29:36] <hailwood> Hey guys, this is working fine on my localhost, I have a page type InstagramPage.php which has been created in the CMS, in the theme I have Layouts/InstagramPage.ss but on the live site it's not picking up the template, I've done a dev/build and a ?flush=all so any other ideas?
624: [10:29:58] <hailwood> It's not a permission issue or anything since it has the same permissions as the other templates
625: [10:30:07] <ocmnt> you have templates/Page.ss aswell?
626: [10:30:11] <ocmnt> and Page.ss has $Layout ?
627: [10:30:16] <hailwood> Correct
628: [10:30:29] <spronk2> file perms on live site?
629: [10:30:34] <hailwood> All the other templates are working,
630: [10:30:40] <hailwood> file perms are the same as the others
631: [10:30:57] <hailwood> http://i.imgur.com/k3RA6wI.png
632: [10:31:02] <ocmnt> any typo perhaps
633: [10:31:02] <ocmnt> ?
634: [10:31:24] <hailwood> No chance, it's a literal copy of the localhost
635: [10:31:46] <guzzlefry> Try a dev/build?flush=all on localhost
636: [10:31:55] <guzzlefry> maybe something broke there but wasn't caught yet
637: [10:31:57] <ocmnt> any error perhaps?
638: [10:33:29] * r3v3rb has joined #silverstripe
639: [10:35:03] * willr_ has joined #silverstripe
640: [10:35:12] * willr_ quit (Client Quit)
641: [10:36:37] * Shrike_Finland has joined #silverstripe
642: [10:40:59] * hailwood }:[ -> }:\ -> }:| -> }:O it was user error
643: [10:47:25] <wmk> spronk2, if you need it fast use haskell
644: [10:47:39] <spronk2> haskell does my head in
645: [10:47:54] <wmk> does my head in???
646: [10:48:06] <spronk2> you know
647: [10:48:10] <spronk2> confuses
648: [10:48:27] <wmk> it's another way of thinking
649: [10:51:47] * hailwood quit (Quit: Leaving.)
650: [10:54:23] <wmk> but it's hard to use anything else for a simple or slightly extended cms page once you know silverstripe cms, IMHO
651: [10:55:14] * wmk should try yessod nevertheless
652: [11:03:37] * spronk has joined #silverstripe
653: [11:11:32] * [SD]LoveDuckie has joined #silverstripe
654: [11:12:44] <ss23> Pysrmblk: sounds like The Prodigy
655: [11:15:01] * ARNHOE quit (Ping timeout: 260 seconds)
656: [11:17:04] * ARNHOE has joined #silverstripe
657: [11:33:21] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
658: [11:47:08] * Audlex quit ()
659: [11:53:17] * Shrike_Finland quit (Quit: Leaving.)
660: [11:54:10] * simon_w quit (Quit: Ping timeout: your mum)
661: [11:59:01] <Pysrmblk> oh god he's logged in as root :<
662: [11:59:24] <Pysrmblk> [11:31] <guzzlefry> Try a dev/build?flush=all on localhost
663: [11:59:31] <Pysrmblk> naughty guzzlefry, do them separately!
664: [12:00:06] <Pysrmblk> ss23: yeh, they're pioneers of that fusion type sound that prodigy were famous for apparently
665: [12:00:08] <guzzlefry> I thought that worked?
666: [12:00:15] <Pysrmblk> guzzlefry: never ever has.
667: [12:00:17] <Pysrmblk> not even once.
668: [12:00:27] <guzzlefry> what about /dev/build?flush?
669: [12:00:30] <Pysrmblk> nope
670: [12:00:35] <guzzlefry> :(
671: [12:00:55] <Pysrmblk> it might work these days because of the changes to the flushing system, however as a good practice thing, don't say that.
672: [12:01:07] <Pysrmblk> you don't know what version they're on!
673: [12:01:14] <Pysrmblk> but generally, always do it separate.
674: [12:01:23] <Pysrmblk> Then there's no question.
675: [12:01:26] <Pysrmblk> :>
676: [12:02:00] <Pysrmblk> but in 2.4 & 3.0 at least, dev/build didn't touch ssviewer, which is where the flushing happens.
677: [12:02:32] * UndefinedOffset has joined #silverstripe
678: [12:02:36] <Pysrmblk> so it was basically just a myth propogated around the internet by folks who thought it did.
679: [12:02:44] <Pysrmblk> and then those sites became popular
680: [12:03:43] <Pysrmblk> and then it's still lingering today. Although it may actually work now, I think of it like setting the theme in the siteconfig. It works, but _config is better! (if you have sub-themes, eg simple_forum - then siteconfig setting won't use those templates, gotta set in config)
681: [12:03:47] <Pysrmblk> (at least in 3.0)
682: [12:03:55] * Shrike_Finland has joined #silverstripe
683: [12:04:04] <Pysrmblk> doing things with certainty is _b
684: [12:04:27] <Pysrmblk> recommending things that cover ~80% of cases... yeah, not ideal.
685: [12:04:31] <Pysrmblk> :>
686: [12:04:52] <Pysrmblk> yey lunch
687: [12:26:36] * shellbackpacific has joined #silverstripe
688: [12:31:14] * shellbackpacific quit (Ping timeout: 260 seconds)
689: [12:41:54] * Shrike_Finland quit (Read error: Connection reset by peer)
690: [12:42:15] * Shrike_Finland has joined #silverstripe
691: [12:46:12] * Otterpocket quit (Ping timeout: 246 seconds)
692: [13:18:38] * r3v3rb quit (Quit: r3v3rb)
693: [13:21:45] * Shrike_Finland quit (Quit: Leaving.)
694: [13:27:41] * r_hector quit (Quit: Leaving.)
695: [13:33:49] * ss31noob has joined #silverstripe
696: [13:34:42] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
697: [13:35:01] * eagles0513875 has joined #silverstripe
698: [13:43:29] * scpi has joined #silverstripe
699: [13:46:22] <ss31noob> hi guys.. im trying to use the GridFieldSortableRows but im having an error when trying to access it in the admin.. it says that Column 'SortOrder' in field list is ambiguous
700: [13:46:32] <ss31noob> this is a sample code where im using it
701: [13:46:33] <ss31noob> http://www.sspaste.com/paste/show/5408687836749
702: [13:47:49] <ss31noob> anyone can help me on this?
703: [13:55:46] * Frans_Amsterdam has joined #silverstripe
704: [13:58:57] <wmk> ss31noob, mysql doesn't know what SortOrder it should take.
705: [13:59:14] <wmk> you have it twice, in many_many table and in Item table.
706: [13:59:22] <wmk> i guess you're migrating from has_one to has_many ??
707: [13:59:29] <wmk> to many_many...
708: [14:01:04] <ss31noob> i just followed the instructions here https://github.com/UndefinedOffset/SortableGridField/blob/master/docs/ManyManyExample.md
709: [14:01:37] * ARNHOE quit (Ping timeout: 260 seconds)
710: [14:01:44] <wmk> ss31noob, not really.
711: [14:01:56] <wmk> TestObject (the many many counterpart) doesn#t have a SortOrder defined.
712: [14:02:14] <wmk> Remove it from your Item (and the DB!) and it should work.
713: [14:02:44] <ss31noob> i removed it already now.. and run a dev/build
714: [14:02:51] <ss31noob> still showing the same error
715: [14:03:04] <ss31noob> SELECT DISTINCT MAX("SortOrder") FROM "ReviewToplistItem" INNER JOIN "ReviewToplist_ToplistItems" ON "ReviewToplist_ToplistItems"."ReviewToplistItemID" = "ReviewToplistItem"."ID" WHERE ("ReviewToplist_ToplistItems"."ReviewToplistID" = '18') Column 'SortOrder' in field list is ambiguous
716: [14:03:08] <wmk> afaik it'll still remain in db, cause ss doesn't delete orphan columns
717: [14:03:20] <wmk> which makes sense in most cases
718: [14:03:27] <wmk> delete the column manually in your db
719: [14:04:07] <Pysrmblk> ss31noob: wmk you can define what field it uses, it doesn't have to be sortorder
720: [14:04:20] <Pysrmblk> if not, gridfieldextensions is better anyway.
721: [14:04:27] <wmk> of course...
722: [14:04:39] <Pysrmblk> sortablegridfield emulates the shit usability of DOM.
723: [14:04:56] <Pysrmblk> it works, but I think the other is much better.
724: [14:05:14] <ss31noob> gridfieldextension? can i use it for drag and drop functionality ?
725: [14:05:17] <Pysrmblk> yes
726: [14:05:24] <Pysrmblk> ajshort/gridfieldextensions
727: [14:05:37] <Pysrmblk> or maybe ajshort/gridfield-extensions, I don't remember which
728: [14:05:42] <wmk> only con: doesn't work with gridfield gallerytheme
729: [14:05:54] <Pysrmblk> wtf is gallerytheme?
730: [14:06:01] <Pysrmblk> sounds shit :<
731: [14:06:08] <wmk> https://github.com/colymba/GridFieldGalleryTheme
732: [14:06:26] <wmk> sounds cool if you want to manage image items with a grid
733: [14:07:00] <Pysrmblk> again that emulates DOM, although that sorta makes sense in that kinda view.
734: [14:07:35] <wmk> and how does the grid extension work?
735: [14:07:48] * ocm has joined #silverstripe
736: [14:12:40] * catcher has joined #silverstripe
737: [14:16:04] <Pysrmblk> wmk: hmm?
738: [14:17:01] * Frans_Amsterdam quit (*.net *.split)
739: [14:17:04] * ocmnt quit (*.net *.split)
740: [14:19:40] <wmk> it doesn't emulate dom?
741: [14:27:42] * ARNHOE has joined #silverstripe
742: [14:27:53] * harold____ has joined #silverstripe
743: [14:33:26] * Frans_Amsterdam has joined #silverstripe
744: [14:33:26] * ocmnt has joined #silverstripe
745: [14:33:35] * Frans_Amsterdam quit (Ping timeout: 244 seconds)
746: [14:33:51] * ocmnt quit (Ping timeout: 244 seconds)
747: [14:34:18] <ocm> nick ocmnt
748: [14:34:22] * ocm is now known as ocmnt
749: [14:38:23] <wmk> ;)
750: [14:38:49] * g4b0_ has joined #silverstripe
751: [14:38:53] <g4b0_> hi all
752: [14:39:24] <wmk> hi g4b0_
753: [14:40:16] * toddvalentine has joined #silverstripe
754: [14:40:21] <g4b0_> I'm working on a PaginatedList extension and I want to get rid of the GET param
755: [14:40:34] <g4b0_> the problem is in my controller
756: [14:41:03] <g4b0_> actual URL is mysite.com/news
757: [14:41:21] <g4b0_> second page is mysite.com/news?start=2
758: [14:41:24] <g4b0_> and so on
759: [14:41:34] <wmk> news/page/2 could map to action "page"
760: [14:41:41] <g4b0_> I would like to use news/2
761: [14:42:06] <g4b0_> do you think it's possible?
762: [14:42:08] <wmk> $url_handler
763: [14:42:12] <wmk> in your controller
764: [14:42:36] <g4b0_> what do I need to put inside $url_handler?
765: [14:42:50] <wmk> $ID => action
766: [14:42:53] <wmk> afaik.
767: [14:43:05] <wmk> it's always some kind of magic and i don't do it every day, you know
768: [14:43:24] <g4b0_> yes, it's some kind of magic :)
769: [14:43:36] <g4b0_> sometimes it works
770: [14:43:40] <g4b0_> :D
771: [14:43:41] <wmk> but like every magic trick: when you know it it's boring
772: [14:43:48] <g4b0_> let's try
773: [14:44:02] <g4b0_> but wait
774: [14:44:10] <g4b0_> what action do I need?
775: [14:44:12] <g4b0_> wait
776: [14:44:29] <wmk> the one that does the paginated list
777: [14:44:46] <wmk> seee controler, L 57
778: [14:44:56] <g4b0_> http://pastebin.com/WyB8DmYu
779: [14:45:00] <g4b0_> that's my controller
780: [14:45:18] <wmk> is Paginated News an action?
781: [14:45:49] <g4b0_> private static $url_handlers = array('$ID' => 'PaginatedNews');
782: [14:45:59] <g4b0_> something like that?
783: [14:46:04] <wmk> jup
784: [14:46:09] <g4b0_> mmmm
785: [14:46:19] <g4b0_> let's flush=all
786: [14:46:31] <wmk> sounds good, as it's a static config var
787: [14:46:54] <wmk> in the mean time: http://doc.silverstripe.org/framework/en/topics/controller#url-handling
788: [14:47:45] <g4b0_> mmm it doesn't work
789: [14:48:01] <g4b0_> because PaginatedNews returns a PaginatedList
790: [14:48:21] <g4b0_> ant it's called through the template
791: [14:48:26] <wmk> !$ID would require the variable....
792: [14:48:46] <wmk> yes, the list has to render the right urls.
793: [14:49:06] <wmk> but you can test with a demo action if it's called and return the page param
794: [14:49:13] <wmk> then you know routing is ok...
795: [14:50:33] <g4b0_> I'm missing something
796: [14:51:03] <wmk> http://maetl.net/silverstripe-url-handling is also an old tutorial, $url_handler should be still the same
797: [14:51:21] <g4b0_> can I just tell SS to ignore the last url segment?
798: [14:51:38] <wmk> ??
799: [14:51:39] <g4b0_> without touching the routing?
800: [14:51:58] <g4b0_> I would like to always render the news page
801: [14:52:00] <wmk> well, news/2 will try to call an action called "2"
802: [14:52:17] <g4b0_> I would like to ignore it
803: [14:52:23] <wmk> look at the maetl.net tutorial
804: [14:52:27] <wmk> link above
805: [14:52:34] <g4b0_> and ther read it inside the PaginatedNews function
806: [14:52:39] <g4b0_> ok
807: [14:53:08] <g4b0_> in CodeIgniter and other framework everithing that stay next the mapped route
808: [14:53:11] <g4b0_> is a parameter
809: [14:53:20] <wmk> depending on the routing you define the names of the params.
810: [14:54:03] <wmk> afaik extra params get lost.
811: [14:54:33] <ocmnt> wmk, sometimes a magic trick is even more exiting to see once you know how it is done :P
812: [14:54:50] <g4b0_> In CodeIgniter the following URL controller/action/1/2/3 will call controller->action(1,2,3)
813: [14:55:22] <g4b0_> It's strange that SS doesn't have a similar way to call controller method
814: [14:55:37] <wmk> it tries to call controllers allowed action
815: [14:55:47] <wmk> * as action doesn't work anymore
816: [14:55:54] <wmk> security, you know
817: [14:56:00] <g4b0_> I know
818: [14:56:02] <wmk> ocmnt, sometimes, yes
819: [14:56:22] <ocmnt> of its not, the trick wasn't a good trick
820: [14:56:23] <ocmnt> ;)
821: [14:56:41] <g4b0_> :)
822: [14:57:36] <ocmnt> anyone knows how use modeladmin with the subsites module?
823: [14:57:50] <ocmnt> my modeladmin is only visible on the main site, not on the subsites
824: [14:58:42] <wmk> oh.
825: [14:59:00] <wmk> ocmnt, if you find it out, please tell me ;)
826: [14:59:09] <wmk> beginning with a subsites 3.1 project right now
827: [15:00:00] <ocmnt> haha, I will let you knowe
828: [15:02:01] <Pysrmblk> well, I've been here too long.
829: [15:02:03] <Pysrmblk> ciao
830: [15:02:06] * Pysrmblk quit ()
831: [15:12:34] * ARNHOE quit ()
832: [15:30:06] <wmk> redirecting horror, infinite redirect loop...
833: [15:38:54] * jenniferaslan has joined #silverstripe
834: [15:39:49] <NETim> morning again, comments module, anyone have any experience changing the form layout?
835: [15:41:55] * ss31noob quit (Ping timeout: 246 seconds)
836: [15:52:37] * jenniferaslan quit (Quit: jenniferaslan has left the room)
837: [15:55:14] * ocmnt quit (Remote host closed the connection)
838: [15:55:57] * spronk2 quit (Quit: spronk2)
839: [15:56:00] * r3v3rb has joined #silverstripe
840: [15:56:44] <wmk> NETim, overwrite the templates for the form in your theme
841: [15:56:57] * Liquide quit ()
842: [15:57:17] * jenniferaslan has joined #silverstripe
843: [15:58:58] * g4b0_ quit (Remote host closed the connection)
844: [15:59:29] <kinglozzer> NETim: That or use an extension and add classes, composite fields, re-arrange etc: https://github.com/silverstripe/silverstripe-comments/blob/master/code/controllers/CommentingController.php#L362
845: [16:03:02] * muskie9 has joined #silverstripe
846: [16:09:25] <harold____> hi am implementing a before and after demo on my site, each item will have a description and 2 images, before and after!
847: [16:09:40] <harold____> should I do this by extending a dataobject
848: [16:09:54] <harold____> hasMany image
849: [16:12:49] <kinglozzer> harold____: many_many
850: [16:13:03] <kinglozzer> Or two has_ones
851: [16:13:15] <kinglozzer> i.e. 'BeforeImage' => 'Image', 'AfterImage' => 'Image'
852: [16:13:17] <kinglozzer> That's probably better
853: [16:13:34] <kinglozzer> But basically, never use has_many for images
854: [16:14:04] <harold____> ok thanks
855: [16:14:11] <muskie9> anyone use the mssql module lately? getting Call to undefined method DatabaseAdapterRegistry::get_default_fields()... when I check the class it's referring to the function definitely doesn't exist and looking back to prior framework versions it doesn't look like it was ever there
856: [16:14:15] <harold____> i think i will go with 2 x has_one then
857: [16:15:11] * scpi quit (Quit: naptime)
858: [16:15:59] <kinglozzer> muskie9: You're using the wrong version of the module
859: [16:16:13] <kinglozzer> That function has been added ready for 3.2, you need this branch: https://github.com/silverstripe/silverstripe-mssql/tree/0.10
860: [16:19:27] <muskie9> ha, thanks kinglozzer, that worked
861: [16:27:10] <NETim> wmk, the comment form is generated in the comments controller
862: [16:27:22] <NETim> I went with CSS overrides.
863: [16:27:32] <wmk> of course, it's a good way
864: [16:27:39] <NETim> yup.
865: [16:31:28] * stnvh quit ()
866: [16:32:02] * kinglozzer quit ()
867: [16:32:07] <r3v3rb> hi all, anyone around
868: [16:33:46] * maxer quit (Quit: maxer)
869: [16:34:23] * maxer has joined #silverstripe
870: [16:35:37] <r3v3rb> Zauberfisch: hello?
871: [16:39:04] * maxer quit (Ping timeout: 252 seconds)
872: [16:41:02] <wmk> r3v3rb, wassup?
873: [16:42:04] <r3v3rb> wmk, need to hack a delete all records button in to a 2.4.12 modeladmin interface for a client and can’t find any information for extending
874: [16:42:48] <wmk> what kind of buttons?
875: [16:44:59] <r3v3rb> just a button that a client can use to remove all the records of the managed model in the modeladmin panel
876: [16:45:28] <wmk> puh
877: [16:46:15] <r3v3rb> say I have a class called ‘bananas’ which is managed in ‘bananaadmin’ then in ‘bananaadmin’ I need a button - ‘Delete All’ which would then run a function to delete them all - I can do the function but can’t find where to add the button etc etc
878: [16:46:35] <wmk> getEditForm() ??
879: [16:46:46] <muskie9> r3v3rb, not sure if this would be a good reference http://www.ssbits.com/tutorials/2009/adding-a-cms-action-the-slightly-hacky-way/
880: [16:47:29] <r3v3rb> muskie9: its a good one but based on an individual record rather than in the list view admin panel
881: [16:48:30] <r3v3rb> I’ll try it and see if it works though )
882: [16:48:31] <r3v3rb> :)
883: [16:52:54] <wmk> r3v3rb, http://www.leftandmain.com/uncategorized/2011/02/25/taming-the-beast-remodeling-modeladmin/ could also help
884: [16:53:16] <r3v3rb> just reading that one, looks excessive but if its the only way...
885: [16:53:54] <wmk> the RecordController has an EditForm where you can add the button
886: [16:54:10] <wmk> man, thinking in 2.4 is hard these days
887: [17:01:27] <wmk> hmm, subsites not working. it's not resolving the domain. If i suffix with ?SubsiteID=xx it works
888: [17:03:07] <r3v3rb> wmk, okay I’ll take a look at the RecordController - how I love gridfields now in ss3 compared to this old mess
889: [17:03:20] <wmk> yup
890: [17:03:24] <wmk> absolutley right
891: [17:03:56] <r3v3rb> however, I am going to take a look at laravel and django soon for an upcoming project just for kicks
892: [17:04:58] <wmk> do they have decent cms interface?
893: [17:05:15] * maxer has joined #silverstripe
894: [17:09:41] * maxer quit (Ping timeout: 260 seconds)
895: [17:23:46] <Zauberfisch> r3v3rb: hi
896: [17:27:33] <Zauberfisch> r3v3rb: ah, I see you already asked the question
897: [17:27:36] <Zauberfisch> let me think
898: [17:28:02] <Zauberfisch> r3v3rb: are you ok with hacking it in?
899: [17:28:15] <Zauberfisch> I am sure its possible, but I haven't worked with 2.x in years
900: [17:28:24] <Zauberfisch> or at least more than a year
901: [17:28:55] <Zauberfisch> have to leave, back in a bit
902: [17:29:27] * r3v3rb_ has joined #silverstripe
903: [17:29:40] * r3v3rb quit (Read error: Connection reset by peer)
904: [17:29:40] * r3v3rb_ is now known as r3v3rb
905: [17:37:54] * gelignite has joined #silverstripe
906: [17:51:40] * wmk quit (Ping timeout: 252 seconds)
907: [18:00:14] <Zauberfisch> r3v3rb:
908: [18:00:16] <Zauberfisch> back
909: [18:00:48] <Zauberfisch> here an idea
910: [18:01:05] <Zauberfisch> a hacky one, but it will be simple to do
911: [18:01:32] <Zauberfisch> ignore the fact that its a model admin
912: [18:01:54] <Zauberfisch> simply inject a button via javascript
913: [18:02:04] <Zauberfisch> and then make this button do an ajax call to a controller
914: [18:06:03] * maxer has joined #silverstripe
915: [18:08:26] * scpi has joined #silverstripe
916: [18:10:18] * maxer quit (Ping timeout: 246 seconds)
917: [18:11:30] * muskie9 quit (Read error: Connection reset by peer)
918: [18:12:09] * muskie9 has joined #silverstripe
919: [18:12:14] <Zauberfisch> r3v3rb: you still here?
920: [18:16:27] <catcher> I'm making a module that requires an ajax call. Is there any way to avoid creating an Extension subclass that must be applied to a controller?
921: [18:20:01] <r3v3rb> Zauberfisch: yep, just got back from smashing coconuts :)
922: [18:20:13] <Zauberfisch> guys
923: [18:20:14] <Zauberfisch> btw
924: [18:20:20] <Zauberfisch> silverstripe europe is going to happen
925: [18:20:21] <Zauberfisch> finally
926: [18:20:30] <Zauberfisch> 3rd & 4th october
927: [18:20:40] <r3v3rb> where ?
928: [18:20:45] <Zauberfisch> linz
929: [18:20:48] <Zauberfisch> austria
930: [18:20:56] <r3v3rb> linz as in aus
931: [18:20:57] <r3v3rb> yeh
932: [18:21:07] * r3v3rb checks tickets and hotelz
933: [18:21:12] <Zauberfisch> I think there are direct flights from london
934: [18:21:31] <Zauberfisch> http://silverstripe-europe.org/
935: [18:21:36] <toddvalentine> That's exciting. I hope you video it. I live in the US. It's so difficult to come by good SS training and tutorials!
936: [18:21:40] <Zauberfisch> r3v3rb: check out the travel & accommodations page
937: [18:22:15] <Zauberfisch> toddvalentine: not sure we will tape it. and if we do, then probably the advanced talks (not the beginner workshop)
938: [18:22:22] <r3v3rb> fack, £707 return with TAP airways
939: [18:22:33] <Zauberfisch> hmm?
940: [18:23:15] <Zauberfisch> r3v3rb: btw, if you get in on thrusday (2nd october), we have are going to gather in a pub or something and socialise before the event
941: [18:24:27] <r3v3rb> flights + train = €120 :) need to get hotel no and square with wife
942: [18:24:56] <Zauberfisch> r3v3rb: check http://silverstripe-europe.org/travel-and-accommodation/
943: [18:25:01] <Zauberfisch> and tell me if that info is useful
944: [18:25:05] <r3v3rb> scratch that its €170
945: [18:25:50] <r3v3rb> Zauberfisch: checked, yes apart from flight info from UK to Vienna is easyjet at £157 return
946: [18:26:05] <r3v3rb> going to check linz and salz now
947: [18:26:24] <Zauberfisch> r3v3rb: train from vienna to linz is 17 euro or something
948: [18:26:38] <Zauberfisch> and you probably need a bus from the airport to the railway station which will be 1 or 2 euro
949: [18:27:21] * [SD]LoveDuckie quit (Remote host closed the connection)
950: [18:27:29] <r3v3rb> ugh, salzburg is not until 12 dec
951: [18:27:46] <Zauberfisch> no direct flyghts to linz?
952: [18:31:59] <r3v3rb> holy carp - alitalia £157 flight time 16hrs - with 14hr stopover in rome!
953: [18:32:13] <r3v3rb> Zauberfisch: no directs only to vienna so far
954: [18:32:30] <r3v3rb> linz and salzburg operate from december this year
955: [18:32:36] <r3v3rb> with easyjet
956: [18:32:52] <Zauberfisch> lol
957: [18:35:16] <r3v3rb> hmm, thursday 15:25 arrival in vienna to saturday return at 13:00 - £50 on RyanAir!
958: [18:35:40] <Zauberfisch> sounds good
959: [18:36:07] <r3v3rb> crap I’d miss your vagrant stuff :(
960: [18:36:30] <Zauberfisch> oh, right. saturday
961: [18:36:36] <Zauberfisch> I read sunday
962: [18:39:52] <Zauberfisch> hmmm
963: [18:40:00] <Zauberfisch> no later flight?
964: [18:40:54] * Shrike_Finland has joined #silverstripe
965: [18:51:24] <harold____> can I ask some advice, my site has a carousel and I want different images to feature on different carousel pages. Is the way to go to set up a carousel object and then use the relation manager to allow different images to be associated with different pages
966: [18:52:11] <r3v3rb> Zauberfisch: can do Monday 9am return for £126
967: [18:52:26] <r3v3rb> ob’s £50 is easier to sell wife on ;)
968: [18:52:42] <Zauberfisch> 50 is pretty good
969: [18:52:43] <r3v3rb> harold____: yes, very much so
970: [18:52:55] <harold____> my approach is sound?
971: [18:53:03] <r3v3rb> Zauberfisch: yeh but Saturday afternoon flight means missing the nige drinking session!
972: [18:53:10] <r3v3rb> binge*
973: [18:53:13] <r3v3rb> lol
974: [18:53:36] <r3v3rb> harold____: yes, create a DO to hold images and associate with has_many to your pages then display with loop
975: [18:53:59] <harold____> what is DO?
976: [18:54:18] <r3v3rb> dataobject
977: [18:56:48] <r3v3rb> Zauberfisch: do you have an example of injecting that button via ajax btw?
978: [18:57:21] <Zauberfisch> inject it with javascript
979: [18:57:37] <Zauberfisch> use ajax only to handle the button click
980: [19:00:29] <r3v3rb> hmm, okay I’ll see what I can do. why client can’t just upload empty csv I do not know…
981: [19:03:49] <r3v3rb> hmm, I might just give her a controller url instead ie site.com/admin/modeladmin/delete
982: [19:04:05] * r3v3rb checks if this is feasible :D
983: [19:05:37] * Azure quit (Ping timeout: 245 seconds)
984: [19:08:12] * Azure has joined #silverstripe
985: [19:17:24] <Zauberfisch> r3v3rb: injecting that button is super easy
986: [19:17:42] <Zauberfisch> actually, if you want to do it super fast, don't even do ajax, just make a <a> that opens a new tab
987: [19:17:46] <r3v3rb> Zauberfisch: adding the hidden url controller was easier !
988: [19:18:06] <Zauberfisch> all you need to do is create a javascript file, include it in the cms
989: [19:18:20] <Zauberfisch> and just append a <a> to the model admin container
990: [19:18:29] <Zauberfisch> you know what I mean?
991: [19:18:50] <r3v3rb> so xyz.com/admin/modeladmin/delete with a function called delete in the modeladmin and done… a little $echo to show whats happening during the loop and then a $redirect at the end
992: [19:19:17] <Zauberfisch> yeah
993: [19:19:24] <r3v3rb> no need to press a button just get her to bookmark the url when she needs to flush
994: [19:19:24] <Zauberfisch> also, put in a check if the user is an admin
995: [19:19:26] <Zauberfisch> just to be sure
996: [19:19:29] <r3v3rb> sure
997: [19:19:45] <r3v3rb> as it runs only from admin though its kind of built in no?
998: [19:20:24] <Zauberfisch> well, a button is nice, because you can add a onclick javascript alert box saying "do you really want to delete all items?" "ok" or "cancel"
999: [19:20:32] <Zauberfisch> ah, right
1000: [19:20:37] <Zauberfisch> I didn't read the url
1001: [19:20:39] <Zauberfisch> yes
1002: [19:20:43] <Zauberfisch> I think so
1003: [19:21:00] <r3v3rb> Zauberfisch: but the client isnt paying so cheap is required
1004: [19:21:13] <r3v3rb> and they’ll only use the function once a year!
1005: [19:21:50] <r3v3rb> I would prefer a button but I’m feeling mean and a bit lazy
1006: [19:21:56] <Zauberfisch> r3v3rb: btw, if you are coming to the ss meetup, make sure you sign up on meetup.com
1007: [19:22:09] <r3v3rb> yeh sure, problem is wife not the flights
1008: [19:22:18] <Zauberfisch> :D
1009: [19:22:36] <r3v3rb> she wants to come too which increases the costs somewhat as we have two children too
1010: [19:22:45] <Zauberfisch> tell her the magic fish orderd you to come
1011: [19:22:47] <Zauberfisch> oh, I see
1012: [19:22:58] <r3v3rb> I’ll keep working on her, for a week or so
1013: [19:23:26] <r3v3rb> tell her its a really ugly industrialised place like köln in Germany :D
1014: [19:23:36] <Zauberfisch> haha
1015: [19:24:15] <Zauberfisch> yeah, look at all the ugly industry http://www.linz.at/images/hauptplatz%282%29.jpg
1016: [19:24:24] <r3v3rb> whoops not köln that was lovely I meant Kiel which wasn’t
1017: [19:25:56] <harold____> is it possible to get access to your custom css styles in the wysiwyg editor
1018: [19:26:13] <r3v3rb> harold____: yes, add them to the editor.css
1019: [19:26:37] <r3v3rb> and make sure they are also in typography.css if i remember correctly
1020: [19:26:39] <Zauberfisch> harold____: as r3v3rb pointed out, just create a editor.css in your theme, silverstripe will automatically load it
1021: [19:26:52] * r3v3rb on the ball tonight for a change
1022: [19:27:06] <Zauberfisch> :)
1023: [19:30:27] <harold____> i created editro.css in my themes folder along with the other css files
1024: [19:30:32] <harold____> I put a single style in
1025: [19:30:47] <harold____> but when i click styles in the ditor I don't have any options
1026: [19:30:52] <harold____> it doesn't offer any
1027: [19:31:05] <r3v3rb> harold ?flush=all maybe?
1028: [19:31:34] <r3v3rb> and i think they have to be siblings to .typography if memory serves me correctly
1029: [19:31:47] <harold____> ah login and out again worked
1030: [19:31:55] <r3v3rb> so .typography .mystyle { color: red; }
1031: [19:32:22] * ajmitch quit (Ping timeout: 240 seconds)
1032: [19:32:46] * ajmitch has joined #silverstripe
1033: [19:33:47] * veb quit (Ping timeout: 276 seconds)
1034: [19:33:52] <harold____> wow that's neat
1035: [19:34:16] <harold____> i was just thinking what's the point in me styling a page nicely if the user can't apply those styles when they add content
1036: [19:34:18] <harold____> neat i like it
1037: [19:34:50] <r3v3rb> welcome to SS - neat is it’s middle name
1038: [19:35:49] <scpi> silverneatstripe?
1039: [19:36:17] <r3v3rb> scpi: did you not know that?
1040: [19:36:50] <scpi> I must have missed it. That's what I get for not reading the changelogs.
1041: [19:37:00] <r3v3rb> ;)
1042: [19:38:10] <r3v3rb> right time to shutdown :(
1043: [19:38:20] * veb has joined #silverstripe
1044: [19:42:47] * r3v3rb quit (Quit: r3v3rb)
1045: [19:48:16] * wmk has joined #silverstripe
1046: [19:53:17] * wmk quit (Ping timeout: 276 seconds)
1047: [19:59:20] * r_hector has joined #silverstripe
1048: [20:03:31] * oddnoc has joined #silverstripe
1049: [20:06:27] * r_hector quit (Quit: Leaving.)
1050: [20:07:33] * maxer has joined #silverstripe
1051: [20:08:02] * UndefinedOffset quit (Quit: Leaving.)
1052: [20:11:52] * maxer quit (Ping timeout: 245 seconds)
1053: [20:22:02] * Olliepop has joined #silverstripe
1054: [20:27:13] * Stomach has joined #silverstripe
1055: [20:28:33] * Shrike_Finland quit (Quit: Leaving.)
1056: [20:33:14] * jedateach has joined #silverstripe
1057: [20:33:37] * camfindlay has joined #silverstripe
1058: [20:39:32] * nickmolhoek has joined #silverstripe
1059: [20:41:14] * Ryan-Toast has joined #silverstripe
1060: [20:41:31] * muskie9 quit (Read error: Connection reset by peer)
1061: [20:42:10] * muskie9 has joined #silverstripe
1062: [20:43:53] * muskie9 quit (Read error: Connection reset by peer)
1063: [20:44:31] * muskie9 has joined #silverstripe
1064: [20:51:08] * vebb has joined #silverstripe
1065: [21:04:13] * micmania1 has joined #silverstripe
1066: [21:05:42] * zippy has joined #silverstripe
1067: [21:05:48] <zippy> morn
1068: [21:08:18] * maxer has joined #silverstripe
1069: [21:08:55] * UncleCheese has joined #silverstripe
1070: [21:12:20] * muskie9 quit (Read error: Connection reset by peer)
1071: [21:12:40] <Ryan-Toast> morning
1072: [21:12:42] * maxer quit (Ping timeout: 245 seconds)
1073: [21:13:02] * muskie9 has joined #silverstripe
1074: [21:14:34] * muskie9 quit (Read error: Connection reset by peer)
1075: [21:15:13] * muskie9 has joined #silverstripe
1076: [21:15:47] <Ryan-Toast> Not having a good start to your Friday, muskie9?
1077: [21:16:03] * camfindlay quit (Quit: camfindlay)
1078: [21:16:13] <muskie9> Ryan-Toast, still trying to finish up thurs lol
1079: [21:16:58] <Ryan-Toast> muskie9: Haha, aww man.
1080: [21:17:26] * catcher quit (Quit: Leaving)
1081: [21:20:51] * maxer has joined #silverstripe
1082: [21:20:57] * camfindlay has joined #silverstripe
1083: [21:22:44] * camfindlay quit (Client Quit)
1084: [21:23:01] * camfindlay has joined #silverstripe
1085: [21:24:59] * StefanLehmann has joined #silverstripe
1086: [21:29:36] * scpi quit (Quit: be excellent to each other)
1087: [21:35:07] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1088: [21:46:02] <Ryan-Toast> antmas: you’ll want to update your Layout/Page.ss, I just fixed a bug with the sidebar. https://github.com/Rhym/ss_boilerplate/
1089: [21:46:14] <Ryan-Toast> aaaaaaand he’s not here ><
1090: [21:48:10] <zippy> omg, https://www.youtube.com/watch?v=YoB8t0B4jx4#t=25 this is crazy!
1091: [21:49:21] <Ryan-Toast> zippy: Watched that before, was hilerious :P Pretty sure they’re actors though.
1092: [21:49:31] <zippy> you'd hope so
1093: [22:06:23] * gelignite quit (Quit: http://bit.ly/nkczDT)
1094: [22:10:14] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1095: [22:10:28] * UncleCheese has joined #silverstripe
1096: [22:16:07] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1097: [22:17:58] * hailwood has joined #silverstripe
1098: [22:18:06] * toddvalentine quit ()
1099: [22:27:41] <Stomach> Wordpress 4.0 is out
1100: [22:28:00] * Stomach defects
1101: [22:44:38] * simon_w|work has joined #silverstripe
1102: [22:47:52] * Kingy[a] is now known as Kingy
1103: [22:49:01] <Kingy> why do people come to work and cough all over me
1104: [22:49:03] <Kingy> urrrgh
1105: [22:49:58] <simon_w|work> Is good for your immune system
1106: [22:50:41] * simon_w|work coughs over Kingy some more
1107: [22:55:40] <Kingy> :(
1108: [23:11:41] * antmas has joined #silverstripe
1109: [23:15:59] <ss23> :O
1110: [23:16:13] <simon_w|work> https://github.com/facebook/hhvm/commit/8fd5a78b02d2d62538e77fcbc927df759c1722f9
1111: [23:17:50] <ss23> :shipit:
1112: [23:18:06] <simon_w|work> Indeed
1113: [23:19:22] <Kingy> fuck it, ship it
1114: [23:21:43] * zippy has joined #silverstripe
1115: [23:21:49] <antmas> dat destiny live action trailer
1116: [23:21:58] <antmas> :O
1117: [23:23:13] * harold____ quit (Ping timeout: 246 seconds)
1118: [23:30:45] * Blacklite_ is now known as Blacklite
1119: [23:31:25] <zippy> oh yes... http://i.imgur.com/SElCxW2.gif
1120: [23:34:29] <Ryan-Toast> zippy: Heh. There’s finally a phone coming out that I actually want.
1121: [23:34:29] <antmas> zippy: awesome
1122: [23:35:41] <Ryan-Toast> mmmmm z3 http://www.sonymobile.com/global-en/products/phones/xperia-z3/
1123: [23:36:46] <antmas> that is kinda ugly
1124: [23:36:55] <Ryan-Toast> YOUR FACE IS KIND OF UGLY
1125: [23:37:09] <zippy> iphone rip off
1126: [23:37:10] <antmas> :P
1127: [23:37:17] <Ryan-Toast> zippy: lolk
1128: [23:37:22] <antmas> it has rounded edges
1129: [23:37:26] <antmas> reminds me of 2007
1130: [23:37:51] <Ryan-Toast> Had my Z1 for 2 years now, best phone I’ve ever owned.
1131: [23:38:24] <antmas> yeah I've had my GS3 for 3 years
1132: [23:38:29] <antmas> still goes hard :D
1133: [23:39:04] <antmas> had an iphone 5 in that time
1134: [23:39:10] <antmas> and sold it
1135: [23:39:18] <Ryan-Toast> antmas: I reeeeaaalllyyyy hate TouchWiz
1136: [23:39:18] <Kingy> rocking the s4
1137: [23:39:20] <Kingy> can't complain
1138: [23:39:30] <zippy> iphone 4, she slow... time for a 6
1139: [23:39:49] <Ryan-Toast> Although Sony is getting worse and worse.,
1140: [23:40:02] <Ryan-Toast> But meh, ROMS
1141: [23:40:08] * nickmolhoek quit (Quit: nickmolhoek)
1142: [23:40:22] <antmas> I kinda like the Z3 for the PS4 bit
1143: [23:40:28] <antmas> but then again, my GS3 can do that
1144: [23:40:43] <antmas> Ryan-Toast: I never used touchwiz, it's aweful :(
1145: [23:41:01] <Ryan-Toast> antmas: Don’t care about the PS4 thing :P
1146: [23:41:13] <zippy> the Gear VR looks interesting
1147: [23:41:16] <zippy> how it uses the phone...
1148: [23:41:17] <zippy> http://www.engadget.com/2014/09/03/samsung-virtual-reality/
1149: [23:41:43] <antmas> yeah that thing looks sweet
1150: [23:50:30] <adrexia> woah. I just learnt that $debug was something you could do in templates.
1151: [23:50:46] <adrexia> that could have been useful on sop many occassions
1152: [23:51:11] <simon_w|work> Bah, so hot
1153: [23:51:20] * simon_w|work blames Colin[pi]
1154: [23:51:36] <ss23> Hot here too
1155: [23:51:39] <ss23> Raining? FUCK YOU STILL HOT
1156: [23:52:29] <antmas> STOP COMPLAINING ABOUT THE HOT
1157: [23:52:35] <antmas> HOT IS BETTER THAN COLD
1158: [23:52:38] <antmas> ;__;
1159: [23:52:42] <simon_w|work> NO IT ISN'T
1160: [23:53:14] <simon_w|work> Ooh, maybe I could blame the guy that's too lazy to fix all his E_NOTICE errors, so turned off displaying them just for him
1161: [23:53:20] <Kingy> So dev build is shitting itself. Trying to create an index on a table that doesn't even exist?
1162: [23:53:23] <ss23> Cold is infinitly better tahn hot
1163: [23:53:23] <simon_w|work> OH LOOK, NOW SELENIUM TESTS ARE BREAKING
1164: [23:53:23] <ss23> :/
1165: [23:53:38] <Kingy> create unique index "ix_ce30ac5555daf87b357acebd7dbd3e3a" ON "AgriFaxBrandPage_versions"
1166: [23:53:38] <Kingy> ERROR: relation "ix_ce30ac5555daf87b357acebd7dbd3e3a" already exists
1167: [23:54:43] <antmas> ss23: no way
1168: [23:54:49] <antmas> cold is more expensive
1169: [23:54:53] <ss23> Yaweh!
1170: [23:54:54] <antmas> and people get sick
1171: [23:56:34] <simon_w|work> And people die when it gets hot
1172: [23:56:47] <simon_w|work> Also, it's easier to warm something up then to cool it down
1173: [23:57:06] <simon_w|work> And is easier to warm yourself up (extra clothes) than to cool down
1174: [23:57:37] <Ryan-Toast> antmas: grab the Layout/Page.ss from BP, fixed a bug in sidebar
1175: [23:58:34] <antmas> Ryan-Toast: what was le bug?
1176: [23:58:49] <Ryan-Toast> antmas: sidebar showing when there was no siblings
1177: [23:58:57] <antmas> oh right
1178: [23:58:59] <antmas> that one
1179: [23:59:13] <antmas> was on my list of 'pester Ryan-Toast 2 days before release'
1180: [23:59:18] <Ryan-Toast> antmas: :P
1181: [23:59:25] <Ryan-Toast> I added a new module too.
1182: [23:59:31] <antmas> there was another one relating to userforms module
1183: [23:59:31] <Ryan-Toast> Food Menu
1184: [23:59:47] <Ryan-Toast> antmas: I don’t use userforms, so wouldn’t know
1185: [23:59:48] <antmas> but I think that is the module's fault
1186: [23:59:50] * Liquide has joined #silverstripe
1187: [23:59:53] * Kingy drops db

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