#silverstripe IRC Log

IRC log for 14 May 2013

All timestamps are in UTC.

1: [00:07:00] * simon_w quit (Ping timeout: 264 seconds)
2: [00:11:00] * mrzero quit (Ping timeout: 252 seconds)
3: [00:12:00] * mrzero has joined #silverstripe
4: [00:12:00] * mrzero quit (Changing host)
5: [00:12:00] * mrzero has joined #silverstripe
6: [00:16:00] <ss23> guys, is rainer nice?
7: [00:18:00] * mrzero_ has joined #silverstripe
8: [00:20:00] * mrzero_ is now known as mrzero
9: [00:20:00] <Pyromanik> what is a rainer ss23 ?
10: [00:20:00] <Pyromanik> can I update summaryfields from a decorator?
11: [00:20:00] * mrzero quit (Ping timeout: 256 seconds)
12: [00:21:00] <ss23> http://www.silverstripe.com/about-us/team/development/rainer-spittel/ dis
13: [00:23:00] <Pyromanik> update summaryfields, nice.
14: [00:24:00] <Pyromanik> because I think that's highly unlikely.
15: [00:24:00] <Pyromanik> are you scared of getting the bash at the hackfest?
16: [00:24:00] <Pyromanik> ss23: why do you ask?
17: [00:25:00] <ss23> Pyromanik: "Ok thanks. Would you be free to to do a skype call with our COO, Rainer Spittel? This wouldn't be a formal interview, just an informal chat so we can get to know more about you and for you to find out more about us and this role in particular"
18: [00:26:00] <ss23> Pyromanik: btw accomidation is all booked now
19: [00:28:00] <Pyromanik> ss23: sounds promising. But you'll have to leaving the Hamiltrons!
20: [00:28:00] <Pyromanik> ss23: ok cool thanks.
21: [00:36:00] * priithansen quit (Read error: Connection reset by peer)
22: [00:41:00] * nickmolhoek1 has joined #silverstripe
23: [00:41:00] * nickmolhoek quit (Ping timeout: 256 seconds)
24: [00:41:00] * priithansen has joined #silverstripe
25: [00:41:00] * nickmolhoek1 quit (Remote host closed the connection)
26: [00:41:00] * nickmolhoek1 has joined #silverstripe
27: [00:46:00] <FrozenFire> Hrmm, wonder if I could get SearchContext to accept a very complex manipulation of the search results
28: [00:54:00] * simon_w|air has joined #silverstripe
29: [00:55:00] <simon_w|air> ss23, I don't think he's been to any hackfests, but he does have to deal with the SS people so I'd assume he's used to being laid back
30: [00:56:00] * priithansen quit (Quit: priithansen)
31: [01:06:00] <simon_w|air> ss23, also, apparently it's still fine to bug me for help if you work for SS, and has been since just after the GHOP :p
32: [01:10:00] * LoveDuckie quit (Quit: Want to be different? Try HydraIRC -> http://www.hydrairc.com <-)
33: [01:14:00] <ss23> haha simon_w|air
34: [01:15:00] <Pyromanik> Google Hour Of Protection?
35: [01:15:00] <Pyromanik> ss23: because you have stockholm syndrome.
36: [01:15:00] <ss23> My worst nightmare realised :P
37: [01:15:00] * simon_w|air quit (Quit: Leaving)
38: [01:15:00] <Pyromanik> GHOP?
39: [01:15:00] <ss23> Pyromanik: Oh no, *leaving hamilton*
40: [01:16:00] <Pyromanik> oh
41: [01:16:00] <ss23> highly open particpation stuff
42: [01:16:00] <Pyromanik> hour of power!
43: [01:18:00] * simon_w|air has joined #silverstripe
44: [01:27:00] * mrzero quit (Ping timeout: 276 seconds)
45: [01:32:00] * mrzero quit (Changing host)
46: [01:32:00] * mrzero has joined #silverstripe
47: [01:32:00] * mrzero has joined #silverstripe
48: [01:33:00] <ss23> Sometimes I'm afraid I'm being to abrubt in my emails, but I can't think of anything fluffy to say to make it sound nicer
49: [01:49:00] <ss23> go nginx!
50: [01:49:00] <ss23> We successfully exploited the recent nginx remote overflow (CVE-2013-2028). If your web server version is 1.3.9-1.4.0, it's time to upgrade
51: [02:03:00] <Pyromanik> ??
52: [02:04:00] <spronk> eesh
53: [02:12:00] * Zauberfisch quit (Ping timeout: 268 seconds)
54: [02:26:00] * liam_ has joined #silverstripe
55: [02:26:00] * liam_ is now known as Guest85648
56: [02:26:00] * Guest85648 quit (Remote host closed the connection)
57: [02:29:00] * BPower has joined #silverstripe
58: [02:30:00] <BPower> Hey all -- What's the *right* way to programmatically change a page type / ClassName?
59: [02:36:00] <BPower> Anyone here? :) It's 2:30pm in Wellington! Is it a holiday?
60: [02:37:00] <ss23> (now we wait)
61: [02:37:00] <ss23> simon_w|air!
62: [02:37:00] <BPower> hahaha how nice.
63: [02:37:00] <ss23> They're all at lunch!
64: [02:37:00] <ss23> Here, let me try help
65: [02:37:00] <ss23> simon_w|air!
66: [02:37:00] <ss23> simon_w|air!
67: [02:42:00] <willr> just like any other property on page
68: [02:42:00] * mrzero quit (Read error: Operation timed out)
69: [02:42:00] <willr> BPower $obj->ClassName = "Awesome!"
70: [02:43:00] <BPower> You guys have late lunches
71: [02:43:00] <willr> not a holiday, lunch
72: [02:44:00] <BPower> hahah
73: [02:44:00] * willr likes his sleep
74: [02:44:00] <willr> What happens when you don't turn up to work till 10am.
75: [02:44:00] <BPower> So I was going to change it that way, but I saw this in DataObject.php: http://goo.gl/bO3X2
76: [02:44:00] <BPower> good point
77: [02:47:00] * joelpittet has joined #silverstripe
78: [02:47:00] <BPower> Ya.... but it's not super clear on exactly how it should be used.
79: [02:47:00] <willr> Ah RTFM'ing. Always helps
80: [02:48:00] <willr> $better = $obj->newClassInstance('NewClassName');
81: [02:49:00] * mrzero has joined #silverstripe
82: [02:49:00] * mrzero quit (Changing host)
83: [02:49:00] * mrzero has joined #silverstripe
84: [02:49:00] <BPower> I'll try that
85: [02:49:00] * DigNZ1 quit (Quit: DigNZ1)
86: [02:50:00] * DigNZ quit (Remote host closed the connection)
87: [02:50:00] * DigNZ has joined #silverstripe
88: [02:50:00] * DigNZ has joined #silverstripe
89: [02:51:00] <BPower> Hmm... I can't really do that in onBeforeWrite
90: [02:51:00] <BPower> because it's $this
91: [02:57:00] <unsignedint> is there a way (in ss2.4) to return a form error from a form action? ie, set a custom error message on a form field then call Director::redirectBack() ?
92: [02:57:00] <simon_w|air> ss23, I don't get notifications on this laptop :p
93: [02:57:00] <unsignedint> after the initial validation has already happened
94: [03:01:00] <Pyromanik> BPower: you can set classname and then re-get or something
95: [03:02:00] <simon_w|air> That one :p
96: [03:02:00] <Pyromanik> but iirc simon_w|air advised someone recently of a better way
97: [03:02:00] <Pyromanik> there's a method on dataobject or sitetree or something that does that for you
98: [03:02:00] <simon_w|air> [14:48:44] <willr> $better = $obj->newClassInstance('NewClassName');
99: [03:02:00] <Pyromanik> oh
100: [03:03:00] <Pyromanik> Session::set("Form.{$form->Name()}.blah", 'All the errors')
101: [03:03:00] <Pyromanik> unsignedint: yes
102: [03:03:00] <unsignedint> Pyromanik: how can I do it?
103: [03:03:00] <Pyromanik> $this->redirectBack();
104: [03:04:00] <Pyromanik> or validator.php
105: [03:04:00] <Pyromanik> set form.formname.message
106: [03:04:00] <unsignedint> cheers, I knew it was something like that but I forgot the session key
107: [03:04:00] <Pyromanik> form.formname.data
108: [03:04:00] <Pyromanik> form.formname.errors
109: [03:04:00] <Pyromanik> iirc
110: [03:04:00] <Pyromanik> see form.php
111: [03:04:00] <Pyromanik> or something
112: [03:08:00] <BPower> Pyromanik, simon_w|air, willr -- Thanks.
113: [03:09:00] <BPower> Since I'm trying to change $this, I think I just have to set $this->ClassName directly, then reload the page.
114: [03:23:00] * liam_ is now known as Guest96211
115: [03:23:00] * liam_ has joined #silverstripe
116: [03:25:00] <simon_w|air> Woo, moving some of our extensions into traits
117: [03:30:00] * cloph_away has joined #silverstripe
118: [03:31:00] * cloph_away1 quit (Ping timeout: 245 seconds)
119: [03:47:00] * SightUnseen has joined #silverstripe
120: [03:49:00] * SightUnseen has left #silverstripe
121: [03:51:00] <Pyromanik> http://www.gizoogle.net/
122: [03:55:00] * Bollig|DesignCty has joined #silverstripe
123: [03:57:00] <unsignedint> In SS 2.4, can you pass variables to included templates? eg <% Include SomeTemplate SomeCondition=true %>
124: [04:04:00] <Bollig|DesignCty> unsignedint: no
125: [04:05:00] <Bollig|DesignCty> template parser is deliberately simple, generally speaking it's easier to do all that stuff in php and return what you need to the template.
126: [04:06:00] <unsignedint> thanks anyway
127: [04:06:00] <unsignedint> well thats a shame
128: [04:07:00] * BPower quit (Quit: Ex-Chat)
129: [04:08:00] * Shrike_Finland has joined #silverstripe
130: [04:10:00] <simon_w|air> Can in my 2.4! :p
131: [04:13:00] <ss23> simon_w|air: Why do you have 2.4!
132: [04:15:00] <simon_w|air> Because upgrading will take far too long
133: [04:20:00] * gordon has joined #silverstripe
134: [04:20:00] * gordon is now known as Guest78372
135: [04:21:00] * Guest78372 is now known as elgrodo
136: [04:21:00] <Guest78372> .nick elgrodo
137: [04:24:00] <ss23> simon_w|air: automate it!
138: [04:26:00] <ss23> :)
139: [04:26:00] <simon_w|air> ss23, ahahahahahahahahaha
140: [04:26:00] <ss23> sorry, I forget you're too noobt o automate it properly
141: [04:26:00] <ss23> :3
142: [04:29:00] <simon_w|air> Though it's getting to the stage where I'm thinking of ditching SilverStripe for our next rewrite
143: [04:30:00] * kerozene is now known as OldTom
144: [04:31:00] * Shrike_Finland quit (Quit: Leaving.)
145: [04:33:00] <ss23> Irregardless, for all intensive purposes I literally could care less about this conversation
146: [04:34:00] <ss23> simon_w|air: To be honest, Silverstripe does too many BC breaks for me to really think of it highly
147: [04:34:00] <ss23> Like that 3.1 3.0 chance where no module can work between them?
148: [04:34:00] <simon_w|air> Ha! My module works between them!
149: [04:35:00] <simon_w|air> But it's more a performance point of view
150: [04:35:00] <ss23> SS performance is also bad :O
151: [04:35:00] <simon_w|air> (I did have to ignore everyone's pull requests though. Apparently they can't write cross-version code)
152: [04:35:00] <ss23> Luckily not an issue for me
153: [04:36:00] <simon_w|air> But yeah, the BC breaks are kinda massive
154: [04:36:00] <simon_w|air> And I think there's a lot more planned for 3.2
155: [04:36:00] <ss23> :<
156: [04:36:00] <simon_w|air> Trying to get those into 4 instead
157: [04:37:00] <ss23> Does Silverstripe do LTS version?
158: [04:37:00] <ss23> And I was like ":D"
159: [04:37:00] <ss23> but there was some software I saw recently that did
160: [04:37:00] <ss23> nope
161: [04:37:00] <ss23> I think c5 does
162: [04:37:00] <ss23> lol
163: [04:37:00] <simon_w|air> Does anyone other than OS distributors?
164: [04:37:00] <ss23> I wouldn't mind BC breaks if they did 2 year LTS versions
165: [04:38:00] <simon_w|air> Just don't use modules :p
166: [04:38:00] <simon_w|air> Frankly, I don't see the point in going LTS. 2.4 still gets security updates, and 2.3 got one last year too.
167: [04:38:00] <simon_w|air> So I guess they're all LTS?
168: [04:39:00] <ss23> Having a more formal idea of LTS in place might be nice though
169: [04:39:00] <Pyromanik> no point in LTS when no one makes modules or updates for it anymore.
170: [04:39:00] <Pyromanik> if you website is 4 years old and you want to make updates, you should really just be looking at a new one
171: [04:39:00] <Pyromanik> Websites aren't a long term investment.
172: [04:39:00] * DigNZ quit (Quit: DigNZ)
173: [04:39:00] <ss23> Yeah well I mean like, if they get sec updates, that counts as LTS
174: [04:40:00] <Pyromanik> yeh right. Code you look back on and go "wtf was I thinking?"
175: [04:40:00] <simon_w|air> (ignoring sapphire)
176: [04:40:00] <simon_w|air> app.pocketrent.com's coming up on 3 years. I wonder how much of commit 1/2 are still around...
177: [04:40:00] <Pyromanik> Though if you're making portal style apps like simon_w|air ... bit different I guess.
178: [04:41:00] <Pyromanik> more freedom to make proper updates rather than slapping a patch on a shit.
179: [04:41:00] * DigNZ quit (Client Quit)
180: [04:41:00] <Pyromanik> BC breaking is a good thing.
181: [04:41:00] * DigNZ has joined #silverstripe
182: [04:41:00] <Pyromanik> so you end up rewriting anyway...
183: [04:42:00] <Pyromanik> simon_w|air: true in minor versions it's a bit drastic.
184: [04:42:00] <Pyromanik> otherwise we'd end up with more CTF.
185: [04:42:00] <simon_w|air> Pyromanik, BC breaking for non-security in minor versions (like 3.0->3.1) is usually frowned upon
186: [04:42:00] <Pyromanik> speed, performance & all sorts of improvements rather than tuneups.
187: [04:43:00] <simon_w|air> The dropping all the deprecated stuff in 3.1 is fine, the making almost every model throw warnings not so much
188: [04:43:00] <Pyromanik> change versioning
189: [04:43:00] <Pyromanik> :P
190: [04:43:00] <Pyromanik> well, we kinda have already.
191: [04:43:00] <Pyromanik> 3.0
192: [04:43:00] <Pyromanik> 3.0.1
193: [04:43:00] <Pyromanik> 3.0.2
194: [04:43:00] <Pyromanik> etc
195: [04:43:00] <Pyromanik> 3.1 -> api improvement
196: [04:43:00] <Pyromanik> sec updates.
197: [04:44:00] <Pyromanik> afaik the major issue between 3.0 and 3.1 is public/private yeh?
198: [04:45:00] <simon_w|air> yeah, and deprecating basically every _config.php setter (and related getter)
199: [04:47:00] <simon_w|air> (so function Blah() { return '<b>Bold</b>'; } -> $Blah will be escaped without a cast)
200: [04:47:00] <simon_w|air> The other thing, though it is a security change, is default_cast got changed to Text from HTMLText
201: [04:48:00] <Pyromanik> allowed actions becoming mandatory will shift people out of bad habits (of which I'm well stuck in)
202: [04:48:00] <Pyromanik> yeh
203: [04:48:00] <simon_w|air> Oh, and that allowed_actions change is going to bite people too (though also a security thing)
204: [04:48:00] <ss23> all those security issues, and there still hasn't been a fix for the sqli I reported in 3.0.5
205: [04:49:00] <ss23> Pyromanik: How many people do you know running 3.0.5?
206: [04:49:00] <Pyromanik> ss23: so fix it?
207: [04:49:00] <ss23> Pyromanik: It's fixed in trunk
208: [04:49:00] <Pyromanik> so?
209: [04:49:00] <Pyromanik> ...
210: [04:49:00] <Pyromanik> you want backport fix?
211: [04:49:00] <Pyromanik> to be fair it should be done.
212: [04:49:00] <Pyromanik> all fo them.
213: [04:49:00] <ss23> exactly
214: [04:49:00] <simon_w|air> None?
215: [04:50:00] <ss23> plus the tarball for 3.0.5 is all broken, has a stupid test.php in it
216: [05:00:00] * nickmolhoek1 quit (Quit: nickmolhoek1)
217: [05:05:00] <simon_w|air> "Labor is wasting $43 billon on a broadband network that will be overtaken by technology"
218: [05:05:00] <simon_w|air> Some people shouldn't be allowed on the internet
219: [05:06:00] <unsignedint> that doesnt even make sense
220: [05:07:00] <ss23> Australia is such a shitty country for fibre. NZ is like, the perfect shape
221: [05:07:00] <simon_w|air> And Auckland didn't want it
222: [05:07:00] <unsignedint> its just nz didnt have enough people in a lot of areas to justify putting fibre throughout the area.
223: [05:07:00] <ss23> ^.^
224: [05:07:00] <ss23> Guise, why can't we just use the existing copper network?
225: [05:07:00] <unsignedint> really?
226: [05:07:00] <unsignedint> who wouldnt want fibre to their house?
227: [05:07:00] <simon_w|air> ss23, we've got like four of those :p
228: [05:07:00] <ss23> can have one massive fibre backbone running the entire length of NZ
229: [05:07:00] <simon_w|air> yeah
230: [05:07:00] <unsignedint> are they referring to the nationwide fibre?
231: [05:08:00] <simon_w|air> Or even a competing copper network
232: [05:08:00] <unsignedint> or at least their street
233: [05:08:00] <simon_w|air> Auckland, as a city, was brown-noising Telecom
234: [05:08:00] <unsignedint> damn jaffas
235: [05:08:00] <simon_w|air> TCL wasn't allowed to roll out their cable (fibre-backed) network
236: [05:13:00] * ss-log has joined #silverstripe
237: [05:14:00] <simon_w|air> Woo, managed to re-join on a reconnect for once. Go ss-log!
238: [05:16:00] <simon_w|air> Time to learn another language
239: [05:16:00] <simon_w|air> Anyway, enough bitching about cabling since every country's screwed in that regard
240: [05:19:00] <simon_w|air> willr, before that guy can make a post and link to it: http://www.silverstripe.org/all-other-modules/show/23728
241: [05:20:00] <simon_w|air> Sure?
242: [05:20:00] <simon_w|air> Ah, honours. That massive time sink.
243: [05:20:00] <simon_w|air> Just delete spam, right?
244: [05:20:00] <willr> aren't you a mod?
245: [05:20:00] <simon_w|air> Nope
246: [05:20:00] <simon_w|air> Was doing honours when they asked for some, so no time
247: [05:20:00] <willr> want to be?
248: [05:21:00] <willr> yep. and anyone you don't like.
249: [05:21:00] <willr> @welsh.co.nz email?
250: [05:22:00] <simon_w|air> ss23, that's because it got deleted
251: [05:22:00] <ss23> Page not found
252: [05:22:00] <simon_w|air> yup
253: [05:22:00] <simon_w|air> I think so
254: [05:22:00] <ss23> halp simon_w|air page not found
255: [05:22:00] <simon_w|air> The one with all the widgets I need to update sometime...
256: [05:22:00] <ss23> Sorry, but the page you were trying to get to doesn't exist.
257: [05:23:00] <ss23> :<
258: [05:23:00] * travis-ci has left #silverstripe
259: [05:23:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7146103
260: [05:23:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d5bcbbd66a8a...a4f098322099
261: [05:23:00] <travis-ci> [travis-ci] silverstripe/sapphire#2250 (3.1 - a4f0983 : Sean Harvey): The build passed.
262: [05:23:00] * travis-ci has joined #silverstripe
263: [05:23:00] <willr> too fast for ss23
264: [05:25:00] <willr> Well they have them, called 'ADMIN' users
265: [05:25:00] <simon_w|air> willr, looks like the forum could do with global moderators
266: [05:25:00] <willr> bit of fail
267: [05:25:00] <simon_w|air> Yeah. Ooh, could be a hackathon project
268: [05:26:00] <simon_w|air> I'm looking for something fun
269: [05:26:00] <simon_w|air> Well, that's why it'll be a project instead of a 20-minute thing
270: [05:26:00] <willr> you'd first need to update forum to 3.1 completely
271: [05:27:00] <willr> hm should start thinking of my project. One of the tickets in trac was for events around adding components. That could be useful
272: [05:28:00] <willr> onBefore/AfterRelationshipChanged()
273: [05:29:00] <willr> Got 450 issues on github to choose if you don't have anything you want
274: [05:29:00] <ss23> halp what should I pick for a project
275: [05:30:00] <ss23> That seems like a 'quick' project, simon_w|air ;_;
276: [05:30:00] <ss23> laaaame, simon_w|air
277: [05:30:00] <simon_w|air> AppDotNet module?
278: [05:30:00] <simon_w|air> ss23, ecommerce for 3.1! :p
279: [05:31:00] <ss23> My SS related itch is the templating system
280: [05:31:00] <ss23> How does that work?
281: [05:31:00] <simon_w|air> Pick an itch, scratch it :p
282: [05:31:00] <simon_w|air> Time tracking module?
283: [05:31:00] <willr> ss23 sounds like a project then!
284: [05:31:00] <ss23> (literally, I'm lucky to get an error if I make typos in a template)
285: [05:31:00] <ss23> The itchy is that the error reporting couldn't be worse
286: [05:31:00] <willr> ew why, MinuteDock / Harvest
287: [05:31:00] <ss23> Hmm
288: [05:32:00] <simon_w|air> You could do what Pyromanik did at the one he came to
289: [05:32:00] <simon_w|air> Though Hamish is apparently slacking off on holiday
290: [05:32:00] <ss23> mm, maybe, but I'll have to spend lots of time learning before hackfest to be able to make any progress
291: [05:32:00] <willr> sounds like a plan
292: [05:32:00] <simon_w|air> Get 3.0 installed :p
293: [05:33:00] <ss23> lol simon_w|air
294: [05:33:00] <willr> otherwise people loose a couple hours if they're lame
295: [05:33:00] <willr> Yeah pro tip: make sure 3.1 is installed and setup and you have git ready
296: [05:34:00] * travis-ci has left #silverstripe
297: [05:34:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7146115
298: [05:34:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a4f098322099...2beb3519e4c0
299: [05:34:00] <travis-ci> [travis-ci] silverstripe/sapphire#2251 (3.1 - 2beb351 : Sean Harvey): The build passed.
300: [05:34:00] * travis-ci has joined #silverstripe
301: [05:37:00] <Bollig|DesignCty> hey, is there a way to check if a page has inherited from another? I'm basically trying to do a recursive check on ClassName…
302: [05:39:00] <ss23> http://www.ebay.com.au/itm/2-Australian-Coin-The-Nile-Stimulus-Package-/261215533637 wat
303: [05:40:00] * unsignedint quit (Remote host closed the connection)
304: [05:41:00] <willr> Bollig|DesignCty instanceof
305: [05:42:00] <Bollig|DesignCty> so I have if($page instanceof TabPage) { but it appears to be doing stuff all ;(
306: [05:42:00] <Bollig|DesignCty> (and thanks willr!)
307: [05:42:00] <willr> should it work?
308: [05:43:00] <Bollig|DesignCty> well, I'd like it if it did! o_O
309: [05:46:00] <willr> Well instance of is what you want to look into http://php.net/manual/en/language.operators.type.php.
310: [05:47:00] <willr> Double check your assumptions :)
311: [06:14:00] * willr quit (Quit: willr)
312: [06:25:00] <simon_w|air> ss23, Rewrite SilverStripe in Go! :p
313: [06:34:00] <discorpia> does $fields->removeByName() support removing entire tabs from the cms?
314: [06:35:00] <discorpia> it's tabs that were created in a parent class of the pagetype
315: [06:37:00] <simon_w|air> yes
316: [06:41:00] * maknz has joined #silverstripe
317: [06:41:00] * maknz quit (Changing host)
318: [06:41:00] * maknz has joined #silverstripe
319: [06:41:00] * maknz quit (Read error: Connection reset by peer)
320: [06:41:00] * priithansen has joined #silverstripe
321: [06:42:00] * zfmf1 has joined #silverstripe
322: [06:42:00] <ss23> simon_w|air: A+ good idea :D
323: [06:51:00] * unsignedint has joined #silverstripe
324: [06:55:00] * unsignedint quit (Ping timeout: 264 seconds)
325: [07:14:00] * g4b0 has joined #silverstripe
326: [07:22:00] * EasyCo quit (Quit: EasyCo)
327: [07:26:00] * joelpittet quit (Remote host closed the connection)
328: [07:42:00] * chillu has joined #silverstripe
329: [07:52:00] * kinglozzer has joined #silverstripe
330: [07:56:00] * PigeonFriend has joined #silverstripe
331: [07:59:00] <elgrodo> I have a many many relationship between MapMarker and MapMarketSet, the idea being to group sets of items together, such as railway stations, to show on multiple google maps
332: [08:00:00] <elgrodo> I want to show guide points like this, http://i.imgur.com/bcl9iMH.png , and have this working mostly. The grey markers are other markers in the same set, which in this case is sky train stations in Bangkok
333: [08:00:00] <elgrodo> The one case that does not work is when creating a new marker, is it possible to get a handle on the parent set when using the Grid Field Relation Editor?
334: [08:00:00] <elgrodo> oops GridFieldConfig_RelationEditor I mean
335: [08:01:00] <simon_w|air> From where?
336: [08:03:00] <elgrodo> for a URL like this, when I click 'Add New Marker' http://demo.silverstripe/admin/map_markers/MapMarkerSet/EditForm/field/MapMarkerSet/item/1/ItemEditForm/field/Markers/item/new
337: [08:03:00] <elgrodo> is it possible to get ID of the map marker set which is 1 in this example
338: [08:04:00] <simon_w|air> Not really
339: [08:05:00] <elgrodo> simon_w|air: ok, no point wasting too much tme on it then
340: [08:13:00] <priithansen> Should Form on a custom Controller use the correct url automatically or too I need to set the action url manually? Using the simplest example from form doc submits the form to controllerls class name / form action and not to the name set in the routes.
341: [08:14:00] <simon_w|air> priithansen, you need a link method on the controller
342: [08:14:00] <priithansen> Thanks that sounds more like ss way
343: [08:16:00] * qlex has joined #silverstripe
344: [08:16:00] * qlex says hi
345: [08:17:00] <qlex> im using 3.0.5 and im looking for two things. could somebody provide any knowledge/hints on existance of such
346: [08:17:00] <qlex> (sorry, i should have searched the web, but im in a big hurry today
347: [08:17:00] <qlex> - ability to create graphs from within cms - ie. construct a table of two columns and graph with X and Y axis would be created from it
348: [08:18:00] <qlex> graphs: is jpGraph or google charts packed into any ready-to-deploy module ?
349: [08:18:00] <qlex> - ability to see a log of who was logging in to cms
350: [08:19:00] <ec8or_> a log of who has been logging in should be available from the database though, not sure if it shows users explicitly accessing the CMS
351: [08:19:00] <ec8or_> qlex: not that i know of
352: [08:19:00] * DesignerX has joined #silverstripe
353: [08:20:00] <ec8or_> does anyone here do any c++/Qt work?
354: [08:20:00] <simon_w|air> qlex, for the logging in log: Security::set_login_recording(true);
355: [08:20:00] <simon_w|air> for the graphs, not that I'm aware of
356: [08:23:00] * willr has joined #silverstripe
357: [08:24:00] <willr> @simon_w|air you can tell Michael that it should be a decent chunk faster now.
358: [08:24:00] <qlex> simon_w|air: where does it store this log? in a file or in cms ?
359: [08:26:00] <simon_w|air> or you can make a ModelAdmin for it
360: [08:26:00] <simon_w|air> qlex, they should show up when editing a Member in the CMS
361: [08:26:00] <simon_w|air> qlex, the database, LoginAttempt table
362: [08:26:00] * tankr has joined #silverstripe
363: [08:28:00] <simon_w|air> willr, eh, he's not online
364: [08:30:00] <qlex> and also, thjat somebody tried to add jpgraph support but dont know if he manatged to get it done...
365: [08:30:00] <qlex> just read that there's a module google charts
366: [08:30:00] <qlex> thanks ! will try it out
367: [08:31:00] * willmorgan has joined #silverstripe
368: [08:40:00] * g4b0 quit (Ping timeout: 256 seconds)
369: [08:51:00] * unsignedint has joined #silverstripe
370: [08:53:00] <DesignerX> hi guys , I need help with writing a Regular Expresstion in PHP, I spent alot of time but couldnt get it to work !
371: [08:54:00] <simon_w|air> mmm, regex
372: [08:55:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7149109
373: [08:55:00] <travis-ci> [travis-ci] silverstripe/sapphire#2253 (3.1 - 1e5d404 : Ingo Schommer): The build passed.
374: [08:55:00] * travis-ci has left #silverstripe
375: [08:55:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/2beb3519e4c0...1e5d40474d43
376: [08:55:00] * travis-ci has joined #silverstripe
377: [08:56:00] <DesignerX> like xxxxx@xxx.xxx.xxx , only 1 @ , minimum 2 dots , no comma allowed
378: [08:56:00] * unsignedint quit (Ping timeout: 276 seconds)
379: [08:56:00] <DesignerX> I need to validate for this format : {any char,do or dashs, no comma}{Must have only one @}{any char,do or dashs, no comma, Must end with dot}{any char,do or dashs, no comma, Must end with dot}{any char,do or dashs, no comma}
380: [08:57:00] <simon_w|air> And, if you're validating an email address, Email::validEmailAddress($email)
381: [08:57:00] <DesignerX> not in SS
382: [08:57:00] <simon_w|air> by character, do you mean letter and number?
383: [08:57:00] <DesignerX> yeh,
384: [08:58:00] <simon_w|air> Emails are a lot more complicated than that
385: [08:58:00] <DesignerX> on it , hope it does exactly the above
386: [08:58:00] <simon_w|air> Also, a lot more complicated than the regex in that method...
387: [08:58:00] <simon_w|air> Copy and paste that method :)
388: [08:58:00] <DesignerX> :D
389: [08:59:00] <DesignerX> its for an assessment , but I still need to learn how to create my own regex for later development
390: [09:00:00] <simon_w|air> willmorgan, have a look at that method :p
391: [09:00:00] <willmorgan> DesignerX simon_w|air you want to use the PHP inbuilt method: filter_var
392: [09:01:00] <willmorgan> http://uk3.php.net/filter_var
393: [09:01:00] <simon_w|air> Email::validEmailAddress
394: [09:01:00] <willmorgan> which?
395: [09:02:00] <simon_w|air> bah
396: [09:02:00] <simon_w|air> DesignerX, anyway, to match that limited pattern, preg_match('#[A-Za-z0-9.-]+@([A-Za-z0-9.-]*\.){2}[A-Za-z0-9.-]+
397: [09:02:00] <willmorgan> sensemaking, you are doing it
398: [09:03:00] <simon_w|air> DesignerX, anyway, to match that limited pattern, preg_match('#^[A-Za-z0-9.-]+@([A-Za-z0-9.-]*\.){2}[A-Za-z0-9.-]+$#', $value)
399: [09:03:00] <DesignerX> whats the # for ? read 3 tutorial blogs for regex & non of them used it !
400: [09:05:00] <simon_w|air> it's just the starting/ending character, so you can have options afterwards
401: [09:05:00] <simon_w|air> They probably use /
402: [09:05:00] <simon_w|air> I like # more than /
403: [09:08:00] <g4b0> hi all
404: [09:08:00] <DesignerX> simon_w|air: whats the dot & dash in #^[A-Za-z0-9.-] for ? ( the .- )
405: [09:08:00] <simon_w|air> Cause you wanted to match them
406: [09:08:00] * g4b0 has joined #silverstripe
407: [09:08:00] * travis-ci has joined #silverstripe
408: [09:08:00] <travis-ci> [travis-ci] silverstripe/sapphire#2254 (3.1 - cf31114 : Will Rossiter): The build passed.
409: [09:08:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1e5d40474d43...cf311148137b
410: [09:08:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7149546
411: [09:08:00] * travis-ci has left #silverstripe
412: [09:08:00] <simon_w|air> have the dash there means it's not treated as a range and a . is always a literal inside the []s
413: [09:09:00] <g4b0> I'm still having problem in DO editing permalink...
414: [09:09:00] <DesignerX> ah ok, so its literal inside the [] , not treated as range or the dot is not treated as "any character except \n (new line) "
415: [09:10:00] <simon_w|air> DesignerX, both
416: [09:10:00] <g4b0> I have a dataobject: http://pastebin.com/1eqv7wnk
417: [09:10:00] <DesignerX> g4b0: hi again , where do you need the edit link ? What kind of relation does the obejct & Page have (one-many ? many_many?)
418: [09:11:00] <g4b0> and a page holder: http://pastebin.com/YJ0Pi2sM
419: [09:11:00] <g4b0> In firefox I add DO through GF
420: [09:11:00] <g4b0> then I edit them and I copy the link
421: [09:12:00] <g4b0> and I gat a whita page with the following error:
422: [09:12:00] <g4b0> I can't handle sub-URLs of a Form object.
423: [09:12:00] <g4b0> I paste the link
424: [09:12:00] <g4b0> login
425: [09:12:00] <g4b0> after that I open chrome
426: [09:13:00] <simon_w|air> g4b0, and what does the link look like?
427: [09:13:00] <g4b0> http://ssdev-master.zk/admin/pages/edit/EditForm/field/Sponsors/item/3/edit
428: [09:13:00] <g4b0> that's the link, simon_w
429: [09:13:00] <simon_w|air> And that'd be why. It doesn't know what the current page is, and it's missing the session data
430: [09:13:00] * willr quit (Quit: willr)
431: [09:13:00] <g4b0> coming from RequestHandler line 225
432: [09:14:00] <g4b0> ok, that was my suspect, a session issue
433: [09:14:00] <g4b0> I would like to send email with direct link to DO editing
434: [09:14:00] <simon_w|air> *as
435: [09:15:00] <simon_w|air> kinglozzer, /etc/init.d/mysql[d] stop?
436: [09:15:00] <ss23> kinglozzer: Normally it'll have an initscript, so /etc/init.d/mysql*tab* restart
437: [09:15:00] <ss23> what simon_w|air said!
438: [09:15:00] <kinglozzer> Ughhhh. My mysql server is so bugged. Anyone know the terminal command for stopping/starting it? The GUI just locks up when I try with that
439: [09:15:00] <ss23> kinglozzer: Depends on how you installed it and normally start/stop it
440: [09:15:00] <DesignerX> g4b0: manage the objects in ModelAdmin ? that shouldnt need any sesstion data ?
441: [09:16:00] <g4b0> I have 6 news page, each of them is below a department
442: [09:16:00] <g4b0> example
443: [09:16:00] <g4b0> also for the same DO
444: [09:16:00] <ss23> http://stop-irc-bullying.eu/images/2.jpg me getting bullied by simon_w|air :<
445: [09:16:00] <g4b0> DesignerX: I can't, because I need access control
446: [09:17:00] <g4b0> an employee can insert news just under it's department
447: [09:17:00] <kinglozzer> /Library/StartupItems/MySQLCOM/MySQLCOM start
448: [09:17:00] <kinglozzer> Curse OSX
449: [09:17:00] <g4b0> so he need access through the sitetree
450: [09:19:00] <simon_w|air> g4b0, http://ssdev-master.zk/admin/pages/edit/EditForm/field/Sponsors/item/3/edit?currentPageID=$ID should do it
451: [09:19:00] <kinglozzer> Aaaaaand it won't start
452: [09:20:00] <simon_w|air> should give you an error
453: [09:20:00] <simon_w|air> kinglozzer, sudo -u _mysql /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data
454: [09:21:00] <g4b0> I swapped $ID with 7 (my page ID), but I still get the same error
455: [09:21:00] <g4b0> simow_w|air: it doesn't work...
456: [09:22:00] <g4b0> kinglozzer: maybe you have to delete the lock file
457: [09:22:00] <kinglozzer> Unable to lock, "InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files."
458: [09:22:00] <g4b0> or maybe you have to kill a zombie mysql
459: [09:23:00] <ss23> https://twitter.com/hamfritta/status/334225145935831040/photo/1 A+
460: [09:24:00] <kinglozzer> Any way of telling which processes are accessing a file or something?
461: [09:25:00] <g4b0> http://en.wikipedia.org/wiki/Fuser_(Unix)
462: [09:25:00] <simon_w|air> sudo lsof /path/to/file
463: [09:25:00] <g4b0> in english :)
464: [09:25:00] <g4b0> kinglozzer: http://it.wikipedia.org/wiki/Fuser_(Unix)
465: [09:26:00] <simon_w|air> though, just ps axu | grep mysql
466: [09:27:00] <g4b0> So, there's no way to have a DO editing permalink...
467: [09:28:00] <simon_w|air> did the pid change?
468: [09:28:00] <simon_w|air> sudo !!
469: [09:28:00] <g4b0> killall mysqld
470: [09:28:00] <kinglozzer> Okay so there's /usr/local/mysql/bin/mysqld in there
471: [09:28:00] <kinglozzer> sudo /usr/local/mysql/bin/mysqld stop
472: [09:28:00] <kinglozzer> Still there, should it be?
473: [09:29:00] <kinglozzer> simon_w|air: I have no idea which one the pid is, but I'm pretty sure it did - all the numbers changed :D
474: [09:31:00] <g4b0> worked for me!!!
475: [09:31:00] <simon_w|air> So yes, the pid changed (it's the first one)
476: [09:31:00] <simon_w|air> That means it's be set to always be running
477: [09:31:00] <g4b0> simon_w|air: http://ssdev-master.zk/admin/pages/edit/EditForm/field/Sponsors/item/3/edit?ID=7
478: [09:31:00] * willr has joined #silverstripe
479: [09:32:00] <g4b0> thanks a lot
480: [09:32:00] <simon_w|air> g4b0, heh, oops. Pasted the method name instead of the requestVar
481: [09:32:00] <g4b0> ID, not currentPageID
482: [09:32:00] <g4b0> :)
483: [09:32:00] <kinglozzer> simon_w|air: So it's running? Still can't access it
484: [09:34:00] <kinglozzer> Restarting always fixes it, just a pain in the a**
485: [09:37:00] <kinglozzer> Well it seems to be fixed now at least. Thanks for the help simon_w|air, g4b0, ss23
486: [09:37:00] * tankr quit (Quit: Leaving.)
487: [09:45:00] * markeaston has joined #silverstripe
488: [09:53:00] <PigeonFriend> g40: code?
489: [09:53:00] * jcwacky quit (Ping timeout: 240 seconds)
490: [09:54:00] <ss23> lol
491: [09:54:00] <PigeonFriend> ignore me
492: [09:54:00] <PigeonFriend> o, ffs, i was scrolled up and ddidnt realise
493: [09:57:00] * jcwacky has joined #silverstripe
494: [09:58:00] * gumble has joined #silverstripe
495: [09:59:00] <gumble> why does the silverstripe/admin page (login to cms) now too display my default template witth missing fields for email/password/login?
496: [10:00:00] <ss23> Did you forget to add $Form into your templates, gumble?
497: [10:02:00] <willr> that is super old ah
498: [10:02:00] <qlex> yep
499: [10:02:00] <qlex> quite an old thread but you said: "We use flot as our primary JS graphing tool."
500: [10:02:00] <willr> flot?
501: [10:02:00] <qlex> http://www.silverstripe.org/template-questions/show/9024
502: [10:02:00] <qlex> willr: do you have any examples of this working on ss ?
503: [10:03:00] <willr> http://www.chartjs.org/ also has a really nice simple API
504: [10:03:00] <willr> We use http://www.highcharts.com/ mostly now at work
505: [10:03:00] <ec8or_> i�ve been using pChart, it is pretty good
506: [10:04:00] <willr> Since writing that I've left SS so I don't have any of those projects available to pull out the code
507: [10:04:00] <ec8or_> chartjs looks nice
508: [10:05:00] <willr> charts.js is fine if you don't want interactivity but high charts is the top end of things
509: [10:07:00] * henkpoley has joined #silverstripe
510: [10:07:00] <qlex> thanx
511: [10:08:00] <qlex> but maybe its still easier to use excel and then just put screenshot into the CMS ?
512: [10:08:00] <qlex> my client asked if he can create a table with two columns in CMS and have a graph being drawn based on the data
513: [10:13:00] <willmorgan> if you just use the API and serve your data to it in the right format you can get reasonably good looking charts
514: [10:13:00] <willmorgan> qlex: another option would be to use google charts - we have done so, but again, without a module
515: [10:13:00] <ec8or_> qlex: it will take some work to implement but is possible for sure
516: [10:18:00] <priithansen> I'm using highcharts with https://github.com/petesiss/phphc php wrapper for the thing + viewabledata extension to glue it together. Though the config still becomes a big pile of arrays.
517: [10:19:00] <willmorgan> wow
518: [10:19:00] <willmorgan> that needs namespaces
519: [10:19:00] <willmorgan> "new Renderer"
520: [10:19:00] * Guest84786 has joined #silverstripe
521: [10:19:00] * ARNHOE has joined #silverstripe
522: [10:20:00] <willmorgan> yeah, just noticed
523: [10:20:00] * Guest84786 has left #silverstripe
524: [10:20:00] <priithansen> use Petesiss\PhpHc\Renderer\Renderer; ?
525: [10:20:00] <priithansen> it has namespaces?
526: [10:21:00] <willmorgan> derp
527: [10:21:00] <priithansen> best part it's available in packagist
528: [10:23:00] <simon_w|air> I don't see how that can be the best part :p
529: [10:23:00] * koomi has joined #silverstripe
530: [10:23:00] <priithansen> because rest of it is too simple to even be a full part
531: [10:27:00] * ARNHOE quit (Remote host closed the connection)
532: [10:29:00] * ARNHOE has joined #silverstripe
533: [10:34:00] <Zauberfisch> blubb
534: [10:34:00] * Zauberfisch has joined #silverstripe
535: [10:35:00] <Zauberfisch> what ever happened to ajshort, haven't seen him around in a while
536: [10:36:00] * ARNHOE quit (Remote host closed the connection)
537: [10:37:00] * elgrodo quit (Remote host closed the connection)
538: [10:39:00] * ARNHOE has joined #silverstripe
539: [10:39:00] <simon_w|air> He got commit access then vanished!
540: [10:40:00] * Guest96211 has left #silverstripe
541: [10:41:00] <ss23> I guess our expectations were too great and he came up a little
542: [10:41:00] <ss23> short.
543: [10:41:00] * markeaston quit (Quit: markeaston)
544: [10:42:00] <willmorgan> ss23: YEEEEAAAHHHHH
545: [10:42:00] <kinglozzer> http://1.bp.blogspot.com/-qM5UMlrDdHQ/UVhcuVGobqI/AAAAAAAAADM/ErXOY1a2BrM/s1600/awww+yeah.jpg
546: [10:42:00] * willr quit (Quit: willr)
547: [10:42:00] <ss23> :D
548: [10:42:00] <willmorgan> http://instantyeah.org/YEAH.JPG
549: [10:46:00] <koomi> Is there a way to limit characters but keep images (if there is a image at the top)? Something like this $Content.LimitCharacters(200)
550: [10:46:00] <koomi> Hi, I was wondering if anyone could help me i bit with limiting content inside the template,
551: [10:46:00] <kinglozzer> Can you change the order of tabs in a tabset? Or is it just alphabetical
552: [10:48:00] <kinglozzer> Never mind, figured it out
553: [10:49:00] <simon_w|air> koomi, that's usually done by having a has_one to Image for the header image
554: [10:49:00] * ARNHOE quit (Remote host closed the connection)
555: [10:50:00] * gelignite has joined #silverstripe
556: [10:51:00] * ARNHOE has joined #silverstripe
557: [10:58:00] * ARNHOE quit (Remote host closed the connection)
558: [11:00:00] * ARNHOE has joined #silverstripe
559: [11:01:00] <koomi> Simon, thanks for your answer. I think I'll have to take a look at this a bit differently then. I'm looping summary of child pages to holder page and children pages are simple pages with HTMLeditor only. Maybe I should extend those children with separate image fields then.
560: [11:05:00] * simon_w|air quit (Quit: This computer has gone to sleep)
561: [11:09:00] * aragonne has joined #silverstripe
562: [11:12:00] <ss23> sometimes reading xkcd what-if's just makes me giggle uncontrolably
563: [11:13:00] * travis-ci has joined #silverstripe
564: [11:13:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7152330
565: [11:13:00] * travis-ci has left #silverstripe
566: [11:13:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/cf311148137b...7bf790a5fa87
567: [11:13:00] <travis-ci> [travis-ci] silverstripe/sapphire#2256 (3.1 - 7bf790a : Ingo Schommer): The build passed.
568: [11:16:00] * wmk|away quit (Quit: nice to meet you ;))
569: [11:16:00] * henkpoley quit (Quit: henkpoley)
570: [11:17:00] * henkpoley has joined #silverstripe
571: [11:17:00] <kinglozzer> ss23: You're not the only one :P I'm yet to read today's
572: [11:49:00] * gumble quit (Ping timeout: 245 seconds)
573: [11:51:00] <willmorgan> koomi: i extracted the image out of the HTMLContent area once
574: [11:51:00] <willmorgan> HTMLText, rather
575: [11:51:00] <willmorgan> just using a bit of regular expression
576: [11:52:00] <willmorgan> if you go down that route, be sure to cache it because depending on the amount of text you'll have to crunch, and any extra manipulation needed on the image, it might be quite intensive
577: [11:54:00] <koomi> willmorgan: thanks m8, but already decided to start making images as separate field outside HTMLeditor for better template control :)
578: [11:54:00] <willmorgan> no worries. I had reasons for not doing it your way but agree the "proper" way is.. well, better
579: [11:56:00] * UndefinedOffset has joined #silverstripe
580: [11:56:00] * travis-ci has left #silverstripe
581: [11:56:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7153202
582: [11:56:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f45621b07ee1...9a6a6ec75de6
583: [11:56:00] <travis-ci> [travis-ci] silverstripe/sapphire#2257 (3.0 - 9a6a6ec : Daniel Hensby): The build passed.
584: [11:56:00] * travis-ci has joined #silverstripe
585: [11:58:00] * Shrike_Finland has joined #silverstripe
586: [12:00:00] <koomi> This is the old way, DataObject::add_extension('CalendarEvent', 'CalendarEventDecorator');
587: [12:00:00] <koomi> Btw, anyone know how to make this work properly nowadays, with YAML config: http://pastebin.com/Ffqej0ky and http://pastebin.com/E6DKYxHK
588: [12:02:00] * henkpoley quit (Quit: henkpoley)
589: [12:06:00] <discorpia> Director::addRules(10, array( '$Locale/$URLSegment//$Action/$ID/$OtherID' => 'TranslatableModelAsController',
590: [12:06:00] <discorpia> ));
591: [12:06:00] <discorpia> can someone tell me the ss3 equivalent to
592: [12:07:00] * kerosene has joined #silverstripe
593: [12:07:00] <Shrike_Finland> DesignerX: hi, have on the line?
594: [12:08:00] <discorpia> anyone have any suggestions on how to achieve that with ss3?
595: [12:08:00] <discorpia> uhm, seems a lot more is required to make that work in ss3
596: [12:08:00] <discorpia> i've been using http://www.balbuss.com/translatable-and-the-url/
597: [12:09:00] <Shrike_Finland> Zauberfisch: busy?
598: [12:09:00] * OldTom quit (Killed (roddenberry.freenode.net (Nickname regained by services)))
599: [12:09:00] * kerosene is now known as OldTom
600: [12:10:00] * Guest46770 has joined #silverstripe
601: [12:11:00] * gumble has joined #silverstripe
602: [12:12:00] * Ian_Harris has joined #silverstripe
603: [12:15:00] <Zauberfisch> kind of, yeah
604: [12:15:00] <Zauberfisch> Shrike_Finland whats up?
605: [12:16:00] * popeshoe quit (*.net *.split)
606: [12:16:00] * Marvanni has joined #silverstripe
607: [12:16:00] <Shrike_Finland> Php code is here: http://pastebin.com/Ffqej0ky 
608: [12:16:00] <Shrike_Finland> I'm referring to koomis question about extending event calendar module by Uncle Cheese. We are trying to decorate it with image field.
609: [12:16:00] * Marvanni quit (*.net *.split)
610: [12:16:00] * irogue quit (*.net *.split)
611: [12:17:00] <Shrike_Finland> and "old way" is here, but how to write it right in YAML? DataObject::add_extension('CalendarEvent', 'CalendarEventDecorator');
612: [12:18:00] <Zauberfisch> s/=/?
613: [12:18:00] <Zauberfisch> and its not wkring with the yml=
614: [12:19:00] <Zauberfisch> fail
615: [12:19:00] <Zauberfisch> s/wkr/work
616: [12:19:00] <Zauberfisch> what's wrong with me today
617: [12:19:00] <Shrike_Finland> We did not yet even try to figure it out, what is the right way of writing it IN .yml file
618: [12:19:00] <Zauberfisch> s/wk/wok
619: [12:20:00] * gumble quit (Remote host closed the connection)
620: [12:20:00] <Zauberfisch> check my boilerplate, there some good defaults for a config.yml
621: [12:20:00] <Shrike_Finland> I think it should be modified in yml way and not the old way inside _config.php
622: [12:20:00] <Zauberfisch> https://github.com/Zauberfisch/silverstripe-boilerplate/blob/dev/mysite/_config/config.yml
623: [12:21:00] <Shrike_Finland> $EventHeadingImage->getValidator()->setAllowedExtensions(File::$app_categories['image']); also gives error
624: [12:22:00] <Zauberfisch> what kind of error?
625: [12:23:00] <Shrike_Finland> And the actual problem is that the field comes up as new field but the whole jquery freezes and browser hangs after using the code in example
626: [12:23:00] <Shrike_Finland> when pushing saving button
627: [12:23:00] * qlex1 has joined #silverstripe
628: [12:25:00] * qlex quit (Ping timeout: 256 seconds)
629: [12:26:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
630: [12:28:00] * osterlaus has joined #silverstripe
631: [12:30:00] * LoveDuckie has joined #silverstripe
632: [12:37:00] <Zauberfisch> what ss version?
633: [12:38:00] <Shrike_Finland> 3.1 beta 3
634: [12:38:00] * priithansen_ has joined #silverstripe
635: [12:40:00] <LoveDuckie> would anyone know why setTemplate() on the email object is throwing an error stating that my template doesn't exist when it does?
636: [12:41:00] <LoveDuckie> Kinda frustrating. I have the file sitting there in my theme directory under Email/
637: [12:41:00] <LoveDuckie> I assign it to the email object through ->setTemplate()
638: [12:42:00] <DesignerX> Shrike_Finland: hi there, sorry i was AFK, did you have a question for me ?
639: [12:46:00] <Zauberfisch> LoveDuckie did you ?flush=1 since adding that template
640: [12:46:00] <Shrike_Finland> Same that I asked form Zauberfisch. Trying to extend Uncle Cheeses Event Calendar module (calendarevent.php) with decorator to enable new image upload field in event.
641: [12:47:00] <Zauberfisch> Shrike_Finland sorry, no idea and no time to look into it at the moment
642: [12:47:00] * priithansen_ is now known as priithansen
643: [12:47:00] * priithansen quit (*.net *.split)
644: [12:48:00] <Shrike_Finland> Zauberfisch: no prob. We try to research the problem a bit.
645: [12:48:00] * UncleCheese has joined #silverstripe
646: [12:51:00] * qlex1 has left #silverstripe
647: [12:51:00] * henkpoley has joined #silverstripe
648: [12:52:00] * unsignedint has joined #silverstripe
649: [12:57:00] * unsignedint quit (Ping timeout: 245 seconds)
650: [13:20:00] * ARNHOE quit (Remote host closed the connection)
651: [13:20:00] <LoveDuckie> Zauberfisch... that's a good idea.
652: [13:21:00] <LoveDuckie> Zauberfisch, that seems like it was the problem. A new error now, but I can debug this. Thanks.
653: [13:21:00] <Zauberfisch> p
654: [13:21:00] <Zauberfisch> n
655: [13:22:00] * ARNHOE has joined #silverstripe
656: [13:25:00] * ARNHOE quit (Remote host closed the connection)
657: [13:27:00] * ARNHOE has joined #silverstripe
658: [13:38:00] * henkpoley quit (Remote host closed the connection)
659: [13:57:00] * zfmf1 has left #silverstripe
660: [13:57:00] * ARNHOE quit (Remote host closed the connection)
661: [14:01:00] * Shrike_Finland quit (Quit: Leaving.)
662: [14:08:00] * SightUnseen has joined #silverstripe
663: [14:09:00] * SightUnseen has left #silverstripe
664: [14:19:00] <kinglozzer> Hmm, has anyone else noticed that when adding a new page, the ?parentID=x URL segment never appears any more?
665: [14:23:00] * eikonos1 has joined #silverstripe
666: [14:23:00] * Pyromani1 has joined #silverstripe
667: [14:24:00] * PigeonFriend quit (Ping timeout: 264 seconds)
668: [14:25:00] * willmorgan quit (Ping timeout: 264 seconds)
669: [14:27:00] * irogue has joined #silverstripe
670: [14:31:00] * PigeonFriend has joined #silverstripe
671: [14:32:00] <kinglozzer> Never mind, fixed it. PR incoming
672: [14:33:00] <g4b0> I've got an issue with template, but i don't know if it's a bug..
673: [14:33:00] <g4b0> http://pastebin.com/d8RWHpCN
674: [14:34:00] <g4b0> I'm looping on ChildrenOf a Page
675: [14:34:00] <g4b0> that are all instance of a class
676: [14:34:00] <g4b0> implementing HasTag()
677: [14:34:00] <g4b0> but in that context HasTag returns always false
678: [14:35:00] <g4b0> calling it inside the page works fine
679: [14:35:00] <g4b0> is it a bug?
680: [14:36:00] * Guest46770 quit (*.net *.split)
681: [14:36:00] * Pyromanik quit (*.net *.split)
682: [14:36:00] * eikonos quit (*.net *.split)
683: [14:36:00] * Zauberfisch_ has joined #silverstripe
684: [14:36:00] * Zauberfisch_ quit (Excess Flood)
685: [14:37:00] * Kolin_ has joined #silverstripe
686: [14:37:00] * Zauberfisch quit (Read error: Connection reset by peer)
687: [14:37:00] * abitran has joined #silverstripe
688: [14:39:00] * willmorgan has joined #silverstripe
689: [14:40:00] * PigeonFriend quit (Remote host closed the connection)
690: [14:40:00] <kinglozzer> g4b0: Your main Page implements HasTag(), but the children do not?
691: [14:40:00] * PigeonFriend has joined #silverstripe
692: [14:41:00] <g4b0> kinglozzer: no, the children implements it
693: [14:42:00] * Zauberfisch has joined #silverstripe
694: [14:42:00] <kinglozzer> g4b0: Hmm, can't see any reason that it wouldn't work
695: [14:42:00] * Kolin quit (*.net *.split)
696: [14:42:00] * abitran_ quit (*.net *.split)
697: [14:42:00] <g4b0> it doesn't...
698: [14:42:00] <g4b0> it's really strange
699: [14:43:00] <kinglozzer> I think ChildrenOf() uses Children() which caches the list of children, so have you tried a flush?
700: [14:43:00] * Zauberfisch_ has joined #silverstripe
701: [14:43:00] * Zauberfisch_ quit (Excess Flood)
702: [14:43:00] <g4b0> ....
703: [14:43:00] <g4b0> wait :)
704: [14:44:00] * Zauberfisch_ has joined #silverstripe
705: [14:44:00] * Zauberfisch_ quit (Excess Flood)
706: [14:44:00] * SightUnseen has joined #silverstripe
707: [14:44:00] * SightUnseen quit (Client Quit)
708: [14:45:00] <g4b0> not working :(
709: [14:47:00] * Zauberfisch quit (Ping timeout: 276 seconds)
710: [14:48:00] <kinglozzer> :(. Is your HasTag() method definitely being called?
711: [14:51:00] <g4b0> nope
712: [14:52:00] <g4b0> I putted a Debug::log('HasTag');
713: [14:52:00] <g4b0> but it's called just when showing the page
714: [14:52:00] <g4b0> the strange thing is that I loop over the correct set of pages
715: [14:52:00] <g4b0> because title are displayed
716: [14:53:00] <g4b0> but always with the ending N
717: [14:54:00] * Kolin_ is now known as Kolin
718: [15:15:00] * chillu23 quit (Changing host)
719: [15:15:00] * chillu23 has joined #silverstripe
720: [15:15:00] * chillu23 has joined #silverstripe
721: [15:17:00] * Kolin_ has joined #silverstripe
722: [15:18:00] * koomi quit (Quit: Leaving.)
723: [15:21:00] * cloph_away1 has joined #silverstripe
724: [15:23:00] * cloph_away quit (*.net *.split)
725: [15:23:00] * Kolin quit (*.net *.split)
726: [15:23:00] * osterlaus quit (*.net *.split)
727: [15:23:00] * chillu quit (*.net *.split)
728: [15:23:00] * chillu23 is now known as chillu
729: [15:28:00] * Zauberfisch has joined #silverstripe
730: [15:32:00] * osterlaus has joined #silverstripe
731: [15:35:00] * catcher has joined #silverstripe
732: [15:55:00] * eikonos1 is now known as eikonos
733: [15:55:00] * eikonos quit (Changing host)
734: [15:55:00] * eikonos has joined #silverstripe
735: [16:04:00] * kinglozzer quit (Remote host closed the connection)
736: [16:05:00] * osterlaus quit (Quit: Leaving.)
737: [16:08:00] * sekjal__ quit (Quit: Leaving)
738: [16:19:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
739: [16:27:00] <UncleCheese> What's the best way to set up a RESTful API in SS?
740: [16:27:00] <UncleCheese> RestAssured seems a bit immature, and it's 5.4+
741: [16:27:00] * Zauberfisch quit (Ping timeout: 276 seconds)
742: [16:28:00] <UncleCheese> ah, perfect
743: [16:28:00] <willmorgan> UncleCheese: have you looked at using RestfulServer?
744: [16:28:00] <willmorgan> PigeonFriend knows a thing or two about that
745: [16:28:00] <UncleCheese> there we go
746: [16:28:00] <UncleCheese> i knew there was a better way
747: [16:28:00] <PigeonFriend> UncleCheese: almost perfect ;)
748: [16:28:00] <PigeonFriend> it needs some work
749: [16:28:00] <PigeonFriend> We're planning on doing a big bit of work with it soon, so will probs be dropping pull requests in quite a bit
750: [16:29:00] <PigeonFriend> I already made it so you can authenticate with something other than username/password
751: [16:30:00] <UncleCheese> how do you get it to return json instead of xml?
752: [16:30:00] * zfmf1 has joined #silverstripe
753: [16:31:00] <willmorgan> I believe you need to look at the dataformatter options inside RestfulServer.php
754: [16:31:00] <willmorgan> it's based on the request HTTP Accept header
755: [16:40:00] * Kolin_ is now known as Kolin
756: [16:47:00] * jon-shape quit (Ping timeout: 252 seconds)
757: [16:48:00] * jon-shape has joined #silverstripe
758: [16:53:00] * jon-shape quit (Ping timeout: 252 seconds)
759: [16:54:00] * unsignedint has joined #silverstripe
760: [16:58:00] * unsignedint quit (Ping timeout: 264 seconds)
761: [17:08:00] * willmorgan quit (Ping timeout: 248 seconds)
762: [17:10:00] * jon-shape has joined #silverstripe
763: [17:11:00] <PigeonFriend> UncleCheese: add .json to the end
764: [17:11:00] <PigeonFriend> or have the Accept header say JSON
765: [17:11:00] <PigeonFriend> i tihnk
766: [17:11:00] <UncleCheese> it's weird.. it 404s
767: [17:11:00] <PigeonFriend> are you authenticated?
768: [17:11:00] <UncleCheese> but /api/v1/SiteTree.json 404s
769: [17:11:00] <PigeonFriend> example.com/api/v1/ClassName
770: [17:11:00] <PigeonFriend> and does SiteTree have private static $api_access
771: [17:11:00] <PigeonFriend> and have you flushed :)
772: [17:12:00] <PigeonFriend> good old config system
773: [17:14:00] <PigeonFriend> but i have to run, it definitely works and works nicely. The user accessing the API has to pass the canView() test (I'd assume they can if their SiteTree objects)
774: [17:14:00] <PigeonFriend> UncleCheese: talk to me tomorrow if you're still having issues :)
775: [17:14:00] * PigeonFriend quit ()
776: [17:19:00] * jon-shape quit (Ping timeout: 252 seconds)
777: [17:24:00] * jon-shape has joined #silverstripe
778: [17:39:00] * UndefinedOffset quit (Quit: Leaving.)
779: [17:40:00] * jon-shape quit (Ping timeout: 252 seconds)
780: [17:43:00] * UndefinedOffset has joined #silverstripe
781: [17:50:00] * Nivery has joined #silverstripe
782: [18:09:00] * zfmf1 has left #silverstripe
783: [18:38:00] <FrozenFire> Any existing pattern for grouping a list by the first character of its title?
784: [18:41:00] <priithansen> here is something http://doc.silverstripe.org/framework/en/3.1/howto/grouping-dataobjectsets
785: [18:42:00] <FrozenFire> Yeah, I know how to handle GroupedLists
786: [18:42:00] <FrozenFire> Just not sure if there's some magic for doing complex groupings like first-character
787: [18:45:00] <priithansen> Grouping by titles first char is exactly what the linked doc describes?!
788: [18:45:00] * UncleCheese quit (Quit: UncleCheese)
789: [18:46:00] <FrozenFire> Thought I'd read that recently
790: [18:46:00] <FrozenFire> Oh, whoops. Let me have a look. :P
791: [18:46:00] <FrozenFire> Oh coolio. :)
792: [18:46:00] <priithansen> Sometimes the ss docs can suprise
793: [18:47:00] <FrozenFire> Probably won't do what I want it to, but good to know for the future.
794: [18:47:00] <FrozenFire> I of course need to have a list of a set of characters and some magic for them :P
795: [19:24:00] <priithansen> Is there a silverstripe way of making sure my getVar is actually a valid date?
796: [19:36:00] * zfmf1 has joined #silverstripe
797: [19:45:00] * jrthomer quit (Remote host closed the connection)
798: [19:45:00] * jrthomer has joined #silverstripe
799: [19:54:00] <catcher> Anyone here gotten crop-from-top going with the Image class?
800: [20:00:00] * Nivery quit (Quit: Nivery)
801: [20:14:00] <FrozenFire> Crop from top?
802: [20:15:00] * DigNZ has joined #silverstripe
803: [20:15:00] * DigNZ quit (Remote host closed the connection)
804: [20:16:00] <catcher> Yeah, I want to specify custom offset while cropping. Looks like an Image DataExtension will let me call some GD functions manually.
805: [20:16:00] * DigNZ has joined #silverstripe
806: [20:21:00] <FrozenFire> Would depend on your framework version
807: [20:22:00] <FrozenFire> I rewrote the imagine manipulation stuff
808: [20:23:00] <FrozenFire> GDBackend and ImagickBackend are both implemented
809: [20:23:00] <FrozenFire> In 3.1 there's now the Image_Backend interface, with a config on Image for which backend to use
810: [20:23:00] <FrozenFire> You could extend either with your own functionality, and the set the Image backend to your own
811: [20:23:00] <FrozenFire> image**
812: [20:24:00] <FrozenFire> You could feasibly even replace the image backend with something else entirely
813: [20:24:00] <FrozenFire> Like an online service
814: [20:24:00] <FrozenFire> Then add a DataExtension to Image to expose those methods in the template.
815: [20:30:00] * unsignedint has joined #silverstripe
816: [20:43:00] <jcwacky> Anyone able to help me out with setting the default controller in SS3.1? : http://www.silverstripe.org/general-questions/show/23712
817: [20:43:00] * UndefinedOffset quit (Quit: Leaving.)
818: [20:44:00] <catcher> 3.0.5, DataExtension on Image with extra methods is doing the trick.
819: [20:56:00] <Pyromani1> ss2.4, if I define an updateSummaryFields on the dataobject itself, will it run? Or must it be applied by extension only?
820: [20:57:00] <Pyromani1> I guess I'm just supposed to overwrite summaryFields()
821: [21:08:00] <FrozenFire> The latter is better, yes.
822: [21:09:00] * zfmf1 has left #silverstripe
823: [21:13:00] * SightUnseen has left #silverstripe
824: [21:13:00] * SightUnseen has joined #silverstripe
825: [21:19:00] * willr has joined #silverstripe
826: [21:23:00] <FrozenFire> Fatal error: Unexpected token when building static manifest: Array ( [0] => 358 [1] => => [2] => 7 ) in framework/core/manifest/ConfigStaticManifest.php on line 274
827: [21:23:00] <FrozenFire> Never seen that one before
828: [21:23:00] <FrozenFire> I suspect the solution is to just kill my cache
829: [21:23:00] <FrozenFire> Interesting
830: [21:24:00] <FrozenFire> Wowsa... nope
831: [21:24:00] <FrozenFire> Blew the cache away and rebuilt, still getting that.
832: [21:25:00] * FrozenFire updates everything
833: [21:25:00] <FrozenFire> Even still...
834: [21:26:00] <willr> FrozenFire rollback?
835: [21:27:00] <FrozenFire> Well, I'd rather fix the bug than just ignore it. This isn't a huge priority site, so I have time to debug
836: [21:27:00] <FrozenFire> Interesting. It resulted from a belongs_many_many
837: [21:27:00] <willr> Well rollback would be to identify what changed and whether the old version works now
838: [21:27:00] * simon_w has joined #silverstripe
839: [21:27:00] <FrozenFire> Adding/removing a belongs_many_many causes this
840: [21:28:00] <willr> got a many_many on the other side?
841: [21:28:00] <FrozenFire> Yup
842: [21:28:00] <FrozenFire> public static $many_many = array( "Tags" => "ClientTag");
843: [21:28:00] <FrozenFire> public static $belongs_many_many => array( "Clients" => "Client" );
844: [21:29:00] <FrozenFire> Using chillu's TagField module, though that shouldn't matter
845: [21:29:00] <FrozenFire> And they're trivial DataObjects
846: [21:29:00] <FrozenFire> So nothing should be mucking with them
847: [21:34:00] * gumble has joined #silverstripe
848: [21:34:00] <gumble> why is the silverstripe login suddenly implemented in my default template??
849: [21:35:00] <FrozenFire> It's always.
850: [21:35:00] <FrozenFire> The Security controller will render with the Form variable set to the login form
851: [21:35:00] <gumble> problem is that the email/password/login field/button are missing
852: [21:35:00] <FrozenFire> So it'll render Page by default, unless you specify the Security template
853: [21:35:00] <gumble> and I can't login anymore
854: [21:35:00] <FrozenFire> And Page typically has $Content and $Form
855: [21:36:00] <gumble> ah ok
856: [21:36:00] <gumble> so if form is missing there will be no form?
857: [21:36:00] <FrozenFire> Yessir
858: [21:36:00] <gumble> thanks!
859: [21:39:00] <FrozenFire> chillu, Ping
860: [21:40:00] <FrozenFire> Can ModelAdmin search on many_many?
861: [21:41:00] <FrozenFire> The ping was to ask whether you knew of a way to search for your tagfield stuff, but then it occurred to me that it'll just be a search of a many_many
862: [21:44:00] <jcwacky> Anyone able to help me out with setting the default controller in SS3.1? : http://www.silverstripe.org/general-questions/show/23712 Been struggling with this for a few days now!
863: [21:44:00] <willr> FrozenFire pretty sure it supports searching many many.
864: [21:46:00] <willr> without leading slashes.
865: [21:46:00] <FrozenFire> Yeah, "Relation.Field" => array( "filter" => "ExactMatchFilter", "title" => "Relation" )
866: [21:46:00] <willr> jcwacky try just '$Action/$ID' : YourController'
867: [21:47:00] <FrozenFire> $searchable_fields title...
868: [21:47:00] <willr> You'll also have to make sure view is in your allowed actions
869: [21:47:00] <FrozenFire> Gah. Can never remember the various syntaxes for advanced static config
870: [21:47:00] <FrozenFire> How to?
871: [21:47:00] <FrozenFire> Or rather, $summary_fields actually
872: [21:48:00] <jcwacky> willr: That works for the home at / but when I try example.com/vote/8 it just seems to load my index action
873: [21:48:00] <FrozenFire> I have "TagList" which maps to a method, but I need the title to be "Tags"
874: [21:49:00] <FrozenFire> Or does that require Javascript munging>
875: [21:49:00] <FrozenFire> ?
876: [21:49:00] * SphereSilver has joined #silverstripe
877: [21:49:00] <FrozenFire> chillu, Other question would be, is there a simple way to make TagField comma-separated
878: [21:49:00] <FrozenFire> Aha
879: [21:49:00] <FrozenFire> $field_labels
880: [21:51:00] * tankr has joined #silverstripe
881: [21:59:00] * willmorgan has joined #silverstripe
882: [22:03:00] <gumble> because the only difference is that MainPage has one Icon
883: [22:03:00] <gumble> how do I make a page that uses the template of another page. e.g. I have the MainPage controller extends the Page controller and want MainPage just to use Page.ss as template
884: [22:03:00] <FrozenFire> As long as you don't make a MainPage.ss
885: [22:03:00] <simon_w> gumble, if you don't have a MainPage.ss, it'll use Page.ss
886: [22:03:00] <FrozenFire> It'll do just that.
887: [22:03:00] * UncleCheese has joined #silverstripe
888: [22:04:00] <gumble> but I don't have the option to select MainPage as template yet
889: [22:04:00] <FrozenFire> Neither
890: [22:04:00] <UncleCheese> anyone here?
891: [22:04:00] <UncleCheese> has anyone ever used the forum module?
892: [22:04:00] <FrozenFire> gumble, It will look for MainPage.ss
893: [22:05:00] <FrozenFire> Uhh
894: [22:05:00] <gumble> but I can't choose MainPage as template for my pages in the cms
895: [22:05:00] <gumble> FrozenFire, thanks, I understood that
896: [22:05:00] <FrozenFire> If it doesn't find it, it'll use Page.ss
897: [22:06:00] <FrozenFire> Yeah. Picking the template would be an advanced feature
898: [22:06:00] <simon_w> gumble, have you run dev/build?
899: [22:06:00] <gumble> yes
900: [22:06:00] <FrozenFire> That's the class of the Page
901: [22:06:00] <gumble> simon_w, no I mean the Pages->Settings and then you choose Page Type
902: [22:06:00] <simon_w> There's no CMS option for picking templates
903: [22:06:00] <simon_w> That's because templates are picked based on the class
904: [22:07:00] * chillu quit (Quit: chillu)
905: [22:07:00] <gumble> but wait I'll better do it again
906: [22:07:00] <gumble> if I forgot :D
907: [22:07:00] <FrozenFire> I think you misunderstand it a bit. :P
908: [22:08:00] <FrozenFire> Not the template, specifically.
909: [22:08:00] <FrozenFire> When you select the page type in the CMS, you're picking which PHP class it will use
910: [22:08:00] <FrozenFire> Anywhoodles
911: [22:08:00] <gumble> thanks, understood it now
912: [22:09:00] <FrozenFire> E.g. EmptyFilter
913: [22:09:00] <FrozenFire> Is there some magic to make a $searchable_field which is a boolean dropdown (no filtering, positive filtering, negative filtering) which filters on a field having content?
914: [22:10:00] <FrozenFire> Need to search on whether this one WYISWYG is populated with anything
915: [22:11:00] <FrozenFire> Could do it using a SearchContext, but that makes me cry
916: [22:11:00] <UncleCheese> not sure how post moderation works
917: [22:11:00] <Pyromani1> UncleCheese: what is your question?
918: [22:11:00] <Pyromani1> you must be a moderator first
919: [22:12:00] <Pyromani1> (quite some time ago). everything happens in place on the thread.
920: [22:12:00] <UncleCheese> posts get saved as "awaiting".. but where does the moderator approve them?
921: [22:12:00] <UncleCheese> there doesn't' seem to be a UI for accepting/rejecting?
922: [22:12:00] <Pyromani1> on the thread
923: [22:12:00] <Pyromani1> likely
924: [22:12:00] <Pyromani1> there's no "Moderator CP" last I checked
925: [22:12:00] <Pyromani1> iirc
926: [22:13:00] <UncleCheese> i dunno
927: [22:13:00] <UncleCheese> ok.. yeah, i'm just not seeing it anywhere on the templates
928: [22:13:00] <simon_w> I'll be finding out at the hackfest!
929: [22:13:00] <catcher> speaking of moderation, willr, am I overlooking a config option to require moderation for only non-members in the comments module?
930: [22:14:00] <catcher> I thought I remembered that behavior existing at one point.
931: [22:14:00] * UncleCheese quit (Quit: UncleCheese)
932: [22:15:00] <simon_w> catcher, my extension to the 2.4 system had that
933: [22:15:00] <simon_w> Or captcha only for non-members
934: [22:16:00] <catcher> simon_w, ah, yeah. Your extension didn't make it over to the module? I'm not seeing captcha either, for that matter.
935: [22:16:00] <simon_w> Nope, but it's on the comments todo list :p
936: [22:16:00] <simon_w> captcha's provided by the spam module
937: [22:17:00] <catcher> I've got that already, would that be pretty simple to apply to comments?
938: [22:18:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
939: [22:18:00] <simon_w> Got a captcha module installed too?
940: [22:19:00] <catcher> yes indeed, I've got mollom running on a few forms
941: [22:20:00] <FrozenFire> Blegh. How to add a custom condition to a SearchContext?
942: [22:20:00] <simon_w> https://github.com/silverstripe/silverstripe-spamprotection/blob/master/_config.php#L12-19
943: [22:20:00] <FrozenFire> I have the form field added to the SearchForm, but I need to handle it in the SearchContext
944: [22:21:00] <FrozenFire> Well, I suppose I could handle it in the getList of the ModelAdmin, but I'd like to avoid that.
945: [22:21:00] <catcher> simon_w, ah cool, ty
946: [22:27:00] <gumble> if I have a image stored in a variable how do I add css classes to the img-tag that $Image produces?
947: [22:28:00] <gumble> in a variable I mean the page has a image in the has_one array
948: [22:28:00] <simon_w> gumble, you'll need to construct the tag in your template for that
949: [22:28:00] <willmorgan> gumble: you could manually write the image tag in the SS template
950: [22:29:00] <willmorgan> <% with $Image %><img src="$Filename" class="woop" width="$Width" height="$Height" alt="$Title.ATT" /><% end_with %>
951: [22:29:00] <gumble> and how do I then get $image to only produce the link to the file and not a whole img tag?
952: [22:29:00] <jcwacky> simon_w: Are you able to help me out with setting the default controller in SS3.1 at all? : http://www.silverstripe.org/general-questions/show/23712
953: [22:29:00] <willmorgan> <% with $Image %><a href="$Filename">$Title</a><% end_with %> <-- gumble
954: [22:30:00] <gumble> willmorgan, thanks but where do I get $Filename from? The page has_one "Image", but $Image produces the whole img-tag not only the link
955: [22:30:00] <simon_w> jcwacky, fairly sure I saw Hamish fix that after 3.1b3
956: [22:30:00] <willmorgan> as you are within a <% with %> block, you "step in" to the image so you have direct access to its attributes/functions
957: [22:30:00] <willmorgan> <% with $Image %>, gumble.
958: [22:30:00] <simon_w> willmorgan, gumble, also, you want to use $URL, not $Filename
959: [22:31:00] <jcwacky> simon_w: Ah, so my routes are correct?
960: [22:31:00] <willmorgan> also thanks simon
961: [22:31:00] <gumble> willmorgan, soo <% with $Image ....code..... %> ??
962: [22:32:00] <simon_w> jcwacky, ah, it hasn't been merged yet: https://github.com/silverstripe/sapphire/pull/1816
963: [22:32:00] <jcwacky> ahh!
964: [22:32:00] <jcwacky> I'll try the master then, cheers.
965: [22:32:00] <willmorgan> no worries, enjoy :)
966: [22:32:00] <gumble> willmorgan, thanks!
967: [22:32:00] <willmorgan> gumble: <% with $Image %> <!-- code --> <% end_with %>
968: [22:32:00] <simon_w> Should be
969: [22:36:00] <jcwacky> simon_w: Ok, I applied that patch, but when I try example.com/view/8 I now get: "Action '8' isn't available on class WishController."
970: [22:38:00] <simon_w> jcwacky, make a comment on the ticket accordingly then
971: [22:39:00] <gumble> how can I access the attributes (Title, Images, URL and stuff) from my pages from other pages?
972: [22:39:00] <jcwacky> Shall do, still getting my head around routes, so just wanted to make sure it wasn't an issue on my side first.
973: [22:41:00] <gumble> like every page has a icon and I want to a menu in the style <a href="$Page.URl"><img href="Page.Image.Url" alt="Page.Title"></a>
974: [22:43:00] <simon_w> If you're not sure how to build the menu, you should do the first couple of tutorials
975: [22:43:00] <simon_w> gumble, when you're building the menu, you access it just like the link and title
976: [22:44:00] <gumble> hmm I did but I'll look for something for menues again
977: [22:53:00] * SightUnseen has joined #silverstripe
978: [22:55:00] * SightUnseen has left #silverstripe
979: [22:56:00] * UncleCheese has joined #silverstripe
980: [22:59:00] * eikonos quit (Ping timeout: 252 seconds)
981: [23:01:00] <simon_w> Copy Wellington and get some giant fans?
982: [23:01:00] <Pyromani1> CHC keeps getting fog and shutting the airport :<
983: [23:01:00] <Pyromani1> getting nervous now
984: [23:01:00] * eikonos has joined #silverstripe
985: [23:01:00] * eikonos quit (Changing host)
986: [23:01:00] * eikonos has joined #silverstripe
987: [23:01:00] <Pyromani1> FFFFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUU
988: [23:02:00] * eikonos has left #silverstripe
989: [23:02:00] * catcher quit (Quit: Leaving)
990: [23:02:00] <Pyromani1> haha, to balance out the crosswinds?
991: [23:05:00] * SphereSilver quit (Remote host closed the connection)
992: [23:09:00] <simon_w> Well, you don't have massive wind. You need massive wind. Rather good at getting rid of fog
993: [23:11:00] <Pyromani1> mmm
994: [23:11:00] <Pyromani1> ic
995: [23:12:00] * willmorgan quit (Quit: Leaving.)
996: [23:12:00] * SticksM has joined #silverstripe
997: [23:13:00] * SightUnseen quit (Client Quit)
998: [23:13:00] * SightUnseen has joined #silverstripe
999: [23:15:00] * UncleCheese quit (Quit: UncleCheese)
1000: [23:18:00] <Pyromani1> $Image with no image set will output an empty img tag (src="assets/")
1001: [23:18:00] <Pyromani1> simon_w: I figured out my <% if Image %> vs no if and the outputs
1002: [23:19:00] <Pyromani1> $Image.Function with no image set will output nothing.
1003: [23:19:00] <Pyromani1> hence my confusion the other day.
1004: [23:25:00] * SightUnseen has left #silverstripe
1005: [23:25:00] * SightUnseen has joined #silverstripe
1006: [23:27:00] <FrozenFire> Is 3.1 about to be released, or something?
1007: [23:28:00] <FrozenFire> Looks like the HEAD symbolic-ref for the GitHub repos has been switched to 3.1
1008: [23:28:00] <FrozenFire> Also, how is this silverstripe/reports dependency being pushed?
1009: [23:29:00] <FrozenFire> I don't see it in composer.json, unless I'm blind.
1010: [23:30:00] <gumble> why do they use <% loop menu(1) %> in the tutorial? is that a predefined name or where do you set it?
1011: [23:31:00] <FrozenFire> Instead of 3.1
1012: [23:31:00] <FrozenFire> Oh whoops
1013: [23:31:00] <FrozenFire> I cloned dev-master
1014: [23:31:00] <FrozenFire> gumble, It's part of ContentController, iirc
1015: [23:38:00] <Pyromani1> gumble: it's built in, you don't set it.
1016: [23:38:00] <Pyromani1> yep
1017: [23:38:00] <Pyromani1> contentcontroller
1018: [23:38:00] <Pyromani1> gumble: SS makes it's own menus based on the site tree.
1019: [23:39:00] <Pyromani1> there's no menu derp like in that j-word
1020: [23:39:00] <Pyromani1> and you don't have to hard link pages like you do in wordderp
1021: [23:40:00] <Pyromani1> or build your own menu generator like modbad
1022: [23:41:00] <Pyromani1> if you don't want a page to show up in the menu, hide it from the menus in the CMS, settings tab (on the page).
1023: [23:42:00] <simon_w> Yay, github's making issue searching even worse! I thought search was an important reason for the move?
1024: [23:43:00] * cjt has joined #silverstripe
1025: [23:44:00] * gumble quit (Ping timeout: 248 seconds)
1026: [23:44:00] <cjt> Is there any quick documentation on how to get emails to work using gmail as the smtp server? I'd normally just install the smtp module but it doesn't seem to be working...
1027: [23:55:00] <willr> cjt ss just uses the mail() command by default, any PHP tutorials for gmail should work in SS
1028: [23:59:00] <FrozenFire> I get them now, as far as why they're necessary, but jeeze.
1029: [23:59:00] <cjt> should I need to change anything in there from the default config?
1030: [23:59:00] * FrozenFire mutters things about the static visibility changes
1031: [23:59:00] <cjt> Think the issue more lies with my php.ini file

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