#silverstripe IRC Log

IRC log for 3 September 2014

All timestamps are in UTC.

1: [00:01:23] <superspring> hey all, i'm trying to find a module or similar which lets me show a loading page/progress screen for a back-end process... can anyone recommend something?
2: [00:02:02] * Kingy[a] is now known as Kingy
3: [00:02:56] * howardgrigg has joined #silverstripe
4: [00:03:23] <superspring> perhaps using jquery's progress bar or similar...
5: [00:04:38] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
6: [00:05:07] * nickmolhoek has joined #silverstripe
7: [00:06:37] <adrexia> EditableLiteralField doesn't use templates. Arg
8: [00:07:05] <adrexia> php html is the devil
9: [00:07:18] <adrexia> thanks userforms :P
10: [00:07:20] * howardgrigg quit (Ping timeout: 252 seconds)
11: [00:11:24] * travis-ci has joined #silverstripe
12: [00:11:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3299 (3.1 - 55de41b : Sean Harvey): The build passed.
13: [00:11:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7bacaa8c6ba1...55de41b0d5c9
14: [00:11:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34241161
15: [00:11:25] * travis-ci has left #silverstripe
16: [00:11:53] <adrexia> it also reports its type as "readonly"
17: [00:12:04] <adrexia> hmmm
18: [00:14:47] * jenniferaslan quit (Quit: jenniferaslan has left the room)
19: [00:23:48] <simon_w|work> Yay, all voted
20: [00:24:02] <adrexia> +1
21: [00:24:23] <simon_w|work> They weren't expecting someone so early, so hadn't done the staff training yet
22: [00:26:06] <antmas> simon_w|work: who'd ya vote for?
23: [00:26:07] <antmas> :D
24: [00:26:43] <simon_w|work> antmas, the two parties with the crazies :p
25: [00:27:03] <antmas> so, all of them?
26: [00:27:18] <simon_w|work> Yup
27: [00:27:25] <simon_w|work> Also, donated some L&P
28: [00:27:28] <simon_w|work> They liked that
29: [00:29:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
30: [00:32:33] <superspring> anyone have any preferred progress modules ^^?
31: [00:32:40] <ss23> Wait, where/who/what voting/
32: [00:33:04] <simon_w|work> ss23, advanced voting started today
33: [00:33:15] <simon_w|work> superspring, what sort of progress?
34: [00:33:50] <superspring> i'm trying to find a module or similar which lets me show a loading page/progress screen for a back-end process, so ajaxy...
35: [00:33:50] <ss23> Wait, which two parties have the crazies?
36: [00:34:14] <ss23> Cause National has physcopaths with no morales, labour is... idk, not crazy? just lame. greens have crazies, conservative has crazies, internet has crazies...
37: [00:34:31] <antmas> I'm assuming it's Conservative and InternetMana
38: [00:34:44] <ss23> They do seem like the two most crazies
39: [00:34:44] <simon_w|work> You assume that :)
40: [00:34:56] <antmas> indeed
41: [00:35:10] <simon_w|work> superspring, don't think there's any that exist, since it all depends on how the long running process works
42: [00:35:16] <ss23> I think simon_w|work isn't going to tell us
43: [00:35:36] <antmas> lol of course not
44: [00:36:18] <antmas> labour has crazies btw :P
45: [00:36:23] <antmas> they all do
46: [00:36:36] <ss23> DO YOU KNOW WHO I AM? I AM A POLITICIAN, NOW SERVE ME YOUR WINE
47: [00:36:38] <superspring> simon_w|work: any backend process that can be split into components could work with a ajax progress display...
48: [00:37:02] <superspring> simon_w|work: components as in 'total: 60 seconds, each part can run in 5 seconds, so 12 updates...'
49: [00:37:32] <superspring> i'd prefer against just writing a basic ajax callback for this one site...
50: [00:44:43] * micmania1 quit (Quit: micmania1)
51: [00:45:07] * maxer quit (Quit: maxer)
52: [00:51:30] <superspring> i'll ask this question again later... i was hoping for a proper Silverstripe way of doing this...
53: [00:53:02] * oddnoc quit (Quit: oddnoc)
54: [00:53:47] * howardgrigg has joined #silverstripe
55: [00:58:38] * howardgrigg quit (Ping timeout: 276 seconds)
56: [01:03:54] * micmania1 has joined #silverstripe
57: [01:10:53] * kerosene quit (Ping timeout: 240 seconds)
58: [01:15:11] * zippy has joined #silverstripe
59: [01:24:18] * Olliepop has joined #silverstripe
60: [01:39:10] * howardgrigg has joined #silverstripe
61: [01:42:20] * veb is now known as vebb
62: [01:42:21] <spronk> ss23, so, aaron gilmore,
63: [01:42:23] <spronk> he's my cousin
64: [01:42:23] <spronk> :(
65: [01:43:24] * howardgrigg quit (Ping timeout: 252 seconds)
66: [01:46:55] * UncleCheese has joined #silverstripe
67: [01:49:39] <Kingy> lol spronk
68: [01:50:23] <simon_w|work> spronk, could be worse.
69: [01:52:10] <ss23> simon_w|work: hahaha
70: [01:52:57] <ss23> urgh
71: [01:53:00] <ss23> I meant spronk*
72: [01:55:26] * vebb is now known as veb
73: [01:56:57] <simon_w|work> Sure sure
74: [01:57:35] <simon_w|work> Colin[pi], if that kiwi friend of yours votes at the High Commission, there's a chance of a free can of L&P
75: [02:02:07] * veb is now known as vebb
76: [02:05:13] <simon_w|work> HIP HIP HOORAY, IT'S WEASEL STOMPING DAY
77: [02:05:49] <ss23> ...
78: [02:05:51] <ss23> Now I wanna vote
79: [02:05:52] <ss23> :(
80: [02:06:17] <simon_w|work> ss23, bit hard for you to get to this particular High Commission
81: [02:11:51] <spronk> well
82: [02:11:56] <spronk> how to solve the voting problem:
83: [02:11:58] <spronk> give peopel free shit
84: [02:11:59] <spronk> for voting.
85: [02:12:09] <Kingy> yeah like a microsoft azure tshirt
86: [02:12:23] <spronk> .... or not
87: [02:12:23] <spronk> :D
88: [02:12:41] <spronk> though
89: [02:12:45] <spronk> i do actually wear the tshirt new relic sent me..
90: [02:13:49] <simon_w|work> I got a free shopping bag from Longreads
91: [02:16:42] <spronk> hrmph
92: [02:16:53] <spronk> i'm at that point where i think it might be easier to just delete the last couple of months worth of workj
93: [02:16:54] <spronk> and start fresh
94: [02:24:11] * ocm13 has joined #silverstripe
95: [02:25:13] * gordon has joined #silverstripe
96: [02:25:36] * gordon is now known as Guest69722
97: [02:26:51] * Guest69722 is now known as elgrodo
98: [02:27:21] <elgrodo> been a while since I've been here...
99: [02:27:38] <elgrodo> need some help with nginx and SilverStripe. The public side of my site is running whizzo with this, https://gist.github.com/chtombleson/8703899
100: [02:28:11] <elgrodo> however editing is broken, I am seeing PHP code returned for AJAX requests when I want to edit another page (i.e. clicking on the tree to edit a page that is not the current one)
101: [02:28:30] * ocm13 quit (Ping timeout: 255 seconds)
102: [02:28:39] <elgrodo> anyone have a working example I can use?
103: [02:28:50] <elgrodo> or is the norm Apache for editing and nginx for serving the public site?
104: [02:31:34] <simon_w|work> elgrodo, http://docs.silverstripe.org/framework/en/installation/nginx is what I use and it works fine
105: [02:31:50] <simon_w|work> Do need to remember to increase the FastCGI and request buffers though
106: [02:31:52] <Ryan-Toast> http://i.imgur.com/5JlL0NF.jpg
107: [02:36:34] <elgrodo> simon_w: Mmmm, I tried that one and the editing is broken (Ubuntu 14.0.4, SilverStripe 3.1.5)
108: [02:37:22] <elgrodo> will test on my local machine which is 12.0.4
109: [02:37:38] <simon_w|work> elgrodo, did you bump the fastcgi buffer sizes?
110: [02:37:46] <zippy> Ryan-Toast: do you do any work (not counting reddit as work)
111: [02:37:54] <Ryan-Toast> zippy: Sometimes
112: [02:38:30] <elgrodo> simon_w: Nope but the site is basic auth protected and I am the only one hitting it. Surely that couldn't cause PHP to be returned instead of the result of it's execution?
113: [02:38:36] <elgrodo> let's try ;)
114: [02:38:38] <zippy> are you employed to surf reddit, and find the best gifs and cat pictures that you post to an internal website are you work, so the other staff members don't waste time on reddit they just view your page instead?
115: [02:38:39] <elgrodo> :)
116: [02:38:58] <simon_w|work> elgrodo, buffer size is how much data nginx sends/accepts from fastcgi
117: [02:39:02] <simon_w|work> SilverStripe sends a lot
118: [02:39:31] * babak quit (Quit: Connection closed for inactivity)
119: [02:39:59] <elgrodo> noted, thanks
120: [02:40:03] * howardgrigg has joined #silverstripe
121: [02:40:34] <elgrodo> have been dealing with some WTF bugs this week simon_w, likes of foundation top bar menus not degrading gracefully when screen is made small. Turned out the Duck Duck Go Go plugin caused the bug...
122: [02:41:28] <Ryan-Toast> zippy: That would be a fantastic job.
123: [02:43:55] * vebb has joined #silverstripe
124: [02:44:16] * howardgrigg quit (Ping timeout: 252 seconds)
125: [02:44:54] <elgrodo> simon_w: Tried the values from this post, http://www.silverstripe.org/dataobjectmanager-module-forum/show/12504 , same issue
126: [02:45:16] <simon_w|work> elgrodo, so what's actually happening?
127: [02:47:29] <elgrodo> visually when I click on another page to edit it does not change. I cannot copy the response in Chrome dev tools for some reason but I see likes of Object::add_extension('SiteTree', 'TemplateOverrideExtension'); and then after the closing ?> of PHP {"Content": "<div id=....
128: [02:47:34] <elgrodo> ie code being returned
129: [02:47:57] <simon_w|work> Sounds like you've got a file that starts with <? instead of <?php
130: [02:49:00] <elgrodo> oooh. Checking
131: [02:49:53] <elgrodo> ha, and "sudo grep -rIn '<?' . | grep -v php" wont work as the filenames are PHP :)
132: [02:50:01] <elgrodo> *eats more breakfast* *gets more coffee*
133: [02:50:52] <simon_w|work> grep -v '<?php'
134: [02:56:31] * antmas quit (Quit: Page closed)
135: [02:57:17] * Colin[pi] quit (Ping timeout: 245 seconds)
136: [03:00:36] <elgrodo> "sudo grep -rIn '<?' . | grep -v '<?php' | grep php
137: [03:00:36] <elgrodo> " < oooh, there is one...
138: [03:00:53] * vebb has joined #silverstripe
139: [03:01:05] <simon_w|work> And it's probably a _config.php too
140: [03:03:28] <elgrodo> haha, it is
141: [03:04:14] <elgrodo> will test lack of php after the question mark first and then switch to extensions.yml
142: [03:06:59] <zippy> keep using cmd-w to close the google dev toolbar! (phpstorm lets you do it..) argh
143: [03:07:52] * vebbbbbbbbbbb has joined #silverstripe
144: [03:09:38] <Ryan-Toast> zippy: http://i.imgur.com/8CE2j79.jpg
145: [03:09:45] <Ryan-Toast> just doing my job, bud.
146: [03:09:53] <elgrodo> simon_w: Fixed, a million thanks, I hadn't spotted the lack of <?php in the response. Will add a note to the wiki page
147: [03:10:05] <zippy> heh
148: [03:10:16] <simon_w|work> elgrodo, that has nothing to do with nginx
149: [03:10:36] <elgrodo> it works with Apache
150: [03:10:50] <simon_w|work> Using different PHP instances then
151: [03:10:51] * vebb quit (Ping timeout: 252 seconds)
152: [03:10:59] <simon_w|work> It's all to do with allow_short_tags
153: [03:13:36] * Phlunk3 has joined #silverstripe
154: [03:18:59] <elgrodo> Correct tag is short_open_tag, which is set to On on my local machine (Apache php.ini) and Off on the server (PHP fpm).
155: [03:19:39] <elgrodo> all makes sense now, and I was looking for the solution in the wrong place. thanks for the pointers, much appreciated
156: [03:36:02] <zippy> boy composer sure takes it's sweet ass time to install things
157: [03:39:50] <simon_w|work> That's a nice way of putting it
158: [03:40:04] <UncleCheese> zippy simon_w|work agreed
159: [03:40:23] <UncleCheese> someone told me it's just NZ that gets hosed
160: [03:40:28] <simon_w|work> It's a lot faster if you don't use packagist and github
161: [03:40:43] <UncleCheese> if you live in a part of the world where like, there are servers, it's faster
162: [03:41:06] <simon_w|work> Fairly sure github only has one location
163: [03:41:07] * howardgrigg has joined #silverstripe
164: [03:45:19] <zippy> hmmm
165: [03:45:36] <zippy> to upgrade debian from 6 to 7. or just install php 5.4..
166: [03:45:37] * howardgrigg quit (Ping timeout: 245 seconds)
167: [03:46:18] <simon_w|work> Upgrade to 7, install HHVM
168: [03:47:54] <zippy> don't have time to play with hhvm
169: [03:48:20] <UncleCheese> PHP 7?
170: [03:49:00] <simon_w|work> zippy, don't need to play! If you're using FastCGI, just drop it in
171: [03:49:24] <zippy> UncleCheese: deb 7
172: [03:49:48] <simon_w|work> I see madmatt still hasn't fixed his blog post
173: [03:50:22] * cloph has joined #silverstripe
174: [03:50:37] * cloph_away quit (Ping timeout: 245 seconds)
175: [03:51:51] <spronk> zippy,
176: [03:51:54] <spronk> upgrade to 7
177: [03:51:55] <spronk> because
178: [03:51:59] <spronk> you'll want >5.4 very soon
179: [03:52:11] <zippy> spronk: yes, but, I can just install the 5.4 package....
180: [03:52:23] <zippy> www.dotdeb.org/instructions/
181: [03:52:49] <zippy> oh, > then 5.4
182: [03:52:50] <simon_w|work> 5.4 is now security upgrades only. Go for 5.5.
183: [03:53:00] <simon_w|work> Or you'll need to upgrade in a year
184: [03:53:10] <spronk> yeahh
185: [03:53:44] <zippy> I think I might move server in a year anyway
186: [03:53:55] * Stomach is currently pushing a site live onto a third party host and they only have 5.3 and they told us they had 5.4 so most of his code doesnt work and he is very angry and sad and upset
187: [03:54:21] <Stomach> stupid fucks.
188: [03:54:35] * simon_w|work is switching everyone's local dev environments to HHVM so he can use PHP 5.4 features
189: [03:55:22] * Olliepop quit (Ping timeout: 246 seconds)
190: [03:56:00] <Stomach> why not just install 5.4?
191: [03:56:23] <simon_w|work> Supposed to match the live environment (which was 5.5 when I started)
192: [03:56:43] <simon_w|work> Switching one of the core files to Hack would kinda force things...
193: [04:01:32] * babak has joined #silverstripe
194: [04:11:17] <spronk> hmm
195: [04:29:30] * Kingy is now known as Kingy[a]
196: [04:33:24] * Colin[pi] has joined #silverstripe
197: [04:33:57] <Ryan-Toast> Ah, this is so fucking cool: https://www.youtube.com/watch?v=n_6p-1J551Y
198: [04:39:58] * Stomach quit (Quit: bye)
199: [04:42:10] * howardgrigg has joined #silverstripe
200: [04:42:41] * travis-ci has joined #silverstripe
201: [04:42:41] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3301 (3.1 - c112c1c : Stig Lindqvist): The build was broken.
202: [04:42:41] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/55de41b0d5c9...c112c1c69fc5
203: [04:42:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34253679
204: [04:42:41] * travis-ci has left #silverstripe
205: [04:43:22] * markcl has joined #silverstripe
206: [04:43:35] <markcl> I have a page called Blog inside the root tree
207: [04:43:45] <markcl> How can I access it from my HomePage to query its contents?
208: [04:46:27] * howardgrigg quit (Ping timeout: 246 seconds)
209: [04:58:20] <zippy> OMG I hate shit error messages
210: [04:58:50] <zippy> 30 mins spent hunting something down, simply because db wasn't configured, farrrrkk
211: [04:59:48] * jedateach quit (Quit: jedateach)
212: [04:59:54] <spronk> blehj
213: [04:59:54] <spronk> lam
214: [04:59:55] <spronk> e
215: [05:00:01] * Phlunk3 quit (Quit: Leaving)
216: [05:00:19] <spronk> Ryan-Toast, that thing
217: [05:00:20] <spronk> is COOL
218: [05:07:58] <Colin[pi]> wow that is pretty awesome
219: [05:11:02] * micmania1 has left #silverstripe
220: [05:17:09] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
221: [05:18:55] * Ryan-Toast quit (Quit: Ryan-Toast)
222: [05:20:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
223: [05:28:38] * Kingy[a] is now known as Kingy
224: [05:34:29] <Colin[pi]> killed my headset yesterday :(
225: [05:34:32] <Colin[pi]> damn chair rollers
226: [05:34:34] <Colin[pi]> evil things
227: [05:36:27] * camfindlay has joined #silverstripe
228: [05:42:52] <simon_w|work> The blog still can't handle my twitter handle?
229: [05:42:57] * simon_w|work blames ss23
230: [05:43:12] * howardgrigg has joined #silverstripe
231: [05:44:27] <Colin[pi]> poor ss23
232: [05:44:35] <Colin[pi]> gets blamed for *
233: [05:45:08] <simon_w|work> Hang on, there's someone else in here I can blame!
234: [05:45:12] * simon_w|work blames camfindlay too
235: [05:45:52] <camfindlay> *adds a user story to the pile*
236: [05:47:06] <camfindlay> Colin[pi] thanks for your case study too btw
237: [05:47:16] <Colin[pi]> camfindlay: no worries
238: [05:47:21] * howardgrigg quit (Ping timeout: 246 seconds)
239: [05:47:30] <camfindlay> have been busy as last few weeks, not getting enough IRC time :(
240: [05:47:35] <Colin[pi]> camfindlay: I knew I'd get weekly pings until I sent it :P
241: [05:47:58] <camfindlay> whatever.. it was a bot anyway :P
242: [05:51:05] <Colin[pi]> lol
243: [05:51:32] <Colin[pi]> camfindlay: you still need those three questions about the business?
244: [05:51:36] <Colin[pi]> I have those on my mac
245: [05:51:47] <simon_w|work> Yay, back to micro-optimising https://gist.github.com/simonwelsh/9b1c3d6eeada0d93e755
246: [05:56:35] <camfindlay> Colin[pi] yip that would be good man - you should provide me an avatar pic to go with them ;)
247: [05:57:34] * camfindlay quit (Quit: camfindlay)
248: [06:00:47] * Kingy is now known as Kingy[a]
249: [06:01:04] * jedateach has joined #silverstripe
250: [06:01:08] * Shrike_Finland has joined #silverstripe
251: [06:02:27] * Shrike_Finland quit (Client Quit)
252: [06:23:32] * willr quit (Quit: willr)
253: [06:24:10] * openbees has joined #silverstripe
254: [06:26:21] <openbees> Hello there , Is there any way to control page delete when managing site tree items using grid fields. What happening now is when I delete one site tree item using GridFieldDeleteAction it only deletes that page entry from stage table and not from live table, any ways to fix this ?
255: [06:26:57] * vebb has joined #silverstripe
256: [06:27:42] <openbees> I had to use girdfield for site tree page listing as I have 10K+ children pages for some of page in cms.
257: [06:28:25] * vebb quit (Client Quit)
258: [06:44:40] * howardgrigg has joined #silverstripe
259: [06:46:09] * jedateach quit (Ping timeout: 246 seconds)
260: [06:49:03] * howardgrigg quit (Ping timeout: 255 seconds)
261: [06:50:44] <markcl> What's the best Silverstripe sortable upload field module I can use?
262: [07:00:13] * Shrike_Finland has joined #silverstripe
263: [07:09:03] * ocmnt has joined #silverstripe
264: [07:13:59] * howardgrigg has joined #silverstripe
265: [07:22:32] * howardgrigg quit ()
266: [07:24:58] * Frans_Amsterdam has joined #silverstripe
267: [07:26:30] <Frans_Amsterdam> Hello all, someone ready for a little have to know question on the Security class?
268: [07:31:28] <simon_w|work> Won't know if you don't ask your question
269: [07:34:48] <Frans_Amsterdam> @simon_w|work Its kind of a classic I guess, but I'm extending the Security class to use a custom LostPassword form. So the is a CustomSecurity extends Security controller added but it seems that it doesn't get called. I'm in SS 3.2
270: [07:36:11] <simon_w|work> Did you change the Security route to point to your class?
271: [07:36:56] <Frans_Amsterdam> @simon_w|work Bingo! I didn't. Thank You.
272: [07:37:40] <openbees> I think this one is better solution https://github.com/icecaster/silverstripe-versioned-gridfield instead of directly using GridFieldDelete Action when managing site tree in grid field.
273: [07:37:44] <openbees> thanks anyway
274: [07:40:43] * vebb has joined #silverstripe
275: [07:45:07] * stnvh has joined #silverstripe
276: [07:48:18] * openbees quit (Ping timeout: 260 seconds)
277: [07:50:12] * wmk has joined #silverstripe
278: [07:51:31] <wmk> g'morning
279: [07:53:43] * ocm has joined #silverstripe
280: [07:54:38] * ocmnt quit (Ping timeout: 276 seconds)
281: [07:54:38] * ocm is now known as ocmnt
282: [07:57:32] <ocmnt> howdy
283: [08:04:17] * jordanmk has joined #silverstripe
284: [08:04:43] <jordanmk> hey guys, is there an easy way to filter DataObjects by whether any items exist in a has_many relation on that DataObject?
285: [08:05:00] * openbees has joined #silverstripe
286: [08:05:03] <jordanmk> i have a DataObject with this relation: private static $has_many = array('Images' => 'EventImage');
287: [08:05:34] <jordanmk> and now i'm trying to figure out the best way to find all of those DataObjects that have at least one EventImage
288: [08:06:31] * kinglozzer has joined #silverstripe
289: [08:08:37] * qlex has joined #silverstripe
290: [08:08:41] * qlex says hi
291: [08:09:00] <qlex> has anyone seen DesignerX recently? he was moving houses, and DSL is so bad in australia supposedly, he dissapeared
292: [08:10:42] <wmk> jordanmk, i guess with ORM it'll be difficult.
293: [08:11:43] <wmk> you can rightjoin the dataobject_eventimage table and filter there
294: [08:21:29] <jordanmk> i can do it like this: http://pastebin.com/YzGHS0gU
295: [08:21:36] <jordanmk> but i can't imagine that's very efficient
296: [08:23:45] <Frans_Amsterdam> Sorry I, back on my question.
297: [08:23:45] <Frans_Amsterdam> I have created: SaltoSecurity extends Security
298: [08:23:45] <Frans_Amsterdam> In yml file I have:
299: [08:23:45] <Frans_Amsterdam> Name: myroutes
300: [08:23:45] <Frans_Amsterdam> After: framework/routes#coreroutes
301: [08:23:45] <Frans_Amsterdam> ---
302: [08:23:47] <Frans_Amsterdam> Director:
303: [08:23:47] <Frans_Amsterdam> rules:
304: [08:23:47] <Frans_Amsterdam> 'Security//$Action/$ID/$OtherID': 'SaltoSecurity'
305: [08:23:47] <Frans_Amsterdam> That seems not to work. Any one a quick tip?
306: [08:24:35] <Frans_Amsterdam> Oops that paste went wrong. Sorry for that.
307: [08:27:14] * seah0rse quit (Quit: Leaving...)
308: [08:34:55] * liam__ has left #silverstripe
309: [08:39:07] <wmk> jordanmk, depends on how many events you have ;)
310: [08:39:29] * willr has joined #silverstripe
311: [08:39:35] <wmk> if you cache the result it'll be more efficient
312: [08:41:31] * Pyelk has joined #silverstripe
313: [08:41:39] <Pyelk> hurro
314: [08:41:55] <wmk> Frans_Amsterdam, in a setup i did a year ago i had After: '#coreroutes'
315: [08:42:08] <wmk> elk?
316: [08:42:23] <wmk> Pyelk, you have funny ears?
317: [08:42:43] <Pyelk> elk is like a moose?
318: [08:42:47] <wmk> hmm, no, that 've been elbs
319: [08:43:01] <Pyelk> Frans_Amsterdam: Injector: Security: class: AltoSecurity
320: [08:43:22] <Pyelk> deutch hmm?
321: [08:43:32] <Pyelk> how do you spell it :<
322: [08:44:07] <wmk> the animal or the mythical creature?
323: [08:44:09] <Frans_Amsterdam> Investigating
324: [08:44:16] <Pyelk> wmk: German
325: [08:44:25] <wmk> Deutsch
326: [08:44:56] <wmk> "sch" is like "sh" in english (e.g. shell)
327: [08:45:00] <wmk> or bash
328: [08:45:25] <wmk> Deutch sounds like tyrolian dialect
329: [08:45:59] <Pyelk> hmm, still better than the fellow in Munich who asked me a question so I told him I don't speak Dutch :P
330: [08:46:12] <wmk> Pyelk, your injector solution is like "use AltoSecurity class instead of Security class" ??
331: [08:46:22] <Pyelk> wmk: yes, but not sure it'll work.
332: [08:46:35] <wmk> bavarian and dutch are two totally different things
333: [08:46:58] <Pyelk> otherwise yes, it's a matter of finding the right include order for the priority of the route
334: [08:47:24] <Pyelk> wmk: yeah I know that!
335: [08:48:00] <Pyelk> I just talking too quickly and didn't get the accents right, so fucked it all up and it came out "Dutch... oh, or German either"
336: [08:48:08] <Pyelk> oh oops*
337: [08:48:13] <Pyelk> or something like that, heh
338: [08:48:55] <Pyelk> He spoke English anyway, so it was fine. He wanted directions to the Hauptbahnhof
339: [08:49:14] <wmk> to the center and then left
340: [08:49:28] <Pyelk> which he precluded we woudn't know as we weren't from Munich either. So then I gave him directions while my friend looked it up on his phone, and I was spot on.
341: [08:49:32] <wmk> or to the next underground;)
342: [08:50:04] <Pyelk> "Keep walking the direction you're going until tram tracks, turn right, follow tracks all the way to the station"
343: [08:50:18] <wmk> hauptbahnhof is easy. but find the right platform, as it's three stations in one
344: [08:50:30] * r3v3rb has joined #silverstripe
345: [08:50:46] <Pyelk> wmk: yeh, was a little mission to find the platform back to the airport
346: [08:51:29] <r3v3rb> Pyelk: How do!
347: [08:51:36] <wmk> it's the underground / S-Bahn, so you can go to any underground station and change later to the right train
348: [08:51:52] * simon_w|work quit (Ping timeout: 245 seconds)
349: [08:52:11] * simon_w|work has joined #silverstripe
350: [08:53:22] <wmk> anyone using vagrant with a subsites setup?
351: [08:53:53] <willr> vargant no. Subsites yes.
352: [08:54:19] <wmk> willr, have to update a subsite site to 3.1 and use vagrant as a dev server.
353: [08:54:46] <willr> what would be the issue?
354: [08:55:04] <willr> To test you can muck around with host files. Bit of a pain but managable
355: [08:55:17] <wmk> i think none. just add to /etc/hosts i guess.
356: [08:55:40] <wmk> and apache should route all connections to default silverstripe
357: [08:57:31] * maxer has joined #silverstripe
358: [08:57:51] <willr> yep that’s the goal
359: [08:58:22] * simon_w has joined #silverstripe
360: [08:59:26] <wmk> willr, default apache conf is ok on this machine, just have to tell silverstripe to map xxx-local domains to the right subsite
361: [08:59:55] <willr> that’ll be in the subsite admin. Just add it as a domain on the subsite
362: [09:01:55] <wmk> good idea. i always overwrite the domains on my dev server, but i can have all domains in db and it'll pick the rigth one... extra domain is no problem...
363: [09:01:59] <wmk> cool.
364: [09:02:04] <wmk> willr, you inspire me ;)
365: [09:02:30] <Colin[pi]> the willr effect
366: [09:03:22] <willr> Ah shucks. Helping ya’ll sure beats doing actual work
367: [09:08:37] * ocm has joined #silverstripe
368: [09:10:26] <kinglozzer> Sup Pyelk. The Zs caught up with me y-day, I was just too busy to listen to them
369: [09:10:38] <kinglozzer> Hey r3v3rb
370: [09:11:51] * ocmnt quit (Disconnected by services)
371: [09:11:55] * ocm is now known as ocmnt
372: [09:12:37] <simon_w> Oops, turns out our monitoring stops working if the database server runs out of harddrive space
373: [09:13:27] <r3v3rb> morning kinglozzer
374: [09:14:13] <r3v3rb> no joy with my adding a button to the modeladmin search results to go alongside the export button yet
375: [09:15:19] * Shrike_Finland quit (Quit: Leaving.)
376: [09:18:37] <willr> simon_w is that the only thing that stops :P
377: [09:19:18] <simon_w> willr, nope, though just hitting app.pocketrent.com still worked
378: [09:20:09] <simon_w> Though background tasks (including billing) all broke
379: [09:20:53] <simon_w> "Subject: Hi, scams my name is Maggie :-)"
380: [09:20:58] <simon_w> Heh, silly spammers
381: [09:22:41] <willr> PocketRent surviving without you being in town?
382: [09:23:09] <simon_w> Seems to be
383: [09:25:17] * Gregsm has joined #silverstripe
384: [09:25:25] <Gregsm> Hello
385: [09:26:41] * MattyBalaam has joined #silverstripe
386: [09:26:43] <Gregsm> Is there a way to show hierarhy in the GridField like ejs TreeGrid?
387: [09:27:10] <willr> Gregsm not that I’m aware. Closest you can get is clicking on them to show children
388: [09:28:05] <Gregsm> well.. in Pages list view you actually go inside another page when clicking :) not expanding it
389: [09:28:20] * zippy has joined #silverstripe
390: [09:29:02] <Gregsm> I tried to find a module... but looks like I have to write one myself
391: [09:29:23] <Pyelk> r3v3rb: just copy pastaficate the expport buttton component
392: [09:29:29] <Gregsm> unless someone could point me to existing solution
393: [09:29:46] <r3v3rb> Pyelk: okies, will find and try later
394: [09:32:36] <Frans_Amsterdam> Hello All, I'm still strugling to load my CustomSecurity class, I have copied the entire Security class and added a route to the config.yml that looks like this: Name: myroutes After: - '#rootroutes' -'#madolascontrollerroutes' and then Director: rules: 'Security//$Action/$ID/$OtherID': 'SaltoSecurity'
395: [09:33:50] <Pyelk> simon_w: empty transaction logs, had that same issue recently too. Except that it was entire group reliant every day use data.
396: [09:34:43] <MattyBalaam> I am delving into Model Admin for the first time, and I am integrating GridFieldEditableColumns from silverstripe-gridfieldextensions. However, once I edit a field I need to get this to save. Does anyone know if it is possible to add a save button to Model Admin, or would this require a fair amount of work?
397: [09:35:25] <Pyelk> MattyBalaam: I thought the entire point of in place editing was that it just saves.
398: [09:35:30] <Pyelk> there is no save button.
399: [09:35:57] <Pyelk> Frans_Amsterdam: ... you did flush right? adding the route should work.
400: [09:36:01] <Pyelk> you may have misspelt something
401: [09:39:06] * howardgrigg has joined #silverstripe
402: [09:39:30] <Frans_Amsterdam> Pyelk checking spelling. But it looks good
403: [09:39:37] <MattyBalaam> Pyelk: unfortunately not, this would usually be on a page, and requires a save for any changes to go to the database.
404: [09:39:49] <Pyelk> MattyBalaam: no, I don't think you understand.
405: [09:40:16] <MattyBalaam> Perhaps there is another inline editor field which saves?
406: [09:40:20] <Pyelk> The save button on a page saves THAT page, only.
407: [09:40:49] <Pyelk> all related items are saved in their own individual edit forms, opened via the gridfield.
408: [09:41:10] <kinglozzer> Pyelk: Nope, the inline one needs the page containing the gridfield to be saved
409: [09:41:11] <Pyelk> inplace editing should put a save button per row or do it automatically I think.
410: [09:41:17] <Pyelk> kinglozzer: weird.
411: [09:41:35] <Pyelk> hence the 'I thought' part though.
412: [09:41:41] * Shrike_Finland has joined #silverstripe
413: [09:41:54] <MattyBalaam> As it stands GridFieldEditableColumns does not work that way Pyelk
414: [09:41:55] <Pyelk> MattyBalaam: why inplace? why modeladmin?
415: [09:42:20] * qlex1 has joined #silverstripe
416: [09:42:33] <Pyelk> because it seems you won't get what you're looking for without some serious meddling
417: [09:42:58] <kinglozzer> Yeah I don't think that inline stuff is intended to work directly with ModelAdmin _at all_
418: [09:43:12] <kinglozzer> Mainly because, as you've discovered, there's no save button in ModelAdmin :P
419: [09:43:24] <kinglozzer> Well, until editform anyways
420: [09:43:36] <Pyelk> jordanmk: wmk: you can do that. But you'll have to call the join manually.
421: [09:44:07] <MattyBalaam> OK, perhaps someone has a better way. I just want to make some easily accessible sitewide options which can be added and edited as simply as possible. I find that putting these into site-config hides them away too much.
422: [09:45:03] * qlex quit (Ping timeout: 268 seconds)
423: [09:45:19] <Pyelk> hmm, and you'll have to modify the select clause of the DataQuery before it goes out to include the RelatedObj.ID
424: [09:45:35] <Pyelk> and then just where RelatedObj.ID = NULL
425: [09:46:16] <Pyelk> so, it's a bit of work, and not strictly pure ORM in terms of Obj::get->filter, but it's doable without a raw query.
426: [09:47:22] * wmk quit (Ping timeout: 264 seconds)
427: [09:56:38] <Pyelk> guys I just saw that there's a new blog post
428: [09:56:41] <Pyelk> about the new ss.org
429: [09:56:47] <Pyelk> and that there's a mountain in the provided screenshot
430: [09:56:56] <Pyelk> and that it does not appear to be NZ related at all.
431: [09:56:59] <Pyelk> SAD FACE
432: [09:57:50] <Pyelk> ss23: fixitfixitifixitifixitfixit
433: [09:57:58] * ThePeach has joined #silverstripe
434: [09:59:02] <Colin[pi]> Pyelk: and Ryan-Toast pointed out the footer nav is not centered
435: [10:03:25] <MattyBalaam> I started learning web development almost 5 years ago when someone recommended Silverstripe and the site seems to be exactly the same now as it was then! Seems like forever, in web terms at least.
436: [10:03:54] <Colin[pi]> MattyBalaam: they had a thing
437: [10:04:02] <Colin[pi]> (must be busy) ;)
438: [10:05:08] <Pyelk> ss23: BAHAHAHAHAHAHAAHAA https://twitter.com/micmania1/status/507106831290732546
439: [10:05:27] <Pyelk> MattyBalaam: that's because it IS exactly the same :P
440: [10:05:43] <Pyelk> well, maybe not exactly exactly, but it's not far off.
441: [10:06:00] <Pyelk> wayback machine will bring memories!
442: [10:08:21] <Colin[pi]> wayback machine will bring cringe
443: [10:08:25] <Colin[pi]> usually does for me
444: [10:08:32] <Pyelk> haha, true, but memories also.
445: [10:12:08] <r3v3rb> Pyelk: got much work on ?
446: [10:13:11] <Pyelk> r3v3rb: nup.
447: [10:13:24] <Pyelk> u?
448: [10:13:34] <r3v3rb> yup.
449: [10:13:38] <Pyelk> :>
450: [10:13:44] <r3v3rb> might want some help :)
451: [10:13:48] <Pyelk> :D
452: [10:13:59] <r3v3rb> depending on client needs after tomorrows meeting
453: [10:14:20] * howardgrigg quit ()
454: [10:14:51] <kinglozzer> Pyelk: UR FINALLY ON THE TWITTERS??
455: [10:14:52] <kinglozzer> :P
456: [10:15:09] <Pyelk> yep, on the shitters.
457: [10:15:12] <Pyelk> being a twit
458: [10:15:20] <Pyelk> and or a twat. Something like that.
459: [10:21:13] <Colin[pi]> Pyelk: http://www.penny-arcade.com/comic/2008/04/23
460: [10:23:01] <Pyelk> Colin[pi]: yep.
461: [10:23:39] <Colin[pi]> twitter is a funny thing
462: [10:23:54] <Colin[pi]> I go through phases of "twitter is awesome" and "omg twitter sucks balls"
463: [10:24:11] <Colin[pi]> depends on who and what is filling up my timeline I think
464: [10:24:26] <Pyelk> mostly
465: [10:24:38] <Pyelk> mostly irogue and NZ politics
466: [10:24:47] <Pyelk> both twits and fbks
467: [10:50:06] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
468: [10:51:43] * willr quit (Quit: willr)
469: [10:52:51] <simon_w> Should follow me!
470: [10:52:55] <simon_w> Then give me money! :p
471: [10:54:41] <simon_w> I've actually got an offer from someone to fund the entire thing. Will be discussing their terms this weekend, so will see!
472: [10:56:27] <openbees> good luck !
473: [10:57:54] * openbees quit (Quit: Leaving)
474: [10:58:17] <Frans_Amsterdam> #dareToAsk, I have an error in my config.yml that says: Configuration file /Users/...../_config.yml does not have equal number of headers and config blocks. Anyone familiar with this?
475: [10:58:57] <simon_w> Frans_Amsterdam, it means you've got too many header or content blocks
476: [10:59:11] <simon_w> Each block starts with a ---, and it goes header, content, header, content, etc
477: [11:01:50] <kinglozzer> Fatal error: Class 'Exeption' not found
478: [11:01:50] <kinglozzer> wat
479: [11:03:16] <kinglozzer> https://github.com/heyday/silverstripe-responsive-images/blob/master/code/ResponsiveImageExtension.php#L93
480: [11:03:40] * adrexia quit (Ping timeout: 272 seconds)
481: [11:03:40] * oetiker quit (Ping timeout: 272 seconds)
482: [11:04:06] * Shrike_Finland quit (Quit: Leaving.)
483: [11:04:07] * adrexia has joined #silverstripe
484: [11:04:08] <Frans_Amsterdam> @simon_w Thanks i had one block witout a header
485: [11:05:53] <simon_w> kinglozzer, should be Exception
486: [11:06:15] <kinglozzer> Yeah I know, was just confused where it came from!
487: [11:09:17] * Shrike_Finland has joined #silverstripe
488: [11:17:06] <r3v3rb> doh, handlerequest does not exist on “” :P wtf!
489: [11:18:22] * oetiker has joined #silverstripe
490: [11:22:03] * r3v3rb = muppet - class must have same name as template unless using renderwith lol! too much time off over summer!
491: [11:22:34] <r3v3rb> hehe
492: [11:24:49] * simon_w quit (Quit: Ping timeout: your mum)
493: [11:55:56] * Liongold has joined #silverstripe
494: [11:56:14] <Liongold> Hi. I am getting an action not allowed on controller error. Can someone help me?
495: [11:56:35] <kinglozzer> Liongold: private static $allowed_actions = array('myaction');
496: [11:57:01] <Liongold> kinglozzer: This one is a FormAction. I read it should not be needed.
497: [11:57:17] <kinglozzer> You need to add the form name to allowed actions
498: [11:57:24] <kinglozzer> So "ContactForm", for example
499: [11:57:53] <Liongold> Did that already. The form shows up fine. But when I click on Submit I get the error.
500: [11:58:09] <kinglozzer> Liongold: Did you do a deb/build?
501: [11:58:12] <kinglozzer> dev*
502: [11:58:43] <Liongold> kinglozzer: Yes
503: [11:59:26] <kinglozzer> Liongold: Uh, flush too? :P
504: [11:59:44] <kinglozzer> Also, if you have a "doContactForm" form action, make sure you have a "doContactForm" method on your controller
505: [12:00:12] <kinglozzer> Actually, reading your error again, I think that's probably it ^^
506: [12:00:32] <Liongold> By method you mean public function?
507: [12:00:35] <kinglozzer> Yeah
508: [12:01:11] <Liongold> Did that too.
509: [12:01:25] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/Form.php#L320-L332
510: [12:01:32] <kinglozzer> That's where the error is coming from (I think)
511: [12:02:40] <Liongold> This is where I'm calling: $actions = new FieldList( new FormAction('processEditForm', 'Update') );
512: [12:02:50] <Pyelk> 11:52] <@simon_w> Should follow me!
513: [12:02:53] <Pyelk> I already do -.-
514: [12:03:13] * kinglozzer lunch
515: [12:03:15] <kinglozzer> nom
516: [12:03:16] <kinglozzer> bbl
517: [12:04:08] <Pyelk> [12:22] * r3v3rb = muppet - class must have same name as template unless using renderwith lol! too much time off over summer!
518: [12:04:14] <Pyelk> Oh that's where you've been the past few months :>
519: [12:04:40] <r3v3rb> Pyelk: yep, took 5 weeks holiday :) plus to being self employed :DDDDD
520: [12:04:56] <Pyelk> Liongold: you need both the form AND the action in allowed actions in my experience.
521: [12:05:22] <r3v3rb> have been rebuilding house in Spain, sorting out a load of shit my mother in law has not dealt with…
522: [12:05:29] <Liongold> Pyelk: I have other which are not listed but work corectly.
523: [12:05:40] <Pyelk> hmm, ok.
524: [12:05:44] * Pyelk shrugs
525: [12:05:46] <r3v3rb> mustn’t grumble though - getting given a four bed house in Galicia
526: [12:05:56] <Pyelk> probably what kinglozzer said then.
527: [12:06:32] <Liongold> All of them are done already.
528: [12:06:49] <r3v3rb> Liongold: probably a cache issue - I have had real issues in the past with cache not clearing updating etc etc
529: [12:07:04] <r3v3rb> when altering forms/functions
530: [12:07:20] <Liongold> Does the function have to follow the Form function in the code?
531: [12:08:15] <Pyelk> Liongold: looks like you're wrong: https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/Form.php#L325
532: [12:08:33] <Pyelk> have you _tried_ putting the action in allowed_actions?
533: [12:10:24] <Liongold> Still the same
534: [12:10:42] <ocmnt> did you ?flush ?
535: [12:11:36] * veb has joined #silverstripe
536: [12:11:58] * UndefinedOffset has joined #silverstripe
537: [12:13:36] <Liongold> It seems to work. So form processes have to be included in allowed_actions?
538: [12:17:33] <Liongold> ocmnt: ?
539: [12:18:51] <Liongold> Form actions ("doSayHello"), on the other hand, should not be included in $allowed_actions; these are handled separately through Form->httpSubmission().
540: [12:23:59] <r3v3rb> holy shite PHPStorm’s debugger slows firefox down to a crawl...
541: [12:24:05] <r3v3rb> :\
542: [12:33:16] <Zauberfisch> w00t?
543: [12:34:18] <Liongold> Zauberfisch: Hi
544: [12:47:43] <qlex1> guys, how to check which template is used to render blog holder (is it from theme, mysite or blog folder) ?
545: [12:48:14] <Liongold> qlex1: I think blog folder
546: [12:49:03] <qlex1> yes, but if there's a couple of locastions for blogholder.ss
547: [12:49:30] <qlex1> for some reason, i have a blog hodler, that instead of showing blogsummary or blogshortsummary (as i want it to), shows the content of blog holder content in cms
548: [12:49:45] <Liongold> qlex1: Check the github source code
549: [12:51:22] <Pyelk> qlex1: ?debug_templates or something like that
550: [12:51:23] <Pyelk> see docs
551: [12:51:28] <Pyelk> topics
552: [12:51:33] <Pyelk> debug url vars
553: [12:52:00] * Shrike_Finland1 has joined #silverstripe
554: [12:52:02] <Pyelk> sorry, reference.
555: [12:52:03] <Pyelk> http://doc.silverstripe.org/framework/en/reference/urlvariabletools
556: [12:53:53] * Shrike_Finland2 has joined #silverstripe
557: [12:53:58] * Shrike_Finland quit (Read error: Connection reset by peer)
558: [12:58:11] * Shrike_Finland1 quit (Ping timeout: 276 seconds)
559: [13:07:10] * Colin[pi] quit (Ping timeout: 264 seconds)
560: [13:23:02] * NETim has joined #silverstripe
561: [13:29:49] * Shrike_Finland2 quit (Quit: Leaving.)
562: [13:33:19] * MattyBalaam quit (Quit: Page closed)
563: [13:38:01] * Shrike_Finland has joined #silverstripe
564: [13:41:56] * r3v3rb quit (Quit: r3v3rb)
565: [13:42:18] * Shrike_Finland quit (Ping timeout: 246 seconds)
566: [13:44:16] <Frans_Amsterdam> Hello All, what happend to return $this->redirectBack(). It should take me to previous page.
567: [13:44:24] * qlex1 has left #silverstripe
568: [13:44:31] <Pyelk> it got redirected back.
569: [13:44:36] <Pyelk> to oblivion.
570: [13:45:13] <Frans_Amsterdam> nice
571: [13:45:46] * catcher has joined #silverstripe
572: [13:45:49] <Pyelk> Frans_Amsterdam: apparently not. Are you sure you're not in the wrong scope? http://api.silverstripe.org/3.1/source-class-Controller.html#481-517
573: [13:53:03] <Frans_Amsterdam> Pyelk Can you help a bit with this. I use a custom form in a controller. And in the submit of that form I use $this->redirectBack(). I understand a bit what you mean by scope but not enough to solve this.
574: [13:53:14] * UndefinedOffset quit (Disconnected by services)
575: [13:53:14] * UndefinedOffset1 has joined #silverstripe
576: [13:53:32] * UndefinedOffset1 is now known as UndefinedOffset
577: [13:59:57] * toddvalentine has joined #silverstripe
578: [14:01:03] * catcher quit (Quit: Leaving)
579: [14:04:14] <kinglozzer> Frans_Amsterdam: What’s the problem with it? I use redirectBack() for forms and it works fine
580: [14:05:08] <toddvalentine> Hey everyone, I have been having an issue with index.php occasionally being added to my navigation links: /index.php/about/staff. I have found a few forum articles on this issue that proposed to set Director::setBaseURL('/'); in my _config.php file. I noticed that setBaseUrl is deprecated in 3.2 so I was planning on setting $alternate_base_url to '/' in my _config.yml file. Is this the best w
581: [14:05:09] <toddvalentine> ay to handle this issue?
582: [14:05:41] <Liongold> toddvalentine: Do you mod_rewrite on the server?
583: [14:05:59] <Frans_Amsterdam> kinglozzer I try to use it in a custom form which is called in a controller, like ResponseForn returns my customForm.
584: [14:06:06] <toddvalentine> I use the out of the box SS htaccess file, so I assume so
585: [14:06:20] <toddvalentine> And mod rewrite is enabled
586: [14:06:51] <kinglozzer> toddvalentine: Delete index.php from docroot, problem solved (like 99% of the time, anyway)
587: [14:07:47] <toddvalentine> Ok. Thanks for the suggestion. I will try removing index.php
588: [14:09:37] <kinglozzer> Frans_Amsterdam: What problem are you having with it? Error, nothing happening, something else?
589: [14:11:09] * Error404NotFound has joined #silverstripe
590: [14:11:48] <Frans_Amsterdam> I get a a message that the metod 'redirectBack' not exsist on the customForm
591: [14:11:52] <kinglozzer> Frans_Amsterdam: If you mean you have a custom form class (i.e. that extends Form) and your form action handler is in that class, $this->redirectBack() won't work (as $this is a Form, not a Controller). You'll need to use $this->controller->redirectBack()
592: [14:12:00] <kinglozzer> ^^
593: [14:12:18] <kinglozzer> tldr; $this->controller->redirectBack()
594: [14:12:34] <Frans_Amsterdam> kinglozzer Aha, I try that.
595: [14:14:47] <NETim> Hi Guys, any thoughts on a 301 happening when calling sake via command line?
596: [14:21:09] <kinglozzer> NETim: What are you trying to do via sake?
597: [14:28:56] <Pyelk> Frans_Amsterdam: well $this refers to the current object. If you're not in the controller, that function won't exist.
598: [14:29:20] <Pyelk> toddvalentine: yes.
599: [14:30:36] <Pyelk> Liongold: depends on setup. One can have mod-rewrite enabled but have index.php get in the way still.
600: [14:30:42] <Pyelk> it's an apache2.4 thing I think
601: [14:32:35] <toddvalentine> Pyelk: Are you suggesting setting alternate_base_url vs removing index.php?
602: [14:32:37] <Pyelk> toddvalentine: also, in most cases .htaccess is fine, but sometimes it's not enabled. But if it weren't index.php would likely show up on all your requests, so yeah.
603: [14:32:52] <Pyelk> toddvalentine: nah if removing works then do that. index.php is just a fallback.
604: [14:33:09] <Pyelk> but the correct way to set an alternate base url is through yml, yes.
605: [14:33:21] <toddvalentine> kinglozzer and Pyelk - thanks
606: [14:33:31] <Pyelk> but generally don't do it. Hardcoding url is never a good idea (AYE WORDDERP)
607: [14:33:45] <kinglozzer> Terrible news... I don’t have enough change for anything from the vending machine :(
608: [14:34:22] <Pyelk> kinglozzer: haha, fool! I stocked up on extra coccy bar at lunch so I can enjoy mid afternoon noms even after the only store for miles is closed.
609: [14:34:33] <Pyelk> (literally, at least a mile in any viable direction)
610: [14:34:42] <kinglozzer> All I have to choose from now is tea, coffee or water
611: [14:34:51] <Pyelk> tea!
612: [14:34:54] <Pyelk> oooh
613: [14:35:02] <Pyelk> Go for hot water kinglozzer .
614: [14:35:13] <kinglozzer> Pyelk: With nothing added?!
615: [14:35:17] <Pyelk> then strain it through coffee onto tea.
616: [14:35:20] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
617: [14:35:27] <Pyelk> remove tea, ??? profit.
618: [14:35:33] <kinglozzer> cofftea?
619: [14:35:54] <toddvalentine> Has anyone experienced issues with 3.1.6 upgrade where if you have duplicated a class in your mysite directory, for example ContentControllerSearchExtension, the framework complains of duplicate declarted classes?
620: [14:36:00] <Pyelk> yeh, somethin glike that. I reckon I could be a trendsetter. This is a profitable emerging market, peopel are bored with normal choices.
621: [14:36:09] <kinglozzer> toddvalentine: Yeah sorry, I'm to blame for that one :P
622: [14:36:24] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/pull/3211
623: [14:36:26] <Pyelk> I'm going to need a website within a day, and it needs to have signups and social networking type comments so I can begin to build a community,.
624: [14:36:28] <Pyelk> thanx
625: [14:36:37] <kinglozzer> Pyelk: Kickstarter
626: [14:36:48] <Pyelk> kinglozzer: ROFL
627: [14:36:53] <Pyelk> could actually make money!
628: [14:36:57] <Pyelk> hmm... :P
629: [14:37:30] <Pyelk> I'll put the bar down really low, so it'll pass. Then they can' tback out and I'll get the money, then I'll say the idea fell over and they'll get nothing. MUHAHAHAHA
630: [14:37:35] <Pyelk> #ruletheworld
631: [14:37:49] <Pyelk> omg wtf
632: [14:38:00] * Pyelk /join #ruletheworld
633: [14:38:02] <toddvalentine> thanks kinglozzer. If I update now using "silverstripe/framework": "3.1.6" in composer.json will I be all set?
634: [14:38:24] <Pyelk> 2 users: Pyelk, @yeitijem
635: [14:38:27] <kinglozzer> Pyelk: Someone ran on the pitch during a West Ham game, took a free kick, got fined like £300 in court and set up a kickstarted for other fans to help him pay. He raised _more_ than the fine...
636: [14:38:43] <Pyelk> there's already an op ruling the world D:
637: [14:39:09] <Pyelk> kinglozzer: yeah, I heard about that. Well, the event and the fine, not the KS derp.
638: [14:39:30] <Pyelk> did he push a player out of the way and take his free kick?
639: [14:39:37] <Pyelk> that would be pretty priceless
640: [14:39:49] <kinglozzer> http://www.footballgossip.org.uk/index.php/2014/09/03/west-ham-free-kick-pitch-invader-crowdsources-fine/
641: [14:39:52] <Pyelk> even better if it'd gone into the net
642: [14:39:53] <kinglozzer> Nah, just ran up and took it
643: [14:40:11] <Pyelk> haha. There was a free kick on at the time, right?
644: [14:40:12] <Pyelk> :P
645: [14:40:18] <Pyelk> or did he bring his own ball?
646: [14:40:19] <Pyelk> haha
647: [14:40:36] <kinglozzer> Watch the video :P keeper saved it
648: [14:41:44] <Pyelk> pretty good kick tbh, haha
649: [14:44:51] <toddvalentine> Still broken when updating via composer to 3.1.6. Do I need to use dev-master?
650: [14:45:20] <kinglozzer> toddvalentine: That change wasn't removed, it was added - you need to remove the duplicate class!
651: [14:47:18] <toddvalentine> Oh, so that is the default behavior now? Is it possible to extend an extension? How would I handle customizing the ContentControllerSearchExtension?
652: [14:49:13] <kinglozzer> toddvalentine: Yeah. Having two classes with the same name isn’t allowed in PHP, so SilverStripe errors now
653: [14:49:43] <kinglozzer> I'm not sure if you can customise it, but it's pretty minimal code - I'd just create my own class, copy the code and modify it
654: [14:51:07] <toddvalentine> How do I tell SS to use my class in place of the extension included in cms/code/search? Thanks alot for the help btw.
655: [14:53:25] <kinglozzer> Well, wherever you add the 'ContentControllerSearchExtension', swap it out for your extension's class name
656: [14:54:33] * zri has joined #silverstripe
657: [14:54:38] <zri> hey guys
658: [14:54:45] <zri> how do I delete pages programatically
659: [14:55:17] <zri> I tried http://pastie.org/9524372
660: [14:55:26] <zri> but this... does litterally nothing to them
661: [14:57:13] <zri> any ideas?
662: [14:59:31] <zri> actually all are drafts, but still to be seen in CMS
663: [15:01:25] <kinglozzer> zri: $page->deleteFromStage('Stage'); perhaps?
664: [15:01:29] <kinglozzer> Just a guess, never done it
665: [15:05:25] * Shrike_Finland has joined #silverstripe
666: [15:05:40] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
667: [15:07:28] <zri> damn now I cannot get the drafts, deletingBystage seems to work, but I cannot get the drafts with SiteTree::get()
668: [15:09:10] <NETim> kinglozzer, we're trying to run a flush=all from cron with sake
669: [15:09:24] <NETim> Also, sorry for the late response, too much work.
670: [15:10:20] <kinglozzer> NETim: Are you aware of the issues with users? I.e. if your CLI user is a different user to apache, the flush will do nothing
671: [15:11:14] <NETim> The server should be using the same user for apache and CLI, but I'll go shout at the server guys in case.
672: [15:13:26] <kinglozzer> NETim: As for your 301, no idea I'm afraid :P
673: [15:13:40] <Pyelk> toddvalentine: it always was the default behaviour until 3.0, when suddenly shit would stop working and you didn't know why until you realised you had to versions of the same class and the framework was using the other...
674: [15:13:43] <kinglozzer> I'd run through bits of core and try to work out where it gets stuck, starting with cli-script.php
675: [15:13:59] <Pyelk> so yes, doesn't matter what you're programming in, 2 classes with the same name is an issue.
676: [15:14:05] <Pyelk> so basically, don't do it.
677: [15:14:07] <kinglozzer> Pyelk: I just realised, that bug introduced an interesting "feature" that people seem to have been using
678: [15:14:26] <Pyelk> kinglozzer: you mean you fixed a mistake some folks were taking advantage of?
679: [15:14:28] <kinglozzer> Instead of erroring, before fixing it, any class with the same name as an existing class would actually replace it in the manifest
680: [15:14:32] <kinglozzer> Yeah :P
681: [15:14:54] <NETim> kinglozzer, it does seem odd to me that 301. It's command line. I've raised it with the server guys for now.
682: [15:14:56] <Pyelk> kinglozzer: I can't for the life of me think why anyone ever in any case would want 2 versions of the same class.
683: [15:15:28] <kinglozzer> E.g: https://github.com/purplespider/silverstripe-mypswd-tweaks/commit/d295e4469c8ad3fb2f25cd4116f60635ed7d5acf
684: [15:15:33] <Pyelk> zri: truncate table SiteTree;
685: [15:15:35] <Pyelk> ;P
686: [15:15:58] <zri> yeah I did... its not only SiteTree but more ;)
687: [15:16:06] <Pyelk> yeah well.
688: [15:16:12] <kinglozzer> Pyelk: That one above ^^ my PR made it into 3.1.1 IIRC, but his module didn't error until 3.1.6
689: [15:16:18] <Pyelk> you can use the Class Manifest to find all the other tables if need be!
690: [15:16:38] <kinglozzer> I _guess_ you might actually have been able to use it to entirely replace a class, just by creating one with the same name
691: [15:17:06] <Pyelk> kinglozzer: that's what injector is for.
692: [15:17:15] <kinglozzer> Yeah, jus sayin :P
693: [15:17:25] <toddvalentine> Pyelk: so for ContentCotrollerSearchExtension would setting an extension on FullTextSearchable in mysite/_config/config.yml be the correct way to use MyContenControllerSearchExtension?
694: [15:17:27] <Pyelk> yeah, just say'n that poor fellow has a lot to learn.
695: [15:17:32] <kinglozzer> idd
696: [15:18:01] <Pyelk> toddvalentine: no, fulltextsearchable IS an extension iirc.
697: [15:18:18] <Pyelk> apply your controller extension to the controller you wish to extend.
698: [15:18:27] <Pyelk> apply your dataextensions to the dataobject you wish to extend.
699: [15:19:29] <toddvalentine> Pyelk: Ok. Thanks.
700: [15:19:37] <Pyelk> also NETim: check your file to url mapping doofer thing.
701: [15:22:20] * r3v3rb has joined #silverstripe
702: [15:30:27] <NETim> Pyelk, that's sorted. Was from day one. If i call the command through shell, it works, through cron: 301
703: [15:31:27] <Pyelk> NETim: ah, I see.
704: [15:31:32] <Pyelk> hmm, yeah I suggest checking user.
705: [15:31:44] <Pyelk> cron probably running as root or something silly.
706: [15:34:00] * Pyelk quit ()
707: [15:34:38] * Pyelk has joined #silverstripe
708: [15:34:45] <Pyelk> so it seems I ruled the world longer than you did kinglozzer! :D
709: [15:35:01] * zri quit (Ping timeout: 246 seconds)
710: [15:35:02] <Pyelk> I just left the op to it :P
711: [15:36:54] <kinglozzer> Haha, what a random channel
712: [15:37:21] <Pyelk> ikr
713: [15:38:19] <Pyelk> also no kinglozzer #random is the random channel.
714: [15:41:29] * kinglozzer joins
715: [15:41:43] <kinglozzer> It's nearly empty :(
716: [15:42:41] <Pyelk> yup
717: [15:54:02] <toddvalentine> Pyelk and kinglozzer: Does an extesion set on a controller in mysite/_config/config.yml take precedence over an extension set on the same controller in core code? Is this the best practice way to handle it?
718: [16:04:41] * jrthomer quit (Ping timeout: 260 seconds)
719: [16:04:41] * ss-log_ quit (Ping timeout: 260 seconds)
720: [16:04:50] * ss-log__ has joined #silverstripe
721: [16:05:20] <Pyelk> toddvalentine: no, there is not precidence
722: [16:05:45] <Pyelk> toddvalentine: have you used laravel or something else that has some kind of 'event' type system?
723: [16:06:02] <Pyelk> think of extensions more like 'event handlers'.
724: [16:06:16] <Pyelk> ie, attach as many as you want, they'll all get executed one at a time.
725: [16:06:45] <Pyelk> well, at least in the case of $this->extend('extensionMethodName' ... )
726: [16:07:19] <Pyelk> if you're calling an extension method by $controllerorwhatever->methodThatIsDefinedOnAnExtension(), I'm not so sure.
727: [16:07:23] <Pyelk> look at __call()
728: [16:07:37] <Pyelk> on... Object maybe, maybe ViewableData or RequestHandler.
729: [16:07:44] <Pyelk> api.silverstripe.org
730: [16:07:45] <Pyelk> :)
731: [16:08:35] * jrthomer quit (Ping timeout: 260 seconds)
732: [16:08:37] * ss-log_ quit (Ping timeout: 260 seconds)
733: [16:08:45] * maxer quit (Ping timeout: 260 seconds)
734: [16:08:49] <Pyelk> http://api.silverstripe.org/3.1/source-class-Object.html#699-763
735: [16:08:49] <kinglozzer> Gone 5pm, home time
736: [16:08:50] <kinglozzer> bb all
737: [16:09:37] * kinglozzer quit ()
738: [16:10:23] * maxer_ is now known as maxer
739: [16:12:04] <toddvalentine> Pyelk: thanks for the explanation.
740: [16:12:27] <Pyelk> toddvalentine: hmm, I guess if there are 2 extensions with the same method on them being called as if part of the owner (class they're applied to) then it looks like it'll just run whichever is applied first.
741: [16:12:39] <Zauberfisch> Liongold: hi
742: [16:13:06] <Pyelk> toddvalentine: if you're experiencing issues you could try altering the include order in your yml for that particular bit.
743: [16:13:17] <Pyelk> ie, make a new header, apply it early in the process.
744: [16:14:08] <toddvalentine> OK, just to make sure I got it, there is no way to ensure that the results method on MyContentControllerSearchExtension is used instead of the results method on ContentController SearchExtension?
745: [16:16:42] <Pyelk> toddvalentine: well you could inherit from the original class, and use injector to instantiate your subclass rather than the normal one, perhaps.
746: [16:17:24] <Pyelk> another possiblity could be to do that, but instead of using injector just unload the original class from the extension list (not sure if that's a thing though, you'll have to investigate).
747: [16:18:14] <Pyelk> Extension itself doesn't inherit from object though, so you can't apply extensions to it.
748: [16:22:23] * catcher has joined #silverstripe
749: [16:22:45] * maxer quit (Quit: maxer)
750: [16:28:29] * Liongold quit (Quit: Page closed)
751: [16:30:45] * Shrike_Finland quit (Quit: Leaving.)
752: [16:31:27] * Pyelk quit ()
753: [16:32:20] * Shrike_Finland has joined #silverstripe
754: [16:32:27] * Shrike_Finland quit (Client Quit)
755: [16:35:34] * NETim quit (Ping timeout: 246 seconds)
756: [16:37:23] * Varis has joined #silverstripe
757: [16:39:49] <Varis> Hello. Has anyone tried working with the Fluent module and Sqlquery? How did you get it to work?
758: [16:54:59] * stnvh quit ()
759: [17:00:37] * gelignite has joined #silverstripe
760: [17:06:55] * ThePeach quit (Quit: leaving)
761: [17:07:25] * Gregsm quit (Ping timeout: 246 seconds)
762: [17:08:27] * oddnoc has joined #silverstripe
763: [17:35:22] * r3v3rb quit (Ping timeout: 240 seconds)
764: [17:50:22] * PapaBearNZ quit (Quit: Leaving.)
765: [17:50:42] * PapaBearNZ has joined #silverstripe
766: [17:54:01] * joelpittet has joined #silverstripe
767: [18:05:02] * Shrike_Finland has joined #silverstripe
768: [18:14:25] * nickmolhoek quit (Ping timeout: 268 seconds)
769: [18:16:28] * Varis quit (Remote host closed the connection)
770: [18:34:22] * joelpittet quit ()
771: [18:39:32] * Colin[pi] has joined #silverstripe
772: [18:44:56] <catcher> I have a DO extension that needs to have a relationship with a DataExtension extension (or the class decorated by the DataExtension). How is this normally approached?
773: [18:45:38] <catcher> I can word that better.
774: [18:46:07] <catcher> I have a DO subclass that needs a reverse has_one relationship with a DataExtension subclass (or the class decorated by the DataExtension). How is this normally approached?
775: [18:50:08] * wmk has joined #silverstripe
776: [19:05:22] * r_hector has joined #silverstripe
777: [19:29:49] * vebb has joined #silverstripe
778: [19:31:12] * vebb quit (Client Quit)
779: [19:33:51] * r_hector quit (Quit: Leaving.)
780: [19:51:40] * r3v3rb has joined #silverstripe
781: [19:56:19] * SightUnseen has joined #silverstripe
782: [19:59:10] * PapaBearNZ quit (Read error: Connection reset by peer)
783: [20:02:22] * r3v3rb quit (Quit: r3v3rb)
784: [20:06:45] * Kingy[a] is now known as Kingy
785: [20:10:11] * SightUnseen has left #silverstripe
786: [20:20:18] * UndefinedOffset quit (Quit: Leaving.)
787: [20:20:35] * UndefinedOffset has joined #silverstripe
788: [20:25:10] * Stomach has joined #silverstripe
789: [20:25:14] * UndefinedOffset quit (Ping timeout: 260 seconds)
790: [20:27:33] <Kingy> morning
791: [20:27:58] * antmas has joined #silverstripe
792: [20:28:03] <antmas> morning all
793: [20:28:11] <Kingy> hey antmas
794: [20:28:13] <antmas> anyone had any problems with the form building in userforms lately?
795: [20:28:19] <antmas> builder*
796: [20:29:05] * wmk thinks more unit tests would save him some trouble...
797: [20:29:48] <antmas> specifically the Form builder page being blank :/
798: [20:30:56] * r3v3rb has joined #silverstripe
799: [20:33:08] * antmas might need to flush
800: [20:34:29] <wmk> always a good idea
801: [20:35:45] <antmas> hmmmp
802: [20:36:00] <antmas> flush on the actual page in the CMS fixed it
803: [20:36:16] <antmas> hate that :/
804: [20:36:44] <Kingy> finally wdc put up a video of a presentation i didn't see
805: [20:37:25] <antmas> have they put one up of the web video thingy?
806: [20:37:33] <antmas> webRTC or whatever
807: [20:38:47] <Kingy> umm nah it's the better CSS one
808: [20:38:58] <antmas> oh yup
809: [20:39:02] <antmas> that one was a little weak
810: [20:39:21] <Kingy> oh wow ok, they've put up heaps
811: [20:39:24] <Kingy> that webrtc one is up
812: [20:39:28] <antmas> cool
813: [20:39:51] <Kingy> Colin and I talked to her at the drinks after. It was a bit awkward when we both said we didn't go to her talk lol
814: [20:40:36] * r3v3rb quit (Quit: r3v3rb)
815: [20:42:37] * Ryan-Toast has joined #silverstripe
816: [20:45:53] * vebb has joined #silverstripe
817: [20:46:21] * Ryan-Toast has left #silverstripe
818: [20:49:36] * Ryan-Toast has joined #silverstripe
819: [20:49:42] * Ryan-Toast has left #silverstripe
820: [20:51:23] * Ryan-Toast has joined #silverstripe
821: [20:58:56] * gelignite quit (Quit: http://bit.ly/nkczDT)
822: [21:07:26] * micmania1 has joined #silverstripe
823: [21:08:58] * UncleCheese has joined #silverstripe
824: [21:10:34] * Ryan-Toast quit (Quit: Ryan-Toast)
825: [21:13:28] <Colin[pi]> Kingy: lol yeah, she was nice though
826: [21:13:44] <Kingy> yeah absolutely
827: [21:14:35] <antmas> yeah I chatted with her a little bit
828: [21:14:39] <antmas> but yeah, awkward
829: [21:15:23] <Kingy> how can I work with a form that I have to access with $Top.BlahForm
830: [21:15:36] <Kingy> weird fucking shop pages lol
831: [21:16:53] * camfindlay has joined #silverstripe
832: [21:18:27] * camfindlay quit (Client Quit)
833: [21:19:38] * Ryan-Toast has joined #silverstripe
834: [21:25:38] * willr has joined #silverstripe
835: [21:27:51] * jedateach has joined #silverstripe
836: [21:27:54] * jedateach has left #silverstripe
837: [21:32:01] <Ryan-Toast> can you set what template to use in rthe init() function of a page?
838: [21:34:32] <adrexia> I've never tried that
839: [21:35:45] <adrexia> I've supplied different templates for a page from methods within pages, but not specifically from an init
840: [21:35:54] <adrexia> try it and let us know?
841: [21:36:19] <Ryan-Toast> adrexia: Yeah, I think it would be pretty cool.
842: [21:36:41] <adrexia> could allow for some interesting ways of changing the view
843: [21:36:57] <adrexia> what is your use case?
844: [21:37:24] <Ryan-Toast> Yeah, that’s my thought. Like instead of having heaps of if statemnts in the layout for different scenarios supply different templates instead
845: [21:37:36] <adrexia> yep
846: [21:37:49] <Ryan-Toast> No use case, just having a play around with some stuff this morning.
847: [21:37:53] <adrexia> I have used includes for that in the past - so at least the actually templates are seperate
848: [21:38:03] <Ryan-Toast> yeah, I do the same
849: [21:38:47] <Ryan-Toast> I’ll mess around and get back to you with my results
850: [21:38:58] <Ryan-Toast> yay front end friend
851: [21:39:07] <adrexia> and allowed actions + method call to call a different template (eg page-name/something) where somethign renders with a different template
852: [21:39:15] <adrexia> :D
853: [21:40:14] <catcher> Ryan-Toast, I do that in index() in a module, https://github.com/clyonsEIS/silverstripe-liquid-layout/
854: [21:40:34] <adrexia> oh! yeah of course
855: [21:40:41] <Ryan-Toast> catcher: Nice :D
856: [21:40:44] <adrexia> that would work
857: [21:41:00] <Ryan-Toast> Guess it’s a day of refactoring my models then
858: [21:41:30] * travis-ci has joined #silverstripe
859: [21:41:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3307 (3.1 - 64d0a21 : Simon Welsh): The build was fixed.
860: [21:41:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c112c1c69fc5...64d0a2152b2d
861: [21:41:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34334539
862: [21:41:31] * travis-ci has left #silverstripe
863: [21:41:40] <Ryan-Toast> catcher: gave you a star :)
864: [21:41:47] <Ryan-Toast> GOLD STAR 4 U
865: [21:42:03] <catcher> Fridge!!
866: [21:42:19] <catcher> It's been so empty!
867: [21:42:55] <Ryan-Toast> catcher, in your config when you define the LIQUIDLAYOUT_MODULE is that just so you can check for dependancies in other modules?
868: [21:43:00] <Ryan-Toast> /controllers?
869: [21:43:33] <Ryan-Toast> or just so people name shit correctly
870: [21:44:02] * hailwood has joined #silverstripe
871: [21:44:30] <Colin[pi]> brb reboot, windows being fucky
872: [21:44:31] <catcher> Ryan-Toast, I honestly don't need that in my module, but it allows you to use directory names when referencing css/templates/js.
873: [21:44:38] <catcher> 'cause yes, forces people ot name shit correctly.
874: [21:44:39] * Colin[pi] quit ()
875: [21:44:44] <catcher> also to*
876: [21:44:46] <Ryan-Toast> catcher: coolio
877: [21:45:11] <catcher> I'm taking my gold star and going home. Later guys.
878: [21:45:29] <hailwood> Hey guys,
879: [21:45:29] * catcher quit (Quit: Leaving)
880: [21:45:29] <hailwood> Am I correct in my understanding that with the subsites module you can have one site at abc.com and another at def.com and manage them from the same cms interface yeah? Basically I can have abc.com and def.com they don't have to be site1.abc.com site2.abc.com
881: [21:45:33] <Ryan-Toast> What is the actual best practise for modules? I’ve seen camel case, all lower case, first letter capitalized.
882: [21:45:50] <Ryan-Toast> hailwood: You’re corect.
883: [21:45:53] * Azure quit (Quit: Blue Sky Fish)
884: [21:45:59] <hailwood> Awesome, thanks
885: [21:46:30] <Ryan-Toast> hailwood: For any questions you may have, just ask Spronk. He loves Subsites, and would be happy to help.
886: [21:47:12] <hailwood> Brilliant
887: [21:47:59] * Colin[pi] has joined #silverstripe
888: [21:49:10] <adrexia> beware subsites will cause a bit of pain
889: [21:49:37] <adrexia> it's based of an architecture that expects one main site, and, well, a subsite
890: [21:49:55] <adrexia> with information form the main site shared with the subsites.
891: [21:50:16] <Colin[pi]> adrexia: just ask spronk, he loves subsites
892: [21:50:18] <adrexia> you don't _have_ to use it that way, but you need to know that is it's view of the world
893: [21:50:48] <adrexia> yeah. not the sort of love that makes for a happy relationship :P
894: [21:50:59] <Kingy> spronk loves it
895: [21:51:30] * Azure has joined #silverstripe
896: [21:51:50] <adrexia> <Ryan-Toast> no best practise as far as I am aware, but probably best to avoid capitals
897: [21:52:19] <adrexia> just because, filesystems
898: [21:53:11] <Stomach> Ryan-Toast - I always do "silverstripe-modulename" in lowercase
899: [21:54:20] <adrexia> I usually do the same
900: [21:54:51] <adrexia> though I suppose it's really the name in composer that matters to me
901: [21:57:24] * maxer has joined #silverstripe
902: [21:59:22] <hailwood> spronk: are you around?
903: [22:02:00] <Stomach> hailwood, ask the questions and we can try and help if you like
904: [22:03:10] * antmas quit (Ping timeout: 246 seconds)
905: [22:05:08] <hailwood> I'm wondering if with the subsites module I can have a cascading theme? Basically I am going to have three sites using the subsites module, 95% of the pages on these subsites are the same, but I have 5% of the pages that need their own theme. So I'm looking for a way I could have something like /themes/mytheme/AwardsPage.ss /themes/mytheme/domain1.com/AwardsPage.ss so only the subsite at domain1.com would use the different template.
906: [22:05:38] <hailwood> I would like to avoid having to duplicate the 95% of pages for each theme if I can help it..
907: [22:06:31] <Ryan-Toast> hailwood: Subsites out of the box supports one theme per subsite
908: [22:07:55] <Stomach> yeah, you can't mix the themes with the default subsites
909: [22:08:28] * toddvalentine quit ()
910: [22:08:47] <hailwood> Darn, duplication it is then. Still at least it does support each subsite having their own theme, I'll just have to alter the grunt script for this particular site.
911: [22:10:37] <Stomach> you could probably set up a master grunt task which copies the templates across if they dont exist
912: [22:10:59] <hailwood> Yeah that's what I was thinking
913: [22:11:16] <Ryan-Toast> hailwood I’d create a page extension that unsets the themes default css/javascript and adds in the “new themes” css/js with Requiirements.
914: [22:11:41] <Stomach> I still dont like (or use) requirements
915: [22:12:54] <hailwood> I like the idea, but that would be too different to the current setup of the other sites and I think I would get shot ;)
916: [22:14:02] <Ryan-Toast> Stomach: You don’t use requirements?
917: [22:14:16] <Stomach> Ryan-Toast, nope
918: [22:14:31] <Ryan-Toast> Stomach: How do you add your stuff?
919: [22:15:04] <Stomach> <link rel="stylesheet" href="$HashPath('production/css/style.css')">
920: [22:15:55] <adrexia> couldn't you just make page types that are only used for those pages within that subsite?
921: [22:15:57] * Shrike_Finland quit (Quit: Leaving.)
922: [22:16:28] <Ryan-Toast> Stomach: Why?
923: [22:16:40] <adrexia> then you can choose when you are setting up the subsites in the sdmin to hide those poage types fromn the unapplicable sites
924: [22:16:56] <adrexia> so no copying of themes - it would all be the same theme
925: [22:17:06] <adrexia> different templates will be supplied by page type
926: [22:17:37] <hailwood> Hmm I see what you're saying, that may be an idea since it's only a couple of pages that are different..
927: [22:17:41] <Stomach> Ryan-Toast - because I don't think that the controller should have an influence on the display of the view
928: [22:18:06] <adrexia> yeah, I dislike requirements too. fine for 90% of the time, but not enough control over where the scripts appear
929: [22:18:23] <adrexia> and I like consistent behaviour on dev + live environments
930: [22:18:25] <Ryan-Toast> adrexia: Yeah, scripts are annoying.
931: [22:18:39] <adrexia> sick of fixing js things on go live ;)
932: [22:18:46] <Ryan-Toast> Need a afterBody, and afterBody hook or something
933: [22:18:48] <adrexia> or on test usually
934: [22:18:56] <adrexia> yep
935: [22:19:04] <hailwood> When using the subsites module, does the search get limited to content from the specific subsite?
936: [22:19:22] <Stomach> we also use commonjs to manage our javascript dependencies, so requirements doesn't work for that
937: [22:19:46] <adrexia> respond.js needs to be straight after the body tag - and its pretty impossible to put it there and still have rest of your js at the bottom of the document
938: [22:20:07] <adrexia> ...and if its the first thing it put everything inside the damn if IE statement
939: [22:20:15] <adrexia> so smart and yet so dumb
940: [22:20:30] <adrexia> first thing = first bit of js it finds
941: [22:20:56] <Ryan-Toast> Hmm, I don’t think I quite thought my commit name out very well https://github.com/Rhym/ss_boilerplate/tree/master/boilerplate
942: [22:21:23] <adrexia> bwhahaha
943: [22:22:12] <hailwood> Lol that is awesome
944: [22:23:24] <hailwood> git commit --amend then git push -f time me thinks
945: [22:23:53] <Ryan-Toast> lol, possibly
946: [22:24:07] <Ryan-Toast> I should have checked my status before I commited.
947: [22:24:32] <Ryan-Toast> I changed the root folder name, and git decided it only wanted to delete the files, not add the “new” ones.
948: [22:24:33] * wmk quit (Ping timeout: 264 seconds)
949: [22:24:44] <Stomach> git commit -m "thanks for deleting all my files, git, you stupid fuck." --amend
950: [22:24:52] <Stomach> grammar.
951: [22:24:55] <Stomach> tsk tsk
952: [22:25:34] <Ryan-Toast> :P
953: [22:25:35] <adrexia> hahah
954: [22:26:19] <Ryan-Toast> git commit -m "thanks for deleting all my files, git; you stupid fuck." --amend
955: [22:27:06] <Ryan-Toast> My favorite part of the day. CHOOSING ICONS WOOOO http://p.yusukekamiyamane.com/icons/preview/fugue.png
956: [22:28:11] <Colin[pi]> I <3 fugue
957: [22:28:28] <Ryan-Toast> I really want to namespace my models, but I cbf making all the templates jump through hoops.
958: [22:28:43] <Colin[pi]> Ryan-Toast: silk and fatcow are pretty good too
959: [22:29:18] <Ryan-Toast> Colin[pi]: I’ll check them out :)
960: [22:29:37] <Colin[pi]> fatcow comes in 16px and 32px flavours, which can be handy
961: [22:30:03] <Colin[pi]> overall I think fugue is my fav doe
962: [22:31:15] <UncleCheese> did you guys know about this option?
963: [22:31:20] <UncleCheese> composer update --fast
964: [22:31:32] <Colin[pi]> I do now!
965: [22:31:38] <UncleCheese> crazy.. went from 5 minute updates to < 3s
966: [22:32:05] <Ryan-Toast> Why even have a not fast option then?
967: [22:32:17] <Kingy> does it use Cache when doing --fast?
968: [22:32:39] <Colin[pi]> Ryan-Toast: some people just want to watch the world burn?
969: [22:32:45] <Ryan-Toast> Colin[pi]: Defs
970: [22:32:45] <Colin[pi]> but yeah, some sort of cache
971: [22:32:50] <Stomach> [RuntimeException]
972: [22:32:50] <Stomach> The "--fast" option does not exist.
973: [22:32:50] <Colin[pi]> I assume
974: [22:32:52] <Kingy> some people like downloading the entire internet
975: [22:32:58] <Stomach> UncleCheese is a liar!
976: [22:33:04] <UncleCheese> lol
977: [22:33:07] <UncleCheese> no, just a dreamer
978: [22:33:38] <Colin[pi]> A PHONY, A BIG FAT PHONNNEY
979: [22:33:51] <Stomach> what you really mean by --fast is --dont-check-dependencies-of-dependencies-and-get-into-a-big-cyclic-mess-you-stupid-fuck
980: [22:34:05] <UncleCheese> ohhhh
981: [22:34:08] <UncleCheese> is that the issue?
982: [22:34:21] <UncleCheese> that seems more logical than "we live far away from the github servers"
983: [22:34:27] <Stomach> yeah its that
984: [22:34:41] <Colin[pi]> this is why we can't have nice things
985: [22:35:04] <Stomach> like if you include "silverstripe-cms" then it has to check that the versions of "silverstripe-framework" within "silverstripe-cms" matches your projects "silverstripe-framework" version, plus all of the other modules you
986: [22:35:08] <Stomach> re including match too
987: [22:35:29] <UncleCheese> yeah, makes sense
988: [22:35:37] <UncleCheese> how come npm is so fast and composer is shit?
989: [22:35:58] <UncleCheese> i'm going to submit a PR for a --fast option
990: [22:36:02] <Colin[pi]> I think you just answered your own question UC :P
991: [22:36:16] <Stomach> npm installs all the dependencies for a dependency as dependencies
992: [22:36:24] <oddnoc> <jedi>composer is already fast</jedi>
993: [22:36:25] <Stomach> it doesn't care if you end up with 15 versions of the same thing
994: [22:36:43] <UncleCheese> ah, interesting
995: [22:36:53] <Colin[pi]> you don't need to worry about dependencies... /jedi hand wave
996: [22:37:10] <oddnoc> these aren’t the modules you’re looking for
997: [22:37:13] <Colin[pi]> you can go about your business
998: [22:37:15] <Colin[pi]> move along
999: [22:37:37] <Ryan-Toast> Some days I think I just want to make icons for a living.
1000: [22:37:47] <Stomach> UncleCheese - thats why your components folder can end up being 400 megs
1001: [22:37:55] <Colin[pi]> Ryan-Toast: yeah but dude... that guy made over 3,000 icons
1002: [22:38:09] <Colin[pi]> Ryan-Toast: I can't even wrap my head around that
1003: [22:38:18] <Ryan-Toast> Colin[pi]: I think it would be fun.
1004: [22:38:25] <Colin[pi]> three THOUSAND
1005: [22:38:28] <Ryan-Toast> Colin[pi]: But yeah, would take some time/dedication
1006: [22:38:33] <Colin[pi]> like I don't even
1007: [22:38:54] <UncleCheese> so if composer is shit, why is it THE php package manager?
1008: [22:38:54] <Colin[pi]> checks readme
1009: [22:38:57] <adrexia> npm is amazing
1010: [22:39:04] <Colin[pi]> oh the designer is japanese... that explains it!
1011: [22:39:11] <Colin[pi]> man I wouldn't be able to have the same dedication
1012: [22:39:18] <Ryan-Toast> My boss asked me what was wrong because I looked like I was concentrating really hard. I told him that I was deciding between the hamburger, cheese or cake icon for my model :P
1013: [22:39:25] <Colin[pi]> LOL!!
1014: [22:39:27] <Colin[pi]> ahaha
1015: [22:39:38] <Colin[pi]> these are the tough decisions in life
1016: [22:39:47] <adrexia> I don't think multicoloured icons
1017: [22:39:49] <Colin[pi]> UncleCheese: because andrewshort
1018: [22:40:01] <UncleCheese> !!!!!
1019: [22:40:07] <UncleCheese> nah, i'm not talking about SS
1020: [22:40:09] * micmania1 quit (Quit: micmania1)
1021: [22:40:11] <UncleCheese> i mean, php in general
1022: [22:40:12] <Ryan-Toast> adrexia: you don’t like them you mean?
1023: [22:40:12] <adrexia> ...are nice
1024: [22:40:14] <Colin[pi]> well he cops the blame for composer and SS, so why not php?
1025: [22:40:16] <Colin[pi]> :D
1026: [22:40:17] <UncleCheese> it's like, composer or... PEAR
1027: [22:40:23] <adrexia> sorry pressed enter
1028: [22:40:27] <Stomach> PEAR is so bad
1029: [22:40:32] <Colin[pi]> PEAR is fucking atrocious
1030: [22:40:39] <UncleCheese> yeah it is
1031: [22:40:44] <UncleCheese> so composer wins by default
1032: [22:40:50] <UncleCheese> is that basically what's going on?
1033: [22:40:58] <Colin[pi]> UncleCheese: it's PHP... we can't have nice things with PHP
1034: [22:40:59] <adrexia> https://icomoon.io/app/#/select
1035: [22:41:03] <Colin[pi]> it's the law
1036: [22:41:05] <UncleCheese> meanwhile, in JS, you have all these wonderful package managers
1037: [22:41:08] <Ryan-Toast> adrexia: for the cms they help with quickly determaning what a page is.
1038: [22:41:14] <Ryan-Toast> for me personally.
1039: [22:41:24] <UncleCheese> yoeman, bower, npm.. take your pick
1040: [22:41:26] <Stomach> UncleCheese, yeah I really love working out whether I need to bower, npm or yo that shit
1041: [22:41:27] <Stomach> :(
1042: [22:41:36] <adrexia> for the cms I especially hate multicoloured icons
1043: [22:41:41] <adrexia> they look old school
1044: [22:41:42] <UncleCheese> yeah, i agree that it's overwhelming
1045: [22:41:49] <UncleCheese> but there are options
1046: [22:41:50] <Colin[pi]> adrexia: old school cool?
1047: [22:41:51] <adrexia> which doesn't fit with the otherwise nice design
1048: [22:41:56] <UncleCheese> i'd rather 5 great options than one shit one
1049: [22:41:58] <adrexia> old school lame core :P
1050: [22:42:00] <Colin[pi]> oh
1051: [22:42:01] <Colin[pi]> :(
1052: [22:42:02] <UncleCheese> and one impossibly archaic one
1053: [22:42:17] <Stomach> UncleCheese, until you need to start forking modules because you chose one of them and the package you want doesnt support it
1054: [22:42:18] <adrexia> Stromach you need npm. ignore bower
1055: [22:42:19] <Stomach> sighface.
1056: [22:42:31] <Ryan-Toast> adrexia: I dunno, I trhink these match the theme of the cms: http://i.imgur.com/qDTFYxH.jpg
1057: [22:42:32] <Stomach> adrexia - yeah I use npm for everything :)
1058: [22:42:33] <adrexia> nothing bower does that npm can't also do
1059: [22:42:34] <Colin[pi]> adrexia: personally I think the current bright color bkg and white silhoutte icon fad will get old REAL fast
1060: [22:42:59] <Colin[pi]> Ryan-Toast: o/ I likes it
1061: [22:43:00] <oddnoc> Look at markdown for a success story for diverse implementations. Oh, wait. Don’t look.
1062: [22:43:09] <Stomach> adrexia, we're in a commonjs environment so it makes sense to use npm
1063: [22:43:19] <Stomach> oddnoc - http://standardmarkdown.com/
1064: [22:43:20] <adrexia> <Ryan-Toast> respectfully disagree
1065: [22:43:21] <Colin[pi]> Ryan-Toast: and lol you've used pretty much the same icons as me
1066: [22:43:27] <adrexia> too much goign on in 16px
1067: [22:43:37] <oddnoc> Stomach: Yeh, that’s what made me think of that example :)
1068: [22:43:40] <Ryan-Toast> adrexia: Each to their own I guess
1069: [22:43:45] <adrexia> ;)
1070: [22:43:48] <Stomach> oddnoc, :D
1071: [22:44:01] <adrexia> I like single colour icons - preferablke dark
1072: [22:44:02] <Colin[pi]> Ryan-Toast: it's ok Ryan, we can sit over in the old school cool icon corner together and sip hot cocoa
1073: [22:44:05] <Ryan-Toast> Ugh, forgot to make inverse icons for my modules ><
1074: [22:44:12] <adrexia> perhaps two colours is ok
1075: [22:44:28] <Colin[pi]> adrexia: woah woah.. two colours? slow down thar
1076: [22:44:36] <Colin[pi]> don't get crazy now
1077: [22:44:37] <Colin[pi]> :D
1078: [22:44:44] <Ryan-Toast> My cms looks different anyway
1079: [22:45:08] <Ryan-Toast> looks like this: http://i.imgur.com/oNzp7AP.jpg
1080: [22:45:18] <Ryan-Toast> need to do those icons..
1081: [22:45:24] <adrexia> hahah ;)
1082: [22:46:04] <Colin[pi]> Ryan-Toast: ima do a reskin over the xmas hols :D
1083: [22:46:12] <Colin[pi]> we can compare our CMS reskin e-penis after
1084: [22:46:17] <Ryan-Toast> Colin[pi]: haha
1085: [22:46:22] <Ryan-Toast> I need to actually finish mine
1086: [22:46:33] <Colin[pi]> that said yours is pretty sweet
1087: [22:46:46] <Colin[pi]> imho I find the default ss3 cms interface.... very...... boring
1088: [22:46:57] <Colin[pi]> someone needs to make it pop
1089: [22:46:58] <Colin[pi]> ;D
1090: [22:47:06] <adrexia> I like it
1091: [22:47:06] <Stomach> let me get my reskin out too
1092: [22:47:09] <Stomach> epeen needed
1093: [22:47:13] <Colin[pi]> adrexia: I know :P
1094: [22:47:14] <adrexia> much nicer than 2.4 :P
1095: [22:47:37] <Colin[pi]> adrexia: true, but my 2.4 reskin was awesome sauce
1096: [22:47:41] <adrexia> I actually think it's the best thing about the cms
1097: [22:47:57] <Ryan-Toast> Colin[pi]: make is one of the following: sexy/pop/more like that/
1098: [22:48:18] <Ryan-Toast> adjective
1099: [22:48:36] <adrexia> make the logo bigger
1100: [22:48:47] <Colin[pi]> lolol
1101: [22:48:53] <Colin[pi]> that does happen so often
1102: [22:49:51] <Ryan-Toast> “Why can’t we change the colour of our text to red?”
1103: [22:50:21] <Colin[pi]> https://www.youtube.com/watch?v=5AxwaszFbDw
1104: [22:51:09] <Ryan-Toast> https://www.youtube.com/watch?v=qgcX0y1Nzhs
1105: [22:52:59] <Ryan-Toast> “white-space eliminator” is my favorite
1106: [22:55:57] <Colin[pi]> Ryan-Toast: lol, these types of videos always fill me with funny and rage at the same time
1107: [22:59:00] <Colin[pi]> Ryan-Toast: also, I use this for "metro" style icons: https://www.syncfusion.com/downloads/metrostudio
1108: [22:59:36] <Colin[pi]> Ryan-Toast: looks like this: http://magazine.nuefolio.com/wp-content/uploads/2012/08/metro-studio-2-free-metro-icons.jpg
1109: [22:59:40] <Colin[pi]> it's pretty sweet
1110: [23:00:08] <Ryan-Toast> Colin[pi]: I use svgs: http://iconmonstr.com/
1111: [23:00:46] <Colin[pi]> ooh *bookmarks*
1112: [23:02:10] <Ryan-Toast> SVG ALL THE THINGS
1113: [23:02:42] <Colin[pi]> Ryan-Toast: ur not svg'ing the cms icons :P
1114: [23:02:43] <Colin[pi]> ;D
1115: [23:03:02] <Ryan-Toast> Colin[pi]: May do so for my cms theme if I ever get around to it.
1116: [23:03:16] <adrexia> I bthink we should replace all cms icons with a font set
1117: [23:03:28] <Colin[pi]> adrexia: that's a good suggestion
1118: [23:03:31] <simon_w|work> Remove all icons!
1119: [23:03:32] <Ryan-Toast> adrexia: That’s what I wqas thinking
1120: [23:03:47] <Colin[pi]> simon_w|work would have the CMS operate via command line only
1121: [23:03:57] * simon_w|work has one of those already
1122: [23:04:01] <Ryan-Toast> Although I want to have a play with generating svg sprites with grunt
1123: [23:05:24] <Stomach> Ryan-Toast - tis easy
1124: [23:05:24] <simon_w|work> There's this function that gets called 14 times to check if a date is a public holiday
1125: [23:05:35] <Ryan-Toast> Stomach: Orly?
1126: [23:05:37] <Ryan-Toast> Cool
1127: [23:05:38] <simon_w|work> It's responsible for 14% of the request time
1128: [23:05:45] <simon_w|work> FIXING TIEM
1129: [23:05:45] <Colin[pi]> simon_w|work: wat
1130: [23:06:09] * Olliepop has joined #silverstripe
1131: [23:06:40] <Stomach> Ryan-Toast - http://www.sspaste.com/paste/show/54079a4b14918
1132: [23:07:00] <Ryan-Toast> Stomach: http://i.imgur.com/DMUVZ.gif
1133: [23:07:10] <simon_w|work> Colin[pi], 7 year old code!
1134: [23:07:24] <Stomach> using https://www.npmjs.org/package/grunt-svgstore
1135: [23:07:28] <Ryan-Toast> Stomach: How do you set spacing etc?
1136: [23:07:41] <Ryan-Toast> ah cool, thanks man.
1137: [23:07:44] <Ryan-Toast> Looks great
1138: [23:07:52] <Stomach> you dont have to worry about spacing
1139: [23:08:07] <Stomach> it just compiles them into a single bundle file you can use to reference each svg
1140: [23:08:14] <Stomach> svgs are just code after all
1141: [23:08:16] <Ryan-Toast> errmerrgerrd
1142: [23:09:02] <Colin[pi]> GERRSBERMS
1143: [23:10:45] <Colin[pi]> hurry up and end today, so I can go and pick up my car
1144: [23:11:41] <Ryan-Toast> Colin[pi]: what car?
1145: [23:11:49] <Colin[pi]> Ryan-Toast: http://www.carsales.com.au/private/details/Honda-Civic-2010/SSE-AD-2099734/?Cr=0&sdmvc=1
1146: [23:11:56] <Colin[pi]> selling my Mitsu
1147: [23:12:07] <Ryan-Toast> Colin[pi]: oh yup
1148: [23:12:26] <Colin[pi]> owner has REALLY taken care of it
1149: [23:12:34] <Colin[pi]> it still smells new
1150: [23:12:36] <Ryan-Toast> Omg the colt on trademe is gone, they must have sold it!
1151: [23:13:36] <Colin[pi]> Ryan-Toast: I talked him into reducing by $1k
1152: [23:18:04] <Ryan-Toast> everyday I’m haggling
1153: [23:19:48] <Colin[pi]> Ryan-Toast: and tbh I kinda feel bad knocking him down, because it's worth the price
1154: [23:19:58] <Ryan-Toast> Colin[pi]: Never feel bad
1155: [23:21:16] <Colin[pi]> Ryan-Toast: it's his baby, lol.. he doesn't really want to sell it, but they just spent a fortune on last minute flights to UK for a sick mum
1156: [23:21:31] <Ryan-Toast> Colin[pi]: Sucks for him, good for you.
1157: [23:21:34] <Colin[pi]> ;)
1158: [23:24:01] * travis-ci has joined #silverstripe
1159: [23:24:02] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3309 (3.1 - bc5cb42 : Simon Welsh): The build passed.
1160: [23:24:02] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/64d0a2152b2d...bc5cb4296b6a
1161: [23:24:02] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34343725
1162: [23:24:02] * travis-ci has left #silverstripe
1163: [23:26:01] <Kingy> sweet im test bitch for voip
1164: [23:27:10] <Stomach> our voip sucks
1165: [23:27:22] <Stomach> takes like 3 seconds to pick up calls
1166: [23:28:52] <Kingy> lol
1167: [23:29:02] <Kingy> people are freaking out because on the guide it has 4 steps to answer the phone
1168: [23:29:07] <Kingy> in reality it's just pick up the phone
1169: [23:32:07] * micmania1 has joined #silverstripe
1170: [23:33:54] * travis-ci has joined #silverstripe
1171: [23:33:54] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3310 (3.1 - 5168fad : Stig Lindqvist): The build passed.
1172: [23:33:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bc5cb4296b6a...5168fadbe052
1173: [23:33:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/34344035
1174: [23:33:54] * travis-ci has left #silverstripe
1175: [23:51:49] * maxer quit (Quit: maxer)

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