#silverstripe IRC Log

IRC log for 20 March 2015

All timestamps are in UTC.

1: [00:20:43] * Phlunk3 has joined #silverstripe
2: [00:26:51] * willr has joined #silverstripe
3: [00:37:25] * antmas quit (Quit: Page closed)
4: [00:49:51] * oddnoc quit (Quit: beer:30)
5: [00:53:55] * antmas has joined #silverstripe
6: [00:59:28] * Hailwood quit (Ping timeout: 252 seconds)
7: [01:00:08] <antmas> <div class="x-panel x-border-item x-box-item x-panel-default" id="panel-1061" style="margin: 0px; left: 0px; top: 0px; width: 1713px; height: 479px; right: auto;"><div class="x-panel-body x-panel-body-default x-layout-fit x-panel-body-default x-docked-noborder-top x-docked-noborder-right x-docked-noborder-bottom x-docked-noborder-left" id="panel-1061-body" role="presentation" style="left: 0px; top: 0px; width: 1713px; height: 4
8: [01:00:18] * antmas facepalms
9: [01:00:30] <antmas> ;___________________:
10: [01:01:06] * Azure quit (Quit: Blue Sky Fish)
11: [01:01:58] * Tanger has joined #silverstripe
12: [01:03:17] * antmas_ has joined #silverstripe
13: [01:03:41] <antmas_> Tanger: o/
14: [01:03:53] * Hailwood has joined #silverstripe
15: [01:06:49] * antmas quit (Ping timeout: 246 seconds)
16: [01:07:01] <Stomach> friday afternoon sighface
17: [01:07:19] <Stomach> wordpress theme
18: [01:07:22] * Stomach kills himself
19: [01:07:31] <Stomach> nice knowing ya'll
20: [01:08:01] <Ryan-Toast> Stomach: MUHAHAHAHA
21: [01:08:35] <micmania1> Stomach: you have my sympathy.
22: [01:08:51] <Stomach> its nice to remember why I like silverstripe though
23: [01:10:44] <Tanger> Yo antmas
24: [01:11:56] * antmas_ is staring at his phone all day
25: [01:12:07] <antmas_> important call making me nervous :O
26: [01:12:14] * antmas_ is now known as antmas
27: [01:17:10] * Azure has joined #silverstripe
28: [01:17:33] <micmania1> antmas: don’t worry. I’m sure the results will come back negative.
29: [01:17:46] <nontgor> aaaargh, I have a rogue '1' character appearing in my requests. Where are you.....
30: [01:17:55] <antmas> micmania1: :O
31: [01:21:23] <Stomach> antmas isn't pregnant?
32: [01:21:24] <Stomach> :(
33: [01:21:38] <Stomach> nontgor - it'll be in a file before the <?php somewhere
34: [01:21:52] <antmas> Stomach: I do have a food baby
35: [01:22:15] <nontgor> Stomach: Yeah searching for 1<?php is probably better than search for just '1'
36: [01:22:16] <MichalKleiner> 2:23 tboc
37: [01:22:36] <nontgor> my virtual desktop keys are CTRL 1 to 4 and ALT 1 to 4, so I suspect I missed one of those keys when switching
38: [01:22:44] <antmas> tboc?
39: [01:23:08] <MichalKleiner> to beer o'clock
40: [01:23:24] <antmas> :O
41: [01:23:35] * willr quit (Ping timeout: 265 seconds)
42: [01:23:35] <MichalKleiner> means it's 4:45
43: [01:23:43] <MichalKleiner> :-D
44: [01:23:48] <MichalKleiner> as now it's 2:23 too
45: [01:23:54] <antmas> 4.30 is boc here
46: [01:24:07] <MichalKleiner> still better than no boc
47: [01:24:23] <nontgor> 0824 is a little early :)
48: [01:24:28] <MichalKleiner> friend of mine works in FNZ and they cancelled Fri drinks
49: [01:24:39] <Stomach> what is FNZ
50: [01:24:47] <antmas> is FNZ satan?
51: [01:25:00] <MichalKleiner> some corp doing business sw
52: [01:25:04] <MichalKleiner> .net
53: [01:25:32] <antmas> oh that fnz
54: [01:25:45] <MichalKleiner> I mean financial sw
55: [01:26:20] <MichalKleiner> but now they flew few people to europe in business to help with a project there which is cool
56: [01:26:49] <antmas> mm this potential new job will have me doing the same :|
57: [01:26:52] <MichalKleiner> so knowing that I don't understand why they cancelled $100 drinks//
58: [01:27:24] <MichalKleiner> and then spend $7k pp on air ticket
59: [01:27:52] <antmas> 7k?
60: [01:29:52] <nontgor> Stomach: found it :)
61: [01:30:12] <Stomach> nontgor somewhere fun?
62: [01:30:41] <nontgor> was in code i was dealing with late last night...
63: [01:30:42] * willr has joined #silverstripe
64: [01:30:58] <nontgor> and was a 1 before the php declaration
65: [01:33:41] <nontgor> *staring at the South end of a North facing cat*
66: [01:34:36] * antmas likes that saying
67: [01:37:25] * nontgor liking this SEO module https://github.com/micschk/silverstripe-liveseo
68: [01:38:08] <nontgor> although some of the translations are not quite finished... 'SEOScoreTipContentHasLinks: 'De content of this page does not have any (outgoing) links.'
69: [01:38:18] <nontgor> "De content" :)
70: [01:41:50] <adrexia> anyone know how to remove the traiolling slash on links. I've seen it asked before but not sure if there's a nice solution
71: [01:41:58] <adrexia> *trailing
72: [01:42:22] <adrexia> it seems to get in the way of jquery ui's tabs
73: [01:42:56] <adrexia> (ie link/#thing doesn't do what link#thing does )
74: [01:46:38] <micmania1> adrexia: does turning off hash link rewriting work?
75: [01:47:22] <adrexia> not sure. It's actually someone else's issue, but he just went home so I've officially ceased to care ;)
76: [01:47:35] <adrexia> I think this could help though http://stackoverflow.com/questions/28365057/silverstripe-hash-link-rewriting-putting-unwanted-slash-in-link
77: [01:48:19] <antmas> rtrim eh
78: [01:49:19] <antmas> oh
79: [01:49:29] <antmas> same thing as Trim() in c#
80: [01:49:30] <antmas> :D
81: [01:49:31] <adrexia> I've not actually ever had thsi issue
82: [01:49:34] <antmas> adrexia: does that work?
83: [01:49:51] <adrexia> I think because I do anchor links by a href="#thing"
84: [01:50:10] <adrexia> not sure I suspect it would though
85: [01:52:09] <antmas> oh look a sharepoint error
86: [01:52:18] * antmas turns off logging
87: [01:52:23] <antmas> 'what sharepoint error'?
88: [01:52:32] * antmas jobs done
89: [01:55:51] <MichalKleiner> :-D
90: [01:55:55] <adrexia> Error: You appear to be using sharepoint
91: [01:56:26] <MichalKleiner> antmas: $7k was short-notice business return ticket to europe
92: [01:57:16] <antmas> MichalKleiner: phwaor
93: [01:57:41] <MichalKleiner> sending couple people.. like 10..
94: [01:57:58] <MichalKleiner> you have friday drinks sorted for quite a while I guess
95: [01:58:43] <antmas> our friday work drinks just about got cancelled :O
96: [01:58:58] <MichalKleiner> why that
97: [01:59:20] <antmas> they've decided to send the kitty money to Vanuatu, so whatever beers remain in the fridge are first come first serve
98: [01:59:37] <MichalKleiner> well at least some cause
99: [01:59:45] <MichalKleiner> not just.. because we have to save money
100: [01:59:53] <antmas> :P
101: [01:59:59] <antmas> yeah I cant really complain
102: [02:00:14] <MichalKleiner> in a company with hundred employees.. it's important to keep them happy
103: [02:00:53] <antmas> mmm we have like 200+ here, but only like 15 of us drink :P
104: [02:01:02] <antmas> or at least, drink here on a friday
105: [02:01:31] * nontgor quit (Ping timeout: 264 seconds)
106: [02:02:49] <antmas> Ryan-Toast: you have hear this? https://www.youtube.com/watch?v=phZvDjiI42o
107: [02:02:55] <antmas> ever heard*
108: [02:02:59] <MichalKleiner> we are much smaller business.. approx of how many of you drink :-D
109: [02:03:10] <Ryan-Toast> antmas: dat album cover
110: [02:03:26] <antmas> mmm
111: [02:03:38] <antmas> very weird collaboration
112: [02:04:18] <Ryan-Toast> antmas: but yes, have heard :)
113: [02:04:34] <antmas> Ryan-Toast: you like? pretty metal track
114: [02:04:44] <Ryan-Toast> antmas: Sevon Lions?
115: [02:04:48] <Ryan-Toast> Seven**
116: [02:05:27] <antmas> ?
117: [02:06:04] <Ryan-Toast> That’s the artist :D
118: [02:06:21] <antmas> Ryan-Toast: oh right
119: [02:06:22] <antmas> yeah
120: [02:06:31] <antmas> thought I misspelt it :P
121: [02:13:43] * nontgor has joined #silverstripe
122: [02:18:40] * willr quit (Quit: willr)
123: [02:18:45] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
124: [02:20:42] <Hailwood> Hey guys, I'm wondering if anyone has thoughts on tagging surrounding a forked package you plan on maintaining but still keeping in sync with the upstream/
125: [02:21:28] <Hailwood> Specifically surrounding tags - How would you tag your releases without causing a conflict with the upstream when you pull in the changes and you've both tagged version 2.1.4?
126: [02:24:33] <adrexia> interesting
127: [02:24:55] <adrexia> I guess you could give your forked version tags a prefix?
128: [02:27:07] <MichalKleiner> yeah, seems like manual work needed here
129: [02:31:56] <Stomach> man
130: [02:32:01] <Stomach> fuck wordpress
131: [02:32:05] <Stomach> fuck it so hard
132: [02:32:46] <antmas> Stomach: just quit
133: [02:32:49] <antmas> don't fight it
134: [02:33:08] <Stomach> thats all you do is just copy/pasta until it works
135: [02:33:08] <antmas> only dreams
136: [02:33:09] <Stomach> its fucked
137: [02:33:11] <Stomach> so fucked
138: [02:37:06] <Ryan-Toast> Stomach: Nah just install 20 plugins so you can get something working.
139: [02:37:19] <Ryan-Toast> Bonus point if they autoupdate every day
140: [02:44:45] <adrexia> reimplement the wordpress interface in silverstripe and no one will ever know
141: [02:45:07] <adrexia> It's not like they use it for the backend code
142: [02:45:14] <antmas> cover the whole lot in css and js until it looks like ss
143: [02:45:28] <adrexia> hahah
144: [02:45:53] <antmas> or just send them photoshops of it and if they complain it looks the same when they browse to it, blame wordderp's caching
145: [02:46:23] <antmas> 'Did you press ctrl+F5?'
146: [02:46:27] <antmas> 'yes'
147: [02:46:36] <antmas> 'you keyboard must be broken'
148: [02:46:38] <antmas> your*(
149: [02:52:44] * nontgor quit (Ping timeout: 245 seconds)
150: [02:56:05] * spronk2 has joined #silverstripe
151: [03:01:55] * antmas quit (Quit: Page closed)
152: [03:05:23] * nontgor has joined #silverstripe
153: [03:06:58] <UncleCheese> how to win at Magento in two easy steps:
154: [03:07:03] <UncleCheese> 1) codementor.io
155: [03:07:06] <UncleCheese> 2) profit
156: [03:12:03] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
157: [03:26:55] * muskie9 has joined #silverstripe
158: [03:28:53] <MichalKleiner> haha
159: [03:32:30] * spronk2 quit (Quit: bleep bleep bloop bloop)
160: [03:39:14] * Phlunk3 quit (Remote host closed the connection)
161: [03:44:46] <MichalKleiner> aaaaaand ready set go
162: [03:50:32] * mobiusnz quit (Quit: Leaving.)
163: [03:51:26] <veb> I AM HOME.
164: [03:51:33] <veb> just spent the last three days in hospital
165: [03:51:51] <veb> BUT i got to ride an ambulance! woo! but I don't actually remember much.
166: [03:55:04] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
167: [03:56:22] * Ryan-Toast quit (Quit: Ryan-Toast)
168: [04:02:49] * Ryan-Toast has joined #silverstripe
169: [04:03:11] * Ryan-Toast quit (Client Quit)
170: [04:07:04] * mobiusnz has joined #silverstripe
171: [04:07:59] * muskie9 has joined #silverstripe
172: [04:12:06] * willr has joined #silverstripe
173: [04:12:52] * mobiusnz quit (Quit: Leaving.)
174: [04:15:38] * shandy_ has joined #silverstripe
175: [04:17:45] <shandy_> hey stupid question from a newb on Friday... I have a page type with a has_one relationship to a data object. what do I put I. getcmsfields? has_many I have worked out. feeling pretty stupid even asking :(
176: [04:18:56] * spronk2 has joined #silverstripe
177: [04:26:29] <muskie9> shandy_ what type of field are you using to handle the relation? or what is the relation, Page has_one DataObject?
178: [04:28:56] <muskie9> if I have a page that has_one MyObject => MyObject, and I manage it with a dropdown, then it would be DropdownField::create('MyObjectID', 'My Object Dropdown', MyObject::get()->map('ID', 'Title')); or something like taht
179: [04:31:23] <shandy_> hey thanks for helping :) that is the question I'm asking :) I need the client to be able to either create a new object or link to an existing one. grid field I get, but for has_one, not sure???
180: [04:31:56] <muskie9> in those types of cases I've used this: https://github.com/sheadawson/silverstripe-quickaddnew
181: [04:32:17] <muskie9> dropdown with existing objects for the relation, with the option to add a new one
182: [04:33:21] <shandy_> ah serious? nothing out of the box for that? OK cool, will get onto it - awesome, thanks :)
183: [04:33:48] <muskie9> sure thing, nothing unfortunately to do a select or add new out of the box
184: [04:34:54] * Sticks has joined #silverstripe
185: [04:47:59] * jedateach has joined #silverstripe
186: [04:51:18] * jedateach quit (Client Quit)
187: [04:54:43] * Hailwood quit (Remote host closed the connection)
188: [04:58:52] * mahfuz quit (Ping timeout: 246 seconds)
189: [05:01:04] * muskie9 is now known as muskie9_afk
190: [05:03:28] * muskie9_afk is now known as muskie9
191: [05:15:13] * muskie9 is now known as muskie9_afk
192: [05:18:43] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
193: [05:23:56] * muskie9 has joined #silverstripe
194: [05:24:46] * shandy_ quit (Ping timeout: 246 seconds)
195: [05:31:47] * travis-ci has joined #silverstripe
196: [05:31:48] <travis-ci> tractorcow/sapphire#66 (3.1.12 - 5294408 : Christopher Pitt): The build has errored.
197: [05:31:48] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/2af48738c9d9^...529440838ae0
198: [05:31:48] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/55132173
199: [05:31:48] * travis-ci has left #silverstripe
200: [05:35:22] * muskie9 is now known as muskie9_afk
201: [05:40:21] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
202: [05:44:39] * travis-ci has joined #silverstripe
203: [05:44:40] <travis-ci> tractorcow/sapphire#67 (3.1.12 - 7f983c2 : Damian Mooyman): The build passed.
204: [05:44:40] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/529440838ae0...7f983c2bae1d
205: [05:44:40] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/55132470
206: [05:44:40] * travis-ci has left #silverstripe
207: [05:52:08] * Shrike_Finland has joined #silverstripe
208: [05:56:00] * CodeTrap has joined #silverstripe
209: [05:58:59] * willr quit (Read error: Connection reset by peer)
210: [05:59:39] * Sticks quit (Quit: Leaving)
211: [06:00:41] * willr has joined #silverstripe
212: [06:01:01] * CodeTrap quit (Ping timeout: 264 seconds)
213: [06:01:11] * travis-ci has joined #silverstripe
214: [06:01:12] <travis-ci> silverstripe/silverstripe-framework#4463 (3.1 - 0c5be13 : Damian Mooyman): The build passed.
215: [06:01:12] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/098be055a975...0c5be1326778
216: [06:01:12] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/55133419
217: [06:01:12] * travis-ci has left #silverstripe
218: [06:11:57] * Shrike_Finland quit (Quit: Leaving.)
219: [06:19:01] * benjhocking quit (Read error: Connection reset by peer)
220: [06:19:17] * benjhocking has joined #silverstripe
221: [06:23:56] <veb> folks. what's everyone up to?
222: [06:27:15] * Shrike_Finland has joined #silverstripe
223: [06:27:19] * Shrike_Finland quit (Read error: Connection reset by peer)
224: [06:27:23] * Shrike_Finland1 has joined #silverstripe
225: [06:42:14] * markcl has joined #silverstripe
226: [06:42:24] <markcl> Is there an allowed_parent field in Silverstripe?
227: [06:42:46] * markcl has left #silverstripe
228: [06:43:33] * travis-ci has joined #silverstripe
229: [06:43:34] <travis-ci> silverstripe/silverstripe-framework#4464 (3.1 - ffcbeb5 : Damian Mooyman): The build passed.
230: [06:43:34] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/0c5be1326778...ffcbeb581258
231: [06:43:34] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/55135903
232: [06:43:34] * travis-ci has left #silverstripe
233: [06:43:52] * markcl has joined #silverstripe
234: [06:44:22] <markcl> or something to that effect?
235: [06:45:23] <markcl> I can only see allowed_children. Why are parents asked if they want to have children, but children are not asked if they want to have parents? Ridiculous!
236: [06:57:33] * travis-ci has joined #silverstripe
237: [06:57:34] <travis-ci> silverstripe/silverstripe-framework#4465 (3.1.12 - ffcbeb5 : Damian Mooyman): The build passed.
238: [06:57:34] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.12
239: [06:57:34] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/55135912
240: [06:57:34] * travis-ci has left #silverstripe
241: [06:57:44] <ss-helper> SilverStripe 3.1.12 security release - https://groups.google.com/d/msg/silverstripe-announce/gHVWD_wOI-o/edmSswt1umUJ
242: [06:57:56] * Stomach quit (Quit: bye)
243: [07:04:39] * Shrike_Finland1 quit (Quit: Leaving.)
244: [07:08:08] <ss-helper> SilverStripe 3.1.12 Security Release - http://www.silverstripe.org/community/forums/releases-and-announcements/show/101380
245: [07:11:18] * travis-ci has joined #silverstripe
246: [07:11:19] <travis-ci> silverstripe/silverstripe-cms#1159 (3.1.12 - 7f1f615 : Damian Mooyman): The build passed.
247: [07:11:19] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.12
248: [07:11:19] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/55135921
249: [07:11:19] * travis-ci has left #silverstripe
250: [07:13:43] * markcl has left #silverstripe
251: [07:15:03] * willr quit (Quit: willr)
252: [07:16:07] * wmk has joined #silverstripe
253: [07:37:03] * Eliseth has joined #silverstripe
254: [07:53:16] * k2h has joined #silverstripe
255: [07:53:58] <k2h> hi! i have a good question to you guys.
256: [07:56:03] <k2h> how can i do something after adding something new to many_many relation list. For example: i whant to add users using GridFieldAddExistingAutocompleter and after user is add i whant to send email to him. Is there any way to hood any event? Sorry for my english.
257: [08:02:15] * Liquide has joined #silverstripe
258: [08:11:19] <wmk> k2h, hmm...
259: [08:11:42] <k2h> thats right
260: [08:11:52] <k2h> i am thinking about it two days
261: [08:12:28] <k2h> there isn't any events for that
262: [08:13:02] <wmk> i don't find anything on ManyManyList
263: [08:13:18] <k2h> i looked to framework and didn't find
264: [08:13:31] <wmk> you can add a many_many_extraField to the many_many relation (e.g. MailSent) and check via crontask
265: [08:13:47] <wmk> check for new many_manys, send email, update extra field
266: [08:14:20] <Tanger> Hey guys
267: [08:14:26] <Tanger> If I redirect a page
268: [08:14:26] <k2h> hmm
269: [08:14:43] <Tanger> And then preview it in the CMS in split view, it redirects
270: [08:14:44] <wmk> OR: k2h you could subclass the gridfield extension (your autocompleter) to add the relation and send the mail
271: [08:14:48] <Tanger> RedirectorPage avoids this somehow
272: [08:14:58] <Tanger> Anybody know how redirectorPage does it?
273: [08:15:15] <wmk> Tanger, maybe split view checks if it's a RedirectorPage?
274: [08:15:48] <k2h> wmk the second way sound good but i never try that before is there any example?
275: [08:16:32] <wmk> 1) find the method that adds the relation
276: [08:16:53] <wmk> 2) subclass it (e.g. class k2hFoo extends Foo)
277: [08:17:12] <Tanger> wmk: Yeah, maybe. Thanks
278: [08:17:12] <wmk> 3) just overwrite that method, call parent::method() to add the relation, send email
279: [08:17:30] <wmk> 4) in your grid: instead of adding component Foo add your subclassed component
280: [08:18:04] <wmk> 5) enjoy the mails
281: [08:18:06] <k2h> wmk ok many thanks to you!
282: [08:18:23] <wmk> if you have any problems, just ask, don't forget to
283: [08:18:25] <wmk> !paste k2h
284: [08:18:26] <ss-helper> k2h: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
285: [08:18:36] <wmk> so we can talk about actual code...
286: [08:18:49] <wmk> (and a link to the autocompleter sourcecode)
287: [08:20:16] <k2h> ok i will paste code when i have one. thanks again wmk!
288: [08:20:33] <wmk> your welcome!
289: [08:26:32] * Frans_Amsterdam has joined #silverstripe
290: [08:29:13] * willr has joined #silverstripe
291: [08:33:34] * bemusedrat has joined #silverstripe
292: [08:37:31] <wmk> hmm, if github could show the tags in the commit history?
293: [08:37:58] <wmk> as tags are like composer versions, you could see what changed from version to version
294: [08:38:24] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400806
295: [08:41:54] * darjus01 has joined #silverstripe
296: [08:43:18] <darjus01> Hi where cound be an mistake is error looks like this [Warning] array_key_exists() expects parameter 2 to be array, integer given GET / Line 672 in /home/admin/hldocs.demostages.com/framework/model/ArrayList.php
297: [08:43:34] * willr quit (Quit: willr)
298: [08:46:10] <wmk> darjus01, there should be a backtrace?
299: [08:46:35] <wmk> if you're in dev mode you should see where this was generated
300: [08:52:52] <wmk> anyone using unclecheese's mock-dataobjects?
301: [08:53:55] * willr has joined #silverstripe
302: [08:53:57] * willr quit (Client Quit)
303: [08:57:47] * UncleCheese has joined #silverstripe
304: [08:58:15] * kinglozzer has joined #silverstripe
305: [08:58:32] <wmk> UncleCheese, hi
306: [08:58:38] <UncleCheese> hi
307: [08:58:47] <wmk> just tried your mock-dataobjects
308: [08:59:08] <wmk> fills out exsting has_one, but when i'm at the grid, it doesn't add new objects
309: [08:59:36] <wmk> (though this pig picture is kinda strange for a team page *G*)
310: [09:02:24] * veb quit (Quit: veb-irc: &)
311: [09:04:47] * Shrike_Finland has joined #silverstripe
312: [09:05:39] * veb has joined #silverstripe
313: [09:06:32] <wmk> UncleCheese, anything to configure for adding new dataobjects in a grid?
314: [09:06:59] <UncleCheese> yeah, in 3.2 it will work
315: [09:07:15] <wmk> oh
316: [09:07:16] <UncleCheese> but until then you have to use ->getConfig()->addComponent(new MockDataGenerator())
317: [09:07:30] <wmk> will try
318: [09:07:35] <UncleCheese> base config isn't extendable in 3.1
319: [09:11:25] * Guits has joined #silverstripe
320: [09:11:44] <UncleCheese> wmk here's the diff that's required: https://github.com/silverstripe/silverstripe-framework/commit/4385264aa9da453d3a9fcf28d92c61ef31d928f2
321: [09:11:59] <UncleCheese> it was merged into master, but i guess won't make it into any minor releases of 3.1
322: [09:14:26] <wmk> UncleCheese, still no luck
323: [09:14:36] <UncleCheese> hmm?
324: [09:14:43] <UncleCheese> show me your code
325: [09:15:29] * GioVdK has joined #silverstripe
326: [09:15:39] <wmk> UncleCheese, http://sspaste.com/paste/show/550be53172e5d
327: [09:15:52] <wmk> do i need anything to add on the has_one relation side?
328: [09:16:24] <UncleCheese> no.. do you get a button?
329: [09:16:33] * gelignite has joined #silverstripe
330: [09:16:39] <wmk> hmm, no
331: [09:16:45] <wmk> ah, on the right..
332: [09:16:59] <wmk> i used the "More options" - add mock data until now
333: [09:17:07] <UncleCheese> oh ok
334: [09:17:09] <UncleCheese> yeah, so
335: [09:17:19] <UncleCheese> i think you get like a link that blinds down some options
336: [09:17:21] <UncleCheese> as i remember
337: [09:17:32] <wmk> the button is just a link, no button i see at once
338: [09:17:39] * Tanger quit (Quit: Tanger)
339: [09:17:57] <UncleCheese> there's always the command-line tool which i find a lot faster
340: [09:19:12] <wmk> but the "more options" way doesn't work
341: [09:20:14] <UncleCheese> oh, on the detail form?
342: [09:20:18] <wmk> "Fill with mock data" is for existing DOs only?
343: [09:20:33] <UncleCheese> i don't believe so
344: [09:21:52] <UncleCheese> that module should be updated to use betterbuttons instead of its own workaround for a custom button
345: [09:21:58] <wmk> ;)
346: [09:22:05] <wmk> is it on transifex?
347: [09:22:08] <UncleCheese> that's probably the issue
348: [09:22:25] <wmk> maybe it conflicts with betterbuttons, dunno
349: [09:22:51] <wmk> for translating: is it on transifex or PR of yml file?
350: [09:23:43] <UncleCheese> not sure
351: [09:24:02] <wmk> though en.yml is outdated ;)
352: [09:26:25] <kinglozzer> Ughhhhh... http://www.silverstripe.org/software/download/security-releases/ss-2015-009-xss-in-rewritten-hash-links
353: [09:26:47] <kinglozzer> Looks like today's upgrade day again
354: [09:27:04] <wmk> kinglozzer, seems so
355: [09:28:30] <kinglozzer> Thank god for composer, otherwise this would be super painful!
356: [09:29:15] * Pyeclipzk has joined #silverstripe
357: [09:30:53] <wmk> hey Pyeclipzk
358: [09:43:48] <Pyeclipzk> heya wmk
359: [09:43:51] <Pyeclipzk> I'm watching the eclipse
360: [09:44:01] <wmk> don't know where my eclipse glasses are.
361: [09:44:12] <wmk> :(
362: [09:44:21] <wmk> is it a total eclipse in england?
363: [09:45:06] <kinglozzer> Pyeclipzk: Can you actually see it?
364: [09:45:08] <kinglozzer> All I see is grey
365: [09:46:36] <Pyeclipzk> kinglozzer: yeah, I thought that was it? Eclipse in England, about as exciting as Java.
366: [09:46:54] <Pyeclipzk> kinglozzer: yeah nah I saw it
367: [09:47:04] <Pyeclipzk> wmk: not quite total, but very close
368: [09:47:12] <wmk> about 2/3 over here
369: [09:47:16] <wmk> maximum right now
370: [09:47:22] <Pyeclipzk> Just a very slight sliver left.
371: [09:47:32] <Pyeclipzk> about 2/3 now here too, haha
372: [09:47:34] <wmk> it's not so bright outside, but without glasses i don't see anything
373: [09:47:35] <Pyeclipzk> it's too bright to see
374: [09:47:40] <Pyeclipzk> yeah
375: [09:47:43] <Pyeclipzk> I had my sunnies
376: [09:47:46] <wmk> and i don't want to damage my eyes
377: [09:47:47] <Pyeclipzk> (sun glasses)
378: [09:47:53] <Pyeclipzk> but I didn't really need them.
379: [09:47:57] <wmk> sunnies are way too less dark!!!!!
380: [09:48:07] <Pyeclipzk> between the % of cover and the amount of clouds, you could basically stare right at it.
381: [09:48:08] <wmk> don't damage yourself man!
382: [09:48:13] <Pyeclipzk> and see nothing! because clouds :<
383: [09:48:21] <wmk> *phew*
384: [09:48:27] <Pyeclipzk> but sometimes they're clear enough (ie, get thin enough) to see something
385: [09:48:31] <wmk> no clouds here, we're austria
386: [09:48:37] <Pyeclipzk> but now it's too much, I need proper glasses yeah
387: [09:48:39] <wmk> we run our servers ourself
388: [09:48:44] <Pyeclipzk> wmk: hahaha
389: [09:48:53] <wmk> Pyeclipzk, TAKE THIS!!!
390: [09:48:57] <Pyeclipzk> areet
391: [09:49:00] <Pyeclipzk> what is it?
392: [09:49:02] <Pyeclipzk> :P
393: [09:50:05] <Pyeclipzk> wmk: you could probably look at it if you have 2 or 3 pairs of sunglasses
394: [09:50:17] <Pyeclipzk> I find that reasonably effective in the past :P
395: [09:50:26] <wmk> the revenge for "water vapour" yesterday
396: [09:53:37] <ss-helper> How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381
397: [09:53:49] <Pyeclipzk> haha
398: [09:54:15] <Pyeclipzk> hurr durr I don't understand the point of trees
399: [09:54:36] <Pyeclipzk> I don't want to deal with that, I'll end up e-yelling, or yelling at my screen.
400: [09:54:46] <wmk> point of trees?
401: [09:55:02] <Pyeclipzk> ss-helper's last post update title...
402: [09:55:19] <wmk> jup, just searching for stomach's last talk
403: [09:55:28] <Pyeclipzk> hmm?
404: [09:56:14] <Pyeclipzk> I suppose unless maybe they mean to change the default sort, like have blog posts display in order they're dated, rather than ... well created I guess. But then _normally_ they're created as they're posted, so ...
405: [09:56:32] <Pyeclipzk> if you've got a super blog site then you should be using gridfield instead anyway!
406: [09:56:35] * Pyeclipzk sighs
407: [09:56:52] <Pyeclipzk> nekminnit: GAIZ I REORDERED THE SITE TREE AND NOW MY HOMEPAGE ISN'T THE HOMEPAGE
408: [09:57:07] <Pyeclipzk> or "and now my menu is all out of order!"
409: [09:57:14] <Pyeclipzk> fffffffffffffffffff
410: [09:57:34] <Pyeclipzk> this topic is getting me fired up from here :<
411: [09:57:50] <Pyeclipzk> it's reminding me of clients who wanted to re-order FILTERED search results in modeladmin.
412: [09:58:32] <Pyeclipzk> and I'm all "but then when you view all instead of that filtered subset... or if a different filter includes that record and you shuffle it again... HOW DO YOU THINK THIS COULD POSSIBLY WORK"
413: [09:58:57] <Pyeclipzk> then I kick them in the brain and walk out
414: [09:59:19] <Pyeclipzk> I made that last part up. but it sounds like a fun thing to do, if I were a comic book character.
415: [09:59:56] <ss-helper> Silverstripe 3: how to sort pages in the CMS sitetree by title, date etc - http://stackoverflow.com/questions/29163563/silverstripe-3-how-to-sort-pages-in-the-cms-sitetree-by-title-date-etc
416: [10:00:18] * Shrike_Finland quit (Quit: Leaving.)
417: [10:01:56] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
418: [10:04:21] <wmk> Pyeclipzk, next week you'll be pynetbeanzk, pysublimek, or pystormk ?
419: [10:07:44] * gelignite quit (Ping timeout: 245 seconds)
420: [10:08:39] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400808
421: [10:09:19] * gelignite has joined #silverstripe
422: [10:15:31] <Pyeclipzk> haha, I knew that'd be coming wmk :P
423: [10:15:43] <wmk> ?
424: [10:16:06] <wmk> just cause i'm participating at this module?
425: [10:16:38] * swaiba has joined #silverstripe
426: [10:19:15] <Pyeclipzk> wmk: no I mean that joke about netbeans etc
427: [10:19:40] <Pyeclipzk> because eclipse ide (also the reason I went for eclipz - besides just making it shorter) haha
428: [10:20:06] <Pyeclipzk> but no, I mean the moon is shadowing the sun, and I saw it.
429: [10:20:38] <wmk> ;)
430: [10:20:50] <Pyeclipzk> well, the moon is shading us from the sun, rather.
431: [10:21:11] <Pyeclipzk> I couldn't help myself, I replied to that thread :<
432: [10:23:41] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400810
433: [10:23:41] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400809
434: [10:26:27] * ss31noob has joined #silverstripe
435: [10:31:58] <ss31noob> hi guys, is there an easy way to get the whole dataobject given a URLSegment? i mean without knowing what pagetype is it..
436: [10:33:28] * Shrike_Finland has joined #silverstripe
437: [10:33:37] <ss31noob> im thinking of SiteTree::get(urlsegment), but then i wouldnt be able to get other data specific for that pagetype.. all i can get is the sitetree data right
438: [10:38:44] <ss-helper> Re: AJAX page load event for /admin/pages/edit/show/ pages? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101377#post400811
439: [10:40:47] * NETim has joined #silverstripe
440: [10:41:08] <NETim> How would one add SVG to the allowed file types for an UploadField?
441: [10:41:55] <zauberfisch> NETim: I think its now possible with yml
442: [10:41:59] <zauberfisch> File:
443: [10:42:03] <zauberfisch> allowed_extensions:
444: [10:42:09] <zauberfisch> - 'svg'
445: [10:42:12] <zauberfisch> or something like that
446: [10:42:49] <zauberfisch> NETim: at least thats the way to do it globaly
447: [10:44:23] <zauberfisch> if you just want to do it for a single upload field then you can do it like so: $uploadField->setAllowedExtensions(array_merge(['svg'], $uploadField->getAllowedExtensions()));
448: [10:47:38] <NETim> zauberfisch: I assume if i want to allow only SVG then I don't merge arrays?
449: [10:50:55] <Pyeclipzk> zauberfisch: NETim also remember to check assets/.htaccess
450: [10:50:59] <Pyeclipzk> (if applicable)
451: [10:53:46] <ss-helper> Re: file previews - http://www.silverstripe.org/community/forums/general-questions/show/101358#post400814
452: [10:53:46] <ss-helper> Re: Not showing old pages - http://www.silverstripe.org/community/forums/general-questions/show/101375#post400813
453: [10:53:46] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400812
454: [11:01:46] * veb quit (Quit: veb-irc: quit)
455: [11:02:06] <NETim> hm... it allows me to select the file but returns 'Forbidden'?
456: [11:08:46] * babak quit (Quit: Connection closed for inactivity)
457: [11:08:49] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400815
458: [11:12:16] <zauberfisch> NETim: hmmm
459: [11:12:32] <zauberfisch> NETim: any uppercase letters in the file extension?
460: [11:20:01] * nontgor quit (Ping timeout: 265 seconds)
461: [11:20:08] <NETim> nope.
462: [11:21:15] <Pyeclipzk> did you check .htaccess?
463: [11:21:45] <Pyeclipzk> like, is it the upload or the fetch afterwards that's failling?
464: [11:21:58] <NETim> Think it's the fetch.
465: [11:22:07] <NETim> I've added svg to the htaccess in assets.
466: [11:22:21] <Pyeclipzk> and can you access it directly?
467: [11:23:23] <NETim> Yup.
468: [11:23:49] <kinglozzer> Gosh so many sites to upgrade :(
469: [11:23:52] <ss-helper> Re: Compare two values - http://www.silverstripe.org/community/forums/template-questions/show/101379#post400816
470: [11:31:20] <Pyeclipzk> NETim: not a permissions thing then
471: [11:31:47] <NETim> nope. Seems to upload fine, but when it tries to fetch it to actually attach it, it gets a forbidden response...
472: [11:32:39] * nontgor has joined #silverstripe
473: [11:35:08] <Pyeclipzk> seems like a configuration thing then
474: [11:35:16] <Pyeclipzk> NETim: is it an Image field type?
475: [11:35:21] <Pyeclipzk> err, relation
476: [11:35:32] <Pyeclipzk> ie, is it an upload field for an image/
477: [11:35:37] <Pyeclipzk> or a File?
478: [11:35:45] <Pyeclipzk> that could be the issue
479: [11:35:53] <Pyeclipzk> .svg isn't an "image" as such.
480: [11:36:05] <Pyeclipzk> ie, doesn't go in <img>
481: [11:36:12] <Pyeclipzk> which is pretty much what Image class is for.
482: [11:36:13] <NETim> Using UploadField, but it is an Image, I'll try file.
483: [11:36:38] <Pyeclipzk> yeah, uploadfield itself is generic, but when detecting Image it tries to write an Image of course, which will reject .svg probably
484: [11:37:11] <Pyeclipzk> there might be a config thing for fixing this up, but basically .svg is of course xml, not an image (ie, raster).
485: [11:37:31] <Pyeclipzk> (not to be confused with rastah mon)
486: [11:37:47] * Pyeclipzk goes to play some bob marley
487: [11:41:18] <NETim> I imagine it's probably more difficult to upload a rasta.
488: [11:42:12] * bemusedrat quit (Quit: Leaving)
489: [11:47:33] <Pyeclipzk> :P
490: [11:54:17] * Shrike_Finland quit (Quit: Leaving.)
491: [11:58:06] * Shrike_Finland has joined #silverstripe
492: [12:11:05] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
493: [12:36:39] * Shrike_Finland1 has joined #silverstripe
494: [12:36:40] * Shrike_Finland quit (Read error: Connection reset by peer)
495: [12:57:47] * wmk quit (Ping timeout: 252 seconds)
496: [13:04:24] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/eiIEw23RxD4J
497: [13:06:59] * UndefinedOffset has joined #silverstripe
498: [13:12:43] <GioVdK> Hello, is there a way to set the values of a dropdown in getCMSFields from a $db property of type ENUM? (I'm just trying to change the order of the dropdown field)
499: [13:14:10] <GioVdK> mh, maybe this would do http://www.silverstripe.org/community/forums/customising-the-cms/show/4556
500: [13:14:16] * Frans_Amsterdam has joined #silverstripe
501: [13:31:28] <swaiba> GioVdK that is the way, obviously if the values could be ordered in the code they should come out in that order
502: [13:36:29] * stnvh has joined #silverstripe
503: [13:36:37] * arnhoe has joined #silverstripe
504: [13:38:06] <swaiba> and if it makes it easier you can spec enums across multiple lines, instead of one long one... http://www.sspaste.com/paste/show/550c2299d263d
505: [13:38:37] * Shrike_Finland1 quit (Quit: Leaving.)
506: [13:41:05] <Pyeclipzk> swaiba: GioVdK that is NOT the way! D:
507: [13:41:11] <Pyeclipzk> well, it is, but it's nasty.
508: [13:41:33] <Pyeclipzk> $this->dbObject('Day')->enumValues() is fine! Why singleton('OMG!') :<
509: [13:41:55] <darjus01> hi all is it possible this situation: I have usergroup "moderators" ant I need then they login they go to moderators_admin link, and there would be like whole enviroment theme for them, so is it posible that I have controllers like Moderator_admin_page and call theme from themes directory "Moderator Enviroment" some thing like in simple works "Moderator Controller functions use moderator enviroment theme"
510: [13:42:14] <swaiba> Pyeclipzk - sorry what? it is what it is... how is it so nasty (apart from teh singleton)
511: [13:42:37] <Pyeclipzk> swaiba: because of the singleton to the object of the type your'e CURRENTLY ALREADY IN
512: [13:42:45] <Pyeclipzk> D:
513: [13:42:55] <swaiba> ah ok, I thought you were saying that about the multiple line
514: [13:42:59] <Pyeclipzk> nah
515: [13:43:05] <Pyeclipzk> just makes it a bit harder to read
516: [13:43:19] <Pyeclipzk> as in, in that second post I cannot see any difference at all :<
517: [13:43:24] <Pyeclipzk> between the 2 examples
518: [13:43:54] <Pyeclipzk> darjus01: no, CMS doesn't have a theme.
519: [13:44:11] <Pyeclipzk> unless by logging in admin page you're not talking about the CMS
520: [13:44:20] <Pyeclipzk> in which case of course, it's all up to you chap
521: [13:44:40] <darjus01> not CMS
522: [13:44:51] <Pyeclipzk> well it's all front end development, you're free to do whatever you like
523: [13:45:24] <swaiba> there are some people making themes for the admin...https://github.com/mediabeastnz/silverstripe-flat-admin
524: [13:45:39] <swaiba> I'm sure that could be conditional based on user
525: [13:45:48] <Pyeclipzk> class ModeratorAdmin extends Controller { function init() { Config::inst()->update('SSViewer', 'theme', 'moderatorthings'); }
526: [13:45:52] <Pyeclipzk> oh, but with parent::init()
527: [13:45:53] <Pyeclipzk> of course
528: [13:45:54] <darjus01> its like in Cakephp in controller function I can force it use any theme I choose
529: [13:46:03] <Pyeclipzk> swaiba: haha
530: [13:46:04] <swaiba> but I'd agree best to use front end controllers and mange it that way
531: [13:46:07] <Pyeclipzk> that crazy myles
532: [13:46:13] <Pyeclipzk> why
533: [13:46:51] <Pyeclipzk> oh, it's not a theme swaiba, just a css (adv|enh)ancement
534: [13:46:51] <darjus01> ok thats great news
535: [13:47:06] <Pyeclipzk> from my old company
536: [13:47:45] <Pyeclipzk> well, the chappy works there
537: [13:47:53] <Pyeclipzk> old colleague
538: [13:48:11] <swaiba> Pyeclipzk - yeah, but that in principle I'm talking not actual theme i know
539: [13:48:20] <Pyeclipzk> mmm
540: [13:48:43] <Pyeclipzk> Tweaks like that have been in folks minds for some time. Mark James did something similar for 2.4
541: [13:49:07] <Pyeclipzk> (the famfamfam guy of fame for his silk icon set)
542: [13:50:02] <darjus01> just my client wants to make admin enviroment based on none js old school table enviroment, so I will make Module with theme for some situations like this and use it thatever i need
543: [13:50:37] <Pyeclipzk> darjus01: oh, if you make it a module then you don't need to change the theme at all.
544: [13:50:42] <Pyeclipzk> make another folder in themes
545: [13:50:49] <Pyeclipzk> myactivetheme_modulename
546: [13:51:09] <Pyeclipzk> SS would (should, used to) pick that up and use it instead
547: [13:51:15] <Pyeclipzk> an override of sorts
548: [13:51:46] <Pyeclipzk> Of course you can also have 'default' templates for a module in the module dir itself
549: [13:52:00] * MrGuits has joined #silverstripe
550: [13:52:44] <Pyeclipzk> eg for default and forum module
551: [13:52:47] <darjus01> Pyeclipzk: thx yes module Flat table based user enviroment like mini cms
552: [13:52:51] <Pyeclipzk> themes/simple_forum/
553: [13:54:14] <MrGuits> I have an uploadfield on frontend form. How can i show fields (jquery) when file is starting to upload?
554: [13:59:50] * muskie9 has joined #silverstripe
555: [14:03:11] * Shrike_Finland has joined #silverstripe
556: [14:05:34] * darjus01 quit (Ping timeout: 246 seconds)
557: [14:24:23] <ss-helper> Re: How to sort pages in the CMS sitetree by title, date etc - http://www.silverstripe.org/community/forums/customising-the-cms/show/101381#post400817
558: [14:24:55] * Guits quit (Quit: Leaving)
559: [14:26:15] * luminox has joined #silverstripe
560: [14:27:25] <luminox> hello how do I add labels to my SS_DateTime field? I want a label for the Date field and the Time Field. Should I use getDateField() and set a label or is there another way?
561: [14:28:27] <GioVdK> Pyeclipzk: just saw your answer, thanks :)
562: [14:29:32] <muskie9> luminox $field = new DatetimeField('Name', 'Label');
563: [14:29:48] <GioVdK> first time I tried I used $this indeed, never used singleton before lol. But then I was calling enumValues as a property instead of a method :p
564: [14:30:34] <luminox> muskie9: this is what I already have, but this labels wraps on both fields
565: [14:30:45] <luminox> i want a label for the date field and a seperate label for the time field
566: [14:32:09] <luminox> ahh setTitle(); did the job!
567: [14:33:00] <muskie9> ah, right
568: [14:33:27] <luminox> $Field->getDateField()->setTitle('Start date'); and $Field->getTimeField()->setTitle('Start time');
569: [14:34:44] * Shrike_Finland quit (Read error: Connection reset by peer)
570: [14:34:51] * Shrike_Finland has joined #silverstripe
571: [14:37:47] * Shrike_Finland quit (Read error: Connection reset by peer)
572: [14:38:04] * Shrike_Finland has joined #silverstripe
573: [14:40:23] <Pyeclipzk> tsk tsk muskie9 :<
574: [14:40:31] <Pyeclipzk> DatetimeField::create()
575: [14:40:43] <muskie9> reading from the docblock header lol
576: [14:41:01] * muskie9 uses ::create() on all the tings
577: [14:41:29] <luminox> talking about ::create()
578: [14:41:51] <luminox> yesterday i was struggling with it creating an uploadfield and setting the validator
579: [14:42:09] <Pyeclipzk> how were you struggling with ::create() ?
580: [14:42:21] <luminox> i couldnt chain setValidator() to my uploadfield using create::
581: [14:42:30] <Pyeclipzk> yes you could!
582: [14:42:36] <luminox> FileField() i mean
583: [14:42:44] <Pyeclipzk> what even is that?
584: [14:43:40] * Alboes has joined #silverstripe
585: [14:43:47] <muskie9> luminox if you're going to validate the input why not use upload field
586: [14:43:50] <kinglozzer> luminox: Upgrade SilverStripe
587: [14:44:00] <kinglozzer> I'm using 3.1.12 and it can be chained
588: [14:44:05] <kinglozzer> FileField::setValidator()
589: [14:44:22] <luminox> okay, its in 3.1.11 now
590: [14:44:26] <Pyeclipzk> parent to uploadfield
591: [14:44:28] <luminox> this is what i had to do: http://www.sspaste.com/paste/show/550c32368479d
592: [14:44:51] <Pyeclipzk> luminox: that's got nothing to do with create!
593: [14:45:13] <Pyeclipzk> although it should still work
594: [14:45:20] <luminox> I used FileField for a frontend upload form, since UploadField is quite bloated
595: [14:45:28] <kinglozzer> Pyeclipzk: Nah it won't, ->getValidator() returns an instance of Upload
596: [14:45:31] <Pyeclipzk> no yeah
597: [14:45:32] <kinglozzer> So it can never work
598: [14:45:32] <Pyeclipzk> duh
599: [14:45:33] <Pyeclipzk> just saw
600: [14:45:45] <Pyeclipzk> luminox: you gotta return a field to go into the fieldlist
601: [14:45:45] <kinglozzer> luminox: Yeah you can't chain that unfortunately
602: [14:46:29] <luminox> hmm k
603: [14:46:30] <kinglozzer> luminox: You will be able to in 3.2, just not yet
604: [14:46:37] <Pyeclipzk> hmm?
605: [14:46:42] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/commit/a322f93971282f4f737485b9f8d34273309c9354
606: [14:47:07] <luminox> all the chaining makes create::() so cool to use :)
607: [14:50:26] <Pyeclipzk> ah yeh kinglozzer.
608: [14:50:38] <Pyeclipzk> bitta coupling, but kinda ok I guess since that's the intention of the field.
609: [14:51:02] * Shrike_Finland quit (Quit: Leaving.)
610: [14:51:20] * Shrike_Finland has joined #silverstripe
611: [14:51:20] * Shrike_Finland quit (Client Quit)
612: [14:51:45] <Pyeclipzk> but yeh luminox, one of those methods didn't return what you expeced, so you cannat do it. Same like in jquery $this.children.first.hasclass.addanotherclass... never going to work because hasclass returns a boolean
613: [14:54:24] * wmk has joined #silverstripe
614: [14:55:13] <luminox> ok
615: [14:55:42] * catcher has joined #silverstripe
616: [14:56:06] <Alboes> good afternoon! Question: ProductProperty::get()->filter('ID', 4); gives the record wit id 4 back, but how can I filter with "if not"? So all the records except 4?
617: [14:56:54] <Pyeclipzk> exclude()
618: [14:56:55] <swaiba> Alboes - ->filter('ID:not', 4)
619: [14:56:59] <Pyeclipzk> no
620: [14:57:06] <Pyeclipzk> exclude()
621: [14:57:13] <swaiba> i believe both will work
622: [14:57:13] <Pyeclipzk> there is no NotFilter
623: [14:57:18] <Pyeclipzk> so far as I'm aware
624: [14:57:28] <swaiba> you now are aware...
625: [14:57:54] <Pyeclipzk> http://api.silverstripe.org/3.1/class-SearchFilter.html
626: [14:58:07] <Pyeclipzk> nope
627: [14:58:21] <catcher> The modifiers currently supported are ":not", ":nocase" and ":case". These negate the filter, make it case-insensitive and make it case-sensitive, respectively.
628: [14:58:35] <Pyeclipzk> it would have been :Negation anyway
629: [14:58:49] * wmk quit (Ping timeout: 250 seconds)
630: [14:58:55] <Pyeclipzk> unless there's some stupid exception logic in the filter getter
631: [14:58:58] <Pyeclipzk> which wuoldn't surprise me
632: [14:59:08] <Alboes> swaiba thanks, ->filter('ID:not', 4) works. Thanks!
633: [14:59:20] <swaiba> np Alboes
634: [14:59:29] <catcher> In Pyeclipzk's defense, exclude is more readable
635: [14:59:52] <Pyeclipzk> but to my knowledge it goes for new exlode(':' ..)[2] . "Filter"
636: [15:00:08] <Pyeclipzk> err, [1], whatever it's psudocode
637: [15:00:18] <Pyeclipzk> but yes, it's deprecated and it's wrong so don't use it.
638: [15:00:22] <Pyeclipzk> (the negation filter)
639: [15:00:28] <Pyeclipzk> Alboes:
640: [15:00:34] <Pyeclipzk> exclude('ID', 4)
641: [15:01:02] <Alboes> okay, i try that as well, moment
642: [15:02:57] <swaiba> http://doc.silverstripe.org/en/developer_guides/model/searchfilters/ this includes ":not" in it
643: [15:03:16] <swaiba> if it is depreciated then I'd suggest the docs are updated
644: [15:03:30] <Pyeclipzk> http://doc.silverstripe.org/en/developer_guides/model/data_model_and_orm/#filtering-results
645: [15:03:57] <swaiba> okey, I'm not arguing, I'm saying it is on teh docs pages still
646: [15:04:01] <Pyeclipzk> it's been deprecated since 3.0 IMO, but it is marked as deprecated 3.1
647: [15:04:55] <Alboes> exclude('ID', 4) works as well, so better use that i guess
648: [15:05:02] <Pyeclipzk> also swaiba - it's included as a _modifier_, not a filter in it's own right.
649: [15:05:11] <Pyeclipzk> as in GreaterThan:not
650: [15:05:20] <Pyeclipzk> which is still odd to me a bit.
651: [15:05:42] <swaiba> Pyeclipzk - errr I get it, it does work and I've just found 9 lines of code I'm updating
652: [15:05:52] <Pyeclipzk> ie, it's basically a parameter to another filter, not a filter.
653: [15:05:59] <Pyeclipzk> hehe :>
654: [15:20:02] * swaiba quit (Remote host closed the connection)
655: [15:26:19] * swaiba has joined #silverstripe
656: [15:26:46] <swaiba> hey Pyeclipzk
657: [15:27:02] <swaiba> can you indicate where :not is depreciated before I change
658: [15:27:32] <swaiba> as far as I can tell if you don't specficy a filter it uses exactmatch and then :not is a valid modfiier
659: [15:28:13] <swaiba> no comment on the readability, just looking where you are confirming it is invalid and depreciated...
660: [15:34:59] * k2h quit (Remote host closed the connection)
661: [15:42:43] <GioVdK> Hi, is it possible in the template to do something like <% if $Middle || ($TotalItems == 2 && $Pos > 1) %> ? (this doesn't work)
662: [15:43:44] <catcher> GioVdK, that screams C rather than V
663: [15:44:15] <GioVdK> V?
664: [15:44:25] <catcher> C = Controller, V = View
665: [15:45:07] <GioVdK> ah ok
666: [15:45:13] <GioVdK> so that's inside a loop
667: [15:45:32] <GioVdK> from the controller I just read it as $this->Middle(), right?
668: [15:45:45] * lerni_ has joined #silverstripe
669: [15:45:47] <GioVdK> or should I pass it as an argument?
670: [15:46:13] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
671: [15:46:30] * Frans_Amsterdam has joined #silverstripe
672: [15:46:30] * Frans_Amsterdam quit (Client Quit)
673: [15:47:57] <lerni_> is there a way to find all classes with extension X?
674: [15:54:39] <ss-helper> stop overwriting files with setReplaceFile(false) - http://www.silverstripe.org/community/forums/customising-the-cms/show/101382
675: [15:56:54] <catcher> GioVdK, you could manipulate the list ahead of time to add a single flag. If you want to stick with view and that's not working, you could split it into an if / else_if
676: [15:56:59] * arnhoe quit ()
677: [15:57:25] <catcher> lerni_, extensions as in subclass? Or extensions as in SS extension?
678: [15:57:54] <lerni_> catcher: SS extension
679: [15:58:32] <catcher> lerni_, not without looping, iirc
680: [15:58:35] <lerni_> they are all set in yml config
681: [15:59:24] <catcher> lerni_, I kept that static in the past with another yml property for efficiency.
682: [16:00:52] <Pyeclipzk> swaiba: I was looking at negationfilter
683: [16:01:22] <Pyeclipzk> GioVdK: no, you can't > or < in templates, only == and !=
684: [16:01:50] <lerni_> oky - what I try to do is to export everything from language X. I use fluent and if I find all Classes with the extension it would help :)
685: [16:01:58] <GioVdK> Thanks Pyeclipzk and catcher ... I'm handling it from the controller ;)
686: [16:02:07] <Pyeclipzk> lerni_: look at docs from Object
687: [16:02:17] <Pyeclipzk> api.silverstripe.org/3.1/class-Object.html
688: [16:02:22] <swaiba> Pyeclipzk cheers
689: [16:02:45] <Pyeclipzk> you're right if that does work, I think it should error personally
690: [16:02:51] <Pyeclipzk> (modifier without filter)
691: [16:03:00] <lerni_> Pyeclipzk: thx 'll see where I get
692: [16:03:04] <Pyeclipzk> you're right in that it's totally unreadable :<
693: [16:03:26] <catcher> Pyeclipzk, sure you can, <, <=, >, >=
694: [16:04:28] <Pyeclipzk> o.0 since when?
695: [16:04:59] <catcher> Definitely 3.1, not sure about 3.0
696: [16:05:38] <Pyeclipzk> heh
697: [16:07:41] <Pyeclipzk> lerni_: I think it used to be possible before all the Config class introduction (because it was all stored in memory on object class)
698: [16:07:47] <Pyeclipzk> but looks like not so much anymore.
699: [16:08:09] <catcher> Right. And looping all classes is expensive.
700: [16:08:17] <Pyeclipzk> you could use a combination of classinfo and config to get them all though lerni_
701: [16:08:23] <Pyeclipzk> catcher: extremely, yeh
702: [16:08:35] <Pyeclipzk> but you probably don't need to 'fetch' them.
703: [16:08:45] <catcher> This comes up frequently, a module that parses the yml to list them would be cool.
704: [16:08:51] <Pyeclipzk> manifest has string references, probably only need that (along with object get_extensions)
705: [16:08:59] <Pyeclipzk> catcher: well...
706: [16:09:03] <catcher> & then store that as a siteconfig static property
707: [16:13:13] <Pyeclipzk> $parentsubs = ClassInfo::subclassesFor('DataObject');array_filter($parentsubs['Children'] function isTranslated($dataobjectclass){return $dataobjectclass::has_extension('Fluent');});
708: [16:13:17] <Pyeclipzk> catcher: don!
709: [16:13:19] <Pyeclipzk> done*
710: [16:15:03] <lerni_> whooot - cool 'll try
711: [16:17:36] <catcher> ha
712: [16:18:01] <Pyeclipzk> It'll still be relatively expensive, but so far as I'm aware it's not instantiating any classes (nor autoloading them)
713: [16:18:20] <Pyeclipzk> because it just references manifest directly, and config.
714: [16:18:30] <Pyeclipzk> not asking the class itself (which would cause it to load)
715: [16:18:47] <Pyeclipzk> I could be wrong.
716: [16:19:06] <catcher> a property array is cheaper.
717: [16:19:21] <catcher> but breakable.
718: [16:19:30] <Pyeclipzk> You'll need to jam one into the manifest off the back of flush then.
719: [16:19:33] <Pyeclipzk> bags not.
720: [16:22:25] * ss31noob quit (Ping timeout: 246 seconds)
721: [16:22:33] * luminox quit (Quit: Page closed)
722: [16:27:33] * swaiba quit (Remote host closed the connection)
723: [16:35:55] * muskie9 is now known as muskie9_afk
724: [16:35:56] <Pyeclipzk> fuck'n yey, visual studio crashed. JOY
725: [16:36:35] <catcher> 'know what doesn't crash? EMACS
726: [16:36:53] <Pyeclipzk> neither does VIM
727: [16:36:57] <Pyeclipzk> xD
728: [16:36:57] <catcher> ^
729: [16:37:12] <catcher> though I'd be lying if I said I didn't pick up phpstorm a few months ago.
730: [16:37:57] * daz_ has joined #silverstripe
731: [16:38:16] <Pyeclipzk> I wouldn't be.
732: [16:39:47] <catcher> It's pretty rad.
733: [16:39:47] <daz_> how do i filter sitetree TreeDropdownField?
734: [16:40:23] * lerni_ quit (Remote host closed the connection)
735: [16:40:30] <Pyeclipzk> You don't.
736: [16:40:35] <Pyeclipzk> It wouldn't be a tree if you did.
737: [16:41:03] <Pyeclipzk> Perhaps you're simply looking for the vanilla DropdownField ?
738: [16:41:35] <daz_> I only want one pagetype to show eg.5 of pagetype 'Products'
739: [16:42:00] <Pyeclipzk> Use DropdownField (or another solution if you have too many 'Products')
740: [16:42:47] <Pyeclipzk> DropdownField::create('ProductID', 'Products', Product::get())
741: [16:43:00] <Pyeclipzk> DropdownField::create('ProductID', 'Products', Product::get()->map())
742: [16:43:02] <Pyeclipzk> probably
743: [16:44:02] <daz_> Thanks I'll take a look
744: [16:45:05] <ss-helper> Filter sitetree TreeDropdownField() in Silverstripe 3.1 - http://stackoverflow.com/questions/29171542/filter-sitetree-treedropdownfield-in-silverstripe-3-1
745: [16:47:34] * Alboes quit (Remote host closed the connection)
746: [16:49:17] * muskie9_afk is now known as muskie9
747: [16:52:31] * daz_ quit (Ping timeout: 246 seconds)
748: [17:03:10] <slievr> hey guys
749: [17:03:13] <slievr> Requirements_Backend::process_combined_files(): Couldn't create
750: [17:03:27] <slievr> got this error can someone point me in the correct direction
751: [17:04:04] <kinglozzer> slievr: Permissions
752: [17:04:13] <slievr> thnaks
753: [17:04:16] <kinglozzer> It's unable to write the file
754: [17:04:17] <slievr> thanks
755: [17:04:46] * NETim quit (Ping timeout: 246 seconds)
756: [17:07:43] * kinglozzer weekend!
757: [17:07:44] * kinglozzer quit ()
758: [17:08:42] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
759: [17:38:10] * muskie9 is now known as muskie9_afk
760: [18:04:37] * muskie9_afk is now known as muskie9
761: [18:17:28] <Pyeclipzk> reet, warnings because truncation might occur. Well fuck you mssql, I don't give a shit, no need to scream at me about it, fuck.
762: [18:17:38] <Pyeclipzk> fuck you, I'm going home xD
763: [18:17:40] * Pyeclipzk quit ()
764: [18:33:47] * jedateach has joined #silverstripe
765: [18:37:33] * GioVdK quit (Ping timeout: 244 seconds)
766: [18:38:37] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
767: [18:43:01] * jedateach quit (Ping timeout: 264 seconds)
768: [18:44:14] * jedateach has joined #silverstripe
769: [19:03:27] * jedateach quit (Quit: jedateach)
770: [19:09:19] * catcher quit (Quit: Leaving)
771: [19:11:37] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
772: [19:31:25] * superspring quit (Ping timeout: 252 seconds)
773: [19:37:32] * superspring has joined #silverstripe
774: [20:12:39] * Pyromanik has joined #silverstripe
775: [20:14:55] * UndefinedOffset quit (Read error: Connection reset by peer)
776: [20:22:34] * lerni has joined #silverstripe
777: [20:31:55] * lerni quit (Ping timeout: 252 seconds)
778: [20:40:27] <ss-helper> Re: stop overwriting files with setReplaceFile(false) - http://www.silverstripe.org/community/forums/customising-the-cms/show/101382#post400828
779: [21:05:41] * UncleCheese has joined #silverstripe
780: [21:05:59] <Pyromanik> Keen on Saturday UncleCheese
781: [21:06:06] <UncleCheese> hi
782: [21:13:30] * jedateach has joined #silverstripe
783: [21:20:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
784: [21:42:11] * jedateach quit (Read error: No route to host)
785: [21:47:35] * nontgor quit (Ping timeout: 256 seconds)
786: [21:50:15] * veb has joined #silverstripe
787: [22:00:17] * nontgor has joined #silverstripe
788: [22:15:37] * superspring quit (Ping timeout: 250 seconds)
789: [22:18:18] * superspring has joined #silverstripe
790: [22:20:02] * Azure quit (Quit: Blue Sky Fish)
791: [22:20:28] * Pyromanik quit (Quit: Leaving)
792: [22:20:32] * Azure has joined #silverstripe
793: [22:39:23] * gelignite has joined #silverstripe
794: [22:39:32] * Azure quit (Quit: My MBP went to sleep.)
795: [22:41:30] * Azure has joined #silverstripe
796: [22:59:53] * koddy has joined #silverstripe
797: [23:02:34] <koddy> sup guys, quick help needed
798: [23:03:00] <koddy> how do I overwrite form templates without affecting the cms form templates?
799: [23:39:13] * koddy quit (Ping timeout: 246 seconds)
800: [23:59:34] * simon_w has joined #silverstripe

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