#silverstripe IRC Log

IRC log for 28 April 2014

All timestamps are in UTC.

1: [00:02:25] <antmas> so if I did this on doSubmit($data, $form) and then $email->populateTemplate($DO_here);
2: [00:02:48] <antmas> and $stuff = json_decode('FieldBlah', true);
3: [00:02:48] <zippy__> you can pass an object, or an array
4: [00:03:00] <antmas> this is an object
5: [00:03:10] <antmas> where am I then using $stuff?
6: [00:03:28] <zippy__> not sure, what are you trying to do?
7: [00:04:05] <antmas> zippy__: trying to decode some json from a field so that it displays as html on a template
8: [00:04:08] <antmas> via*
9: [00:04:46] <zippy__> pass the stuff to your populateTempalte function?
10: [00:05:18] <antmas> zippy__: along with the $DO_here?
11: [00:08:19] <zippy__> antmas: http://pastebin.com/U0V8vtiF you could do something like that
12: [00:08:48] <antmas> zippy__: awwww yiss
13: [00:08:55] <antmas> that's a blit clearer, tah
14: [00:11:19] * cameron__ has joined #silverstripe
15: [00:12:31] <cameron__> Does anyone know the best way of validating a has_many or many_many relationship? I want to set a maximum number of related dataobjects
16: [00:13:07] <ss23> Probably onBeforeWrite I guess?
17: [00:13:21] <cameron__> I have tried using the validate() method, however by the time save() is called the relationships are already saved so it is not actually preventing anything
18: [00:13:39] <cameron__> will I be able to throw an error back to the CMS in onBeforeWrite?
19: [00:14:21] <ss23> Hmm
20: [00:14:25] <ss23> Not exactly
21: [00:14:41] <cameron__> mmm that is my problem :'(
22: [00:15:28] <cameron__> I *could* just create a bunch of has_one relationships but that would be yucky
23: [00:15:41] <ss23> The problem I guess is the relationship objects are saved first, before the onBeforeWRite of the parent object
24: [00:15:47] <cameron__> yea
25: [00:15:53] <ss23> I'm sorry, I don't know the best solution :O
26: [00:16:03] <cameron__> that's ok thanks anyway
27: [00:16:14] <cameron__> I can't seem to find anything by googling
28: [00:16:25] <cameron__> So perhaps this is still not possible
29: [00:18:45] * joelpittet has joined #silverstripe
30: [00:20:00] * joelpittet quit (Client Quit)
31: [00:20:50] <zippy__> cameron__: Check in the canCreate function? so then they can't create them / add button wont show up etc
32: [00:21:34] <cameron__> ok will take a look
33: [00:21:36] <cameron__> thanks
34: [00:22:17] <cameron__> oh I dont think that will work for me
35: [00:22:33] <cameron__> You can only add exisiting objects in my relationship
36: [00:24:01] <zippy__> oh
37: [00:24:19] <antmas> zippy__: hmmm, what if that $data (your example) was a DO?
38: [00:24:38] <zippy__> put the DO into the $data
39: [00:24:47] <zippy__> 'AnObject' => $MyObject',
40: [00:24:50] <zippy__> without the ' on the end
41: [00:24:57] <antmas> ah right
42: [00:28:54] * travis-ci has joined #silverstripe
43: [00:28:54] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2385 (3.1 - 7188eab : Damian Mooyman): The build passed.
44: [00:28:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/07f4f6372996...7188eab90536
45: [00:28:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23892559
46: [00:28:54] * travis-ci has left #silverstripe
47: [00:29:49] <UncleCheese_> cameron__: can't you tap into the DO
48: [00:29:53] <UncleCheese_> 's validate() method?
49: [00:36:02] * MegaMullet is now known as HyperMullet
50: [00:43:43] <cameron__> UncleCheese I dont think I can because the relationship seems to be saved independently
51: [00:44:09] <cameron__> this is using the add existing button on gridfield
52: [00:44:23] <cameron__> I am giving this plugin a go https://letscrate.com/f/monkeyben/silverstripe/gridfieldlimit.js
53: [00:46:41] <cameron__> it works
54: [01:05:40] * nickmolhoek has joined #silverstripe
55: [01:05:48] * cameron__ quit (Ping timeout: 240 seconds)
56: [01:11:45] <antmas> ss23: you ever see this? https://www.youtube.com/watch?v=Jy_6Z7tto2k&feature=kp
57: [01:12:03] <ss23> Nope :O
58: [01:12:19] <ss23> wait
59: [01:12:20] <ss23> Maybe I have
60: [01:12:52] <antmas> it's pretty good
61: [01:13:01] <ss23> I perfer SOADs vocals
62: [01:13:04] <ss23> They're more colorful
63: [01:13:04] <ss23> :D
64: [01:13:14] <wracu> Afternoon all. Anther odd question for you. How would I change the value of a field after validate()? Ie. a checkbox that is mandatory but must be checked EVERY time a save is attempted...
65: [01:13:20] <antmas> don't know how 'that' word snuck into the lyrics in the description though :P
66: [01:14:27] * UncleCheese_ quit (Quit: UncleCheese_)
67: [01:16:05] <ss23> idk, I think I prefer original, antmas
68: [01:16:20] <antmas> ss23: I'm split now actually
69: [01:27:13] * UncleCheese_ has joined #silverstripe
70: [01:27:31] <Stomach> wracu - you could set it to false in onBeforeWrite, I'm pretty sure that comes after validate
71: [01:34:31] * Danae has joined #silverstripe
72: [01:38:48] * Danae quit (Ping timeout: 240 seconds)
73: [01:40:29] * Jakx has joined #silverstripe
74: [01:40:34] <Jakx> yo
75: [01:40:40] <simon_w|air> Ho ho
76: [01:40:54] <Jakx> ^
77: [01:41:50] <Jakx> Is there a clever way to initialize SS controllers with a scheduled cron job? I'm trying to create something that will check if email updates need to be dispatched.
78: [01:42:14] <zippy__> Jakx: curl or wget to hit the page?
79: [01:42:26] <Giganaire> Jakx: http://doc.silverstripe.org/framework/en/topics/commandline#running-regular-tasks-with-cron
80: [01:43:02] <Jakx> Giganaire, !!
81: [01:43:11] <zippy__> lol giganaire
82: [01:43:15] <Colin[pi]> I'm doing some work on an old site of mine right now, this is my face: http://gfycat.com/LonelyWelltodoIndianrhinoceros
83: [01:43:22] <ss23> giga *what*?
84: [01:43:27] <Jakx> Giganaire, is this available in 2.4?
85: [01:44:35] <Giganaire> Jakx: yup
86: [01:45:02] <Jakx> Colin[pi], lol
87: [01:45:10] <Giganaire> Colin[pi]: yup, i'm currently (finally) SS3ing this site
88: [01:45:25] <Colin[pi]> looking through old code is such cringe
89: [01:45:30] <Giganaire> 'refactoring' all the code from when i started the project 3 years ago
90: [01:45:48] * antmas quit (Ping timeout: 240 seconds)
91: [01:47:27] <Jakx> Giganaire, so can I do something like this: /path/to/site_root/framework/sake mycontroller/myaction/ ?
92: [01:47:35] <Giganaire> yup
93: [01:48:16] <wracu> Stomach thanks I tried that and it works for Draft dataobjects. I think I have another issue with Live Dataobjects so might have been a red herring. Good to get a matching suggestion though!
94: [01:48:59] <Stomach> wracu - if they are versioned then you will have to do a publish after the save, or hook into an onafterpublish or similar
95: [02:00:37] * antmas has joined #silverstripe
96: [02:02:35] <antmas> mmm dat peanut slab
97: [02:02:56] <ss23> Can't say I'm a big fan of nuts.
98: [02:03:43] <Jakx> insert dick joke here
99: [02:04:31] <antmas> I'm all about the nuts
100: [02:04:46] <Giganaire> ^ hell yeah
101: [02:17:28] <Colin[pi]> antmas just loves his mouth FULL of nuts
102: [02:19:13] <antmas> the bigger the better
103: [02:19:28] <Ryan-Toast> lol
104: [02:19:42] <Stomach> caramel nuts
105: [02:19:54] <Stomach> yummmmm
106: [02:21:36] <Colin[pi]> mmm sticky nuts
107: [02:21:48] <Colin[pi]> I love covering my nuts in honey
108: [02:24:04] * antmas likes where this thread is going
109: [02:24:52] <Ryan-Toast> http://i.imgur.com/nuLCX.gif
110: [02:49:34] <antmas> anyone see anything wrong with this? http://www.sspaste.com/paste/show/535dbe92a3c9c
111: [02:50:34] <antmas> that first json_decode is expecting a string right? not any array?
112: [02:50:38] <antmas> parameter*
113: [03:00:35] <Colin[pi]> yep $value should be a string
114: [03:00:56] <Colin[pi]> but json_decode will return an assoc array
115: [03:01:49] <UncleCheese_> no, json_decode() will return an object
116: [03:01:51] <UncleCheese_> stdClass
117: [03:02:01] <UncleCheese_> unless you pass a second parameter of true
118: [03:03:29] <Colin[pi]> yep forgot to mention thats what the true is doing
119: [03:03:44] <UncleCheese_> oh right
120: [03:03:45] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
121: [03:03:45] <UncleCheese_> missed that
122: [03:05:17] <ss23> Literally 10 minutes to install all these composer dependencies
123: [03:05:19] <ss23> BAH
124: [03:05:24] <ss23> Needs more non-git versions
125: [03:05:28] <ss23> Fuck ,it's checking out behat shit too
126: [03:05:36] <ss23> --no-dev pls composer I forgot be nice :(
127: [03:08:00] <UncleCheese_> if I have to like… post something
128: [03:08:02] <UncleCheese_> what do i do?
129: [03:10:19] <Stomach> goto a post shop
130: [03:13:09] <ss23> UncleCheese_: Depends how big
131: [03:13:16] <antmas> posting things is weird
132: [03:13:17] <UncleCheese_> no, it's like a letter
133: [03:13:31] <UncleCheese_> yeah, it is.. that's why i'm asking this question after having lived here for 10 months
134: [03:13:32] <ss23> UncleCheese_: Your work probably has stamps and letters you can use for free, so just get them
135: [03:13:33] <antmas> UncleCheese_: then just put a stamp on it and drop it in a post box
136: [03:13:47] <UncleCheese_> where the post boxes?
137: [03:13:51] <ss23> IF they don't though, idea is to get a envelope and stamp, from a post office normally (you can just get it when there)
138: [03:13:54] <UncleCheese_> can i just put it in one at my house?
139: [03:13:57] <ss23> UncleCheese_: All around, there's one down on Courtenay
140: [03:13:59] <ss23> UncleCheese_: Nope
141: [03:14:04] <UncleCheese_> and put the flag up?
142: [03:14:05] <antmas> UncleCheese_: http://postmodern.nzpost.co.nz/2011/11/24/wheres-my-nearest-post-box/
143: [03:14:07] <UncleCheese_> they won't take it?
144: [03:14:26] <ss23> UncleCheese_: Yeah, they won't take it
145: [03:14:28] <antmas> you would have seen one before
146: [03:14:35] <ss23> UncleCheese_: They do if you don't live in the city, but in the city, they don't
147: [03:15:05] <UncleCheese_> worst postal service ever
148: [03:15:17] <ss23> :P
149: [03:15:23] <ss23> Really? You have the nerve to say *that*? :P
150: [03:15:24] <antmas> just lace it with anthrax
151: [03:15:24] <UncleCheese_> first, they charge me $2.90 to send something to the other side of the world
152: [03:15:27] <ss23> XD
153: [03:15:28] <UncleCheese_> then they won't even pick it up from my house?
154: [03:17:02] <ss23> Lazybones!
155: [03:17:16] <UncleCheese_> cool.. i found a post box!
156: [03:17:29] <UncleCheese_> only 100m away
157: [03:17:33] <antmas> ONLY
158: [03:17:41] <ss23> lol
159: [03:18:01] <antmas> that's like 400 steps round trip
160: [03:18:20] * babak has joined #silverstripe
161: [03:19:12] * Danae has joined #silverstripe
162: [03:28:18] * Danae quit (Ping timeout: 240 seconds)
163: [03:30:32] <antmas> anyone help me with calling a function on a field?
164: [03:30:49] <antmas> s s s s simon_w?
165: [03:32:29] <simon_w|air> $field->blah()
166: [03:33:19] <antmas> and from the template, $field.blah()?
167: [03:33:25] <simon_w|air> yes
168: [03:33:25] <UncleCheese_> or maybe he's doing it procedural
169: [03:33:32] <UncleCheese_> someMethod($field)
170: [03:33:35] * cloph_away has joined #silverstripe
171: [03:33:47] <simon_w|air> UncleCheese_, that's no method
172: [03:33:53] <UncleCheese_> !!!!!!!
173: [03:34:02] * cloph quit (Ping timeout: 252 seconds)
174: [03:34:22] <antmas> simon_w|air: with the () as well?
175: [03:34:34] <simon_w|air> antmas, don't need to
176: [03:34:51] <antmas> simon_w|air: ok I'm doing this, but it's returning nothing
177: [03:35:11] <simon_w|air> Does the method you're calling exist and return something?
178: [03:35:30] <antmas> simon_w|air: the method is simply public function toEmail() { return $this->renderWith('DataTableField'); }
179: [03:35:53] * UncleCheese___ has joined #silverstripe
180: [03:35:59] <antmas> an then $field.toEmail
181: [03:36:09] <simon_w|air> And is that actually being called?
182: [03:36:11] <antmas> $field is rendered using DataTableField.ss
183: [03:36:52] <antmas> simon_w|air: I tried to check using $grant = DataObject::get_one('Grant'); var_dump($grant->IncomeTable->toEmail()); die(); but that 500s
184: [03:37:02] <UncleCheese_> antmas: when you say "field" are you talking about a formfield or a dbfield?
185: [03:37:08] <antmas> UncleCheese_: formfield
186: [03:37:22] <UncleCheese_> and you're in a <% loop $Fields %> on the template?
187: [03:37:51] <antmas> UncleCheese_: no, just using a control and calling $field.toEmail
188: [03:37:52] <UncleCheese_> so IncomeTable is a formfield, but in your example above, you're accessing it as a property of a model, is that right?
189: [03:38:34] <zippy__> yes
190: [03:38:41] <antmas> UncleCheese_: yup
191: [03:38:47] <zippy__> how can you access a method of a formfield
192: [03:38:54] <UncleCheese_> how is a FormField a property of a model?!
193: [03:39:10] <UncleCheese_> can you paste the relevant code somewhere?
194: [03:39:21] <antmas> UncleCheese_: sure, I'll be a min
195: [03:40:01] <antmas> The field http://www.sspaste.com/paste/show/535dca720d05c
196: [03:41:55] <antmas> my submit for the form http://www.sspaste.com/paste/show/535dcadb076c0
197: [03:42:38] * CodeTrap quit (Ping timeout: 240 seconds)
198: [03:42:42] <UncleCheese_> ok
199: [03:42:45] <antmas> cut down DO http://www.sspaste.com/paste/show/535dcb181598e
200: [03:43:02] <UncleCheese_> ok, you can't have a FormField as a DB field
201: [03:43:17] <UncleCheese_> FormFields go in Forms
202: [03:43:59] <UncleCheese_> i reckon what you want is something that creates an html string representing a table that you can store in a db field, and then send the email and render that html
203: [03:44:22] <UncleCheese_> so IncomeTable needs to be HTML text
204: [03:44:43] * CodeTrap has joined #silverstripe
205: [03:44:45] <UncleCheese_> and then in your controller that handles the form submission, you're going to run ->toEmail() on that datatable field, capture the output into a variable
206: [03:45:08] <UncleCheese_> $grant->IncomeTable = $form->dataFieldByName('Whatever')->toEmail();
207: [03:45:14] <UncleCheese_> $grant->write();
208: [03:45:47] <antmas> this formfield IS in a form
209: [03:46:11] <UncleCheese_> right
210: [03:46:16] <UncleCheese_> btu it's also in your $db array
211: [03:46:28] <antmas> ah sorry
212: [03:46:31] <antmas> misread
213: [03:46:31] <UncleCheese_> 'IncomeTable' => 'DataTable' makes no sense
214: [03:46:42] <UncleCheese_> unless DataTable is a subclass of DBField
215: [03:46:48] <antmas> which it is
216: [03:47:11] <UncleCheese_> it looks like it's a subclass of FormField to me
217: [03:47:25] <antmas> DataTable extends DBField
218: [03:47:40] <UncleCheese_> oh
219: [03:47:50] <UncleCheese_> in that case you want $grant->obj('IncomeTable')->toEmail();
220: [03:48:01] <antmas> UncleCheese_: where?
221: [03:48:18] <ss23> define('MYTHEME', 'name-of-my-theme'); SSViewer::set_theme(MYTHEME);
222: [03:48:19] <ss23> pls guis :/
223: [03:48:36] <ss23> MySQLDatabase::set_connection_charset('latin1');
224: [03:48:38] <ss23> oh god
225: [03:48:38] <ss23> guis
226: [03:48:41] <ss23> ;_;
227: [03:48:48] <antmas> hahahah ^^^
228: [03:48:52] <antmas> ss23: what is?
229: [03:48:54] <ss23> :(
230: [03:49:00] <ss23> Project I'm being pulled in to work on
231: [03:49:03] <ss23> I think it's an old porject
232: [03:49:09] <antmas> MYTHEME_1ver2ab
233: [03:49:18] <ss23> yeah, 2012
234: [03:49:24] <ss23> Not too old, I would expect better
235: [03:50:25] <antmas> UncleCheese_: on submit? or on the datatablefield?
236: [03:50:36] * antmas feels his n00b ring glowing
237: [03:50:50] * travis-ci has joined #silverstripe
238: [03:50:51] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#849 (3.1 - 072e0d9 : Mateusz U): The build passed.
239: [03:50:51] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/baff7f12bd91...072e0d98053c
240: [03:50:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/23903354
241: [03:50:51] * travis-ci has left #silverstripe
242: [03:51:05] <zippy__> antmas: whereever you try and access the toEmail()
243: [03:51:20] <UncleCheese_> antmas: i'm really confused.. you have a toEmail() method defined in your datatablefield class, and also in a dbfield class called DataTable?
244: [03:51:30] <UncleCheese_> can you paste the class definition for DataTable?
245: [03:51:38] <antmas> UncleCheese_: sure
246: [03:52:07] <antmas> UncleCheese_: http://www.sspaste.com/paste/show/535dcd4e094c3
247: [03:53:03] <Giganaire> grrr
248: [03:53:15] <Giganaire> STAHP IT
249: [03:53:34] <UncleCheese_> is the database field persisting the value correctly?
250: [03:53:42] <Giganaire> StorePage_brand.ss exists, but NO, you have to keep trying to load StorePage.ss and then throwing a wobbly
251: [03:53:50] <antmas> UncleCheese_: yes
252: [03:53:55] <UncleCheese_> you have no toEmail() method defined on DataTable
253: [03:54:18] <antmas> UncleCheese_: I thought that would be defined on DataTableField?
254: [03:54:30] <UncleCheese_> no, you're confusing FormFields and DBFields
255: [03:54:35] <antmas> oh
256: [03:54:35] <UncleCheese_> they're very different
257: [03:54:44] <UncleCheese_> a formfield takes user input and puts it in a DBField
258: [03:54:51] <UncleCheese_> they know nothing about each other
259: [03:55:09] <antmas> ok, so to get it out, I need to take it from DBField?
260: [03:55:31] <UncleCheese_> well
261: [03:55:54] <UncleCheese_> it's really specific to your app, but it looks like what you're looking to do is pass json to a template and render it as html suitable for an email
262: [03:55:56] <UncleCheese_> is that right?
263: [03:56:51] <antmas> UncleCheese_: bingo
264: [03:56:55] <UncleCheese_> so a toEmail() method on your DataTable class might look something like this
265: [03:57:03] <antmas> I can get it to the email just fine, but yeah, comes out as json
266: [03:57:19] <Colin[pi]> classic json
267: [03:57:27] <UncleCheese_> return $this->customise(Convert::json2array($this->value))->renderWith('DataTable');
268: [03:58:08] <antmas> UncleCheese_: I'll try that, I just attempted it using my old method and it did render a table, but without the data
269: [03:58:40] * UncleCheese___ quit (Quit: UncleCheese___)
270: [03:59:09] * SightUnseen has joined #silverstripe
271: [03:59:13] * SightUnseen has left #silverstripe
272: [04:00:13] <antmas> UncleCheese_: no dice
273: [04:00:28] <UncleCheese_> what does that mean?
274: [04:00:35] <antmas> UncleCheese_: ViewableData->customise(): $data must be an associative array or a ViewableData instance
275: [04:00:44] <antmas> from using public function toEmail() { return $this->customise(Convert::json2array($this->value))->renderWith('DataTableField'); }
276: [04:00:56] <UncleCheese_> and what is it getting?
277: [04:01:32] <antmas> errrr.. that error^^
278: [04:01:45] <UncleCheese_> right, but what customise receiving
279: [04:03:30] <ss23> guis I need YML help
280: [04:03:35] <antmas> how do I check? var_dump?
281: [04:03:44] <ss23> I'm trying to set RecaptchaField::public_api_key (and private)
282: [04:03:57] <zippy__> ss23: just do it in _config.php
283: [04:04:03] <ss23> Only for dev and test though -- https://gist.github.com/ss23/11361499
284: [04:04:04] <ss23> zippy__: shh!
285: [04:04:05] <zippy__> you know, the better way
286: [04:04:05] <ss23> :P
287: [04:04:10] <ss23> Why this doesn't work?
288: [04:04:38] <simon_w|air> ss23, because you're doing it wrong :p
289: [04:04:47] <UncleCheese_> just var_dump(Convert::json2array($this->value));
290: [04:05:03] <simon_w|air> http://doc.silverstripe.org/framework/en/topics/configuration#exclusionary-rules
291: [04:05:10] <ss23> simon_w|air: I know *that*!
292: [04:05:42] <zippy__> oh yea, thats some sexy logic there
293: [04:05:59] <antmas> UncleCheese_: it's getting an array
294: [04:06:04] <antmas> I can see the json there
295: [04:06:05] <UncleCheese_> yay!
296: [04:06:11] <antmas> huzzah!
297: [04:06:19] <UncleCheese_> an associative array?
298: [04:06:38] <antmas> UncleCheese_: sorry, n00b here, how can I tell?
299: [04:06:57] <UncleCheese_> well probably not since it's erroring saying it's not an associative array
300: [04:07:03] <ss23> simon_w|air: Great, now I get *more* errors
301: [04:07:03] <antmas> :P
302: [04:07:06] <UncleCheese_> associative arrays are key/value pairs. 'foo' => 'bar'
303: [04:07:25] * ss23 cries
304: [04:07:26] <ss23> :(
305: [04:07:37] * zippy__ has no pitty for ss23
306: [04:07:41] <zippy__> none
307: [04:07:48] <UncleCheese_> indexed arrays are just lists .. array ('foo', 'bar')
308: [04:07:49] * zippy__ looks under his desk - none found
309: [04:07:53] <ss23> https://gist.github.com/ss23/11361499 simon_w|air
310: [04:07:54] <ss23> :(
311: [04:07:55] <antmas> UncleCheese_: yeah
312: [04:08:00] <antmas> SO CROSE!!!!
313: [04:08:11] <UncleCheese_> so i reckon you've got an indexed array of rows
314: [04:08:19] <zippy__> ss23: missing the only?
315: [04:08:33] <ss23> I don't want an Only? o.o
316: [04:08:34] <UncleCheese_> array( array('key' => 'val), array('key' => 'val') );
317: [04:08:57] <ss23> If I remove the trailing ---'s, it doesn't error on the YML parsing anymore, but still doesn't work
318: [04:09:00] <antmas> UncleCheese_: yeah that sounds right
319: [04:09:03] <ss23> Okay zippy__ you win, the docs are bad enough that I cbf doing this shit
320: [04:09:15] <zippy__> you blame the docs?
321: [04:09:23] <ss23> The docs are at fault, aren't they?
322: [04:09:33] <ss23> I guess I can blame simon_w|air too, for linking them without explaining how they fail at it
323: [04:09:36] <simon_w|air> Depends on what the error is
324: [04:09:36] <ss23> :D
325: [04:09:59] <simon_w|air> Though I have a feeling it's because the yaml parser's a bunch of fail
326: [04:10:28] <antmas> UncleCheese_: Ok, so how to proceeds?
327: [04:10:30] <antmas> :D
328: [04:10:45] <UncleCheese_> so just build out an array to feed to the template
329: [04:10:50] <simon_w|air> ss23, remove the last block separator
330: [04:10:52] <UncleCheese_> something
331: [04:10:53] <UncleCheese_> like this: http://www.sspaste.com/paste/show/535dd1abb2e16
332: [04:11:05] <UncleCheese_> and then on the template you want <% loop $Rows %>
333: [04:11:25] <antmas> ok cool
334: [04:11:34] <antmas> UncleCheese_: I'll give it a crack
335: [04:11:39] <UncleCheese_> or just update the toEmail method to use whatever loop you're using in the template. either way
336: [04:12:29] <wracu> argh
337: [04:12:40] <wracu> how do I set a CMS label on a checkbox (stupid question)
338: [04:13:54] <UncleCheese_> new CheckboxField('Name','Label')
339: [04:15:22] <wracu> you'd think.... but no
340: [04:15:51] <wracu> the 'name' part associates the checkbox with the correct field but the CMS shows a blank where the label would be
341: [04:16:09] <wracu> the label appears on the right of the checkbox...
342: [04:16:40] <wracu> I want both the right text, and a regular Field Label like the other CMS fields :(
343: [04:17:04] <UncleCheese_> can i see your code?
344: [04:18:28] <wracu> new TextField('Name', '* Name', '', 250), works as expected
345: [04:18:58] <antmas> UncleCheese_: almost there, just got Invalid argument supplied for foreach() for that array build
346: [04:19:12] <antmas> I have forgotten how to computer today
347: [04:19:28] <wracu> new CheckboxField('Terms','I acknowledge the terms etc'), shows a checkbox (in line with the above textbox, and including the text on the right... but the label in the left column is blank)
348: [04:19:54] <UncleCheese_> antmas: you probably want to check that $data is an array before stepping into the loop.. that's good practice
349: [04:20:35] <UncleCheese_> wracu: check the dom and make sure the label is rendering to the document and maybe being hid by css?
350: [04:21:01] <wracu> ahhh.... not quite
351: [04:21:06] <wracu> so I should have inspected first
352: [04:21:18] <wracu> but it seems the 'Label' is class 'right' and thats the text....
353: [04:21:32] <UncleCheese_> yeah, i dunno about all that
354: [04:21:36] <UncleCheese_> i'm not much of a css guy
355: [04:21:55] <UncleCheese_> i still don't get why we don't use font tags anymore
356: [04:22:01] <wracu> no prob. long story short... the label IS showing... just not where I expect
357: [04:22:32] <wracu> can work with that.. lord
358: [04:22:56] <antmas> would this work UncleCheese_ ? <% loop $Rows %>$IncomeTable<% end_loop %></p>
359: [04:23:02] <antmas> wait...
360: [04:23:03] <UncleCheese_> no
361: [04:23:10] <zippy__> ...
362: [04:23:15] <antmas> fuck
363: [04:23:20] <antmas> <.<
364: [04:23:23] <ss23> lol
365: [04:23:26] <ss23> Poor antmas
366: [04:23:27] <ss23> :D
367: [04:23:29] <UncleCheese_> <% loop $Rows %><tr><td>$SomePropertyOfYourJson</td></tr><% end_loop %>
368: [04:23:30] <antmas> nevermind that one
369: [04:23:43] <antmas> PRETEND IT DIDN'T HAPPEN GUIS
370: [04:23:56] <UncleCheese_> why are you talking to your GUIs?
371: [04:24:14] <zippy__> antmas: http://logs.simon.geek.nz/index.php?date=2014-04-28#log_1262553
372: [04:24:26] <antmas> zippy__: STAAAHHHHP
373: [04:24:29] <antmas> ;__;
374: [04:27:38] <Colin[pi]> my feet are cold, fuck you Canberra
375: [04:28:58] * simon__w has joined #silverstripe
376: [04:30:24] <ss23> Colin[pi]: lol
377: [04:30:29] <ss23> Shouldn't simon_w|air be the one with cold feet?
378: [04:30:32] <ss23> BA DUM TISH
379: [04:30:32] * simon__w|air has joined #silverstripe
380: [04:30:59] <antmas> ss23: I think you just redeemed me
381: [04:31:01] <antmas> :D
382: [04:31:21] <antmas> Colin[pi]: WHERE ARE YOUR SOCKS BOI!
383: [04:31:29] * simon_w quit (Ping timeout: 264 seconds)
384: [04:32:18] * simon_w|air quit (Ping timeout: 276 seconds)
385: [04:32:31] <simon__w|air> Caitlin's the one with cold feet!
386: [04:32:35] <simon__w|air> Her feet are freezing!
387: [04:33:16] * simon__w|air is now known as simon_w|air
388: [04:33:21] <ss23> :D
389: [04:33:36] <Colin[pi]> antmas: got socks on, aint doin SHIT
390: [04:33:36] <simon_w|air> Also, I fixed the wifi here so that computers (and thus the printer) can actually talk to each other!
391: [04:33:46] <ss23> Firewalls for noobs
392: [04:33:50] <ss23> real men 100% open
393: [04:34:03] <simon_w|air> All it did was filter multicast
394: [04:34:06] <antmas> woah, you have a printer simon_w|air ?
395: [04:34:09] <Colin[pi]> ss23's network SSID is "comeatmebro"
396: [04:34:14] <antmas> you never see them in the wild
397: [04:34:16] <ss23> ^^^
398: [04:34:18] <simon_w|air> Like, I could still use IPs to talk directly
399: [04:34:20] <ss23> hehehehe
400: [04:35:08] <zippy__> oh yus! now we can all learn to code like ss23 -> https://codebabes.com/
401: [04:35:41] <antmas> :O
402: [04:35:46] <ss23> XD
403: [04:35:52] <ss23> http://codedicks.com
404: [04:35:54] <ss23> For yo, zippy__ <3
405: [04:35:58] <zippy__> w00t
406: [04:37:03] <antmas> I think I might spend the evening spamming the backpacker's wifi
407: [04:37:03] <zippy__> Rockstar css here I come, https://codebabes.com/courses/css-virgin
408: [04:38:08] * antmas tries feverishly to think of jokes about codebabes
409: [04:38:17] <Giganaire> 07:31 < Colin[pi]> ss23's network SSID is "comeatmebro"
410: [04:38:23] <Giganaire> mine is "NZ Police Drug Unit"
411: [04:38:29] <Colin[pi]> lol
412: [04:38:33] <Giganaire> in my neighbourhood, that probably worries people
413: [04:38:48] <antmas> mine was MilfHunter for a while
414: [04:38:59] <Colin[pi]> HTML virgin has impressive... left and right padding
415: [04:39:00] <antmas> got some mad tries at my network lol
416: [04:39:24] <Colin[pi]> antmas: lol
417: [04:39:48] <Colin[pi]> SSID: "FreePorn" 265,346 connection attempts detected
418: [04:39:53] <antmas> lol
419: [04:40:21] <Colin[pi]> then again, who actually pays for porn these days?
420: [04:40:33] <antmas> when we first moved I dubbed it BearJew and all the backpackers stopped trying to connect
421: [04:40:44] <Colin[pi]> hahaha
422: [04:44:12] <antmas> see yall tomorrow :D
423: [04:44:39] <antmas> thanks zippy__ and UncleCheese_ I'll have another shot at it in ze moin
424: [04:45:28] <Colin[pi]> cya man
425: [04:48:48] * antmas quit (Ping timeout: 240 seconds)
426: [04:57:26] * UncleCheese_ quit (Quit: UncleCheese_)
427: [04:58:23] * UncleCheese has joined #silverstripe
428: [05:02:15] * nickmolhoek quit (Quit: nickmolhoek)
429: [05:26:18] <Colin[pi]> "There need to be BACK BUTTON where any time customers can go back."
430: [05:26:22] <Colin[pi]> >_<
431: [05:27:33] * sunzofman1 quit (Read error: No route to host)
432: [05:29:51] * anselmdk has joined #silverstripe
433: [05:32:48] * an_Eskimo quit (Ping timeout: 240 seconds)
434: [05:46:56] * Ryan-Toast quit (Quit: Ryan-Toast)
435: [05:48:23] * UncleCheese quit (Quit: UncleCheese)
436: [05:49:38] * zippy__ quit (Ping timeout: 240 seconds)
437: [06:31:12] <simon_w|air> Colin[pi], you can send me moneys now! :p
438: [06:31:36] <Colin[pi]> simon_w|air: ?
439: [06:31:50] <ss23> Colin[pi]: Take a screenshot of the browser, showing the back button
440: [06:31:55] <simon_w|air> Colin[pi], got my bank account set up :p
441: [06:32:02] <ss23> fuck, reminds me
442: [06:32:07] <ss23> I kind of have some debt in AU
443: [06:32:10] <ss23> simon_w|air: Still got NZ accounts?
444: [06:32:16] <ss23> Can I xfer to NZ account, and you xfer to AU account?
445: [06:32:32] <ss23> Doing an xfer internationally has fees, so if you're doing it anyway...
446: [06:32:33] <simon_w|air> ss23, yes and no
447: [06:32:44] <ss23> What? Why? :(
448: [06:32:46] <simon_w|air> Do you know how much an international transfer costs?
449: [06:32:47] <Colin[pi]> ss23: that's exactly what I did
450: [06:32:58] <ss23> simon_w|air: Something like $10 from memory
451: [06:33:05] <ss23> Been a long time since I've done it
452: [06:33:09] <simon_w|air> And then the minimum amount
453: [06:33:18] <ss23> simon_w|air: I meant, if you have the accounts open *anyway*, does it matter?
454: [06:33:33] <ss23> I don't want you to do an int transfer, just like, I pay you money, you pay me money
455: [06:33:36] <ss23> :D
456: [06:33:43] <simon_w|air> Yes, since one account has no money in it :p
457: [06:33:50] <ss23> Psh
458: [06:33:51] <ss23> Annoying
459: [06:33:53] <ss23> :(
460: [06:33:57] <ss23> I really need to pay it
461: [06:34:01] <ss23> It's getting like $5 interest a month atm
462: [06:34:05] <ss23> I mean losing that
463: [06:34:40] <ss23> $62 AUD atm
464: [06:34:45] <ss23> I really really needa close that account...
465: [06:34:53] <Colin[pi]> DO IT
466: [06:35:00] <ss23> Colin[pi]: I CAN'T, UNTIL I SETTLE IT
467: [06:35:04] <ss23> AND I DON'T WANNA DO INT TRANSFER
468: [06:35:07] <ss23> Fuck it, guess I can
469: [06:35:07] <ss23> :/
470: [06:35:08] <ss23> Still
471: [06:35:09] <ss23> bah
472: [06:35:14] <Colin[pi]> simon_w|air: if you want a good high interest online-only account, I recommend UBank
473: [06:35:30] <simon_w|air> Colin[pi], what if I want money to pay for things first?
474: [06:35:42] * simon_w|air has rather a large amount of credit card to pay off
475: [06:35:43] <Colin[pi]> then I recommend robbing a bank
476: [06:36:34] <ss23> wtf
477: [06:36:40] <ss23> I don't even see where international transfer is in ASB
478: [06:36:40] <ss23> :/
479: [06:36:50] <simon_w|air> ss23, probably have to get it enabled
480: [06:36:56] <ss23> You can use this section to order foreign currency notes, drafts and make an international transfer.
481: [06:37:01] <ss23> WHY IS THIS IN THE FOREIGN EXCHANGE SECTION
482: [06:37:06] <ss23> I mean, technically it is I guess... but still...
483: [06:37:39] <ss23> International Money Transfer Fee 20.00
484: [06:37:40] <ss23> daamn
485: [06:37:49] <ss23> simon_w|air: Simce I'm xfering, you want any money to put in your AU account while I'm at it
486: [06:38:07] <simon_w|air> Nah, I'll just get a job
487: [06:38:12] <simon_w|air> Or bug Colin[pi] ;)
488: [06:38:13] <ss23> mmk, your chioce!
489: [06:38:17] <ss23> :P
490: [06:39:36] <Colin[pi]> hmm maybe I can put him to work
491: [06:39:41] <simon_w|air> Oh man, it's the old ANZ internet banking!
492: [06:39:47] <simon_w|air> So bad
493: [06:39:48] <ss23> yeah
494: [06:39:51] <ss23> AU internet banking is *really* bad
495: [06:39:56] <Colin[pi]> ^
496: [06:40:01] <ss23> Even worse was the low penetration of EFTPOS there
497: [06:40:01] <ss23> :/
498: [06:40:10] <simon_w|air> Oh, there's plenty of EFTPOS
499: [06:40:12] <ss23> Blows my mind that stores can survive without having EFTPOS
500: [06:40:18] <simon_w|air> Just with friggin minimums
501: [06:40:21] <ss23> lol
502: [06:40:38] <simon_w|air> Stupid banks and their transaction fees
503: [06:40:40] <Colin[pi]> oh you wanted to use EFTPOS? You need to spend at least $10
504: [06:41:05] <simon_w|air> Oh, you're using a credit card? That's another 5%
505: [06:41:07] <ss23> Hmm, I wonder what my last address in AU was, it makes me enter it :O
506: [06:41:16] <ss23> simon_w|air: Lots of small places here do CC surcharge too
507: [06:41:16] <ss23> :P
508: [06:41:27] <ss23> Makes sense, since banks charge a surcharge for it
509: [06:41:32] <simon_w|air> ss23, lots of small places in NZ just don't bother with it
510: [06:43:20] <ss23> To ensure your security we require you to generate and enter a NetCode SMS to continue.
511: [06:43:24] <ss23> fuuuck
512: [06:43:24] <ss23> :/
513: [06:43:48] <ss23> Now I have to try remember my number by heart
514: [06:43:50] <ss23> uh
515: [06:43:52] <ss23> My address
516: [06:44:20] <simon_w|air> So much effort today spent swapping SIMs, just to change my RealMe 2FA number
517: [06:45:57] <ss23> ohh, exchange rate is good atm
518: [06:45:58] <ss23> :O
519: [06:59:17] * SightUnseen has joined #silverstripe
520: [06:59:40] * SightUnseen has left #silverstripe
521: [07:10:57] <ss23> http://api.silverstripe.org/3.1/source-class-Requirements_Backend.html#570-587
522: [07:11:03] <ss23> This function is somewhat... underwhelming.
523: [07:11:12] <ss23> I expected something different....
524: [07:11:50] <Colin[pi]> lol yeah it's pretty simple
525: [07:12:19] <Colin[pi]> but it makes sense that it's basically a wrapper for customScript()
526: [07:16:02] * ocm has joined #silverstripe
527: [07:16:10] <ocm> howdy
528: [07:16:30] <Colin[pi]> hai ocm
529: [07:19:03] * stefanovic72 has joined #silverstripe
530: [07:24:02] <stefanovic72> Hello, I have a question and I hope someone can help me.
531: [07:24:08] <stefanovic72> I use a gridfield, inside the gridfield there is a delete and edit button (in the last column).
532: [07:24:20] <stefanovic72> When I open the edit form (for one record in the gridfield) there is a save button and a delete button in the edit form.
533: [07:24:27] <stefanovic72> I want to remove the delete button in the edit form but not in the gridfield itself.
534: [07:25:13] <stefanovic72> I tried to accomplish this by changing the permission
535: [07:25:21] <stefanovic72> public function canDelete($member = null) { return false; }
536: [07:26:03] <stefanovic72> but the result is the delete button disappears in the gridfield (row) as well as on the editform
537: [07:26:11] <stefanovic72> Any idea how to do this?
538: [07:26:14] <Zauberfisch> stefanovic72: canDelete will remove all delete buttons
539: [07:26:20] <Zauberfisch> not just the one in the form
540: [07:26:27] <Zauberfisch> try using getCMSActions
541: [07:26:31] <Zauberfisch> on the dataobject
542: [07:26:40] <Zauberfisch> public function getCMSActions() {
543: [07:26:49] <Zauberfisch> $actions = parent::getCMSActions();
544: [07:26:58] <Zauberfisch> $actions->removeByName('Delete');
545: [07:27:01] <Zauberfisch> return $actions;
546: [07:27:02] <Zauberfisch> }
547: [07:27:06] <Zauberfisch> or something like tat
548: [07:27:10] <Zauberfisch> *that
549: [07:27:33] <stefanovic72> Ok, thanks a lot Zauberfisch!
550: [07:27:37] <Zauberfisch> I am just guessing here, consider it pseudo code)
551: [07:28:20] <stefanovic72> I'm gonna play with that. Yes, I consider it als pseudo but I hope it points me in the right direction. Thanks again!
552: [07:32:11] <Zauberfisch> not a 100% sure though
553: [07:32:38] <Zauberfisch> it could be that the edit form of gridfield injects that delete button after the getCMSActoins
554: [07:32:55] <ss23> simon_w|air: You around?
555: [07:33:06] <simon_w|air> Just
556: [07:42:35] <simon_w|air> Second day in the country and on hold to a government department
557: [07:46:35] * violetina quit (Remote host closed the connection)
558: [07:48:59] * violetina has joined #silverstripe
559: [07:49:41] <ss23> ATO?
560: [07:57:38] * SightUnseen has joined #silverstripe
561: [08:10:24] * kinglozzer has joined #silverstripe
562: [08:18:17] * Colin[pi] quit (Ping timeout: 264 seconds)
563: [08:27:17] * pazuur has joined #silverstripe
564: [08:28:39] <pazuur> Hello! Can someone tell me how to refer to the same page when adding url param id to show the list and the selected item?
565: [08:29:09] * zipp has joined #silverstripe
566: [08:32:41] * Pyvexik has joined #silverstripe
567: [08:32:50] <Pyvexik> dammit ss23
568: [08:33:01] <Pyvexik> damn you and being young or something.
569: [08:34:20] * iamss has joined #silverstripe
570: [08:35:16] <iamss> hello SS! is there a widget in SS that can upload image?
571: [08:35:26] <Pyvexik> I went to bed this morning, now it's still the morning and I'm at work, and fffffffffffffffff and stuff.
572: [08:35:37] <Pyvexik> iamss: you mean like an uploadfield?
573: [08:35:58] <iamss> Pyvexik: yes, the ability to upload from the widget
574: [08:36:02] <Pyvexik> no.
575: [08:36:08] <Pyvexik> no one uses widgets.
576: [08:36:58] <Pyvexik> kinglozzer: I was going to ask you a question, but I entirely forgot what it was.
577: [08:37:10] <iamss> Pyvexik: because I will create an advert on the side of my pages
578: [08:37:27] <Pyvexik> uploading is not an advert.
579: [08:37:28] <iamss> Pyvexik: so I thought of creating a widget
580: [08:38:33] <iamss> Pyvexik: but you need have the ability to upload an image and an external link so when they click the image on the side of the page it redirects you to the assigned url
581: [08:39:29] <kinglozzer> Pyvexik: Hmm, possible topics: SS, cars, football, UK, pikeys
582: [08:39:40] <kinglozzer> Anything jogged your memory? :P
583: [08:39:43] <Pyvexik> pikeys!
584: [08:39:46] <Pyvexik> brilliant.
585: [08:40:11] <Pyvexik> Wish I had a snatchesque bareknuckle boxing champ living over the road when I got done in.
586: [08:40:36] <Pyvexik> had pikeys parked in the park for a while now, easter fair or something (show rides, dogems, etc)
587: [08:40:56] <Pyvexik> kinglozzer: actually I think it was that Awolnation is coming to Norwich.
588: [08:41:35] * kinglozzer has no idea what/who that is ><
589: [08:41:54] <Pyvexik> kinglozzer: http://www.youtube.com/watch?v=PPtSKimbjOU
590: [08:42:47] <Pyvexik> iamss: I don't think you've really thought this through at all.
591: [08:42:53] <kinglozzer> Can't watch it atm, remind me around 12:30 and I'll watch it at lunch
592: [08:43:09] <Pyvexik> kinglozzer: just a song, no need to 'watch' as such
593: [08:43:37] <kinglozzer> Yeah but I can't listen to it either :P don't have any headphones and the office is silent :<
594: [08:43:48] <Pyvexik> oh dark :<
595: [08:46:32] <ss23> 20:33:02 < Pyvexik> damn you and being young or something.
596: [08:46:34] <ss23> help what
597: [08:46:35] <ss23> ;_;
598: [08:49:05] <Pyvexik> ss23: read more.
599: [08:50:15] * qlex has joined #silverstripe
600: [08:51:59] <ss23> I hear " Pyvexik is an old man"
601: [08:52:04] <ss23> and now I go to bed, sicne I was up late last night
602: [08:52:06] * ss23 flops into bed
603: [08:56:01] <Pyvexik> indeed.
604: [09:04:17] * svandragt has joined #silverstripe
605: [09:07:48] * pazuur quit (Ping timeout: 240 seconds)
606: [09:09:08] <Pyvexik> so irogue, did you actually sign up to be a Giganaire ? Or you just taking the piss?
607: [09:09:23] <svandragt> I would like a user to edit only part of a certain page type (in my case, add slideshow images only). What's the best approach? the canEdit / canDelete only applies on a page type level?
608: [09:09:39] <Pyvexik> svandragt: interesting.
609: [09:09:54] <Pyvexik> I would say that you'll need to check permissions in getCMSFields.
610: [09:10:16] <Pyvexik> to make the fields readonly or writable.
611: [09:10:21] <svandragt> use case: It's a homepage that has slideshow images. press officers only edit news related content
612: [09:10:32] <Pyvexik> yeh makes sense.
613: [09:11:12] <Pyvexik> see if there's a way to make an entire fieldlist read only
614: [09:11:17] <Pyvexik> that'll save you some time.
615: [09:11:24] <Pyvexik> then just enable what you need.
616: [09:11:27] <svandragt> Pyvexik: I thoughut about adding a SlideShow holder which is assigned to the homepage by 'homepage editors' and have press officers create the slideshow holders and their items maybe more flexible
617: [09:11:45] <Pyvexik> svandragt: could be, yeah.
618: [09:11:51] <Pyvexik> model admin it all up
619: [09:12:06] <Pyvexik> that's another way to solve it
620: [09:13:43] <svandragt> Pyvexik: that sounds better although I'd have to write a deployment task to assign all orphaned items to the first holder.
621: [09:14:09] * SightUnseen has left #silverstripe
622: [09:14:26] * Guits has joined #silverstripe
623: [09:17:30] <Pyvexik> svandragt: which sounds better?
624: [09:17:48] * iamss quit (Ping timeout: 240 seconds)
625: [09:19:30] <svandragt> Pyvexik: thanks for your help. I think I'll go with the model admin way it sounds less of a hack permission wise because I can keep using canEdit etc; unfortunately I implemented the slideshow images as a dataextension initially so it's going to be a bit of work now to migrate the content.
626: [09:22:10] * ARNHOE has joined #silverstripe
627: [09:23:19] <svandragt> great they will be recreated, no migration needed.
628: [09:27:38] <kinglozzer> If I have a 'Type' database enum, and I want to select a template based upon that type, what's the method I need to override?
629: [09:28:24] <kinglozzer> getViewer or something?
630: [09:28:59] <Pyvexik> kinglozzer: possibly. forTemplate may also do it.
631: [09:29:15] <Pyvexik> get viewer is a bit further up.
632: [09:31:08] <kinglozzer> Looking at getViewer now, I can do it with that but I'd basically have to copy + paste the whole method just to add that one bit of logic :|
633: [09:31:48] * wracu quit (Ping timeout: 240 seconds)
634: [09:33:01] <kinglozzer> Or I could set Controller->template
635: [09:33:13] <kinglozzer> That'll probably be easier
636: [09:38:25] <kinglozzer> Ah, that works - in PageController::index(), $this->template = array('Mytemplates, 'foo'); return array();
637: [09:39:26] * UncleCheese_ has joined #silverstripe
638: [09:41:51] <svandragt> kinglozzer: not with that single quote before Mytemplates
639: [09:42:22] <svandragt> kinglozzer: or missing single quote after ;)
640: [09:42:34] <kinglozzer> (╯°□°)╯︵ ┻━┻
641: [09:42:42] <kinglozzer> :P
642: [09:42:58] <svandragt> looks like you're throwing tables at me
643: [09:45:11] <kinglozzer> Ugh, brb, photoshop has decided it doesn't like my mac having any memory spare for anything else
644: [09:45:22] * kinglozzer quit ()
645: [09:49:55] * kinglozzer has joined #silverstripe
646: [09:50:45] <Pyvexik> kinglozzer: good to know , I forgot abuout the inbuilt overrides ($this->template & $this->templates) :>
647: [09:55:09] <kinglozzer> Yeah, went for $this->template instead of templates as I'm not using any actions other than index, so it's a bit easier/cleaner
648: [09:55:33] <kinglozzer> $this->templates is for specifying templates for specific actions :>
649: [09:57:13] <Pyvexik> kinglozzer: well, yeah it's a bit less *, but otherwise the same.
650: [09:57:37] <Pyvexik> not for _specific_ actions (iirc), although can be used like that
651: [09:57:49] <Pyvexik> meanwhile
652: [09:58:16] * Pyvexik merges the difference between core.css and core2.css used in master view files 'parent' and 'parent4'
653: [09:58:33] <Pyvexik> project of mess :<
654: [10:15:33] * pazuur has joined #silverstripe
655: [10:16:43] <pazuur> Hello! How can i show all events with unclecheeses eventcalender without the monthjumper?
656: [10:18:32] <Zauberfisch> best ask UncleCheese_
657: [10:18:37] * babak quit (Quit: Connection closed for inactivity)
658: [10:19:01] <UncleCheese_> pazuur: i’m not sure hwat you mean
659: [10:19:46] <pazuur> I would like show all event pages in the eventlist without the use of the monthjumper
660: [10:21:11] <Pyvexik> just don't filter on a date?
661: [10:22:02] <UncleCheese_> or just set it to a really wide range
662: [10:22:24] <UncleCheese_> you can configure in the CMS what shows on the calendar by default
663: [10:25:49] <pazuur> @UncleCheese Got it! Thanks!
664: [10:36:10] * zipp quit (Quit: zipp)
665: [10:45:29] * qlex has left #silverstripe
666: [10:46:59] * cloph_away is now known as cloph
667: [11:00:18] * pazuur quit (Ping timeout: 240 seconds)
668: [11:13:59] * sunzofman1 has joined #silverstripe
669: [11:16:51] * simon__w quit (Quit: This computer has gone to sleep)
670: [11:21:20] * travis-ci has joined #silverstripe
671: [11:21:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2392 (3.1 - 280ab2d : Ingo Schommer): The build has errored.
672: [11:21:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7188eab90536...280ab2dcd321
673: [11:21:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23923517
674: [11:21:20] * travis-ci has left #silverstripe
675: [11:21:52] * UncleCheese_ quit (Quit: UncleCheese_)
676: [11:25:14] * pazuur has joined #silverstripe
677: [11:29:42] <pazuur> Hello! How can i translate $StartDate.Format(l) (names of days) in a loop (template). I am using the events loop from unclecheeses event-calendar
678: [11:35:31] <Zauberfisch> .Format(something) is using the php date(something)
679: [11:35:47] <Zauberfisch> meaning you can use all formats that work with date()
680: [11:38:17] <pazuur> <Zauberfisch> That would be great, but days will do for now.
681: [11:38:51] <kinglozzer> pazuur: http://php.net/manual/en/function.date.php
682: [11:39:05] * travis-ci has joined #silverstripe
683: [11:39:05] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2392 (3.1 - 280ab2d : Ingo Schommer): The build passed.
684: [11:39:05] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7188eab90536...280ab2dcd321
685: [11:39:05] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23923517
686: [11:39:05] * travis-ci has left #silverstripe
687: [11:39:49] <pazuur> Kinglozzer This i now but i need a translations out of english
688: [11:41:45] <pazuur> Sorry... "i know"
689: [11:42:35] * travis-ci has joined #silverstripe
690: [11:42:35] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#851 (3.1 - 66919ed : Ingo Schommer): The build passed.
691: [11:42:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/072e0d98053c...66919ed0cc81
692: [11:42:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/23923538
693: [11:42:35] * travis-ci has left #silverstripe
694: [11:44:53] <Pyvexik> pazuur: you asked how you can loop a date. I'm not sure what you're on about, or what it has to do with translation.
695: [11:45:15] <Pyvexik> Especially since dates are numbers, which are pretty universal.
696: [11:46:59] <pazuur> I am aware of PHP's date formats, but i want to translate "Saturday" into another language. I am looping an eventslist from the eventscalendar and use a date format to show the names of days. These names i want to translate.
697: [11:47:55] <pazuur> I am using $StartDate.Format(l) (lowercase L)
698: [11:48:09] <Pyvexik> well it just puts out PHP's datetime format function return. So you're asking to translate PHP.
699: [11:48:59] <Pyvexik> http://uk1.php.net/manual/en/datetime.format.php
700: [11:49:11] <pazuur> I wondered if i could translate it inside the template
701: [11:49:20] <kinglozzer> pazuur: FormatI18N(l)
702: [11:49:39] <pazuur> Tried that one
703: [11:49:52] <kinglozzer> Then your environment is set up wrong
704: [11:50:09] <Pyvexik> bummer for you pazuur: http://uk1.php.net/manual/en/datetime.format.php#refsect1-datetime.format-notes
705: [11:50:19] <Pyvexik> That's pretty shit of PHP.
706: [11:50:21] <Pyvexik> :<
707: [11:50:31] <kinglozzer> Pyvexik: https://php.net/strftime
708: [11:50:39] * Pies has joined #silverstripe
709: [11:50:39] <Pyvexik> kinglozzer: http://api.silverstripe.org/3.1/source-class-Date.html#130-141
710: [11:50:58] <kinglozzer> ?
711: [11:51:36] <Pyvexik> (s)he's got a date, wants to output the day in presumably Dutch.
712: [11:51:57] <kinglozzer> Yeah
713: [11:52:01] <Pyvexik> $Date.Format(blah) uses php DateTime::format
714: [11:52:10] <Pyvexik> DateTime::format is NOT locale aware.
715: [11:52:10] <kinglozzer> FormatI18N doesn't though ^^
716: [11:52:31] <Pyvexik> oic, right you are ken.
717: [11:52:32] <Pyvexik> http://api.silverstripe.org/3.1/source-class-Date.html#149
718: [11:52:39] <Pies> Hi, I have completely no experience with silverstripe, I just got site to migrate from one server to another. In mysite/config.php I have Object::add_extension('Something, 'SomethingDecorator');
719: [11:52:46] <pazuur> i18n::set_locale('nl_NL'); in my config so Dutch yeah...:-)
720: [11:52:56] <Pyvexik> pazuur: but your PHP is not.
721: [11:53:05] <Pyvexik> that's Silverstripe.
722: [11:53:18] <Pyvexik> Pies: ok?
723: [11:53:35] <Pyvexik> copy files, check permissions, problem solved.
724: [11:53:43] <kinglozzer> Pyvexik: Use setlocale()
725: [11:53:49] <kinglozzer> Not Pyvexik
726: [11:53:50] <Pyvexik> pazuur: ^
727: [11:53:50] <Pies> and such class is in mysite/code. When I try enter site, I get "Fatal error: Object::add_extension() - Can't find extension class for " - what could be issue?
728: [11:53:52] <kinglozzer> pazuur: ^^
729: [11:53:54] <Pyvexik> :>
730: [11:53:55] <kinglozzer> :P
731: [11:53:57] <pazuur> so $StartDate.FormatI18N(l) will not work?
732: [11:54:04] <kinglozzer> pazuur: Yes it will work
733: [11:54:07] <kinglozzer> If you use setlocale()
734: [11:54:08] <Pyvexik> Pies: you are missing a '
735: [11:54:11] <Pyvexik> look closer
736: [11:55:02] <Pies> Pyvexik: sorry, there was "'", I just deleted it accidentally during changing name on irc
737: [11:55:06] <Pies> hmm
738: [11:55:09] <Pyvexik> ic
739: [11:55:24] <Pyvexik> well, for starters what version of SilverStripe are you using?
740: [11:55:37] <Pies> in mysite/code is file SomethingDecorator.php, but I don't see SOmething.php there...
741: [11:56:07] <Pyvexik> Pies: classes do not have to be strictly 1 per file. Use grep to find "class Something"
742: [11:56:39] <Pyvexik> and it may not be mysite file, it might be core or module code that's being extended.
743: [11:57:01] <Pyvexik> It depends on what the "Something" is
744: [11:57:48] <Pies> oh, okay, screw it. MyLeftAndMain
745: [11:57:49] <pazuur> kinglozzer i dont now what you mean... i put i18n::set_locale('nl_NL'); in _config, where do i need to use setlocale()?
746: [11:57:53] <Pyvexik> Pies: you've also not told us how this has happened.
747: [11:58:06] <Pyvexik> Pies: well there's no point in hiding that, LeftAndMain is core code.
748: [11:58:14] <Pies> ah, okay
749: [11:58:22] <kinglozzer> pazuur: Also in _config.php
750: [11:58:31] <Pyvexik> Pies: you say you're migrating... if this is the new site that's having the issue and the original works fine... I don't know why.
751: [11:58:43] <kinglozzer> pazuur: setlocale(LC_ALL, 'nl_NL');
752: [11:59:15] <Pyvexik> Pies: Silverstripe is extremely easy to migrate. You simply copy all the files, check permissions, alter database details if necessary, and that's that.
753: [11:59:20] <Pies> okay, from beginning. I downloaded code, put in on new server, copied db, changed db credentials in the mysite/_config.php
754: [11:59:29] <Pyvexik> (and migrate the database if needed)
755: [12:00:02] <Pies> and I'm getting now "Fatal error: Object::add_extension() - Can't find extension class for "MyLeftAndMainDecorator" in /var/www/newsite/framework/core/Object.php on line 533 "
756: [12:00:22] <Pyvexik> Pies: you changed nothing except database details?
757: [12:00:43] <Pies> nothing. I can try copying again
758: [12:01:06] <Pyvexik> Pies: then yeah, I'd assume that either something didn't copy as it should have, or permissions are screwed up.
759: [12:01:47] <kinglozzer> Also, build flush yo
760: [12:01:48] <Pyvexik> use grep -rin "class MyLeftAndMainDecorator"
761: [12:01:56] <Pyvexik> also yeah, build and flush :P
762: [12:02:00] <Pyvexik> probably mostly flush.
763: [12:02:07] <Pies> build and flush?
764: [12:02:08] <Pyvexik> err, yeah, flush.
765: [12:02:09] <pazuur> kinglozzer i am getting problems with that setlocale(LC_ALL, 'nl_NL');
766: [12:02:10] <Pyvexik> Pies: yes.
767: [12:02:14] <Pyvexik> Pies: do this:
768: [12:02:22] * travis-ci has joined #silverstripe
769: [12:02:22] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#852 (3.1 - 9bff36c : Ingo Schommer): The build passed.
770: [12:02:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/66919ed0cc81...9bff36c0788f
771: [12:02:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/23925589
772: [12:02:22] * travis-ci has left #silverstripe
773: [12:02:27] <Pyvexik> thesitedomain/dev/build
774: [12:02:33] <Pyvexik> fuck you travis.
775: [12:03:16] <Pyvexik> Pies: silverstripe maintains a cache of things, the other issue may be that this needs deleting.
776: [12:03:24] * anselmdk quit (Quit: anselmdk)
777: [12:03:25] <Pyvexik> if there are permissions issues.
778: [12:03:31] <kinglozzer> pazuur: What problems?
779: [12:03:46] <Pyvexik> the folder named 'silverstripe-cache' should be emptied completely if it exists (do not panic if it does not)
780: [12:04:20] <Pies> Pyvexik: I tried moving files from tmp to somewhere else
781: [12:04:42] <pazuur> server problems
782: [12:04:48] <Pyvexik> Pies: don't, TMP is purely ignorable.
783: [12:04:58] <kinglozzer> pazuur: What server problems?
784: [12:05:06] <kinglozzer> You need to be a bit more specific..
785: [12:05:08] <Pies> Pyvexik: only one dev I found is framework/dev/
786: [12:05:18] <Pies> but no build there
787: [12:05:22] <Pyvexik> Pies: no, load in the browser dev/build
788: [12:05:28] <pazuur> The template is messed op white screen no css styling
789: [12:05:35] <Pies> ah, k
790: [12:05:52] <kinglozzer> Anyway, I'm going for lunch. pazuur, try setlocale(LC_TIME, "Dutch");, or setlocale(LC_TIME, "nld_nld"); if you're on windows
791: [12:06:26] * greseky has joined #silverstripe
792: [12:06:33] <pazuur> kinglozzer it says it has a problem with the server when i change i18n::set_locale('nl_NL'); into i18n::set_locale(LC_ALL 'nl_NL');
793: [12:07:11] <Pyvexik> pazuur: don't _change_, /ADD/
794: [12:07:37] <Pyvexik> preferably before anything else.
795: [12:07:43] <greseky> hi, guys, having troubles with action in controller, is it possible to have default index action and custom action (e.g. 'actual') together?
796: [12:07:44] <Pies> Pyvexik: I mentioned tmp, because I have silverstripe-cache/ in tmp dir
797: [12:07:57] <Pyvexik> Pies: just ignore it
798: [12:08:00] <Pies> k
799: [12:08:47] <Pyvexik> Pies: just checking, but the site /is/ working properly on the 'old' server, yes?
800: [12:08:49] <greseky> I got this page has redirect loop
801: [12:09:23] <Pyvexik> greseky: something you've coded
802: [12:10:05] <Pyvexik> probably to do with a form or something using redirectBack or the like.
803: [12:10:33] <greseky> so, there is a problem with code, not with possibility of having index and another action together?
804: [12:10:44] <Pies> Pyvexik: yes, but to old server I have only ftp access
805: [12:11:24] <Pyvexik> greseky: yes I mean your code, probably the part where 2 actions are the same, or something. One will be redirecting to the other which is actually itself and causing issues or something
806: [12:11:42] <greseky> hmmm..
807: [12:11:51] <Pyvexik> Pies: hmm, do you know what version of silverstripe this is?
808: [12:12:07] <Pies> okay, build seems to work fine. I got big info that because of open_basedir zend wasn't able to read /usr/share/pear/ (such folder doesn't exists anyway) but seems to work anyway
809: [12:12:17] <Pies> Pyvexik: how I can check this?
810: [12:12:25] <Pyvexik> Pies: oh openbasedir
811: [12:12:27] <Pyvexik> urgh
812: [12:14:01] <Pyvexik> Pies: check that everything works, including image uploads
813: [12:14:09] <Pies> http://site/dev/flush isn't working
814: [12:14:17] <Pyvexik> it's dev/build
815: [12:14:25] <Pyvexik> flushing is ?flush=all
816: [12:14:36] <Pies> try it after build?
817: [12:14:57] <Pies> on main page I now get only bunch of zend warnings..
818: [12:15:03] <Pyvexik> there is a folder in the silverstripe root folder, is it named sapphire, or framework?
819: [12:15:12] <Pies> framework
820: [12:15:27] <Pyvexik> what is the contents of framework/silverstripe_version ?
821: [12:15:41] <Pies> 3.1.2
822: [12:15:46] <Pyvexik> haha
823: [12:15:48] <Pyvexik> right
824: [12:15:57] <Pyvexik> well, this makes things mostly easier.
825: [12:16:03] <Pies> hmm?
826: [12:16:16] <Pyvexik> you don't need to patch openbasederp support
827: [12:16:21] <Pyvexik> for starters
828: [12:16:55] <Pies> openbasederp? you mean open_basedir?
829: [12:17:09] <Pyvexik> yes, I'm making a bad joke.
830: [12:17:12] <Zauberfisch> haha, Pies yes he does
831: [12:17:29] <Pyvexik> Zauberfisch: xD
832: [12:17:33] <Zauberfisch> :D
833: [12:17:51] <Pyvexik> Pies: do you have an example of these zend issues?
834: [12:18:54] <Pies> 1) [Warning] is_readable(): open_basedir restriction in effect. 2) [User Warning] None of these templates can be found in theme 'simple': MainPage.ss
835: [12:19:34] <Pyvexik> ok, try flushing (unless you already have)
836: [12:21:04] <Pyvexik> and... open_basedir is still causing issues, I wasn't aware of that :/
837: [12:21:04] * stnvh has joined #silverstripe
838: [12:21:15] <Pyvexik> Pies: is the server running mod_php?
839: [12:21:32] <Pyvexik> are you able to change it to use suphp or fcgi or something like that?
840: [12:21:47] <Pyvexik> that will probably (hopefully) resolve open_basedir from crying.
841: [12:22:01] <Pyvexik> also, it's not a zend warning, thats raw php giving that error
842: [12:22:14] <Pyvexik> well, warning. If it were and error you'd know about it.
843: [12:22:16] <Pies> dev/build?flush=all, right? open_basedir again and [Warning] filemtime(): stat failed for /var/www/newsite/themes/simple/templates/Page.ss
844: [12:22:51] <Pies> such file doesn't exists, I see there some other files, and Page2.ss among them
845: [12:22:52] <Pies> hmm
846: [12:23:03] <Pyvexik> Pies: sounds like the developer did a bad job.
847: [12:23:05] <Pyvexik> :(
848: [12:23:33] <Pyvexik> Pies: are there any other folders in /themes other than simple?
849: [12:24:04] <Pies> Pyvexik: I believe so. Before this page I was migrating wordpress from same server. Bunch of files were to same server but with other domain...
850: [12:24:31] <Pies> Pyvexik: simple, hobby, tutorial
851: [12:24:39] <Pies> hmm
852: [12:24:41] <Pyvexik> Pies: are you qlex?
853: [12:24:52] <Pies> hobby can be related to site
854: [12:24:56] <Pies> Pyvexik: qlex?
855: [12:25:21] <Pyvexik> never mind, there's another Polish chap that drops by here, web dev as a hobby, I got confused.
856: [12:25:36] * UndefinedOffset has joined #silverstripe
857: [12:25:45] <Pyvexik> Pies: try adding this to /mysite/_config/config.yml (or whichever already has this line)
858: [12:25:45] <Pies> eh... and hobby dir contains only dirs, not a single file
859: [12:25:50] <Pyvexik> oh
860: [12:25:59] <Pyvexik> oh don't do that then, ignore the suggestion I was about to make.
861: [12:26:12] <Pies> sure
862: [12:27:04] <Pyvexik> ok, so wordderp is a terrible system, luckily it has nothing in common with silverstripe. Silverstripe does not track domains or anything. So there are no things like that to edit in a migration.
863: [12:27:12] <Pies> and nah, I'm not a qlex, I prefer server administration as hobby rather then webdev.
864: [12:27:46] <Pies> Pyvexik: sure, it just suggests, that guys who wrote this site are capable of doing terrible things ;)
865: [12:27:50] <Pyvexik> it's literally copy files, database, clear cache files, check permissions, change db details if necessary, build and flush.
866: [12:28:14] <Pyvexik> Pies: haha, I see where you're coming from... I like it :P
867: [12:28:48] <Pyvexik> well, if you're able to turn open_basedir off, that would probably solve about most of your issues.
868: [12:29:31] <Pyvexik> if not, perhaps lodge an issue about it (github.com/silverstripe/silverstripe-framework/issues
869: [12:29:37] <Pies> I just done it. I would prefer not staying in such state, but I can do this for migration
870: [12:32:04] <Pies> eh...
871: [12:32:25] <Pies> and after that everything main page gives me warning: [User Warning] None of these templates can be found in theme 'simple': MainPage.ss
872: [12:32:38] <Pies> but such file exits there...
873: [12:37:12] * sunzofman1 quit (Ping timeout: 276 seconds)
874: [12:39:39] <Pies> where silverstripe holds templates that it is using during rendering page?
875: [12:43:37] <Pies> hmm
876: [12:45:02] <Pies> in templates/Layout is file Page.ss
877: [12:45:11] <Pies> cd ..
878: [12:45:20] <Pies> wrong console..
879: [12:50:03] <Pyvexik> Pies: a combination of places.
880: [12:50:08] <Pyvexik> there's a fallback system.
881: [12:51:21] <Pyvexik> module templates are included first (eg, cms/templates - the cms is a module), those are overwritten by theme templates (themes/themename/templates), and those are overwritten by project templates (eg. mysite/templates)
882: [12:51:50] <Pyvexik> templates themselves are inherited kind of like classes are.
883: [12:52:33] <Pyvexik> 'main' templates are in the templates folder root, 'layout' segments are in the Layout folder, and includes can come in anywhere (via a directive in the templates) are in the Includes folder.
884: [12:53:33] <Pyvexik> MainPage.ss must be spelt exactly right, and with captials and all. The filename should be the class name of the page type (class MainPage extends Page { ...)
885: [12:58:44] <Pyvexik> http://doc.silverstripe.org/framework/en/trunk/topics/theme-development
886: [12:59:03] <Pies> eh
887: [13:02:39] <Pies> I got error "[User Warning] None of these templates can be found in theme 'simple': MainPage.ss" and there is file themes/simple/templates/MainPage.ss, so this should work, right?
888: [13:07:33] * anselmdk has joined #silverstripe
889: [13:13:04] <Pyvexik> Pies: yes, should.
890: [13:13:08] <Pies> eh
891: [13:13:16] <Pyvexik> flush
892: [13:13:20] <Pyvexik> is the only suggestion there
893: [13:13:28] <Pyvexik> ?isDev=1&flush=all
894: [13:13:46] <Pyvexik> you'll need admin password, or have it suitable circumvented
895: [13:14:01] <Pyvexik> either by putting the site into dev mode or by setting up a default admin (bypassing the security)
896: [13:14:15] <Pyvexik> http://doc.silverstripe.org/framework/en/topics/environment-management
897: [13:14:48] <Pies> if I understand correctly _config.php, then security is bypassed by default....
898: [13:15:14] <Pyvexik> Director::set_environment_type('dev'); Security::defaultAdmin('user', 'pass'); in _config.php
899: [13:15:24] <Pyvexik> Pies: you still have to log in first.
900: [13:15:29] <Pyvexik> using those details
901: [13:15:34] <Pyvexik> or have the site in dev mode.
902: [13:15:39] <Pyvexik> in order to be able to flush
903: [13:15:56] <Pies> PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 for ?isDev=1&flush=all
904: [13:15:57] <Pyvexik> you'll be able to tell because the site will take forever to return the page.
905: [13:15:57] <Pies> uh
906: [13:16:11] <Pyvexik> Pies: you've not got 3.1, it's 3.0
907: [13:16:15] <Pyvexik> don't do the isDev part
908: [13:16:21] <Pyvexik> just sign in and use ?flush=all
909: [13:16:28] <Pyvexik> it was a bug.
910: [13:16:45] <Pies> I had to sign to do ?flush and I done it already
911: [13:17:18] <Pyvexik> flush all
912: [13:17:19] <Pyvexik> not 1
913: [13:17:25] <Pyvexik> but that's interesting.
914: [13:17:36] <Pyvexik> it should load the template fine.
915: [13:17:50] <Pyvexik> unless there's some kind of permissions issue :/
916: [13:23:28] <Pyvexik> also weird that it's just a warning
917: [13:27:16] * babak has joined #silverstripe
918: [13:28:31] <Pies> there shouldn't be any permissions issue, as all files are owned by www-data
919: [13:29:19] <Pies> in error log I also get only PHP Warning: None of these templates can be found in theme 'simple': MainPage.ss in /share/www/hobby.vmgevents.pl/framework/view/SSViewer.php on line 735
920: [13:31:03] * greseky quit (Quit: Page closed)
921: [13:35:48] * pazuur quit (Ping timeout: 240 seconds)
922: [13:39:26] <Pyvexik> http://api.silverstripe.org/3.1/source-class-SSViewer.html#776
923: [13:39:42] <Pyvexik> Pies: can you load the CMS without any issues? (/admin)
924: [13:40:23] <Pies> woooo
925: [13:40:29] <Pies> Pyvexik: first page that looks good
926: [13:40:43] * openbees has joined #silverstripe
927: [13:42:16] <Pyvexik> Pies: go to the 'settings' menu (left side) then use it to set the theme there
928: [13:42:23] <Pyvexik> try all the different themes.
929: [13:42:40] <openbees> I have a group which can edit certain pages only in CMS . in those pages we have has_many Photos .. now member in those group are able to edit page but not Photos any ideas why is that ?
930: [13:42:40] <Pyvexik> idealy the developer should have set it from code, but most are too lazy for this these days.
931: [13:43:05] <Pyvexik> openbees: because they don't have permission to edit the photo object I'd guess.
932: [13:43:15] <Pyvexik> only the page (not it's relations)
933: [13:43:44] * stnvh quit ()
934: [13:43:59] <openbees> Photo Items extending from DataObject no additional access code written for that !
935: [13:44:57] <Pies> Pyvexik: no results, it only changes in error message in what folder he couldn't find template
936: [13:45:06] <Pies> hmm
937: [13:45:14] <Pies> maybe I'll try changing theme name..
938: [13:45:41] <openbees> I believe by default anyone can edit/delete dataObjects
939: [13:45:47] <Pies> nah, no changes...
940: [13:46:08] <openbees> return Permission::check('ADMIN', 'any', $member); in dataObject.php if no extended function found .
941: [13:46:42] <Pyvexik> openbees: ensure that does what you want, and doesn't require 'admin' ie, super admin.
942: [13:55:16] <Pyvexik> heh, learn something new.
943: [13:55:32] <Pyvexik> if the ternary operator has no first success, it'll return the evaulation.
944: [13:56:51] <Pies> is there way to check where ss was looking for template file?
945: [13:57:07] <Pyvexik> Pies: there used to be, but I'm not sure anymore.
946: [14:11:50] <Pies> eh
947: [14:12:18] <Pyvexik> try things like ?show_template
948: [14:13:27] <Pyvexik> kinglozzer: did you go sailing at lunch?
949: [14:13:56] <Pyvexik> Pies: http://doc.silverstripe.org/framework/en/reference/urlvariabletools
950: [14:14:44] <kinglozzer> Pyvexik: Shit, no
951: [14:15:01] * opalfroot has joined #silverstripe
952: [14:15:06] <Pyvexik> Did you watch Archer yet?
953: [14:15:12] <kinglozzer> Nope
954: [14:15:21] <Pyvexik> gawsh kinglozzer, what do you even do!?
955: [14:15:25] * kinglozzer assumed that was what you meant by sailing, in some sort of encrypted message
956: [14:15:40] <kinglozzer> Pyvexik: Drive home, cook dinner, pat dog on head, drive back :P
957: [14:17:40] <opalfroot> hey Kinglozzer I noticed you posted a bug on github regarding the media uploader - did you have any luck finding a fix?
958: [14:18:07] <opalfroot> this one: https://github.com/silverstripe/silverstripe-framework/issues/3034
959: [14:18:12] <kinglozzer> opalfroot: The issue where it redirects? Nope
960: [14:18:21] <opalfroot> bummer :(
961: [14:18:27] <kinglozzer> Haven't had time to look into it yet
962: [14:18:54] <opalfroot> got a project landing in a few weeks and this issue cropped up - need to try and sort it before I release
963: [14:19:58] <Pies> Archer from netflix?
964: [14:23:00] <Pyvexik> uhhh
965: [14:23:05] <Pyvexik> Archer the cartoon.
966: [14:23:20] <Pies> Pyvexik: interesting, it provided me something like /tmp/silverstripe-cache-share-www-newsite/www-data/.cache.framework
967: [14:23:34] <Pies> dunno why it is trying to use system tmp dir
968: [14:24:14] <Pies> Pyvexik: yeah, it is on netflix and I didn't saw it anywhere else. About agency. I don't get what people see in it
969: [14:24:20] <Pyvexik> because everytihng does, that's normals.
970: [14:24:30] <Pyvexik> that's what the tmp folder is for, after all.#
971: [14:24:51] <Pyvexik> Pies: if you don't want it to use the system tmp, create a folder 'silverstripe-cache' in the installation root
972: [14:24:58] * WilsonS has joined #silverstripe
973: [14:25:24] <Pies> Pyvexik: yup, but I can prefer having applications data in theirs dir
974: [14:25:36] <Pyvexik> Pies: About agency?
975: [14:25:50] <Pies> yeah, cartoon
976: [14:26:11] <Pyvexik> by Agency, did you mean Archer?
977: [14:26:22] <Pies> yeah, Archer, cartoon about agency
978: [14:27:08] <Pies> Pyvexik: woooo
979: [14:27:15] <Pyvexik> http://i.imgur.com/6ULpj.jpg
980: [14:27:17] <Pies> Pyvexik: great, it seems, that it solved problem
981: [14:27:21] <Pies> Pyvexik: thanks!
982: [14:27:30] <Pyvexik> Pies: that will circumvent open_basedir too I guess.
983: [14:27:41] <Pyvexik> cool :>
984: [14:28:06] <Pies> taken few hours more then it should, but well... happens
985: [14:28:12] <Pyvexik> Yep :>
986: [14:28:22] <Pyvexik> especially if you're unfamiliar with a system.
987: [14:28:24] <Pies> who are people from down row?
988: [14:28:37] <Pyvexik> Pies: the voice actor for that character above.
989: [14:28:43] <Pies> oh
990: [14:29:39] <Pies> yeah, this is why I don't like migrations. I can create system, I can maintain it, I can work with developers, but getting random stuff and order to make it work isn't fun :<
991: [14:30:11] <Pyvexik> yeah, especially when no one gives you any info or instructions around it, nor decent server access.
992: [14:30:18] <Pyvexik> (sucks to be stuck with ftp only)
993: [14:30:50] <Pies> yup
994: [14:31:13] <Pies> to new server I have full access luckily
995: [14:31:25] <Pyvexik> :)
996: [14:31:54] <Pies> okay, so there is only that open_basedir warning... I have to change mod_php to fastcgi or something similar?
997: [14:32:22] <Pies> this a bit no can do, as this is production server with bunch of others sites
998: [14:37:16] <Pies> Pyvexik: you was asking if I'm using suphp or something ... I'm using itk, what it changes?
999: [14:39:01] * opalfroot quit (Quit: Page closed)
1000: [14:39:47] * Azure quit (Quit: My MBP went to sleep.)
1001: [14:46:16] * stnvh has joined #silverstripe
1002: [14:49:53] <Pyvexik> Pies: it runs PHP files as a user, rather than all the things as www-data
1003: [14:50:18] <Pyvexik> su like the *nix command
1004: [14:50:23] <Pyvexik> su php
1005: [14:53:05] * openbees quit (Quit: Leaving)
1006: [14:59:27] <Pies> Pyvexik: yeah, so it is similar to itk. How it should help me with open_basedir?
1007: [14:59:55] <Pyvexik> well if you're not using mod_php open_basedir may not apply
1008: [15:00:24] <Pies> so it isn't solving anything
1009: [15:00:51] <Pies> okay, I just created for him empty dir, added access to it and it seems to work
1010: [15:01:06] <Pies> pretty stupid, but solved problem
1011: [15:01:11] <Pyvexik> cool :>
1012: [15:01:21] <Pies> Pyvexik: thank you very much for help :)
1013: [15:01:27] <Pyvexik> you're welcome
1014: [15:01:44] <Pyvexik> you could lodge an issue on github about this open_basedir stuff.
1015: [15:01:54] <Pyvexik> It should probably not cause such an issue.
1016: [15:02:30] <Pyvexik> http://github.com/silverstripe/silverstripe-framework/issues
1017: [15:09:19] <Pies> k
1018: [15:10:09] <Pies> hmm
1019: [15:10:26] <Pies> although I'm not sure if on newest version this is still a issue...
1020: [15:10:50] * ARNHOE quit ()
1021: [15:14:21] <WilsonS> Hi everyone. Is there a way to merge two FieldSets? I'm using Silversmith, so my class has a getGeneratedCMSFields() method with my CMS fields. I'm also using other extensions, so my getCMSFields() has to call parent::getCMSFields() to grab those. So obviously I could manually cut and paste the fields from Silversmith but would be nice if there was a way to merge the two sets. Anyone accomplished this before?
1022: [15:15:21] <WilsonS> Whoops, I mean FieldList
1023: [15:16:13] <kinglozzer> WilsonS: Have you tried $fieldListA->merge($fieldListB);?
1024: [15:16:38] <kinglozzer> Or did I misunderstand? :P
1025: [15:18:14] * jenniferaslan has joined #silverstripe
1026: [15:19:36] <WilsonS> Thank for the quick reply. Yes, I did try that but the issue is that parent::getCMSFields() runs the scaffolding stuff, so I end up with an error like 'I noticed that a field called 'Name' appears twice in your form'
1027: [15:26:09] * ARNHOE has joined #silverstripe
1028: [15:28:56] * ARNHOE quit (Client Quit)
1029: [15:33:58] * cloph quit (Ping timeout: 240 seconds)
1030: [15:34:27] <kinglozzer> WilsonS: Sorry, looks like you might be out of luck then. You'll have to write your own logic to merge the two
1031: [15:35:04] <kinglozzer> foreach ($fieldListB->dataFields() as $field) {
1032: [15:35:47] <kinglozzer> if ( ! $fieldListA->fieldByName($field->getName()) { $fieldListA->push($field); }
1033: [15:35:49] <kinglozzer> Or something
1034: [15:35:53] <WilsonS> Thanks kinglozzer. I see the removeDuplicates() method. Might give that a shot with merge()
1035: [15:36:19] <kinglozzer> Yeah that might work
1036: [15:44:03] * Liquide has joined #silverstripe
1037: [15:44:10] * cloph_away has joined #silverstripe
1038: [15:51:55] * ocm quit (Read error: Connection reset by peer)
1039: [15:53:16] * cloph has joined #silverstripe
1040: [15:53:41] * cloph_away quit (Ping timeout: 264 seconds)
1041: [15:57:02] * guzzlefry has joined #silverstripe
1042: [16:05:42] * stefanovic72 quit (Remote host closed the connection)
1043: [16:23:02] <Pyvexik> WilsonS: there's no such thing as a fieldset.
1044: [16:24:08] <Pyvexik> anyway, it's time to get the fuck out of heres.
1045: [16:24:11] <Pyvexik> see yas
1046: [16:24:13] * Pyvexik quit ()
1047: [16:26:13] * kinglozzer quit ()
1048: [16:28:15] * WilsonS quit (Quit: Page closed)
1049: [16:30:08] * stnvh quit ()
1050: [16:39:25] * steveheyes has joined #silverstripe
1051: [16:39:32] <steveheyes> hello everyone
1052: [16:39:38] <steveheyes> how you all doing?
1053: [16:41:07] <steveheyes> i was hoping someone could help me?
1054: [16:42:14] <steveheyes> I am trying to check if a dataobject has just been created
1055: [16:42:29] <steveheyes> I know SiteTree has a isNew() function, is there a way of doing it for DataObject
1056: [16:45:54] <guzzlefry> When are you wanting to check that?
1057: [16:46:13] <guzzlefry> And for what purpose?
1058: [16:48:01] <steveheyes> Trying to create a many many list gridfield
1059: [16:48:09] <steveheyes> but it kept falling over as it was unsaved
1060: [16:48:32] <steveheyes> But i’ve done it :) I looked at the isNew() code and used that
1061: [16:48:37] <steveheyes> if(empty($this->ID)) {}
1062: [16:49:54] <guzzlefry> ah yeah
1063: [16:50:14] <guzzlefry> If it isn't saved to the database it won't have an ID.
1064: [16:52:13] * scpi has joined #silverstripe
1065: [16:56:16] <steveheyes> boom thanks
1066: [17:13:25] * steveheyes quit (Quit: steveheyes)
1067: [17:21:33] * UndefinedOffset quit (Quit: Leaving.)
1068: [17:22:16] * anselmdk quit (Quit: anselmdk)
1069: [17:24:50] * gelignite has joined #silverstripe
1070: [17:37:17] * Azure has joined #silverstripe
1071: [17:41:21] * scpi quit (Quit: naptime)
1072: [17:45:34] * UndefinedOffset has joined #silverstripe
1073: [17:53:07] * scpi has joined #silverstripe
1074: [17:56:12] * nchlssmith1 has joined #silverstripe
1075: [18:09:23] * Pyromanik has joined #silverstripe
1076: [18:23:01] * UndefinedOffset quit (Quit: Leaving.)
1077: [18:23:59] * UndefinedOffset has joined #silverstripe
1078: [18:29:42] * nchlssmith1 quit (Quit: Lost terminal)
1079: [18:34:52] <Pyromanik> whoooooooooley fuck derp derp derp http://www.youtube.com/watch?v=F5Y7BniaRXg
1080: [18:46:09] * CodeTrap quit (Quit: CodeTrap)
1081: [18:47:12] * scpi quit (Ping timeout: 240 seconds)
1082: [18:50:48] * SightUnseen has joined #silverstripe
1083: [18:50:53] * SightUnseen has left #silverstripe
1084: [19:03:31] * r3v3rb has joined #silverstripe
1085: [19:04:57] <r3v3rb> hmm, FulltextSearchable... I have it set and the search returns a result - but I know for a fact that the results aren't even close to complete based on the current content in my sitetree - do I need to do something else? Does it search all fields in any class in the SiteTree for example?
1086: [19:16:41] <Pyromanik> wholey hell thank fuck, someone finally got rid of SimplePie from the core.
1087: [19:16:55] <Pyromanik> that code was rotten as shit, hasn't operated since ... I dunno, php 5.2
1088: [19:17:27] <Pyromanik> r3v3rb, it searches like a heap of shit.
1089: [19:17:35] <Pyromanik> nothing to be done, ti's all MySQL
1090: [19:17:40] <r3v3rb> so it appears
1091: [19:17:57] <Pyromanik> MySQL's fulltext search is reamarkably and well known shit.
1092: [19:18:11] <Pyromanik> migrate database, probably easier than the headache that is search.
1093: [19:25:51] * scpi has joined #silverstripe
1094: [19:39:48] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1095: [19:40:16] * robert___ has joined #silverstripe
1096: [19:40:17] * robert___ quit (Changing host)
1097: [19:40:17] * robert___ has joined #silverstripe
1098: [19:41:50] * robert_ quit (Disconnected by services)
1099: [19:41:54] * robert___ is now known as robert_
1100: [19:47:34] * r3v3rb has joined #silverstripe
1101: [19:55:26] * Ryan-Toast has joined #silverstripe
1102: [20:04:27] * scpi quit (Ping timeout: 265 seconds)
1103: [20:04:46] * UndefinedOffset quit (Quit: Leaving.)
1104: [20:08:28] * antmas has joined #silverstripe
1105: [20:10:56] * joelpittet has joined #silverstripe
1106: [20:19:19] * WilsonS has joined #silverstripe
1107: [20:33:55] * travis-ci has joined #silverstripe
1108: [20:33:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2394 (3.1 - 781eee1 : Ingo Schommer): The build passed.
1109: [20:33:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/280ab2dcd321...781eee1620eb
1110: [20:33:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23963818
1111: [20:33:55] * travis-ci has left #silverstripe
1112: [20:36:26] * an_Eskimo has joined #silverstripe
1113: [21:01:06] <antmas> fuck
1114: [21:01:17] <antmas> why do these people come to me to ask how a system works
1115: [21:01:23] <antmas> I aint not BA!
1116: [21:01:24] <antmas> :<
1117: [21:03:22] * simon_w has joined #silverstripe
1118: [21:04:32] <Ryan-Toast> Anyone know if you can have html in the FormAction?
1119: [21:05:52] <guzzlefry> Why?
1120: [21:05:58] <Ryan-Toast> ah, found it.
1121: [21:06:13] <Ryan-Toast> guzzlefry: icons and biz
1122: [21:06:14] <antmas> woah, guzzlefry is here
1123: [21:06:27] <guzzlefry> Ryan-Toast: You can use button or something instead
1124: [21:06:36] <guzzlefry> oh yeah, I'm back. :)
1125: [21:06:44] <antmas> guzzlefry: hai
1126: [21:06:46] <antmas> :D
1127: [21:06:46] <Ryan-Toast> guzzlefry: Yeah using useButton
1128: [21:06:55] <guzzlefry> how's it going?
1129: [21:08:19] * zippy__ has joined #silverstripe
1130: [21:08:57] <antmas> not bad, same old same old
1131: [21:10:06] <antmas> guzzlefry: get all your projects done?
1132: [21:10:18] <zippy__> WIth ss 2.4, when an item was green in the sidebar does that mean it needs to be saved? Green = Changed right?
1133: [21:10:27] * joelpittet quit ()
1134: [21:10:46] <guzzlefry> err
1135: [21:10:50] <guzzlefry> I'm at a new place now. :P
1136: [21:10:59] <antmas> guzzlefry: :O
1137: [21:11:05] <antmas> a better place?
1138: [21:11:09] <guzzlefry> So far, yeah.
1139: [21:11:21] <antmas> nice, your choice?
1140: [21:11:50] <guzzlefry> It's all in-house stuff, so I'm enjoying that a lot more.
1141: [21:12:10] <antmas> guzzlefry: yeah that makes a big difference
1142: [21:12:14] <guzzlefry> Writing PHPFox modules mostly. :P
1143: [21:13:09] <Stomach> where at?
1144: [21:14:01] <guzzlefry> remote job for a kind of hosting/advertising company.
1145: [21:14:59] * UncleCheese has joined #silverstripe
1146: [21:15:36] <guzzlefry> Can't really say much more. They have major issues with stalker/spammer types, so mentioning it in a publically logged channel might be a bad idea. :P
1147: [21:15:44] <Stomach> haha :D
1148: [21:15:48] <Stomach> sounds good though
1149: [21:15:56] <guzzlefry> yeah, it's fun
1150: [21:15:56] * Liquide quit ()
1151: [21:16:08] <guzzlefry> There's even a sysadmin!
1152: [21:16:22] <antmas> guzzlefry: so you just do code now?
1153: [21:17:22] <guzzlefry> yep
1154: [21:17:39] <antmas> must be nice
1155: [21:17:43] <antmas> I have like 4 hats on today
1156: [21:17:45] <guzzlefry> I don't even have to worry about deployment.
1157: [21:17:46] <antmas> :<
1158: [21:18:15] <guzzlefry> too many hats :(
1159: [21:19:12] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
1160: [21:19:29] <guzzlefry> You're doing .net stuff, right?
1161: [21:24:07] <zippy__> guzzlefry: The only issue I can have with inhouse stuff sometimes is things can be slow moving, what I mean is it's a hassle to upgrade php, a hassle to upgrade frameworks. Doing clientwork I am provisioning new servers newer versions of everything, it's been great
1162: [21:24:25] <antmas> guzzlefry: yeah
1163: [21:24:38] <antmas> and PHP, Photoshop, SQL
1164: [21:24:56] <WilsonS> Hey Zauberfisch. Thanks again for your help with the ORM issue a couple of weeks ago. New twist on it from the client... Now Restaurant has many_many Cuisine. Cuisine has_many SubCuisine. But for each individual restaurant, the admin chooses which SubCuisines are active. I know the answer involves $many_many_extraFields but haven't been able to solve it. Does anyone know of an example of this?
1165: [21:27:56] * Anytech has joined #silverstripe
1166: [21:28:27] <Anytech> I have a has_one on slide bu tI still get this! No has_one found on class 'Slide', the has_many relation from 'HomePage' to 'Slide' requires a has_one on 'Slide'
1167: [21:31:04] <Pyromanik> [09:01] <antmas> I aint not BA!
1168: [21:31:05] <Pyromanik> wut
1169: [21:31:59] <zippy__> Anytech: You did a flush after adding the has_one ?
1170: [21:32:08] <Pyromanik> zippy__, yes, green changed.
1171: [21:32:10] <Anytech> yeah its weird
1172: [21:32:12] <antmas> Pyromanik: business anaylist
1173: [21:32:25] <zippy__> Pyromanik: How do you make it not green anymore? I have saved, and flushed - still green!
1174: [21:32:29] <Pyromanik> antmas, and why the fuck would they know how some software works?
1175: [21:32:43] <Pyromanik> zippy__, is it a user form?
1176: [21:32:50] <zippy__> Pyromanik: yes, you got it!
1177: [21:32:56] <antmas> because we have very simple tutorials set right in front of them
1178: [21:32:57] <Pyromanik> zippy__, you're fucked.
1179: [21:32:59] <Pyromanik> it's always green.
1180: [21:33:05] <zippy__> god damn it
1181: [21:33:22] <Pyromanik> something to do with something to do with the form versioning
1182: [21:33:39] <zippy__> thanks :)
1183: [21:33:41] <Pyromanik> too hard to something, so the method that says green or not is just { return true; }
1184: [21:33:51] * Stomcch has joined #silverstripe
1185: [21:33:52] * Stomach quit (Ping timeout: 252 seconds)
1186: [21:33:56] <Ryan-Toast> $1000 lolololol get fucked http://www.meetup.com/SilverStripe-Auckland/events/179881552/?a=ea1_grp&rv=ea1
1187: [21:33:59] * Stomcch is now known as Stomach
1188: [21:34:05] <Pyromanik> Ryan-Toast,webstock?
1189: [21:34:15] <Ryan-Toast> Silverstripe developer training
1190: [21:34:29] <Pyromanik> oic
1191: [21:34:36] <Pyromanik> worth it, if your boss is paying.
1192: [21:34:38] <zippy__> Get taught by ss23, oh yea!
1193: [21:34:52] <Ryan-Toast> It’s an Auckland one.
1194: [21:34:58] <Ryan-Toast> I think
1195: [21:35:06] <zippy__> Get taught by ss23 over skype
1196: [21:35:37] <Ryan-Toast> > “Creating custom page types and templates” aww yiss
1197: [21:35:49] <Stomach> if you are in the IRC channel, its not for you :D
1198: [21:35:56] <Ryan-Toast> I know, I know :P
1199: [21:36:26] <antmas> $1000?
1200: [21:36:36] <antmas> seems a bit steep for 'essentials'
1201: [21:37:13] <guzzlefry> Someone should probably just write a book...
1202: [21:37:23] * guzzlefry puts finger on nose.
1203: [21:37:34] <zippy__> there is a book
1204: [21:37:38] <zippy__> saw it at the library
1205: [21:37:45] <guzzlefry> Yeah but...2.4.
1206: [21:37:51] <guzzlefry> Unless there's another I'm not aware of.
1207: [21:38:26] <zippy__> least the config system in 2.4 was more simplistic
1208: [21:38:41] <guzzlefry> I never messed with 2.4.
1209: [21:38:51] <guzzlefry> Well, besides fixing a few existing sites.
1210: [21:46:36] <moistspaz> when a template fails to build, is there a log anywhere with errors
1211: [21:46:45] <moistspaz> apache error log is clean
1212: [21:48:05] * gelignite quit (Quit: http://bit.ly/nkczDT)
1213: [21:49:32] <guzzlefry> moistspaz: debug mode?
1214: [21:49:36] <guzzlefry> err, dev mode
1215: [21:51:33] <moistspaz> i've set define('SS_ENVIRONMENT_TYPE', 'dev'); define('SS_ERROR_LOG', __DIR__ . '/tmp/ss_error_log.log');
1216: [21:51:36] <moistspaz> in my _config.php
1217: [21:51:39] <moistspaz> do i need to do something else
1218: [21:51:49] <guzzlefry> hm
1219: [21:52:00] <guzzlefry> How do you know it's failing to build?
1220: [21:53:06] <moistspaz> template isn't rendering, well the Page.ss is but not the sub page (works fine for other pages)
1221: [21:53:21] <guzzlefry> moistspaz: That might have to go in __ss_environment.php
1222: [21:53:34] <Anytech> http://www.sspaste.com/paste/show/535ec7f8d9d3a and http://www.sspaste.com/paste/show/535ec812b904d Getting a No has_one found on class 'Slide', the has_many relation from 'HomePage' to 'Slide' requires a has_one on 'Slide' can anyone see an error? I am unable to resolve this
1223: [21:54:00] <guzzlefry> Also, did you ?flush?
1224: [21:54:13] <moistspaz> yeah sure i do that reflexivly when something goes squirrely
1225: [21:57:32] * zagoodwin has joined #silverstripe
1226: [21:57:47] <moistspaz> another question, i'm not sure why this is giving me an error $tag = Tag::get()->filter(array('Title', strtolower($this->tag)));
1227: [21:58:06] <moistspaz> i can see a Tag entry with Title of the string i'm passing it
1228: [21:58:23] <moistspaz> http://dpaste.com/1802314/
1229: [21:58:49] <simon_w> moistspaz, 'Title' => strtolower($this->tag)
1230: [21:58:54] <moistspaz> totally making a nub error
1231: [21:58:56] <moistspaz> ahh, cheers
1232: [21:59:05] <zippy__> or filter(array('Title' => strtolower($this->tag)));
1233: [21:59:19] <zippy__> if you need an array needs to be an associative array
1234: [21:59:22] <Anytech> Slide must be a naughty word, I changed it to SlideImage and it works
1235: [22:01:00] * Colin[pi] has joined #silverstripe
1236: [22:02:07] * travis-ci has joined #silverstripe
1237: [22:02:07] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#853 (3.1 - 341eeb7 : Damian Mooyman): The build passed.
1238: [22:02:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/9bff36c0788f...341eeb7c31c6
1239: [22:02:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/23969852
1240: [22:02:07] * travis-ci has left #silverstripe
1241: [22:08:14] <moistspaz> another question, i'm doing Tag::get()->sort('Count', 'DESC') where Count is Int and it seems to be a string compare maybe?
1242: [22:12:44] * cloph quit (Ping timeout: 255 seconds)
1243: [22:13:11] * [1]Pyromanik has joined #silverstripe
1244: [22:14:43] <[1]Pyromanik> zippy__, UML is not more difficult, gawsh.
1245: [22:14:49] <[1]Pyromanik> err, YML
1246: [22:14:59] * Pyromanik quit (Ping timeout: 255 seconds)
1247: [22:14:59] * [1]Pyromanik is now known as Pyromanik
1248: [22:16:17] <Pyromanik> Anytech, it's probably more likely that somthing is already called slide.
1249: [22:17:02] <Anytech> For some reason the dev/build was not making the fields
1250: [22:17:18] <Pyromanik> also, get rid of slide_controller, that's irrelevant.
1251: [22:17:33] <Pyromanik> Anytech, because there will already be a slide class somehwere else.
1252: [22:17:39] <Pyromanik> and it's reading that.
1253: [22:17:58] <Pyromanik> maybe, I dunno what you've done.
1254: [22:18:03] <Anytech> lol
1255: [22:18:04] <Pyromanik> ie, what packages you've used.
1256: [22:18:07] <Anytech> I fixed it
1257: [22:18:16] <Anytech> I have no idea
1258: [22:18:24] <Anytech> ah you may be right
1259: [22:18:24] <Pyromanik> I can tell :P
1260: [22:18:27] <Anytech> of course
1261: [22:18:28] <antmas> UncleCheese: Thanks for your help yesterday, I might another hand hold come Thursday/Friday if you wouldn't mind lending some help again :D
1262: [22:18:37] * babak quit (Quit: Connection closed for inactivity)
1263: [22:18:42] <Anytech> I do have a gallery plugin for swipestripe
1264: [22:18:46] <antmas> UncleCheese: although I might be OK now that I know where it's heading
1265: [22:19:07] <Pyromanik> Anytech, that'll be it, more than likely.
1266: [22:25:29] * UncleCheese quit (Quit: UncleCheese)
1267: [22:29:39] * UncleCheese_ has joined #silverstripe
1268: [22:29:45] <Pyromanik> http://www.buzzfeed.com/jemimaskelley/things-you-know-if-you-grew-up-in-nz
1269: [22:29:47] <Pyromanik> kehehee
1270: [22:29:54] <Pyromanik> sheepskin so true :>
1271: [22:30:44] * cloph_away has joined #silverstripe
1272: [22:31:33] * simon_w|air quit (Quit: This computer has gone to sleep)
1273: [22:36:30] <antmas> zippy__: I can almost smell the BLTs...
1274: [22:36:35] <antmas> must be close to opening now
1275: [22:36:43] <zippy__> $15 blt :)
1276: [22:37:05] <antmas> lol probably
1277: [22:38:17] <antmas> mmm dat cyanogenmod
1278: [22:39:10] <antmas> is this still valid? http://stackoverflow.com/questions/17921642/silverstripe-looping-over-non-associative-array-in-template
1279: [22:40:13] <simon_w> antmas, I'm going to go and say how wrong Zauberfisch is! :p
1280: [22:40:43] <antmas> :O I didn't realise that was Zauberfisch
1281: [22:41:17] <antmas> simon_w: can you comment on the correct way if so?
1282: [22:42:02] <simon_w> http://stackoverflow.com/questions/17921642/silverstripe-looping-over-non-associative-array-in-template/23352435#23352435
1283: [22:42:37] <antmas> simon_w: thanks, dude
1284: [22:43:44] <zippy__> woah
1285: [22:43:54] <zippy__> thanks simon_w !
1286: [22:44:13] * zippy__ is going to track down his manky, many ArrayData code from last week
1287: [22:44:53] <simon_w> Now, if that answer gets more up votes than the "correct" one, I get another badge!
1288: [22:45:07] <zippy__> rgr
1289: [22:45:56] <zippy__> there is 1 :)
1290: [22:46:09] <WilsonS> Anyone have any thoughts as to how to accomplish this: Restaurant has many_many Cuisine. Cuisine has_many SubCuisine. So for each restaurant, once admin has chosen Cuisine (i.e. Japanese) they then have CheckboxSetField with SubCuisines
1291: [22:46:09] <antmas> I need more rep to vote up
1292: [22:46:10] <antmas> :(
1293: [22:46:15] <antmas> I should use stack more
1294: [22:53:06] <Colin[pi]> morning all!
1295: [22:53:46] <antmas> Colin[pi]: sup
1296: [22:54:00] <Colin[pi]> _ _ ____ __ _ _ ____ __ __ __ ___
1297: [22:54:00] <Colin[pi]> ( )_( )(_ _) /__\ ( \( )(_ _)( \/ ) /__\ / __)
1298: [22:54:00] <Colin[pi]> ) _ ( _)(_ /(__)\ ) ( )( ) ( /(__)\ \__ \
1299: [22:54:00] <Colin[pi]> (_) (_)(____) (__)(__)(_)\_) (__) (_/\/\_)(__)(__)(___/
1300: [22:54:10] <antmas> :O
1301: [22:54:14] * antmas swoons
1302: [22:54:16] <Colin[pi]> lol
1303: [22:54:18] * zagoodwin quit (Ping timeout: 240 seconds)
1304: [22:54:52] <Colin[pi]> ugh I have a teleconference soon :(
1305: [22:56:55] <Colin[pi]> simon_w: you out of bed yet?
1306: [22:56:56] <antmas> yey
1307: [22:57:38] <simon_w> Colin[pi], yup. About to head in to Woden to hand in all my paperwork to Medicare
1308: [22:57:59] <antmas> Medicare?
1309: [22:58:08] <Colin[pi]> govt medical fund
1310: [22:58:18] <simon_w> antmas, kinda like ACC funding
1311: [22:58:26] <simon_w> But you have to apply for it
1312: [22:58:34] <antmas> oh ok
1313: [22:58:41] <Colin[pi]> antmas: go to doctor and pay like $75, receive $38 or so back
1314: [22:58:44] * oddnoc has joined #silverstripe
1315: [22:58:53] <antmas> Colin[pi]: so accident coverage?
1316: [22:59:06] <Colin[pi]> antmas: just gives rebates for certain medical services
1317: [22:59:08] * antmas has never claimed acc
1318: [22:59:15] <antmas> ah right
1319: [22:59:28] <Colin[pi]> a lot of stuff isn't covered, like dentists etc. those are private insurance coverage only
1320: [22:59:30] <simon_w> Well, HHVM is compiling so seems like a good time to go
1321: [22:59:36] <Colin[pi]> but GPs you get a bit back
1322: [22:59:45] <guzzlefry> Is HHVM C++ code?
1323: [22:59:51] <simon_w> guzzlefry, yes
1324: [22:59:54] <guzzlefry> ah
1325: [22:59:57] <guzzlefry> that explains it :P
1326: [23:00:02] <oddnoc> I’m supposed to be able to do <% include ReviewFinder_results_loop Items=PaginatedItems(10) %> in a template, right? Or no?
1327: [23:00:15] <oddnoc> oh wait. I’m missing a $
1328: [23:00:26] <simon_w> guzzlefry, it's more that there's a craptonne of code :p
1329: [23:00:32] <simon_w> There's very few templates
1330: [23:01:26] * jordanmk has joined #silverstripe
1331: [23:01:29] <guzzlefry> ah
1332: [23:07:48] * WilsonS quit (Ping timeout: 240 seconds)
1333: [23:07:59] <UncleCheese_> so,wait.. Colin[pi] , I don't get it.. so if you get sick and you don't have any insurance, you don't have to sell your home and live debt-ridden abject poverty for the rest of your life?
1334: [23:08:13] <UncleCheese_> you're incentivising people to get sick!
1335: [23:08:20] <zippy__> With _Live and _versions, how can I tell which versons have been published?
1336: [23:08:27] <Colin[pi]> UncleCheese_: lol
1337: [23:08:33] <zippy__> I might have 10 versions, but only published 2, is there a way to tell which ones
1338: [23:08:42] <zippy__> ah, WasPublished
1339: [23:08:48] <UncleCheese_> if people aren't scared of going bankrupt, how else are they going to stay healthy?
1340: [23:09:09] <Colin[pi]> UncleCheese_: people complain here about the public health system but really it's pretty good compared to many, many countries
1341: [23:09:20] <UncleCheese_> yeah, AU is ranked very high
1342: [23:09:29] <Colin[pi]> UncleCheese_: waiting lists are the issue if you need surgery, and you don't choose the doctor
1343: [23:09:29] <UncleCheese_> up there with France et al
1344: [23:09:43] <UncleCheese_> NZ ranks ok
1345: [23:10:15] <Colin[pi]> UncleCheese_: I've seen some of the medical bills from the USA folks post on reddit, all I can say: sweet merciful crap
1346: [23:10:24] <UncleCheese_> yeah
1347: [23:10:56] <Colin[pi]> but public healthcare is SOCIALISM
1348: [23:10:59] <UncleCheese_> well when we had our son, we went to the doctor, found out we were really pregnant, and the first thing you do (after celebrating for abotu 30 seconds) is sit down in a room with some bookkeeper
1349: [23:11:06] <UncleCheese_> and plan out how you're going to pay for it
1350: [23:11:19] <Colin[pi]> :\
1351: [23:11:26] <UncleCheese_> "we need a $200 deposit today, and we'll set up payment plans every month"
1352: [23:11:37] <UncleCheese_> $6,000
1353: [23:11:37] <Colin[pi]> fuck everything about that health system
1354: [23:11:47] <UncleCheese_> better not need a C-section, though.. that's $10k+
1355: [23:11:57] <Colin[pi]> ouch
1356: [23:12:30] <UncleCheese_> what's really cool about it is not just that they fuck with people.. it's that they fuck with people when they're sick.. which is really the best time to do it
1357: [23:12:39] <UncleCheese_> because a sick person doesn't put up much of a fight
1358: [23:13:13] <Colin[pi]> UncleCheese_: yeah it's like "Oh I'm so sorry your loved one is dying... please deposit ALL of your money here to save them"
1359: [23:13:19] <UncleCheese_> all you really want is to get better, so you'll pay pretty much anything
1360: [23:13:21] <UncleCheese_> exactly
1361: [23:13:55] <UncleCheese_> ineslastic demand, my friend
1362: [23:14:01] <Colin[pi]> when I see people bitching and complaining here in the ER because they've had to wait a few hours I feel like telling them to STFU
1363: [23:14:11] <UncleCheese_> yup
1364: [23:14:14] <oddnoc> It’s the magic of the invisible hand!
1365: [23:14:14] <Colin[pi]> I've seen the Brazilian public hospitals... it aint pretty
1366: [23:14:54] <UncleCheese_> it's the second-to-best system in the world
1367: [23:15:06] <UncleCheese_> everything else is tied for dead last
1368: [23:16:53] * Bollig|DesignCty has joined #silverstripe
1369: [23:21:41] <Colin[pi]> UncleCheese_: you been to AU before?
1370: [23:21:50] <UncleCheese_> no, definitely want to go
1371: [23:21:56] <UncleCheese_> my wife and i were just talking about it
1372: [23:22:04] <UncleCheese_> but i wouldn't know where to start
1373: [23:22:11] * cloph_away quit (Ping timeout: 252 seconds)
1374: [23:22:17] <Stomach> the airport
1375: [23:22:27] <UncleCheese_> do i start with the poisonous snakes? or the carnivorous man-eating spiders?
1376: [23:22:29] <Colin[pi]> UncleCheese_: well if you need pointers, hit me up some time and I'll give you some protips on where to go :)
1377: [23:22:42] <Colin[pi]> UncleCheese_: the drop bears
1378: [23:22:48] <UncleCheese_> i met a couple from QLD last weekend
1379: [23:22:53] <Giganaire> definitely the drop bears
1380: [23:23:04] <UncleCheese_> and they were saying that they say it's getting cold when it's below 32
1381: [23:23:16] <UncleCheese_> and i was like.. how odd.. AU uses Farenheit?
1382: [23:23:49] <UncleCheese_> and then they said that they set their aircon to 25 degrees and i was like, ok, they're really just fucked in the head
1383: [23:24:16] <Colin[pi]> UncleCheese_: LOL yeah.. I went once from 15C Canberra to 30C Cairns, walked off the plane and nearly died... got to the resort and I'm like "Holy shit it's so hot" and the woman there is slipping on a jumper going "What? It's chilly today!"
1384: [23:24:16] <Giganaire> lol
1385: [23:24:20] <UncleCheese_> i think it was 18 in Wellington that day, and they were bundled up like Inuits
1386: [23:24:29] * cloph_away has joined #silverstripe
1387: [23:24:54] <Giganaire> i like 22. thats where i'd set aircon if i had it :P
1388: [23:25:26] <Colin[pi]> UncleCheese_: if you come here, definitely check out Tropical North Queensland, it's amazing
1389: [23:25:48] <Colin[pi]> UncleCheese_: go in winter and it'll be sane temperatures and humidity
1390: [23:26:10] <Giganaire> my only australia experience is a week in brisbane in spring
1391: [23:26:32] <Giganaire> it was 34 degrees and >90% humidity
1392: [23:26:33] <UncleCheese_> cool
1393: [23:26:34] <Giganaire> NEVER AGAIN
1394: [23:26:40] <UncleCheese_> tropical north queensland
1395: [23:26:41] <antmas> mine was 2 weeks on the GC in Summer
1396: [23:26:49] <Colin[pi]> UncleCheese_: we stayed here last July.. BEST HOLIDAY EVER: http://media-cdn.tripadvisor.com/media/photo-s/01/8a/c6/16/fitzroy-island-resort.jpg
1397: [23:26:51] <UncleCheese_> is the ocean warm enough to swim in?
1398: [23:26:55] <Colin[pi]> yep!
1399: [23:26:56] <UncleCheese_> whoa!
1400: [23:27:06] <Colin[pi]> we want to go back SO bad
1401: [23:27:16] <Colin[pi]> esp when is freezing here during Winter :(
1402: [23:27:20] <Giganaire> UncleCheese_: the bluebottles will get ya
1403: [23:27:31] <Colin[pi]> Giganaire: box jellyfish! :o
1404: [23:27:35] <UncleCheese_> yeah, i'm terrified of australia
1405: [23:27:48] <Colin[pi]> UncleCheese_: winter in the north is not jellyfish season
1406: [23:27:52] <UncleCheese_> i'd be afriad to take a step anywhere
1407: [23:28:03] <Giganaire> i... i have no idea what the fuck that siren was
1408: [23:28:04] <Colin[pi]> so there's only a 12-15% chance of a horrible death
1409: [23:28:27] <Giganaire> something just drove past my house with a crazy-ass siren
1410: [23:29:42] <Giganaire> wasn't going very fast either
1411: [23:29:59] <Colin[pi]> ghostbusters?
1412: [23:30:04] <Giganaire> idek
1413: [23:30:33] <Giganaire> sounded nothing like a police/ambo siren, and wasn't heavy enough for fire engine (they make the house vibrate)
1414: [23:31:33] <Colin[pi]> UncleCheese_: we stayed here the previous year too, was a different experience: http://www.couriacreekcottages.com.au/
1415: [23:32:08] <Colin[pi]> UncleCheese_: your own little farm cottage in the middle of nowhere... SO quiet and peaceful, and the night sky looked amazing
1416: [23:34:20] <UncleCheese_> yeah, that's what i'm looking for
1417: [23:34:25] <UncleCheese_> something we can do with a kid, too
1418: [23:35:00] <Colin[pi]> oh your kid would love it... lots of farm animals, the owner feeds them in the afternoon and you can tag along and help
1419: [23:35:43] <Colin[pi]> beautiful surroundings, I took my telescope there too and saw amazing stuff at night
1420: [23:36:11] <Giganaire> that sounds like something you could just as easily do by rocking up to any dairy farm in the waikato and offering them $200 :P
1421: [23:36:18] <Colin[pi]> pretty much ;P
1422: [23:36:23] <Colin[pi]> you walk outside and hear and see... nothing
1423: [23:36:40] <Colin[pi]> for my gf coming from the biggest city in the southern hemisphere, it was kinda weird at first
1424: [23:36:56] <Giganaire> lol
1425: [23:37:31] <Giganaire> in my city, you can drive 5 minutes from anywhere and be in the middle of dairy farms
1426: [23:37:34] <Giganaire> lol
1427: [23:37:54] <Colin[pi]> Giganaire: pretty much like Canberra, 5-10 mins out of the city and you're in farmland
1428: [23:38:10] <simon_w> Or Gungahlin
1429: [23:38:16] <simon_w> So, basically the same thing
1430: [23:38:30] <Colin[pi]> simon_w: lol
1431: [23:38:47] <Colin[pi]> simon_w: almost ploughed through some roos on the way to my gf's work the other morning
1432: [23:38:55] <Colin[pi]> about 8 of them just sitting on Yamba Dr
1433: [23:38:59] <Colin[pi]> big ones too
1434: [23:39:04] <simon_w> Free food!
1435: [23:39:07] <Colin[pi]> lol
1436: [23:39:33] <Colin[pi]> Canberra is the one city that almost matches the stereotype
1437: [23:39:43] <Colin[pi]> kids riding to school in roo pouches
1438: [23:39:44] <Colin[pi]> lol
1439: [23:40:30] <Giganaire> lol
1440: [23:40:36] <Giganaire> so canberra is basically hamilton then?
1441: [23:41:07] <Colin[pi]> not sure, haven't been there!
1442: [23:41:52] * sunzofman1 has joined #silverstripe
1443: [23:41:58] <Giganaire> during lambing season the primary schools have days where the kids bring in their lambs for judging
1444: [23:42:11] <simon_w> Giganaire, though with a lot higher proportion of white people
1445: [23:42:30] <Giganaire> which sounds like a small rural town thing, but its a city of 180,000 :P
1446: [23:43:29] <Giganaire> simon_w: so... more like a south island city then? :P
1447: [23:43:34] <ajmitch> ah, canberra...
1448: [23:44:10] <simon_w> Giganaire, yeah. Maybe Nelson without the sea
1449: [23:44:22] <ajmitch> and with more politicians
1450: [23:45:03] <Giganaire> it's sounding like a weird combination of wellington, hamilton and invercargill
1451: [23:46:33] <Giganaire> now i'm imaginging an australian version of tim shadbolt...
1452: [23:56:24] <ss23> Have you ever been high as fuck?
1453: [23:56:48] <Colin[pi]> umm
1454: [23:56:59] <Colin[pi]> I feel like this is a baited question
1455: [23:57:26] <simon_w> Colin[pi], it's legal here :p
1456: [23:57:41] <Colin[pi]> simon_w: decriminalised ;O
1457: [23:58:07] <simon_w> Rebooting the router again
1458: [23:58:11] <simon_w> The internet here is crap!
1459: [23:59:19] * simon__w has joined #silverstripe
1460: [23:59:56] <Colin[pi]> simon__w: it sure is

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