#silverstripe IRC Log

IRC log for 19 February 2015

All timestamps are in UTC.

1: [00:00:49] * travis-ci has joined #silverstripe
2: [00:00:50] <travis-ci> silverstripe/silverstripe-framework#4178 (3.1.10 - c302edc : Damian Mooyman): The build passed.
3: [00:00:50] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.10
4: [00:00:50] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51307792
5: [00:00:50] * travis-ci has left #silverstripe
6: [00:00:53] <zippy> It'd be handy if there was a site you could put a url in, and give it a line number which would spit out a url you can give people
7: [00:01:07] <zippy> and when they click the link it loads up the page, with the content from that url in there with the line number highlighted
8: [00:01:09] <zippy> ie
9: [00:01:28] <veb> zippy: https://www.dropbox.com/s/gko89hpwet3bhgn/Screenshot%202015-02-19%2012.48.22.png?dl=0
10: [00:01:40] <zippy> highlight.com/?p=http://silverstripe.com/?line=2 - and that would pull the html from that page and highlight line 2
11: [00:01:43] * travis-ci has joined #silverstripe
12: [00:01:44] <travis-ci> silverstripe/silverstripe-framework#4177 (3.1.10 - c302edc : Damian Mooyman): The build passed.
13: [00:01:44] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/fab44dce75e4...c302edc4e72d
14: [00:01:44] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51307779
15: [00:01:44] * travis-ci has left #silverstripe
16: [00:01:58] * muskie9_ has joined #silverstripe
17: [00:02:08] <zippy> veb: deadveb?
18: [00:03:26] <veb> wut
19: [00:03:34] <veb> he's dead
20: [00:05:32] <veb> zippy: you got something against dead people?
21: [00:05:45] * muskie9 quit (Ping timeout: 252 seconds)
22: [00:06:07] <zippy> I don't understand...
23: [00:07:28] <veb> I opened my laptop, session was dead, you were there.
24: [00:07:33] <veb> so I WANTED TO PUT THAT IN YOUR FACE TOO
25: [00:09:48] * masnun_ quit (Quit: Signing out.)
26: [00:16:02] <zippy> I was there?
27: [00:16:25] <zippy> you hitting the bath salts?
28: [00:18:59] * travis-ci has joined #silverstripe
29: [00:19:00] <travis-ci> silverstripe/silverstripe-cms#1125 (3.1.10 - c7814cf : Damian Mooyman): The build was broken.
30: [00:19:00] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.10
31: [00:19:00] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/51307832
32: [00:19:00] * travis-ci has left #silverstripe
33: [00:25:49] * travis-ci has joined #silverstripe
34: [00:25:50] <travis-ci> silverstripe/silverstripe-framework#4179 (3.1 - f95c181 : Damian Mooyman): The build passed.
35: [00:25:51] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/baca51c9d075...f95c181c97f7
36: [00:25:51] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51310191
37: [00:25:51] * travis-ci has left #silverstripe
38: [00:30:52] <superspring> camfindlay: hey Cam, i was wondering if you'd put any thought into a coding review process for Silverstripe moduels on addons.silverstripe?
39: [00:31:06] <superspring> ...or what you'd think about starting one...
40: [00:31:14] * Colin[pi]_2 has joined #silverstripe
41: [00:31:24] * camfindlay quit (Quit: camfindlay)
42: [00:31:50] <zippy> I think the first lesson should be at the top - http://www.silverstripe.org/learn/lessons/
43: [00:34:20] * Colin[pi] quit (Ping timeout: 244 seconds)
44: [00:36:45] * travis-ci has joined #silverstripe
45: [00:36:46] <travis-ci> silverstripe/silverstripe-framework#4180 (3.1 - 1e5519c : Damian Mooyman): The build passed.
46: [00:36:46] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/f95c181c97f7...1e5519cf1ae8
47: [00:36:46] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51311954
48: [00:36:46] * travis-ci has left #silverstripe
49: [00:40:27] * antmas is about to configure search for Sharepoint
50: [00:40:46] * Colin[pi]_2 is now known as Colin[pi]
51: [00:40:49] * antmas needs a beer
52: [00:42:24] * MichalKleiner would go crazy from Sharepoint
53: [00:42:25] * antmas creates search centre
54: [00:42:33] <antmas> lol first thing it reports to me is
55: [00:42:43] <antmas> 'MOTHERFUCKER I'M EATING ALL YOUR RAMZ'
56: [00:53:00] * muskie9_ is now known as muskie9_afk
57: [00:55:40] * wroof has joined #silverstripe
58: [00:56:46] <antmas> OH.MY.GODS http://io9.com/holy-xenomorphs-neill-blomkamp-will-be-making-his-alie-1686663351
59: [00:58:20] <wroof> anyone know the file location of the silvestripe content database? after completely deleting the main database the site keeps working
60: [00:59:44] * muskie9_afk is now known as muskie9_
61: [01:01:22] * Tanger has joined #silverstripe
62: [01:10:00] * muskie9_ is now known as muskie9_afk
63: [01:11:30] * blueman_ has joined #silverstripe
64: [01:11:53] * blueman_ is now known as Guest82757
65: [01:13:13] <Stomach> anyone ever used Member::set_title_format
66: [01:13:18] <Stomach> its producing strange side effects
67: [01:14:05] * camfindlay has joined #silverstripe
68: [01:14:23] <Stomach> camfindlay - you might have seen this somewhere in the wild
69: [01:14:37] <Stomach> is there a way to set the member title to something other than Surname, FirstName in the cms?
70: [01:14:53] <Stomach> I've been using Member::set_title_format
71: [01:14:59] <Stomach> but its causing weird side effects
72: [01:15:33] <Stomach> set_title_columns rather
73: [01:15:45] * Phlunk3 has joined #silverstripe
74: [01:15:50] <camfindlay> I think I used to just do a getTitle() method on a DataExtension of Member
75: [01:16:30] <Stomach> yeah there is a getTitle() on member already so it doesn't overwrite it
76: [01:16:33] <Stomach> hmmm
77: [01:19:03] * howardgrigg has joined #silverstripe
78: [01:22:24] <zippy> Stomach: not a bad score
79: [01:22:40] <Stomach> yeah they are doing well
80: [01:22:45] <Stomach> shaky start though
81: [01:22:55] <zippy> yea was like 2/2 then 3/3
82: [01:23:29] * howardgrigg quit (Ping timeout: 252 seconds)
83: [01:23:30] <zippy> that was a nice shot (after the wide)
84: [01:24:59] <antmas> who's rated best at the moment?
85: [01:25:03] <antmas> it's Aus yeah?
86: [01:25:48] * gavro quit (Remote host closed the connection)
87: [01:27:51] * zz_BrainStyle is now known as BrainStyle
88: [01:32:29] * gavro has joined #silverstripe
89: [01:37:46] * muskie9_afk is now known as muskie9_
90: [01:38:06] * jenniferaslan quit (Quit: jenniferaslan has left the room)
91: [01:38:22] * gavro quit (Remote host closed the connection)
92: [01:39:23] <Tanger> Morning guys
93: [01:41:54] <antmas> Tanger: o/
94: [01:43:58] * Azure quit (Excess Flood)
95: [01:45:01] * Azure has joined #silverstripe
96: [01:46:35] <superspring> camfindlay: can i grab a link to that paper?
97: [01:48:57] * ss23 changed the topic to 'Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive/'
98: [01:51:08] * Azure quit (Ping timeout: 265 seconds)
99: [01:52:06] * travis-ci has joined #silverstripe
100: [01:52:07] <travis-ci> silverstripe/silverstripe-cms#1125 (3.1.10 - c7814cf : Damian Mooyman): The build was broken.
101: [01:52:07] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.10
102: [01:52:07] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/51307832
103: [01:52:07] * travis-ci has left #silverstripe
104: [01:52:22] * antmas looks at ss23 -_-
105: [01:52:31] * antmas thinks for a second
106: [01:52:40] <antmas> ss23: https://gfycat.com/PitifulDamagedAustralianfurseal
107: [01:53:12] <ss23> lol
108: [02:01:11] * Azure has joined #silverstripe
109: [02:03:00] * travis-ci has joined #silverstripe
110: [02:03:01] <travis-ci> silverstripe/silverstripe-framework#4181 (3.1 - 3b66b75 : Ingo Schommer): The build passed.
111: [02:03:01] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/1e5519cf1ae8...3b66b75f2ff2
112: [02:03:01] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51318818
113: [02:03:01] * travis-ci has left #silverstripe
114: [02:06:30] <muskie9_> darn you docs! http://docs.silverstripe.org/en/developer_guides/testing/creating-a-functional-test/
115: [02:07:26] * glenn-bautista has joined #silverstripe
116: [02:07:36] * jedateach quit (Quit: jedateach)
117: [02:09:50] * muskie9_ is now known as muskie9
118: [02:14:15] * jedateach has joined #silverstripe
119: [02:14:17] <antmas> muskie9: ss23 FIXITFIXITFIXIT
120: [02:15:36] <muskie9> antmas ss23 yaaaaaa \o/
121: [02:23:56] <zippy> muskie9: how are you going with the tests?
122: [02:24:28] <zippy> Stomach: think zimbab can do it? seems a good wicket there...
123: [02:24:59] <muskie9> zippy I have basic tests down, looking to do tests on forms... probably look at existing tests in framework or userforms or something
124: [02:25:36] <muskie9> hate seeing 404's in the docs though
125: [02:26:12] <zippy> $response = $this->get($page->Link()); (page with form)
126: [02:26:31] <zippy> $request = $this->submitForm('id of the form', null, array('Name' => 'Bob'));
127: [02:26:46] <zippy> ah, that $request could be $response, but yea
128: [02:26:56] <zippy> load the page first, then you can use submitForm to submit the form based on the id
129: [02:27:06] <zippy> id is without the #
130: [02:27:23] <zippy> still got your fixtures down?
131: [02:28:49] * Azure quit (Ping timeout: 256 seconds)
132: [02:29:15] <zippy> muskie9: cool?
133: [02:30:00] <muskie9> that should help, thanks zippy!
134: [02:30:52] <muskie9> been obsessed w/putting tests where ever they can be in modules... took long enough for me to start using them
135: [02:32:01] <Stomach> zippy - they should be fine
136: [02:32:12] <ss23> SCREW YOU FIX IT URSELF
137: [02:32:14] <ss23> IT'S OPENSOURCE
138: [02:32:34] <zippy> ss23: how do I deploy to docs site?
139: [02:32:40] <ss23> make PR
140: [02:32:43] <ss23> done
141: [02:32:46] <ss23> we should do CI
142: [02:32:46] <ss23> o/
143: [02:33:01] <zippy> :P
144: [02:33:07] <muskie9> true enough ss23, forgot about that :D
145: [02:33:41] * r_hector1 has joined #silverstripe
146: [02:33:43] * antmas quit (Ping timeout: 246 seconds)
147: [02:33:55] * muskie9 is testing all links on that page now
148: [02:33:55] <zippy> should add some changes in there, llike about turning on stage mode etc
149: [02:34:11] <zippy> muskie9: report broken links to ss23, he loves it
150: [02:34:13] <Colin[pi]> muskie9: test ALL the things
151: [02:34:39] <Colin[pi]> zippy muskie9: yeah, send him tweets about broken links, best place
152: [02:34:49] <zippy> snail mail
153: [02:34:57] <zippy> fax
154: [02:35:06] <zippy> ss23: you guys got a fax machine in the office?
155: [02:35:11] * zippy wonders if people still fax
156: [02:35:13] * muskie9 will spam ss23 with docs issues
157: [02:35:36] <Colin[pi]> zippy: black piece of paper taped into a ring, fed through fax machine
158: [02:36:43] * r_hector1 quit (Client Quit)
159: [02:36:48] * ss23 dies
160: [02:37:59] * Azure has joined #silverstripe
161: [02:38:23] <Colin[pi]> RIP in peace ss23
162: [02:38:31] * r_hector1 has joined #silverstripe
163: [02:44:13] * UncleCheese has joined #silverstripe
164: [02:44:59] <zippy> camfindlay: on the docs site, there is a link in the menu (I think it's mobile only) to security releases. One of theme is broken and I thnk it's because the url contains a .
165: [02:45:00] <zippy> http://www.silverstripe.org/software/download/security-releases/ss-2013-002-sql-injection-in-versioned.php/
166: [02:45:15] <zippy> versioned.php - I think the url needs to be changed to versioned-php
167: [02:48:23] <muskie9> really unsure on the linking: https://github.com/silverstripe/silverstripe-framework/pull/3918
168: [02:48:29] <muskie9> just guessing
169: [02:49:39] <muskie9> probably could've added a link to the fixture's recipe/tut
170: [02:49:44] <Colin[pi]> muskie9: lol love your avatar
171: [02:50:06] <muskie9> Colin[pi] I think I stole it from someone, but ya... story of my life
172: [02:50:15] <Colin[pi]> muskie9: every single day for me
173: [02:50:57] <muskie9> wish there was a gif of it happening, don't suppose Ryan-Toast has one of those???
174: [02:52:53] <Ryan-Toast> muskie9: Not one that I can find.
175: [02:53:01] <muskie9> arg
176: [02:53:16] <Colin[pi]> Ryan-Toast I am disappoint
177: [02:53:22] <Ryan-Toast> IT’S NOT A GIF
178: [02:53:24] <Colin[pi]> I tried to find too but no luck ;P
179: [02:54:01] <Ryan-Toast> http://i.imgur.com/6C1InRl.png
180: [02:54:28] <muskie9> I may have to change my profile pic now!
181: [02:54:30] <muskie9> http://puu.sh/g38B2/aa50ad60df.gif
182: [02:55:36] <Colin[pi]> there is now a HD picard facepalm thanks to the new TNG blu-rays: https://i.imgur.com/iWKad22.jpg
183: [02:58:32] <muskie9> profile updated successfully... double super face palm!
184: [02:59:07] <Colin[pi]> lol
185: [03:01:37] <muskie9> does this have to be in the root level of a project? https://github.com/silverstripe/silverstripe-installer/blob/3.1/.editorconfig
186: [03:02:16] <muskie9> unrelated project to SS, but love that it's in there
187: [03:03:02] <camfindlay> superspring - I’ll look to publish on the original dev list post I started last year so everyone can have it ;)
188: [03:03:26] <camfindlay> zippy, cheers, and yes I thing we shouldn’t have a . in the url - might look at changing that.
189: [03:04:04] <zippy> camfindlay: I can't send a pull request to fix that broken link
190: [03:04:43] <zippy> ss23: http://docs.silverstripe.org/en/topics/i18n/ is broken :( linked from http://docs.silverstripe.org/en/contributing/translations/
191: [03:05:02] <zippy> ss23: http://docs.silverstripe.org/en/misc/coding-conventions/ broken :( liked from http://docs.silverstripe.org/en/developer_guides/security/secure_coding/
192: [03:05:30] <zippy> ss23: http://docs.silverstripe.org/en/topics/security/ broken :( :( linked from http://docs.silverstripe.org/en/getting_started/installation/ and http://docs.silverstripe.org/en/getting_started/coding_conventions/
193: [03:07:04] <camfindlay> you can click the edit button at the end of each page and change
194: [03:07:19] <camfindlay> it’s just markdown in the framework repo
195: [03:07:50] <camfindlay> there is also an htaccess file with rewrites if you think some of the old urls aren’t matching up
196: [03:07:57] * howardgrigg has joined #silverstripe
197: [03:09:28] <camfindlay> zippy: http://www.silverstripe.org/software/download/security-releases/ss-2013-002-sql-injection-in-versioned-php
198: [03:10:32] <zippy> camfindlay: the link on the doc page is still to the wrong place, I assume it's some cache or something?
199: [03:10:41] <zippy> <a data-parent-id="794" data-link="/software/download/security-releases/ss-2013-002-sql-injection-in-versioned.php/" href="http://www.silverstripe.org/software/download/security-releases/ss-2013-002-sql-injection-in-versioned.php/" title="Go to the SS-2013-002: SQL injection in Versioned.php page">SS-2013-002: SQL injection in Versioned.php</a>
200: [03:11:00] <camfindlay> where is that?
201: [03:11:19] * micmania1 quit (Quit: micmania1)
202: [03:11:48] * micmania1 has joined #silverstripe
203: [03:11:50] <camfindlay> what page on docs?
204: [03:12:58] * howardgrigg quit (Ping timeout: 264 seconds)
205: [03:13:06] * howardgrigg has joined #silverstripe
206: [03:13:30] * howardgrigg quit (Client Quit)
207: [03:20:01] <superspring> ah, those fun days at Silverstripe where you watch dead animals fly :p
208: [03:20:18] <superspring> https://www.youtube.com/watch?v=DTVOK2yvbBM
209: [03:21:20] <ss23> lol
210: [03:26:29] * Phlunk3 quit (Remote host closed the connection)
211: [03:29:52] <superspring> ss23: was playing on the big screen up here :p
212: [03:31:31] * veb quit (Quit: veb-irc: &)
213: [03:38:56] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
214: [03:39:09] <zippy> camfindlay: go here http://docs.silverstripe.org/en/ or any page, and view source - it's in a menu
215: [03:39:36] <zippy> I can't see how to trigger the menu, maybe it's a developer tool bar or something strange... could probably remove the whole thing and make it go faster :)
216: [03:43:38] <zippy> Stomach: ....
217: [03:43:45] <zippy> that'd such so hard much
218: [03:44:15] <zippy> still think they can take it?
219: [03:45:32] * Stomach quit (Quit: zzz)
220: [03:46:15] <camfindlay> zippy: so it’s not specifically in the docs nav though?
221: [03:46:26] <zippy> it's on the docs website in the source
222: [03:46:28] <camfindlay> Think that is the header that is gerenated over on ss.org
223: [03:46:37] <zippy> hows it getting into docs.silverstripe?
224: [03:46:59] <camfindlay> https://github.com/silverstripe/silverstripe-globaltoolbar
225: [03:47:02] * Guest82757 quit ()
226: [03:47:58] <camfindlay> I’ve changed the actual page url so likley it will propigate out to the other *.ss.org sites
227: [03:48:21] <zippy> yea so the doc site must have it cached or something. Doesn't seem to get inserted via js... magic :)
228: [03:48:28] <camfindlay> yip
229: [03:48:36] <camfindlay> so it will correct in due course
230: [03:48:58] * Olliepop quit (Ping timeout: 246 seconds)
231: [03:55:37] <zippy> Ryan-Toast: less is better
232: [03:55:48] <Ryan-Toast> zippy: wat?
233: [03:55:57] <zippy> you heard
234: [03:55:59] <Ryan-Toast> zippy: Oh, you mean LESS?
235: [03:56:15] <Ryan-Toast> zippy: http://i.imgur.com/PcJQI.gif
236: [03:56:32] <Ryan-Toast> zippy: http://i.imgur.com/sxVsQ.jpg
237: [03:56:49] <zippy> you know it ;-)
238: [03:57:08] <Ryan-Toast> zippy: http://i.imgur.com/scLTYbi.jpg
239: [03:57:27] <Ryan-Toast> http://i.imgur.com/3sNPQvV.gif
240: [03:57:55] <Ryan-Toast> https://i.imgur.com/WlecVPf.jpg
241: [03:58:01] <zippy> struck a nerve eh
242: [03:58:07] <Ryan-Toast> Also, you need to SCSS.
243: [03:58:13] <Ryan-Toast> Not SASS
244: [03:58:24] <zippy> why?
245: [03:58:30] <Ryan-Toast> SCSS > SASS
246: [03:59:55] <Ryan-Toast> Home time./
247: [04:01:33] <zippy> o/
248: [04:01:43] * Colin[pi] waves at Ryan-Toast
249: [04:03:14] <zippy> umpires must feel so vindicated...
250: [04:03:22] <zippy> "told ya fool, now move..!"
251: [04:04:11] * wracu quit (Quit: Leaving)
252: [04:04:58] * mobiusnz quit (Quit: Leaving.)
253: [04:10:19] <Colin[pi]> ugh reskinning gridfield is a pain in the butt http://i.imgur.com/89yMcR9.png
254: [04:10:39] <zippy> you bored Colin[pi] ?
255: [04:10:46] <zippy> "David Bain will need to prove his innocence if he is to receive compensation from the Government. The Government today announced that it will set aside all previous advice relating to Bain's compensation claim and will conduct a fresh inquiry."
256: [04:10:48] <zippy> man...
257: [04:10:51] <Colin[pi]> zippy: I try to chip away at this reskin every day a bit
258: [04:10:58] <Colin[pi]> takes like an hour each day lol
259: [04:11:09] <zippy> they should of just given him the money instead of doing all the inquerieys and it would be done and dusted
260: [04:11:20] <zippy> so instead they will piss away more money on an inquiry..
261: [04:11:55] <zippy> quite a weird thing... "David Bain will need to prove his innocence" but he's been found innocent....
262: [04:12:05] <zippy> otherwise he'd be locked up
263: [04:12:18] * wmk has joined #silverstripe
264: [04:12:56] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
265: [04:19:45] * Hailwood quit (Remote host closed the connection)
266: [04:22:17] * Ryan-Toast quit (Quit: Ryan-Toast)
267: [04:26:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
268: [04:31:02] * camfindlay quit (Quit: camfindlay)
269: [04:36:57] * mobiusnz has joined #silverstripe
270: [04:40:24] * BrainStyle is now known as zz_BrainStyle
271: [04:46:51] * mobiusnz quit (Quit: Leaving.)
272: [04:48:59] * cloph_away has joined #silverstripe
273: [04:49:13] * cloph quit (Ping timeout: 250 seconds)
274: [04:49:55] * glenn-bautista quit (Ping timeout: 255 seconds)
275: [05:28:43] * mahfuz quit (Ping timeout: 246 seconds)
276: [05:42:02] * muskie9 has joined #silverstripe
277: [05:42:35] <Tanger> Why would Ryan-Toast prefer SCSS to SASS? C/PHP background?
278: [05:43:03] <Colin[pi]> Tanger: personal preferences?
279: [05:43:55] <muskie9> so why would this create a header 3 tag with text of "Advanced Settings" HeaderField::create('AdvanceHeader', 'Advanced Settings', 3); and this HeaderField::create('submitPrice', $data->Price, 4); create this: <h25.00 id="Form_PurchaseForm_HeaderFieldsubmitPrice">submitPrice</h25.00>
280: [05:43:57] <Tanger> I for one welcome our indent-based overseers
281: [05:44:12] <muskie9> assuming Price is a Currency db field type
282: [05:46:00] <muskie9> also, the AdvancedHeader field is in my siteconfig while the second, submitPrice is in a front-end form
283: [05:46:51] <Tanger> muskie9: From looking at the code
284: [05:47:18] <muskie9> do I have to cast the second param in my submitPrice header field?
285: [05:47:19] <Tanger> muskie9: in 3.1, HeaderField uses func_get_args()
286: [05:47:20] <Tanger> if(!isset($args[1]) || is_numeric($args[1]))
287: [05:47:24] <Tanger> Yeah
288: [05:47:25] <Tanger> probs
289: [05:47:47] <wmk> Tanger, scss is quite "officially" prefered ofer sass?
290: [05:47:50] <Tanger> Looks like it treats the second argument in as a heading level if it's a numeric
291: [05:48:40] <Tanger> wmk: But it's so many extra characters and there's the need to make an even level of matching braces :/
292: [05:48:53] <Tanger> Takes me back to Lisp days
293: [05:49:05] <wmk> yup. it's more css like
294: [05:49:16] <wmk> but a good IDE / editor does the braces work for you
295: [05:50:16] <muskie9> Tanger ur correct, when I do HeaderField::create('submitPrice', '$'.$data->Price, 4) it shows the second arg as the title rather than the header level
296: [05:51:03] <muskie9> does that seem buggy if for some reason someone wants to use a HeaderField with numbers as the value/title?
297: [05:51:43] <Tanger> muskie9: API says it's legacy handling code. For backportability I guess
298: [05:52:44] <muskie9> wonder how far back that's for
299: [05:53:26] <Tanger> Looks like back past 2.4 :P
300: [05:53:40] <muskie9> sounds like that could get deprecated
301: [05:54:09] <muskie9> was just looking and saw the same... want to find 2.3 api now and see lol
302: [05:54:42] <muskie9> https://github.com/silverstripe/silverstripe-framework/blob/2.1/forms/HeaderField.php#L9
303: [05:54:50] <Tanger> Yeah lol
304: [05:54:56] <Tanger> I'm in the same file looking
305: [05:55:15] <muskie9> looks like 2.2 was the last to use the old set
306: [05:55:46] <muskie9> 2.3 added the legacy support
307: [05:55:57] <Tanger> I reckon it must be ironed out soon.
308: [05:56:35] <muskie9> might take a crack at a PR... hope no one's jumping from 2.2 to 3.1 😳
309: [06:08:54] * Cramb quit (Quit: Cramb)
310: [06:10:32] * Colin[pi] quit (Ping timeout: 250 seconds)
311: [06:13:59] * micmania1 quit (Quit: micmania1)
312: [06:15:50] * WandL has joined #silverstripe
313: [06:19:40] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
314: [06:20:10] * elgabbu quit (Ping timeout: 246 seconds)
315: [06:22:13] * elgabbu has joined #silverstripe
316: [06:48:46] * Cramb has joined #silverstripe
317: [06:50:52] * Cramb quit (Client Quit)
318: [07:11:32] * wmk quit (Ping timeout: 245 seconds)
319: [07:13:09] * Sticks quit (Quit: Leaving)
320: [07:23:50] * lerni_ has joined #silverstripe
321: [07:24:26] * darjus01 has joined #silverstripe
322: [07:33:39] <darjus01> Hi all
323: [07:33:42] * zippy has joined #silverstripe
324: [07:34:15] * Eliseth has joined #silverstripe
325: [07:39:38] * wmk has joined #silverstripe
326: [07:42:24] <zippy> hi
327: [07:42:58] <wmk> ho
328: [07:55:52] * veb has joined #silverstripe
329: [08:01:33] <zippy> hi
330: [08:04:59] * WandL quit (Quit: Textual IRC Client: www.textualapp.com)
331: [08:13:39] * arnhoe has joined #silverstripe
332: [08:18:10] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
333: [08:18:15] * Stomach has joined #silverstripe
334: [08:19:16] * gavro has joined #silverstripe
335: [08:19:51] * Stomach quit (Client Quit)
336: [08:20:43] * veb has left #silverstripe
337: [08:20:46] * veb has joined #silverstripe
338: [08:20:49] <veb> HIIIII
339: [08:25:39] <zippy> o
340: [08:26:37] <veb> l
341: [08:26:46] <wmk> hmm, changelogs in docs page are not in the right order
342: [08:26:55] <zippy> lots are things are not right
343: [08:27:00] <zippy> send in PR :)
344: [08:27:24] <wmk> zippy, which repo do i have to look for?
345: [08:27:42] <zippy> The docs are in the framework/docs/ fodler
346: [08:27:59] <wmk> ok. so framework module. thanks
347: [08:28:06] <zippy> yeap my bad
348: [08:28:09] <zippy> http://kopy.io/ is a nice pastebin!
349: [08:29:02] <zippy> and supports tabs! niceee..
350: [08:29:50] * badu has joined #silverstripe
351: [08:30:37] <veb> doesn't pastie support tabs
352: [08:30:45] <veb> zippy: why all these weird paste things, why not gist
353: [08:31:02] <zippy> some people like not having them linked back to their name
354: [08:31:10] <zippy> *ghost mode*
355: [08:31:35] <wmk> zippy, adblocker?
356: [08:32:01] <zippy> adblocker on github?
357: [08:32:07] <wmk> pastebin
358: [08:34:00] <wmk> zippy, the order of the changelogs is done with a shortcode [CHILDREN]
359: [08:34:10] <zippy> balls
360: [08:36:06] * dendeffe quit (Quit: dendeffe)
361: [08:36:09] <wmk> ?
362: [08:38:52] * zz_BrainStyle is now known as BrainStyle
363: [08:43:34] * ocmnt has joined #silverstripe
364: [08:45:36] <badu> Hello. is there a possibility to connect bootstrap with silverstripe effectively - I mean silverstripe framework module default elements? thank you
365: [08:47:23] * gavro quit (Remote host closed the connection)
366: [08:48:01] * gavro has joined #silverstripe
367: [08:48:47] <zippy> badu: well...
368: [08:49:25] <zippy> the main thing which is auto generated for you html wise is the forms, and there is a module to do that
369: [08:49:40] <wmk> yup
370: [08:49:43] <zippy> SS doesn't auto generate much html other than some meta ones
371: [08:49:46] <zippy> so you can do it how you like
372: [08:49:48] <wmk> there are also some bootstrap themes around
373: [08:50:14] * jedateach quit (Quit: jedateach)
374: [08:50:25] * gavro quit (Remote host closed the connection)
375: [08:50:34] <wmk> badu, see http://addons.silverstripe.org/add-ons?search=bootstrap
376: [08:50:39] * gavro has joined #silverstripe
377: [08:52:23] * EasyCo quit (Quit: Connection closed for inactivity)
378: [08:52:26] * dendeffe has joined #silverstripe
379: [08:53:43] <Eliseth> Morning
380: [08:53:48] <wmk> hey Eliseth
381: [08:56:42] <veb> zippy: sorry
382: [08:56:48] <veb> I forgot I wrote something for you
383: [08:56:49] <veb> http://kopy.io/4oSkI
384: [08:57:43] <veb> badu: the other thing, you should always search GitHub when you've got similar questions, no matter the CMS, framework etc: https://github.com/search?utf8=%E2%9C%93&q=silverstripe+bootstrap
385: [08:57:58] * zippy is not on slingshit
386: [08:58:24] <veb> i am
387: [08:58:25] <veb> it's great
388: [08:58:37] <veb> i have vdsl, i get 50mb/s down and 10mb/s up
389: [08:58:40] <veb> unlimited too.
390: [08:58:52] <veb> I was surprised to reach those speeds.
391: [08:58:58] <veb> i really did not expect.
392: [09:00:07] * MattyBalaam has joined #silverstripe
393: [09:00:17] * Liquide quit ()
394: [09:00:51] <MattyBalaam> Does anyone have a better solution to my horrible template code here: http://stackoverflow.com/questions/28589622/create-navigation-from-parent-of-specified-pagetype
395: [09:03:03] <wmk> hi MattyBalaam
396: [09:03:34] <wmk> well, maybe grab the related pages in php and return an ArrayList which you can easily loop over in the template
397: [09:06:12] <MattyBalaam> Would that then need to be a grouped list to keep a tree structure?
398: [09:08:38] <MattyBalaam> Also, would I need to make a while loop to search up through parents, or is there any inbuilt way?
399: [09:11:15] * kinglozzer has joined #silverstripe
400: [09:12:11] <kinglozzer> I'm on the train, just had to share this link in case anyone hasn't seen it :P http://stilldrinking.org/programming-sucks
401: [09:12:34] * kinglozzer quit (Client Quit)
402: [09:13:51] * Tanger quit (Quit: sleep())
403: [09:14:37] <wmk> MattyBalaam, afaik there is something in Hierarchy class, mom
404: [09:15:43] <wmk> MattyBalaam, http://api.silverstripe.org/3.1/class-Hierarchy.html#_getAncestors
405: [09:16:02] <wmk> which is basically a while()
406: [09:16:17] <MattyBalaam> Ah, thankswkm
407: [09:16:37] <wmk> have a look at hierarchy class, maybe there are some other hidden gems for you
408: [09:17:45] * glenn-bautista has joined #silverstripe
409: [09:23:38] * Pyabo0sk has joined #silverstripe
410: [09:29:44] <veb> Kingy[a]: hello.
411: [09:29:47] <veb> I know you're there.
412: [09:30:32] * Kingy[a] is now known as Kingy
413: [09:31:58] <zippy> :)
414: [09:32:10] <veb> I win
415: [09:32:22] <veb> but time I go to sleep.
416: [09:34:48] * BrainStyle is now known as zz_BrainStyle
417: [09:36:51] * Colin[pi] has joined #silverstripe
418: [09:36:59] <Pyabo0sk> so, that Lenovo eh
419: [09:37:39] <Kingy> hi
420: [09:38:15] * glenn-bautista quit (Read error: Connection reset by peer)
421: [09:38:45] * glenn-bautista has joined #silverstripe
422: [09:39:14] * glenn-bautista quit (Client Quit)
423: [09:39:59] <Colin[pi]> hey Kingy o/
424: [09:40:11] <Kingy> how's things Colin[pi]
425: [09:40:13] <Kingy> on late tonight
426: [09:40:25] <Colin[pi]> yeah working on my cms skin
427: [09:40:31] <Colin[pi]> must. finish...
428: [09:40:44] <Pyabo0sk> for... 3.-1?
429: [09:40:55] <Colin[pi]> Pyabo0sk: aye
430: [09:41:13] <Colin[pi]> Pyabo0sk: work in progress: http://i.imgur.com/VM69nfw.png
431: [09:41:50] <Kingy> v nice
432: [09:42:19] <Colin[pi]> Kingy: ta, not sure about some parts yet, still working on it
433: [09:42:30] * guci0 has joined #silverstripe
434: [09:42:44] <Colin[pi]> Kingy: most of the icons have been replaced by font awesome too so it'll look super sexy on retina screens
435: [09:42:57] <Kingy> that's hot
436: [09:43:06] <guci0> Hi, it's vector.
437: [09:43:24] <Colin[pi]> hello?
438: [09:44:21] <Colin[pi]> Kingy: I was never a super fan of the 3.x cms look and feel, but it was heaps better than 2.4
439: [09:44:35] <Colin[pi]> Kingy: but I skinned the ever living shit out of 2.4
440: [09:44:41] <Colin[pi]> took me WEEKS :(
441: [09:44:43] <Kingy> lol luckily i didn't have to deal with 2.4
442: [09:45:10] <Kingy> how is Ryan-Toast getting on with his boiler plate?
443: [09:45:17] <Colin[pi]> Kingy: yeah my old "standard" install was based on it, it's far too old, I need to update :)
444: [09:45:29] <Colin[pi]> Kingy: he's still working on it from time to time
445: [09:46:07] <zippy> Pyabo0sk: mmm bad Lenovo
446: [09:46:55] <zippy> Colin[pi]: you know.. the time you spend on the theme could be time playing ED
447: [09:47:03] <Kingy> zippy \o
448: [09:47:07] <zippy> o/
449: [09:47:13] <Kingy> how doing man
450: [09:47:16] <Pyabo0sk> have lenovos at work.
451: [09:47:17] <Colin[pi]> zippy o/
452: [09:47:23] <Pyabo0sk> but, work machines.
453: [09:47:25] * Pyabo0sk shrugs
454: [09:47:27] <Colin[pi]> zippy: god damn it zippy
455: [09:47:37] <Colin[pi]> I'm trying to ignore the Extreme 3D Pro sitting beside me
456: [09:47:49] <zippy> why resist your urge?
457: [09:47:54] <zippy> your only human! it's going to waste
458: [09:48:01] <Kingy> haha Colin[pi] I had to sell mine when we left :(
459: [09:48:04] <Pyabo0sk> who's only human?
460: [09:48:12] <Colin[pi]> Kingy: shit eh? that sucks
461: [09:48:24] <Kingy> had to sell errrthing
462: [09:48:32] <zippy> soo.. 3.1.10 is out now eh
463: [09:48:34] <Colin[pi]> zippy: I plan to dev for an hour and then pew pew in empire space
464: [09:48:35] <Kingy> except the xbox, that was carry on luggage lol
465: [09:48:46] <Colin[pi]> Kingy: haha
466: [09:48:49] <zippy> ss23: why does the topic not have latest version....
467: [09:48:59] <zippy> ss23: topic updating has sure gone to pack since someone left.....
468: [09:49:31] <Kingy> wait what did I miss?
469: [09:49:34] <ss23> um
470: [09:49:48] <ss23> zippy: I didn't decide for it not to have the latest version, but I'm glad it doesn't
471: [09:50:13] * ss23 changed the topic to 'ZIPPY IS A FUCKING TRAITOR KILL HIM | TRAITORS ARE ZIPPY | NO ZIPPYS ALLOWED'
472: [09:50:15] <ss23> asdrfasdfasdfasdf
473: [09:50:17] * ss23 kills zippy
474: [09:50:18] <ss23> rAWR
475: [09:50:19] <Colin[pi]> lol
476: [09:50:23] <zippy> ss23: just make me an op and i'll update it
477: [09:50:24] <Pyabo0sk> you missed zippy getting all shit with gramma up in he're
478: [09:50:24] * ss23 changed the topic to ' Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases:'
479: [09:50:28] <ss23> oh god
480: [09:50:31] <ss23> help
481: [09:50:35] <Kingy> aww no release :(
482: [09:50:50] <ss23> .tiouc/topic Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive
483: [09:50:55] <ss23> asdf/asdfasdf
484: [09:50:57] * ss23 changed the topic to ' Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive'
485: [09:50:58] <Kingy> hahaha
486: [09:51:03] <ss23> Remember kids, dont' drink and IRC
487: [09:51:13] <zippy> Pyabo0sk: i have very good england
488: [09:51:28] <Kingy> so did simon rage quit?
489: [09:51:46] <Colin[pi]> Kingy: pretty much ya
490: [09:52:03] <Pyabo0sk> quite some time ago
491: [09:52:04] <Kingy> miss all the good stuff
492: [09:52:15] <Colin[pi]> Kingy: he also called us all jerks
493: [09:52:15] * cloph_away is now known as cloph
494: [09:52:16] <Pyabo0sk> I dunno the details either Kingy, I just respect his decisiion
495: [09:52:27] <Kingy> well he was talking about it before I left
496: [09:52:38] <Pyabo0sk> Had been for a while.
497: [09:52:42] * NETim has joined #silverstripe
498: [09:52:59] <Pyabo0sk> But seems there was something in particular that set him off, judging by the response.
499: [09:53:10] * Kingy searches logs
500: [09:53:12] <NETim> Morning, anyone know of a simple way to get SS2.4 to send an email when someone logs in?
501: [09:53:28] <Pyabo0sk> [09:50] == ss23 changed the topic of #silverstripe to: ZIPPY IS A FUCKING TRAITOR KILL HIM | TRAITORS ARE ZIPPY | NO ZIPPYS ALLOWED
502: [09:53:30] <zippy> NETim: make an extension, hook the after login
503: [09:53:30] <Pyabo0sk> wiat what?
504: [09:53:53] <Pyabo0sk> NETim: grep for $this->extend('
505: [09:53:58] <Pyabo0sk> that's a hook point.
506: [09:53:59] <ss23> woah who did that
507: [09:54:00] <ss23> omg fake
508: [09:54:02] <ss23> omg fake fake fake
509: [09:54:06] <zippy> :P
510: [09:54:13] <NETim> Pyabo0sk: thanks.
511: [09:54:14] <Pyabo0sk> ss23: what's it all about? zippy being a fuck'n laravel mongol?
512: [09:54:15] * ss23 snuggles zippy
513: [09:54:18] <ss23> It's okay I still love you
514: [09:54:18] <ss23> <3
515: [09:54:21] <Pyabo0sk> maruder
516: [09:54:22] * zippy has a big head. Name was in the topic :D
517: [09:54:25] <Pyabo0sk> marooooooorder
518: [09:54:27] <Kingy> zippy declared his love for joomla
519: [09:54:28] <NETim> Pyabo0sk: did I miss something here?
520: [09:54:30] <Pyabo0sk> however you do that
521: [09:54:34] <Kingy> only solution is to kill him
522: [09:54:34] <Pyabo0sk> NETim: we're just having some fun
523: [09:54:42] <NETim> ah, sounded like war
524: [09:54:50] <Pyabo0sk> all the oldphags, as such.
525: [09:55:06] <zippy> Pyabo0sk: you just hating that my pages load so fast with non caching needed and the config system makes sense with no yaml
526: [09:55:15] <Pyabo0sk> ha, fuck your 'fast'.
527: [09:55:19] <Pyabo0sk> I've seen your 'fast'.
528: [09:55:26] <Pyabo0sk> It's slow as fuck.
529: [09:55:26] <zippy> who needs speed aye ;-)
530: [09:55:34] <Kingy> did I tell you guys I got a knife :D
531: [09:55:37] <Kingy> \o/
532: [09:55:40] <Kingy> lol
533: [09:55:42] <Pyabo0sk> lazyvel: Slow as fuck all the things.
534: [09:56:04] <Pyabo0sk> Granted it might be a bit faster than SS... but that doesn't make it *fast.
535: [09:56:19] <Colin[pi]> Kingy: milk that for all it's worth
536: [09:56:21] <Colin[pi]> ;P
537: [09:56:26] <Pyabo0sk> so MMMMMEEEHHHHHHHH
538: [09:56:26] * Pyabo0sk pokes his tounge out
539: [09:56:37] <wmk> Pyabo0sk, if you want it fast...
540: [09:56:42] <Kingy> Colin[pi]: you know it
541: [09:56:45] <Pyabo0sk> Kingy: lol, you didn't tell me, but I saw it in the logs
542: [09:57:00] <Colin[pi]> Pyabo0sk: surprised it wasn't on the fucking news
543: [09:57:05] <Pyabo0sk> around the same time I learnt ss23 plays Counter-Strike
544: [09:57:21] <Kingy> we introduced him
545: [09:57:26] <Kingy> got to witness his first ever game
546: [09:57:29] <Pyabo0sk> I used to play Counter-Stripe back in the day.
547: [09:57:29] <Kingy> was... interesting
548: [09:57:36] <Pyabo0sk> Once upon a time.
549: [09:57:45] <Pyabo0sk> these days it's more like once upon a Tyne.
550: [09:57:47] <Colin[pi]> Pyabo0sk: 1.6 ?
551: [09:58:02] <Pyabo0sk> Colin[pi]: 1.1, 1.3, 1.5, 1.6, 2.0
552: [09:58:19] <Pyabo0sk> well, I say 2.0, but I really mean :S
553: [09:58:27] <Pyabo0sk> (ource)
554: [09:58:34] <Colin[pi]> Pyabo0sk: I played a shit ton of source
555: [09:58:37] <Kingy> yeah
556: [09:58:45] <Colin[pi]> was totes addicted for a long time :\
557: [09:58:54] <Pyabo0sk> so did I, until I made the fatal mistake of playing BF2
558: [09:59:04] <Kingy> be so much better if i could get decent ping here
559: [09:59:11] <Pyabo0sk> Which I hated at first, but then nek minnit... oh shit.
560: [09:59:25] <Colin[pi]> Kingy: what sort of pings you getting?
561: [09:59:33] <Pyabo0sk> It was enfuriating as shit, but... ya just kept on play'n.
562: [09:59:47] <Pyabo0sk> I used to be good at CS once.
563: [09:59:56] <Kingy> Colin[pi]: there are about 2-3 active dubai community servers where I get 80ms
564: [10:00:00] <Pyabo0sk> then I started playing gungame, because it's more fun.
565: [10:00:06] <Colin[pi]> Kingy: ouch
566: [10:00:06] <Kingy> anything official (Casual or MM) 170-20
567: [10:00:09] <Pyabo0sk> and I would demolis that too, until that fucking grenade. Fuk that grenade.
568: [10:00:11] <Kingy> 200
569: [10:00:17] <Colin[pi]> Kingy: woah
570: [10:00:22] <Kingy> so if I want to work on my rank or whatever, it's a complete disaster
571: [10:00:37] * Frans_Amsterdam has joined #silverstripe
572: [10:00:39] <Pyabo0sk> Kingy: surely you must have closer servers than AU though, no?
573: [10:00:44] <Kingy> Colin[pi]: valve have servers in Dubai but for some reason my ISP routes via Paris to get there lol
574: [10:00:49] <Kingy> Pyabo0sk: I live in Bahrain :)
575: [10:00:51] <Pyabo0sk> I mean, these days I play QL, and it's great.
576: [10:00:53] <Colin[pi]> Kingy: dafuq
577: [10:00:55] <Pyabo0sk> Kingy: I iknow.
578: [10:01:13] <Kingy> I don't play on AU servers
579: [10:01:15] <Colin[pi]> there is some weird arse routing over in that part of the world, I've witnessed it before
580: [10:01:17] <Pyabo0sk> because my brain is apparently now an apple product from the mid 00's.
581: [10:01:23] <Kingy> generally western EU gets me the 'best' ping but 180 is shit ol
582: [10:01:38] <Pyabo0sk> wow
583: [10:01:40] <Pyabo0sk> nothing closer?
584: [10:01:46] <Kingy> hopefully once we get our identity cards we can change ISPs
585: [10:01:49] <Pyabo0sk> I'd have thought there'd be something eastern eu
586: [10:01:55] <Kingy> well like i said Dubai has offical servers but the routing is shit
587: [10:01:56] <Pyabo0sk> oic
588: [10:02:23] <Pyabo0sk> I think sometimes that I should buy and play C:GO
589: [10:02:29] <Colin[pi]> Kingy: when my gf was in brasil, it routed via spain, THEN usa, then AU
590: [10:02:36] <Kingy> haha
591: [10:02:37] <Colin[pi]> to connect to me, that is
592: [10:02:39] <Kingy> it's whacked
593: [10:03:04] <Kingy> our net is cruddy as
594: [10:03:16] <Kingy> I can't even watch a twitch stream on mobile quality
595: [10:03:23] <Colin[pi]> Kingy: worse than AU? that's a pretty mean feat
596: [10:03:40] <Kingy> youtube video, need to wait for it to buffer
597: [10:03:43] <Kingy> haven't had to do that in years lol
598: [10:03:53] <Colin[pi]> Kingy: I need to do that every day :(
599: [10:03:57] <Kingy> I have prepaid mobile data which works better
600: [10:04:00] <zippy> Kingy: like that with all providoers?
601: [10:04:02] <Kingy> but that is fairly expensive
602: [10:04:20] <Kingy> zippy: nah, but you need identity cards to do anything
603: [10:04:27] <Kingy> so can't change until we get one
604: [10:04:29] <Kingy> which takes months
605: [10:07:19] * NETim quit (Ping timeout: 246 seconds)
606: [10:11:05] <Kingy> and as you can see, i d/c from IRC all the bloody time
607: [10:14:03] * stephanvd has joined #silverstripe
608: [10:14:47] * lerni_ quit ()
609: [10:20:17] * stephanvd quit (Ping timeout: 256 seconds)
610: [10:32:15] * dendeffe quit (Quit: dendeffe)
611: [10:50:04] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
612: [10:53:25] <Pyabo0sk> ahh fuck, what dicks :< http://www.raspberrypi.org/raspberry-pi-2-on-sale/
613: [10:53:36] <Pyabo0sk> I totally would have got one of them instead :<
614: [10:54:25] <Pyabo0sk> it's been like ... 6 months since B+ came out
615: [10:54:42] * Werner_2_ has joined #silverstripe
616: [10:55:23] * wmk quit (Ping timeout: 240 seconds)
617: [11:02:56] * dendeffe has joined #silverstripe
618: [11:08:37] * dendeffe quit (Quit: dendeffe)
619: [11:18:31] * uniun has joined #silverstripe
620: [11:18:59] <elgabbu> question i have a dataobject 'Group' that has_many 'Products'
621: [11:19:17] <elgabbu> when i have an instance of Group
622: [11:19:31] <elgabbu> is it possible to get a count of how many products are associated to it
623: [11:19:47] <elgabbu> some thing like $this->Products()->count();
624: [11:20:40] * arnhoe_ has joined #silverstripe
625: [11:21:11] <Colin[pi]> elgabbu: $this->Products()->count() should be right I think
626: [11:21:49] * arnhoe quit (Ping timeout: 250 seconds)
627: [11:26:46] * uniun quit (Ping timeout: 246 seconds)
628: [11:28:53] * Werner_2_ is now known as wmk
629: [11:30:43] * jeroenem has joined #silverstripe
630: [11:34:04] * r_hector1 quit (Quit: Leaving.)
631: [11:36:48] <Pyabo0sk> yep, $this->RelName()->count()
632: [11:37:42] <Pyabo0sk> SS_List::count
633: [11:37:51] <Pyabo0sk> ()
634: [11:38:29] * guest12 has joined #silverstripe
635: [11:39:26] * uniun has joined #silverstripe
636: [11:40:27] <Pyabo0sk> http://api.silverstripe.org/3.1/class-SS_List.html
637: [11:40:37] * Kingy is now known as Kingy[a]
638: [11:42:56] * guest12 quit (Ping timeout: 252 seconds)
639: [11:50:00] * dendeffe has joined #silverstripe
640: [11:54:53] <Colin[pi]> nn all
641: [11:54:57] * Colin[pi] quit (Quit: pants)
642: [12:02:28] * Copperis has joined #silverstripe
643: [12:12:03] <elgabbu> yeah the count function works :)
644: [12:13:07] <elgabbu> so another question now ... say I have a function in a dataobject and is being called from a template ... i want this function to return an iteratable object so that i can but it in the <% control thing
645: [12:13:29] <wmk> absolutely
646: [12:13:36] <elgabbu> what kind of object should my method return?
647: [12:13:43] <wmk> DataList / ArrayList etc.. -> <% loop %>
648: [12:13:49] <wmk> <% control is soooo 2.4
649: [12:14:13] <elgabbu> this is 2.4 again wmk ... so I have control :)
650: [12:14:25] <wmk> elgabbu, congrats you have control over 2.4
651: [12:14:56] <wmk> in 2.4 there was DataObjectSet
652: [12:14:59] <wmk> 3.1. this is DataList
653: [12:15:08] <elgabbu> lol no i mean i have to use <% control
654: [12:15:10] <elgabbu> haha
655: [12:15:30] <wmk> control was for both, sets and single objects
656: [12:18:19] <wmk> elgabbu, http://api.silverstripe.org/2.4/class-DataObjectSet.html
657: [12:18:43] <elgabbu> yeap i see it has a push function to add stuff to the set ...
658: [12:18:51] <wmk> yup
659: [12:19:06] <wmk> would be ArrayList in 3.1 if you want to add different stuff manually
660: [12:19:13] <elgabbu> and what kind of object do i push to it?
661: [12:19:26] <wmk> depends.
662: [12:19:30] <wmk> what do you have?
663: [12:20:17] <wmk> See docs above: DataObjectSet: This class represents a set of ViewableData subclasses (mostly DataObject or ArrayData). It is used by the ORM-layer of Silverstripe to return query-results from
664: [12:20:26] <elgabbu> is there some sort of generic object where i can do .. $obj = new Obj(); $obj->anyField1 = '123'; $obj->anyField2 = '456';
665: [12:20:39] <wmk> ArrayData
666: [12:20:53] <wmk> http://api.silverstripe.org/2.4/class-ArrayData.html
667: [12:21:45] <wmk> this way you can do <% control MySet %>$AnyField1<% end_control %> in your template
668: [12:28:45] <elgabbu> brilliant works thanks :)
669: [12:47:35] * Error404NotFound has joined #silverstripe
670: [12:53:57] * Err404NotFound has joined #silverstripe
671: [12:53:57] * Error404NotFound quit (Disconnected by services)
672: [13:07:47] * Werner_2_ has joined #silverstripe
673: [13:08:35] * wmk quit (Ping timeout: 252 seconds)
674: [13:08:44] * Werner_2_ is now known as wmk
675: [13:13:41] * lerni has joined #silverstripe
676: [13:15:49] * UndefinedOffset has joined #silverstripe
677: [13:26:16] <Eliseth> How do I push multiple fields to a compositefield?
678: [13:27:08] <wmk> formfield?
679: [13:27:24] <Eliseth> Yes
680: [13:27:39] <wmk> push?
681: [13:27:46] <Eliseth> Pushing a single field works fine
682: [13:27:53] <Eliseth> But multiple in an array doesn't
683: [13:28:19] <wmk> foreach($fields as $field) $composite->push($field)
684: [13:29:27] <wmk> or setChildren
685: [13:29:51] <wmk> http://api.silverstripe.org/3.1/class-CompositeField.html#_setChildren
686: [13:30:00] <wmk> expects a FieldList, not an Array
687: [13:30:35] <Eliseth> meh
688: [13:30:51] <wmk> muh
689: [13:31:49] <wmk> how can i filter for "dataobject has not set a many_many relation"
690: [13:32:10] * stephanvd has joined #silverstripe
691: [13:44:10] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
692: [14:09:31] * guci0 quit (Ping timeout: 246 seconds)
693: [14:13:53] * Otterpocket has joined #silverstripe
694: [14:27:01] <Pyabo0sk> wmk: you mean has no relations?
695: [14:27:13] <wmk> yup
696: [14:27:29] * veb quit (Quit: veb-irc: quit)
697: [14:27:37] <Pyabo0sk> I think you'll have to manually join to the relation table
698: [14:27:40] <wmk> Pyabo0sk, instead of ->where('not exists (select * from Page_Ads pa where pa.UniadsObjectID = UniadsObject.ID)');
699: [14:27:45] <Pyabo0sk> then where NULL
700: [14:27:52] <Pyabo0sk> yeh, or that
701: [14:28:09] <Pyabo0sk> you can do it in one query though (ie, without subquery)
702: [14:28:32] <Pyabo0sk> but, SS's issue with NULL might make it hard, you'll still need to use a pure ->where, rather than filter [thing, null]
703: [14:30:09] <wmk> well, if it works like that i'm quite happy for now
704: [14:30:15] <wmk> better than before
705: [14:30:37] <Pyabo0sk> :)
706: [14:31:09] <wmk> using MyDO::get() instead of SQLQuery
707: [14:32:00] <Pyabo0sk> yeah, it still has ->where on it
708: [14:32:15] <Pyabo0sk> err, join*
709: [14:32:32] <Pyabo0sk> you'd have to do a group by too though somehow
710: [14:33:26] <Pyabo0sk> Thing::get()->join(rel table)->where(rel table id is null)
711: [14:40:10] * muskie9 has joined #silverstripe
712: [14:46:37] * wmk quit (Ping timeout: 256 seconds)
713: [14:58:35] * Frans_Amsterdam quit (Remote host closed the connection)
714: [15:02:58] * slievr has joined #silverstripe
715: [15:07:38] * darjus01 quit (Quit: Page closed)
716: [15:07:43] <slievr> is there a setting within silverstripe for max uploads as I cannot upload file bigger than 2mb despite other installations of silverstripe on the same server managing to do it just fine.
717: [15:08:08] * dendeffe quit (Quit: dendeffe)
718: [15:08:36] <muskie9> slievr htaccess?
719: [15:09:54] <slievr> tried htaccess no luck
720: [15:33:10] * slievr quit (Ping timeout: 246 seconds)
721: [15:36:10] * badu quit (Quit: Page closed)
722: [15:49:53] <elgabbu> question ... its my first time messing around in a template ... and i am finding myself creating various methods in the DataObject in order to display / implement certain business logic
723: [15:50:40] <elgabbu> for instance if wanted to display a date field formated slightly different than normal so i created the following method ... public function discountFormatDate() { return date( 'd, M', strtotime( $this->OfferEndDate ) ); }
724: [15:51:01] <elgabbu> and then using <small>*Special Discount until $discountFormatDate</small> in the template to render it
725: [15:51:07] <elgabbu> is this a correct approach?
726: [15:51:41] <muskie9> elgabbu I think you could do $OfferEndDate.Format(d, M) in the template iirc
727: [15:52:24] <elgabbu> hmm ok
728: [15:52:56] <elgabbu> but it is normal to create function in data object and calling them from the template to use in the <% loop structures etc right?
729: [15:55:38] <elgabbu> muskie9 i tried the Format function but doesn't seem to like the , ... i think its sending the M as a second param to the function
730: [15:56:31] <lerni> slievr: identical php.ini?
731: [15:56:51] <muskie9> elgabbu ya, I've had the , throw it off now that I think about it, but yes... if you want to access something in a loop that doesn't exist then you'd write a getWhatYouWant() function and call $WhatYouWant in the template
732: [16:02:12] <elgabbu> thanks muskie9
733: [16:02:16] <muskie9> sure
734: [16:02:20] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
735: [16:04:20] * Liquide has joined #silverstripe
736: [16:05:18] * Shrike_Finland has joined #silverstripe
737: [16:06:35] * travis-ci has joined #silverstripe
738: [16:06:36] <travis-ci> silverstripe/silverstripe-framework#4184 (3.1 - 2336ea8 : Daniel Hensby): The build passed.
739: [16:06:36] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3b66b75f2ff2...2336ea8f6637
740: [16:06:36] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51390922
741: [16:06:36] * travis-ci has left #silverstripe
742: [16:08:34] * uniun quit (Quit: Page closed)
743: [16:20:04] * babak quit (Quit: Connection closed for inactivity)
744: [16:27:06] * arnhoe_ quit ()
745: [16:29:15] * jenniferaslan has joined #silverstripe
746: [16:34:42] * lerni quit (Remote host closed the connection)
747: [16:36:09] * jeroenem quit (Quit: Page closed)
748: [16:36:53] * stephanvd quit (Ping timeout: 244 seconds)
749: [16:43:47] * Shrike_Finland quit (Quit: Leaving.)
750: [16:47:43] * Shrike_Finland has joined #silverstripe
751: [16:49:08] * gavro_ has joined #silverstripe
752: [16:52:44] * gavro quit (Ping timeout: 250 seconds)
753: [16:53:30] * gavro_ quit (Ping timeout: 246 seconds)
754: [17:04:55] <Pyabo0sk> [15:51] <muskie9> elgabbu I think you could do $OfferEndDate.Format(d, M) in the template iirc
755: [17:05:03] <Pyabo0sk> [15:55] <elgabbu> muskie9 i tried the Format function but doesn't seem to like the , ... i think its sending the M as a second param to the function
756: [17:05:13] <Pyabo0sk> $TemplateDate.Format('d,M')
757: [17:05:32] <Pyabo0sk> template lang recognises defined strings.
758: [17:05:47] <muskie9> Pyabo0sk I always forget to try wrapping it in ''
759: [17:05:56] <Pyabo0sk> mm, hangovers from 2.4 days.
760: [17:06:14] <Pyabo0sk> it's actually better to explicitly specify strings, to avoid things like the above issue.
761: [17:06:26] <Pyabo0sk> same with $
762: [17:06:47] <muskie9> speaking of which... there's still legacy support in the HeaderField for stuff from 2.2 😳
763: [17:06:50] <Pyabo0sk> eg <% if thing = value %> is thing a variable, or a string, ditto for value.
764: [17:07:24] <Pyabo0sk> if lang can't find a value it will cast a string, but it's better to prevent failing eg $thing == $value is a valid parse outcome.
765: [17:07:40] <Pyabo0sk> but if you $thing = 'value' then it works every time.
766: [17:07:45] <Pyabo0sk> just how you want it to.
767: [17:15:01] * MattyBalaam quit (Ping timeout: 246 seconds)
768: [17:28:46] * Otterpocket quit (Quit: Otterpocket)
769: [17:31:54] * zz_BrainStyle is now known as BrainStyle
770: [17:34:38] * Shrike_Finland quit (Quit: Leaving.)
771: [17:36:30] * Shrike_Finland has joined #silverstripe
772: [17:41:51] * Stomach has joined #silverstripe
773: [17:54:50] * gavro has joined #silverstripe
774: [17:59:39] * gavro quit (Remote host closed the connection)
775: [18:01:21] * Shrike_Finland quit (Quit: Leaving.)
776: [18:04:11] * Shrike_Finland has joined #silverstripe
777: [18:07:04] * BrainStyle has left #silverstripe
778: [18:12:19] * Stomach quit (Quit: zzz)
779: [18:16:17] * Stomach has joined #silverstripe
780: [18:26:37] * Stomach quit (Quit: zzz)
781: [18:30:15] * Shrike_Finland quit (Quit: Leaving.)
782: [18:31:47] * benjhocking1 quit (Quit: Leaving.)
783: [18:35:16] * Shrike_Finland has joined #silverstripe
784: [18:53:33] * travis-ci has joined #silverstripe
785: [18:53:34] <travis-ci> dhensby/silverstripe-framework#172 (pulls/default-cast - de15dc7 : Daniel Hensby): The build has errored.
786: [18:53:34] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/6b0726daf15c...de15dc757eef
787: [18:53:34] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/51413819
788: [18:53:34] * travis-ci has left #silverstripe
789: [18:56:19] * Stomach has joined #silverstripe
790: [18:57:27] * dendeffe has joined #silverstripe
791: [19:13:10] * mobiusnz has joined #silverstripe
792: [19:13:58] * mobiusnz quit (Client Quit)
793: [19:15:31] * oddnoc has joined #silverstripe
794: [19:15:50] * travis-ci has joined #silverstripe
795: [19:15:51] <travis-ci> dhensby/silverstripe-framework#174 (pulls/default-cast - 3a3a248 : Daniel Hensby): The build has errored.
796: [19:15:52] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/78222593f347...3a3a2484b3aa
797: [19:15:52] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/51416807
798: [19:15:52] * travis-ci has left #silverstripe
799: [19:20:27] * gelignite has joined #silverstripe
800: [19:31:59] * Copperis quit (Remote host closed the connection)
801: [19:35:14] * lerni_ has joined #silverstripe
802: [19:44:17] * Ryan-Toast has joined #silverstripe
803: [19:50:02] * jedateach has joined #silverstripe
804: [19:50:05] * UncleCheese has joined #silverstripe
805: [19:51:08] <muskie9> UncleCheese does your bootstrap forms module work with userforms out of the box?
806: [19:51:13] <UncleCheese> yes
807: [19:51:19] <muskie9> cool, thnx!
808: [19:51:43] <UncleCheese> muskie9 https://github.com/unclecheese/silverstripe-bootstrap-forms/blob/master/_config/config.yml#L31
809: [19:52:18] <muskie9> ah, cheers!
810: [19:54:15] * glenn-bautista has joined #silverstripe
811: [20:04:13] * Shrike_Finland quit (Quit: Leaving.)
812: [20:04:52] * gavro has joined #silverstripe
813: [20:05:37] * Shrike_Finland has joined #silverstripe
814: [20:07:55] * zippy has joined #silverstripe
815: [20:08:04] <zippy> 3.1.10 is out and about..
816: [20:08:21] <zippy> UncleCheese: I thnk on the lessons page it'd be good to have the first lesson first, and the latest one at the end
817: [20:08:27] <zippy> I've already passed on the lessons link to a few people
818: [20:08:30] <UncleCheese> yup
819: [20:08:37] <UncleCheese> my biggest pet peeve
820: [20:08:39] <zippy> I hope you get a raise since they're using your voice :)
821: [20:08:51] <UncleCheese> hmm?
822: [20:08:56] <zippy> pay raise
823: [20:10:55] * irogue_ has joined #silverstripe
824: [20:13:22] * veb has joined #silverstripe
825: [20:13:46] <UncleCheese> zippy you like them that much?
826: [20:14:10] <UncleCheese> they're not really using my voice.. i make these things in a vaccuum, so if it were anyone else's voice it would be weird. :)
827: [20:14:56] <veb> mooo
828: [20:15:55] <Stomach> zippy - excited for 2pm?
829: [20:16:00] <Stomach> UncleCheese - you can use my voice if you like
830: [20:16:04] <Stomach> its gutteral and sexual
831: [20:16:22] <Ryan-Toast> What’s happening at 2pm?
832: [20:17:17] <zippy> Stomach: yeap, I think be the first real test of the season
833: [20:17:27] <Stomach> Ryan-Toast - nz v eng
834: [20:17:32] <Ryan-Toast> Stomach: Ah, right.
835: [20:17:44] <Ryan-Toast> My mate put $1000 on the black caps.
836: [20:17:59] <Ryan-Toast> So I hope they lose.
837: [20:18:15] <Ryan-Toast> So I can laugh at his face
838: [20:19:18] <zippy> wow 1k
839: [20:20:05] <Stomach> betting is stupid
840: [20:20:49] <zippy> if you got it to lose it's ok
841: [20:20:56] <zippy> I just to do $5 on 'next out' and things like that
842: [20:21:05] <Ryan-Toast> Nah, he took it out of his child’s college fund.
843: [20:21:10] <zippy> damn
844: [20:21:29] <oddnoc> Betting isn’t stupid if the NEV > 0 :)
845: [20:26:08] <irogue_> i need to bet $5 on something since TAB gave me $5 that disappears if I don't bet it by the end of the weekend :P
846: [20:26:18] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
847: [20:26:26] <Ryan-Toast> irogue_: Bet that everyone has a good time.
848: [20:26:40] <irogue_> I always bet on really obscure things with huge odds
849: [20:26:54] <Ryan-Toast> Which is why you have $5 in your TAB account?
850: [20:27:37] <irogue_> nah, I have $25 in my TAB account! $20 that I originally put in (i've bet lots but thus far broke even), plus the bonus $5
851: [20:28:05] <irogue_> my bets are all like $2 cos doing it for fun not in the misguided expectation of getting rich
852: [20:28:23] <Ryan-Toast> I only bet on DotA2
853: [20:29:57] <Ryan-Toast> Can I redirtect a user instead of showing the “I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do so below” opage?
854: [20:30:20] <oddnoc> Anyone else notice that 3.1.0 changed how templates send integers in to PHP. They used to pass is_int(), but now are strings. (I know you shouldn’t use is_int(), one of my co-workers did).
855: [20:30:28] <oddnoc> 3.1.10*
856: [20:32:30] * Ryan-Toast quit (Quit: Ryan-Toast)
857: [20:33:50] * Ryan-Toast has joined #silverstripe
858: [20:34:12] * camfindlay has joined #silverstripe
859: [20:40:24] <Stomach> Ryan-Toast - winning big rares lately? :D
860: [20:40:39] <Ryan-Toast> Over DAC I was, dropped off a bit recently.
861: [20:41:43] * micmania1 has joined #silverstripe
862: [20:42:31] <zippy> Ryan-Toast: you still use your boiler theme? got it setup somewhere?
863: [20:42:47] <Ryan-Toast> a demo version?
864: [20:42:51] <zippy> yea
865: [20:42:57] <Ryan-Toast> I have an older version?
866: [20:43:12] <Ryan-Toast> http://webdough.co.nz/~boilerpl/
867: [20:43:29] <Ryan-Toast> That’s a few months old though.
868: [20:43:31] <zippy> I guess I could just grab the zip and setup em
869: [20:43:42] <Ryan-Toast> There’s an installer now.
870: [20:43:55] <Ryan-Toast> https://github.com/Rhym/silverstripe-boilerplate-installer
871: [20:44:13] <Ryan-Toast> PageItems current;ly are being re-worked though, so they don’t exactly work currently.
872: [20:48:21] * joelpittet has joined #silverstripe
873: [20:49:13] * UncleCheese has joined #silverstripe
874: [20:55:19] <zippy> ss23: add version to topic....!
875: [20:56:54] * Hailwood has joined #silverstripe
876: [20:58:07] <Hailwood> Good morning everyone
877: [20:58:37] <zippy> o/
878: [20:59:57] <MichalKleiner> oddnoc what you mean by how templates send integers to php? for example if you call a function using loop's $pos?
879: [21:00:00] * Shrike_Finland quit (Quit: Leaving.)
880: [21:05:30] <zippy> surely they wouldn't change something like that in a minor release. semver and all
881: [21:15:25] <zippy> oddnoc: mm?
882: [21:16:31] <MichalKleiner> agree with zippy
883: [21:16:41] <MichalKleiner> semver not in place yet though
884: [21:16:48] <zippy> yes it is.
885: [21:16:49] <MichalKleiner> afaik
886: [21:16:59] <MichalKleiner> is it? or it just looks like it is
887: [21:17:17] <MichalKleiner> I thought it was discussed to start from 3.2 or so
888: [21:17:22] <MichalKleiner> @camfindlay ?
889: [21:17:24] <zippy> https://groups.google.com/forum/#!topic/silverstripe-dev/J4U4Nl2qTSg
890: [21:17:30] <zippy> last two messages
891: [21:18:34] <MichalKleiner> ah I see..
892: [21:18:47] <MichalKleiner> good to know
893: [21:19:10] <MichalKleiner> thanks
894: [21:19:17] <irogue_> https://github.com/silverstripe/silverstripe-framework/commit/5180452
895: [21:23:45] * EF9 has joined #silverstripe
896: [21:24:26] <EF9> Hello irc!
897: [21:24:42] <zippy> who?
898: [21:24:52] <zippy> :) hello
899: [21:27:31] <Stomach> hello EF9
900: [21:35:46] * Frans_Amsterdam has joined #silverstripe
901: [21:37:10] <camfindlay> MichalKleiner: yip semver is a go
902: [21:37:11] <zippy> hmm
903: [21:38:07] <zippy> twice now in two days, I have ran into an issue where I can't dev build because I am not logged in, but I can't login because I get the error page because the database is missing a column (on the site config)
904: [21:38:18] <zippy> so I have to set the site to dev, then dev/build, then switch to live aain
905: [21:38:37] * lerni_ quit ()
906: [21:38:55] <zippy> I thought in the flush there was a check if the DB was ready - or allow flush if it ran into an error with the error chain thing
907: [21:38:57] * muskie9 is now known as muskie9_afk
908: [21:39:03] <Ryan-Toast> Anyone here use Bower?
909: [21:39:10] <zippy> muskie9_afk: gj on the doc fix btw
910: [21:41:13] * mahfuz has joined #silverstripe
911: [21:41:32] <EF9> Hi :) I'm not very experienced with SS and I've been brought in to help laying out a site. Right now I've managed to spit out a basic contact form, but can't seem to figure out how to disable the labels given to them. I know I could hide them with CSS but just wondered if there's an alternative. The InternallyLabelledField() may be helpful for what I'm trying to achieve but I can't seem to get this to work either - could I missing
912: [21:41:50] * muskie9_afk is now known as muskie9
913: [21:41:57] <Ryan-Toast> you can use setTitle()
914: [21:42:04] <Ryan-Toast> and just have it as an empty ‘'
915: [21:42:07] <zippy> EF9: in your form, where it adds the fields you can change the title to blank
916: [21:42:33] <muskie9> zippy :D
917: [21:42:43] <zippy> eg TextField::create('FirstName')->addExtraClass('foo')->setAttribute('placeholder', 'First name')->setTitle(''),
918: [21:43:29] <EF9> Ah great, thanks Ryan-Toast and zippy!
919: [21:46:10] * babak has joined #silverstripe
920: [21:50:16] <zippy> it's quite handy having things like the DB and has_many inside the class isn't it. I wonder if peope would freak out if these were moved out
921: [21:51:54] <zippy> hm
922: [21:53:00] * muskie9 is now known as muskie9_afk
923: [21:53:08] <oddnoc> MichalKleiner: In my particular example, it had been coded as $SomePageType.SomeForm($ID), then he was testing it in PHP with is_int()
924: [21:53:27] * Colin[pi] has joined #silverstripe
925: [21:53:37] <zippy> Colin[pi]: o/
926: [21:53:42] * muskie9_afk is now known as muskie9
927: [21:55:26] * gavro quit (Remote host closed the connection)
928: [21:55:28] <Colin[pi]> zippy: hoi hoi o/
929: [21:56:31] <Colin[pi]> QLD about to get farked up: http://www.theguardian.com/world/live/2015/feb/20/tropical-cyclone-marcia-hits-queensland-as-category-five-and-lam-hits-nt-live
930: [21:58:19] <zippy> bugger
931: [21:58:40] <camfindlay> hey IRC-ers (^^)/ - UncleCheese and I have a wee survey for you guys - looking at some more non-intro level educational material and need to get a feel from you guys as to which topics are of which difficulty level - shouldn’t take too long to run through https://www.surveymonkey.com/r/NMH92ND feel free to add any important topics you think we might have missed.
932: [21:59:02] <Colin[pi]> camfindlay: do I get stickers for completing?
933: [21:59:10] * zippy wants a gold star
934: [21:59:30] <zippy> wind gusts of up to 245km/h in the eye of the cyclone
935: [21:59:30] <zippy> wow
936: [21:59:46] <Colin[pi]> zippy: yeah one of the worst to hit QLD in some time
937: [21:59:55] <Colin[pi]> coming straight for the city of Yeppoon
938: [22:00:07] <camfindlay> Colin[pi]: we arn’t taking names but I can see what we can do
939: [22:00:28] <Colin[pi]> camfindlay: lol k, I'll fill it out for you
940: [22:00:38] <camfindlay> cheers man
941: [22:00:40] <zippy> camfindlay: not Beginner level? things like templates or Environment management with _ss_environment et al I think would be at the lower level of things
942: [22:00:44] <zippy> no
943: [22:01:01] * gavro has joined #silverstripe
944: [22:01:43] * UndefinedOffset quit (Quit: Leaving.)
945: [22:01:56] <zippy> camfindlay: nothing in there about themes, and how they get squashed together? how you can have templates of the same name and which one is picked
946: [22:02:02] <camfindlay> cool in that case set those ones as “intermediate” we may look at pulling some of that stuff down into basic lessons - for basic you could have then run through installer rather than set up env file for instance
947: [22:03:02] <zippy> sorry, that is probably in 'Getting the most out of your templates'
948: [22:03:04] <Stomach> wheres the buy stevie a beer option gone :(
949: [22:03:04] <zippy> all good :)
950: [22:03:23] <Colin[pi]> camfindlay: nothing about advanced ModelAdmin stuff, has that already been covered?
951: [22:05:11] <camfindlay> Colin[pi]: add it in the form we might cover it in one of the other topics alongside other things (this is not an exhaustive list)
952: [22:05:50] <Colin[pi]> camfindlay: mm I will, MA I've found incredibly versatile but once I delved into the source I found a *bunch* of really useful features that had little doco
953: [22:06:30] <Colin[pi]> camfindlay: all done! reap dat sweet, sweet data
954: [22:07:31] <camfindlay> yeah boi!!!!
955: [22:11:03] * Frans_Amsterdam quit (Ping timeout: 252 seconds)
956: [22:11:25] <ss23> Fuck versions in topic, get versionless topics, @ zippy
957: [22:12:18] <zippy> @ss23: you and your timeless topic messages, lazy ass! "so hard to change the topic when a new version comes out every few months, such hard work. To busy platting my hair..."
958: [22:12:21] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
959: [22:15:24] <Ryan-Toast> Do you guys put your thirdparty biz in the vendor folder?
960: [22:15:27] * veb quit (Quit: veb-irc: &)
961: [22:17:11] <MichalKleiner> camfindlay: you got it there and added a topic
962: [22:17:22] <MichalKleiner> wanted to add two but don't know how :-D
963: [22:17:36] <ss23> zippy: MY HAIR TAKES NO CARE AND WHO EVEN CARES
964: [22:17:50] <ss23> Obviously, if you have enough time to complain about the topic, you're not working hard enough. WHAT IS YOUR MAANGERS EMAIL, YOUNG MAN?
965: [22:17:50] <Hailwood> Hey guys, from a model admin, or a dataextension applied to a model can I adjust the default sort?
966: [22:17:58] <camfindlay> true, perhaps I can change the form to a multiline text box
967: [22:17:59] * FrozenFire quit (Quit: There's no place like ~)
968: [22:18:12] <zippy> ss23: sam@silverstripe.com
969: [22:19:00] <MichalKleiner> the second one would be about various methods how to deploy a SS app
970: [22:19:05] <Colin[pi]> Hailwood: I believe you can do it in the YAML
971: [22:19:10] <Colin[pi]> Member:
972: [22:19:11] <Colin[pi]> default_sort: 'LastEdited DESC'
973: [22:19:22] <Colin[pi]> (for e.g.)
974: [22:21:23] <Colin[pi]> MichalKleiner: 1000 times this
975: [22:22:26] <zippy> Hailwood: in your ModalAdmin you can grab the getList method and add the sort I believe
976: [22:22:44] <zippy> Setting the default_sort will effect all places
977: [22:23:11] * dendeffe quit (Quit: dendeffe)
978: [22:24:18] <mahfuz> Hello everyone. I have some DatObject which I am showing in the CMS for data entry. How can I customize the data entry forms? Is it using the public function getCMSFields() inside the DataObject class definition?
979: [22:25:22] <zippy> mahfuz: yeap
980: [22:25:48] <zippy> Dataobjects have all the fields setup already, so you can use $fields->removeByName() to remove them, or add more or whatever
981: [22:26:16] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
982: [22:28:44] <MichalKleiner> I mean proper methods, not FTP it up :-D
983: [22:29:10] <mahfuz> Thanks zippy. If I want to target specific field and say convert one Text field to a Dropdown field with fixed values, how do I access that particular field?
984: [22:29:28] <zippy> you can use replaceField
985: [22:29:28] <zippy> ge
986: [22:29:29] <zippy> eg
987: [22:29:38] <ss23> zippy: liar liar code on fire
988: [22:29:48] <zippy> replaceFieldWith?
989: [22:29:52] <zippy> something like that
990: [22:30:12] <zippy> $fields->replaceField('FieldName', TextField::create('FieldName'));
991: [22:30:32] <mahfuz> Thanks zippy
992: [22:39:32] * muskie9 is now known as muskie9_afk
993: [22:40:43] * muskie9_afk is now known as muskie9
994: [22:45:29] * FrozenFire has joined #silverstripe
995: [22:46:56] * blud has joined #silverstripe
996: [22:47:01] <blud> hi
997: [22:47:03] * veb has joined #silverstripe
998: [22:47:32] <blud> I've developped a Silverstripe on my local server, but can't deploy it online
999: [22:47:39] <ss23> Why not? :O
1000: [22:47:42] <blud> the base href is still localho
1001: [22:47:45] <blud> localhost
1002: [22:48:09] <blud> i've purge silverstripe-cache
1003: [22:48:16] <blud> changed the Rewrite to /
1004: [22:48:31] <ss23> blud: Delete the assets/error-404.html and assets/error-500.html pages
1005: [22:49:10] <ss23> Sometimes you'll be getting a 404/500 and it looks like it's kind of working but it isn't cause it's showing those pages
1006: [22:50:10] <blud> well now i've got a blank page
1007: [22:51:13] * muskie9 is now known as muskie9_afk
1008: [22:51:50] <Colin[pi]> blud: it's something! \o/
1009: [22:51:57] <blud> :)
1010: [22:54:22] <blud> is there a documentation on moving a website
1011: [22:54:34] <blud> i've copied the files, made a dump of the sql
1012: [22:54:48] <blud> changed the _config.php according to the new server credentials
1013: [22:57:29] <Ryan-Toast> Where do you guys put all your thirdparty stuff? Just in a “Thirdparty” folder in the root?
1014: [22:57:35] <Hailwood> If all I am changing is a yml file - what's the minumum clear I need to do?
1015: [22:57:44] <Hailwood> Ryan-Toast, Third party as in?
1016: [22:57:48] <Ryan-Toast> jquery etc
1017: [22:57:50] * muskie9_afk is now known as muskie9
1018: [22:58:12] <Hailwood> Oh... Ah in my theme normally loaded through bower so bower_components in the theme directory
1019: [22:58:20] * Sticks has joined #silverstripe
1020: [22:58:35] <Ryan-Toast> Yeah, I think I’ll set bower to install it to my mysite folder ion install.
1021: [22:58:53] <MichalKleiner> Hailwood we source it from bower components too but during grunt build we copy it over to $themedir/resources/build/vendor/...
1022: [22:59:12] * FrozenFire quit (Quit: There's no place like ~)
1023: [22:59:13] <MichalKleiner> or compile it to a -vendor.js
1024: [22:59:19] <Hailwood> MichalKleiner, during grunt build we combine it all
1025: [22:59:22] <MichalKleiner> depends what the project is
1026: [22:59:36] * FrozenFire has joined #silverstripe
1027: [22:59:48] <MichalKleiner> ah sorry it was Ryan-Toast asking :-D
1028: [22:59:53] <Ryan-Toast> MichalKleiner: :P
1029: [23:00:01] <MichalKleiner> sushi time
1030: [23:00:12] * novaweb quit (Ping timeout: 250 seconds)
1031: [23:00:15] <Hailwood> so all our sources are in /themes/<name>/src/(js|css|template|etc...) and when we build we compile them to /themes/<name>/js/vendor.js etc
1032: [23:00:18] * FrozenFire quit (Client Quit)
1033: [23:00:25] <Ryan-Toast> I don’t use themes.
1034: [23:00:38] <Ryan-Toast> I think I’ll just install it to mysite/thirdparty
1035: [23:01:14] <Colin[pi]> Ryan-Toast: I have traditionally been sticking to the SS module folder convention, so I usually have a thirdparty folder in each module folder (if needed)
1036: [23:01:34] <Colin[pi]> not sure if that is ideal though, prolly better ways
1037: [23:01:35] * FrozenFire has joined #silverstripe
1038: [23:01:35] <Hailwood> Colin[pi], Can you set field_labels in the yaml like you can summary_fields?
1039: [23:02:23] <blud> all i now is that there is a server 500 error
1040: [23:02:44] <Colin[pi]> Hailwood: hmm probably?
1041: [23:03:07] <MichalKleiner> Ryan-Toast I reckon theme/fronted related stuff should sit inside the theme dir
1042: [23:03:09] * FrozenFire quit (Client Quit)
1043: [23:03:20] <Colin[pi]> MichalKleiner: yeah but he doesn't use themes
1044: [23:03:24] <MichalKleiner> I know
1045: [23:03:25] * FrozenFire has joined #silverstripe
1046: [23:03:32] <MichalKleiner> I mean.. now I know :-D
1047: [23:03:49] <Hailwood> Colin[pi], I tried this: https://gist.github.com/hailwood/2a7491da0e3d0a5b3175 but it may be the wrong format maybe?
1048: [23:03:53] <MichalKleiner> in that case I prefer vendor to 3rdparty
1049: [23:03:55] * FrozenFire quit (Remote host closed the connection)
1050: [23:03:57] <MichalKleiner> but it's just a name
1051: [23:04:09] * FrozenFire has joined #silverstripe
1052: [23:06:45] * FrozenFire quit (Client Quit)
1053: [23:10:25] * FrozenFire has joined #silverstripe
1054: [23:12:40] * FrozenFire quit (Client Quit)
1055: [23:14:26] * FrozenFire has joined #silverstripe
1056: [23:16:07] <Stomach> we do the same - themes/base/source/js|css|svg|images
1057: [23:16:20] <Stomach> then copy to themes/base/production/ for live environments
1058: [23:21:14] <blud> can anybody help me ?
1059: [23:21:35] * travis-ci has joined #silverstripe
1060: [23:21:36] <travis-ci> silverstripe/silverstripe-framework#4186 (3 - e7619fe : Damian Mooyman): The build passed.
1061: [23:21:36] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3573075de0ff...e7619feadbec
1062: [23:21:36] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51445853
1063: [23:21:36] * travis-ci has left #silverstripe
1064: [23:22:10] * FrozenFire quit (Quit: There's no place like ~)
1065: [23:22:10] * EF9 quit (Ping timeout: 246 seconds)
1066: [23:22:16] <muskie9> blud is your site in dev mode with errors turned on?
1067: [23:22:29] <blud> it's in dev mode
1068: [23:22:42] <blud> but it's not a dedicated server, it's a shared one
1069: [23:23:25] * travis-ci has joined #silverstripe
1070: [23:23:26] <travis-ci> silverstripe/silverstripe-cms#1126 (3 - 21e2bc7 : Damian Mooyman): The build has errored.
1071: [23:23:26] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/475b6d18e50d...21e2bc72587c
1072: [23:23:26] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/51445870
1073: [23:23:26] * travis-ci has left #silverstripe
1074: [23:23:46] <muskie9> that shouldn't matter
1075: [23:23:50] <muskie9> I've run on shared hosting before
1076: [23:25:12] <muskie9> blud are you using an _ss_environment.php file for your environment, or just _config.php
1077: [23:25:46] <blud> just config sorry
1078: [23:27:02] <Colin[pi]> two hours to go! https://www.kickstarter.com/projects/elanlee/exploding-kittens/description
1079: [23:27:30] <muskie9> damn! Colin[pi] I forgot to back that! thanks for reminding me!
1080: [23:27:52] <Colin[pi]> muskie9: it's been upgraded a ton now, lots of cool new stuff!
1081: [23:28:42] <muskie9> did you go with the NSFW deck?
1082: [23:28:57] * micmania1 quit (Quit: micmania1)
1083: [23:29:30] <Colin[pi]> muskie9: I picked the $55 option yeag
1084: [23:29:32] <Colin[pi]> *yeah
1085: [23:29:41] <Stomach> I bought 2 nsfw decks on day one
1086: [23:29:46] <Stomach> so stoked with all the free shit
1087: [23:33:54] <blud> [Thu Feb 19 23:37:29 2015] [alert] [client 78.226.241.76] [host camping-marinadicasinca.com] /homez.716/campingmmy/www/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context
1088: [23:35:00] <ss23> You can remove rewritebase complmetly
1089: [23:37:19] <blud> HEAD http://www.camping-marinadicasinca.com/ 500 (There has been an error)
1090: [23:39:07] <ss23> Check error logs
1091: [23:39:17] <ss23> With rewritebase removed, what is error
1092: [23:40:44] <blud> sorry i must wait cause the error logs are not in real time :(
1093: [23:41:56] <mahfuz> Hey one of my DataObject (Advertisement) is in with many_many relationship with another DataObject (Suburb) and I am using ModelAdmin to handle the data entry in CMS. Everything is working fine. But when I want to enter a Suburb for an Advertisement using link with existing and I start typing in the search box it shows only ID, can we show other field like the name?
1094: [23:42:05] <blud> is there an official documentation on how to move a SS website from a server to another
1095: [23:43:06] <Stomach> mahfuz - use $summary_fields = array('Title', 'Name');
1096: [23:43:20] <Stomach> ?
1097: [23:48:00] <mahfuz> Thanks Stomach
1098: [23:48:48] * muskie9 is now known as muskie9_afk
1099: [23:50:38] <camfindlay> blud - good point, that might be something we need to add, perhaps a Deployment section of the docs. Basically… move your code, move your assets, move your database, update any environment specific config (like DB details), then run a dev/build and flush - thats the usuall process. Unless you’re doing something more tricky involving git or composer.
1100: [23:51:17] <blud> well i've done it right i think
1101: [23:51:26] <camfindlay> sweet
1102: [23:51:36] <blud> used composer locally
1103: [23:51:45] <camfindlay> yip good stuff
1104: [23:51:50] <blud> but just uploaded by FTP
1105: [23:52:03] <camfindlay> yeah if it is shared hosting there isn’t much way around that
1106: [23:52:07] <mahfuz> Stomach - I already have private static $summary_fields = array( 'ID' => 'ID', 'SuburbName' => 'Suburb Name', 'CityID' => 'City ID' );
1107: [23:52:19] <blud> unfortunately
1108: [23:52:54] <mahfuz> Those fields are being shown as column headers in the grid
1109: [23:53:33] <Stomach> oh
1110: [23:53:39] <Stomach> mahfuz - $searchable_fields then?
1111: [23:53:55] <mahfuz> but when I type something in the search box it just shows an ID. Selecting that enters one suburb
1112: [23:53:59] * FrozenFire has joined #silverstripe
1113: [23:54:22] * ocmnt quit (Ping timeout: 250 seconds)
1114: [23:54:38] <mahfuz> Just to remind you the 2 dataobjects are in many_many and belongs_many_many relationship
1115: [23:54:59] <Hailwood> Anyone use the micmania1 packages?
1116: [23:59:22] <camfindlay> micmania1 probably does…

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