#silverstripe IRC Log

IRC log for 16 March 2013

All timestamps are in UTC.

1: [00:00:00] * DigNZ quit (Client Quit)
2: [00:01:00] * UncleCheese quit (Quit: UncleCheese)
3: [00:03:00] * ARNHOE has joined #silverstripe
4: [00:03:00] * priithansen quit (Quit: priithansen)
5: [00:05:00] * DigNZ has joined #silverstripe
6: [00:06:00] * DigNZ quit (Client Quit)
7: [00:17:00] * jerry___ has joined #silverstripe
8: [00:19:00] <Pyromanik> no
9: [00:19:00] <jerry___> is there a way to make the admin area to use the same theme as the frontend?
10: [00:19:00] <Pyromanik> there are no admin themes.
11: [00:19:00] <Pyromanik> admin is always themed the same.
12: [00:20:00] <Pyromanik> but if you must
13: [00:20:00] <Pyromanik> it is not recommended to alter it though.
14: [00:20:00] <Pyromanik> yes, there is CSS.
15: [00:20:00] <jerry___> no css for admi area?
16: [00:20:00] <Pyromanik> if you want a front end admin interface, you must build it.
17: [00:20:00] <Pyromanik> look at overriding it rather than altering it.
18: [00:20:00] <jerry___> I probably just need to change the color
19: [00:21:00] <Pyromanik> with LeftAndMain::require_css('mysite/css/adminsnazzup.css'); in your mysite/_config.php
20: [00:21:00] <Pyromanik> simple edits are ok, more advanced ones... can affect things you didn't want them to.
21: [00:21:00] <jerry___> where is the original .css file?
22: [00:22:00] <Pyromanik> I swap out the loading image from silverstripe to our company's logo.
23: [00:22:00] <Pyromanik> yeah, should be fine.
24: [00:22:00] <Pyromanik> (I don't know by heart)
25: [00:22:00] <jerry___> the extent of my customization is color and font size3
26: [00:22:00] <Pyromanik> if it's a combined file, put the site into dev mode then look at the head.
27: [00:22:00] <Pyromanik> look at head
28: [00:22:00] <jerry___> is it in /cms/template
29: [00:23:00] <Pyromanik> no
30: [00:23:00] <Pyromanik> in /cms/css at a guess.
31: [00:23:00] <Pyromanik> templates is for template files (only).
32: [00:24:00] <jerry___> CMSMain.css
33: [00:24:00] <jerry___> those are in /cms/css
34: [00:24:00] <jerry___> ReportAdmin.css
35: [00:24:00] <jerry___> screen.css
36: [00:24:00] <jerry___> SilverStripeNavigator.css
37: [00:25:00] <jerry___> hmmm ... there is also framework/css
38: [00:26:00] <Pyromanik> do not change core files, it's a bad idea.
39: [00:26:00] <Pyromanik> include it using the method I outlined above
40: [00:26:00] <Pyromanik> make another css file
41: [00:26:00] * Colin[pi] has joined #silverstripe
42: [00:26:00] <Pyromanik> using dev tools
43: [00:26:00] <Pyromanik> just inspect the element you want to change
44: [00:26:00] <Pyromanik> it won't be there
45: [00:26:00] <Pyromanik> look
46: [00:27:00] <spronk> fuck vendors that don't get building inspections done before auctions :@
47: [00:27:00] <spronk> ugh
48: [00:27:00] * aaron1245 has joined #silverstripe
49: [00:27:00] <jerry___> in a nutshell, I need to make admin area to look like "simple" theme
50: [00:27:00] <jerry___> black & white, simple
51: [00:27:00] <Pyromanik> sounds like a terrible idea :<
52: [00:27:00] <Pyromanik> but if you must you must
53: [00:27:00] <Pyromanik> still use the method I layed out above
54: [00:27:00] * ARNHOE quit (Remote host closed the connection)
55: [00:28:00] <Pyromanik> it will give you all references to colours in the CSS and the rules that use them.
56: [00:28:00] <Pyromanik> recommend installing colorzilla
57: [00:28:00] <Pyromanik> god.
58: [00:28:00] <Pyromanik> you're not even listening.
59: [00:28:00] <Pyromanik> GDGSDGJOWR:GHJ$WEOP{AJIBORJBNOWKJGOPEQJAB
60: [00:28:00] <Pyromanik> N O
61: [00:28:00] <jerry___> :)
62: [00:28:00] <jerry___> provided I found the right .css files
63: [00:28:00] <Pyromanik> make your job easier
64: [00:29:00] <Pyromanik> jerry___, STOP LOOKING FOR CSS FILES. it's that easy.
65: [00:29:00] <jerry___> let me read again
66: [00:29:00] <jerry___> LeftAndMain::require_css('mysite/css/adminsnazzup.css'); in your mysite/_config.php ?
67: [00:29:00] <jerry___> probably you're referring to this one
68: [00:29:00] <Pyromanik> they're irrelevant.
69: [00:29:00] <Pyromanik> yes.
70: [00:30:00] * CodeTrap quit (Ping timeout: 256 seconds)
71: [00:30:00] <Pyromanik> make your own ... I can't even be bothered anymore.
72: [00:32:00] <jerry___> with that line in _config.php, the admin area will automagically use it?
73: [00:34:00] * inspiral has joined #silverstripe
74: [00:34:00] <jerry___> installing colorzilla ...
75: [00:34:00] * inspiral quit (Client Quit)
76: [00:35:00] * not_invented_her has joined #silverstripe
77: [00:37:00] <jerry___> colorzilla is pretty cool
78: [00:39:00] <jerry___> thanks Pyro
79: [00:39:00] * not_invented_her quit (Remote host closed the connection)
80: [00:39:00] <ss23> like 10 different Google Maps modules, and they're all sucky
81: [00:40:00] * zfmf has left #silverstripe
82: [00:54:00] * Colin[pi] quit ()
83: [01:13:00] * aaron1245 quit (Quit: aaron1245)
84: [01:20:00] * jerry___ quit (Ping timeout: 245 seconds)
85: [01:24:00] <Pyromanik> jer... yes it will automatic.
86: [01:25:00] <Pyromanik> and you're welcome. Thanks for finally listening.
87: [01:25:00] <Pyromanik> (with allowed_actions)
88: [01:25:00] <Pyromanik> simon_w|air, is there a way to disallow an action unless it matches a specific rule?
89: [01:26:00] <Pyromanik> simon_w, ahh thanks, but I meant url_handlers rule
90: [01:26:00] <simon_w> 'action' => '->methodName'
91: [01:27:00] <simon_w> So you want a url_handler that only happens sometimes?
92: [01:27:00] <Pyromanik> I want to comment on an article only
93: [01:27:00] <Pyromanik> I have Articles/category/article
94: [01:27:00] <Pyromanik> simon_w, well as with the other night
95: [01:27:00] <Pyromanik> I mean I can make a funciton that does such, for sure, but I wondered if it was built in
96: [01:27:00] <Pyromanik> but the Comment form method is on the Articles controller
97: [01:28:00] <Pyromanik> actually :<
98: [01:28:00] <Pyromanik> hmm
99: [01:28:00] <Pyromanik> (I scrapped the nested controllers idea, easier for templates)
100: [01:28:00] <Pyromanik> form will generate with the action specified wrong anyways
101: [01:30:00] <Pyromanik> probably easier
102: [01:30:00] <Pyromanik> maybe I should unscrap the nested controllers and deal with the template issues.
103: [01:32:00] <Pyromanik> Why does content controller have to be so coupled to SiteTree :<
104: [01:32:00] <Pyromanik> or not :<
105: [01:36:00] <simon_w> Because it's designed for SiteTree
106: [01:36:00] * SightUnseen has joined #silverstripe
107: [01:37:00] <Pyromanik> yeah, but so many things could be abstracted out
108: [01:37:00] * SightUnseen has left #silverstripe
109: [01:38:00] <Pyromanik> for use by other controllers that have nested url segment type situation
110: [01:38:00] <Pyromanik> but aren't SiteTree things.
111: [01:39:00] <Pyromanik> like, most of it.
112: [01:46:00] * joelpittet has joined #silverstripe
113: [02:19:00] * simon_w quit (Quit: This computer has gone to sleep)
114: [02:33:00] * LoveDuckie quit (Ping timeout: 245 seconds)
115: [02:37:00] * aaron1245 has joined #silverstripe
116: [03:12:00] * joelpittet has left #silverstripe
117: [03:21:00] * aaron1245 quit (Quit: aaron1245)
118: [03:40:00] <Pyromanik> is there a perm code for "anyone logged in" ?
119: [03:44:00] * Zauberfisch_ has joined #silverstripe
120: [03:48:00] * pippy_ is now known as pippy
121: [03:53:00] <ss23> Going out to someones place for dinner tonight. Just got a txt asking me to bring feta cheese... not sure what to expect.
122: [03:55:00] <Pyromanik> felching
123: [03:56:00] <Pyromanik> feta felch, 2 words so close they may as well be the same thing.
124: [03:56:00] <ss23> yum
125: [03:58:00] <Pyromanik> halp, controller references $this->templates, but I can't find where it's defined :<
126: [03:59:00] <ss23> Meh, I'll do this another day. Screw concrete5.
127: [03:59:00] <Pyromanik> indeed
128: [03:59:00] <ss23> You know when a module is 3.3mb of compressed text, that trying to learn how it works is going to be delightful.
129: [03:59:00] <Pyromanik> lulz
130: [04:00:00] <Pyromanik> oh handle action
131: [04:00:00] <Pyromanik> why you troll me :<
132: [04:00:00] <ss23> Time to dive through 10+ different Google Maps modules on Silverstripe and find one that doens't suck instead
133: [04:00:00] * ss23 bites Pyromanik
134: [04:04:00] * Zauberfisch_ quit (Ping timeout: 252 seconds)
135: [04:05:00] <ss23> XD
136: [04:05:00] <Pyromanik> handle my action!
137: [04:05:00] <Pyromanik> draw with a template :<
138: [04:05:00] <Pyromanik> -.-
139: [04:05:00] * ss23 handles Pyromanik
140: [04:06:00] <Pyromanik> y u no render?
141: [04:06:00] * Pyromanik sobs
142: [04:11:00] <Pyromanik> FFFFFFFFFFForgot to return.
143: [04:11:00] <ss23> I hope someone gets what I'm asking, cause I'm shit at explaning
144: [04:11:00] <ss23> Does Silverstripe have some system like... "class HomePage extends Page implmenets GoogleMaps" to implment having a Google Maps element on that page?
145: [04:11:00] <ss23> Or is there another way to have the CMS provide a "pick a place on Google Maps" thing and have the template output it for that page type where you do your $GooglEMaps stuff
146: [04:12:00] <ss23> intensive
147: [04:12:00] <ss23> all
148: [04:12:00] <Pyromanik> ss23, yes, extensions.
149: [04:12:00] <Pyromanik> decorators.
150: [04:12:00] <ss23> Pyromanik: Are they the same thing?
151: [04:12:00] <Pyromanik> public static $extensions = array('GoogleMaps')
152: [04:12:00] <ss23> And if not, which is a better fit for this?
153: [04:12:00] <Pyromanik> ss23, kinda.
154: [04:12:00] <Pyromanik> for all intensive purposes, yes.
155: [04:12:00] <ss23> lol
156: [04:12:00] <ss23> purposes
157: [04:12:00] <ss23> TROLL
158: [04:12:00] <Pyromanik> intentive perhaps
159: [04:12:00] <Pyromanik> but yes
160: [04:12:00] <ss23> You realise it's "intents and purposes"?
161: [04:13:00] <Pyromanik> it's now DataExtension
162: [04:13:00] <ss23> NOT SURE IF TROLLING CAUSE Pyromanik TROLLS TOO MUCH
163: [04:13:00] <Pyromanik> Object::add_extension('BaseClass', 'Extension')
164: [04:13:00] <Pyromanik> ys
165: [04:13:00] <ss23> Now I know how you guys feel when I said I was doing SS stuff...
166: [04:13:00] <Pyromanik> what?
167: [04:13:00] <ss23> http://doc.silverstripe.org/framework/en/2.4/reference/dataobjectdecorator doesn't exist for 3.0 and 3.1 :<
168: [04:13:00] <Pyromanik> becaues
169: [04:14:00] <Pyromanik> data objects need ot have DataExtension, but you can extend anything with Extension (the superclass)
170: [04:14:00] <ss23> Um
171: [04:14:00] <ss23> http://doc.silverstripe.org/framework/en/reference/dataextension o/
172: [04:14:00] <ss23> kk
173: [04:14:00] <Pyromanik> mmhmm
174: [04:14:00] <ss23> But in this case I want to not extend HomePage, right?
175: [04:15:00] <Pyromanik> right
176: [04:15:00] <Pyromanik> Concrete pages are pages.
177: [04:15:00] <Pyromanik> you know, if you want to go completely wild
178: [04:15:00] <Pyromanik> or even HomePage extends Page
179: [04:15:00] <ss23> I don't want to hve like... HomePage extends PageThatsJustAnExcuseForMoreInheritance?
180: [04:16:00] <ss23> https://github.com/silverstripe/sapphire/pull/1295 Someone give it the d.
181: [04:16:00] <Pyromanik> then you define it as if it were a page, with a few small extensions
182: [04:16:00] <Pyromanik> then either apply it to homepage in the config
183: [04:16:00] <ss23> You know what I want, right?
184: [04:16:00] <Pyromanik> or add it to the extensions list on homepage itself
185: [04:16:00] <Pyromanik> ss23, no idea, you never actually said.
186: [04:16:00] <ss23> Pyromanik: you've lost me.
187: [04:16:00] <Pyromanik> if you're putting a map on it you'd be all class GoogleMapFrame extends DataExtension{}
188: [04:17:00] <Pyromanik> well
189: [04:17:00] <ss23> Then in my templates just have ae $GoogleMap, which uses my module template and the position the person chose in the CMS
190: [04:17:00] <ss23> Okay so in a lot of pages on this site, various page types, I want a place in the CMS for the user to be able to pick a place on Google Maps associated with that page (one Google Maps thing per page, but if there's a design that allows for many and it's just as easy, that's fine too, since I want it to be a proper module)
191: [04:18:00] <ss23> I don't get this extension/decorator stuff I think
192: [04:18:00] <Pyromanik> just think as if you're making a normal page with a map selector on it
193: [04:18:00] <ss23> I don't understand
194: [04:18:00] <Pyromanik> but extend DataExtension instead
195: [04:18:00] <Pyromanik> and ->owner whenever you want to refer to sometihng that's on the conc... how do you not understand?
196: [04:18:00] <Pyromanik> and use updateCMSFields instead of getCMSFields
197: [04:19:00] <Pyromanik> I mean you're just adding fields to a page.
198: [04:19:00] <ss23> uh
199: [04:19:00] <ss23> Or my templats that have the map?
200: [04:19:00] <ss23> You mean my module should xtend DataExtension?
201: [04:19:00] <Pyromanik> http://doc.silverstripe.org/framework/en/reference/siteconfig#extending-siteconfig-http-api-silverstripe-org-search-lookup-q-siteconfig-and-version-3-0-and-module-framework
202: [04:19:00] <ss23> pages*
203: [04:20:00] <Pyromanik> the other option is to stick it on page, but I dont' think that's what you're after (it'll be on EVERY page)
204: [04:20:00] <Pyromanik> >:>
205: [04:20:00] <ss23> ty Pyromanik ^.^
206: [04:20:00] <ss23> k, I try this
207: [04:20:00] <Pyromanik> tiem to cook egs!
208: [04:20:00] <ss23> Yeah, not on page
209: [04:20:00] <ss23> Okay, I think I see
210: [04:20:00] <Pyromanik> only abstracted to another class so you can apply them to multiple pages
211: [04:20:00] <Pyromanik> same like a normal page
212: [04:21:00] <Pyromanik> ANGRY SMILEY
213: [04:21:00] <Pyromanik> but there you have it.
214: [04:21:00] <Pyromanik> actually
215: [04:21:00] <Pyromanik> typo
216: [04:21:00] <ss23> XD
217: [04:24:00] * Error404NotFound has joined #silverstripe
218: [04:50:00] <Pyromanik> dammit
219: [04:51:00] <Pyromanik> GridFieldPageCount not found
220: [04:51:00] <Pyromanik> so unstable userforms :<
221: [04:53:00] <Pyromanik> oic, 3.1 branch or sometihng
222: [04:54:00] * cloph_away1 has joined #silverstripe
223: [04:55:00] <simon_w|air> Pyromanik, yes, user forms master is for 3.1
224: [04:55:00] * cloph_away quit (Ping timeout: 245 seconds)
225: [04:55:00] <Pyromanik> yeah I got 1.0, problem sovled :>
226: [05:35:00] * SightUnseen has joined #silverstripe
227: [05:35:00] * SightUnseen has joined #silverstripe
228: [05:35:00] * SightUnseen quit (Client Quit)
229: [05:37:00] * SightUnseen quit (Client Quit)
230: [05:41:00] * Shrike_Finland quit (Quit: Leaving.)
231: [05:42:00] * Shrike_Finland has joined #silverstripe
232: [05:50:00] * [1]Pyromanik has joined #silverstripe
233: [05:52:00] * [1]Pyromanik is now known as Pyromanik
234: [05:52:00] * Pyromanik quit (Ping timeout: 264 seconds)
235: [06:05:00] * Err404NotFound has joined #silverstripe
236: [06:05:00] * Error404NotFound quit (Disconnected by services)
237: [06:06:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5544580
238: [06:06:00] * travis-ci has left #silverstripe
239: [06:06:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/69310739565a...50b0da9ba40c
240: [06:06:00] <travis-ci> [travis-ci] silverstripe/sapphire#1655 (3.0 - 50b0da9 : Will Rossiter): The build failed.
241: [06:06:00] * travis-ci has joined #silverstripe
242: [06:14:00] * SightUnseen has joined #silverstripe
243: [06:18:00] <simon_w|air> ss23, look, you broke the build
244: [06:18:00] <simon_w|air> It was working!
245: [06:18:00] <simon_w|air> Then you broke it!
246: [06:21:00] * Shrike_Finland quit (Quit: Leaving.)
247: [06:32:00] * SightUnseen quit (Quit: Leaving.)
248: [06:33:00] * Err404NotFound quit (Ping timeout: 260 seconds)
249: [06:39:00] * Shrike_Finland has joined #silverstripe
250: [06:45:00] <Pyromanik> hmm bsod :<
251: [06:47:00] <simon_w|air> sucka!
252: [07:04:00] * Error404NotFound has joined #silverstripe
253: [07:22:00] * SightUnseen has joined #silverstripe
254: [07:23:00] * SightUnseen has left #silverstripe
255: [08:12:00] * LoveDuckie has joined #silverstripe
256: [08:17:00] * CodeTrap has joined #silverstripe
257: [08:21:00] * simon_w has joined #silverstripe
258: [08:33:00] * joelpittet has joined #silverstripe
259: [08:42:00] * CodeTrap quit (Ping timeout: 245 seconds)
260: [08:45:00] * joelpittet quit (Read error: Connection reset by peer)
261: [08:45:00] * joelpitt_ has joined #silverstripe
262: [09:11:00] * SightUnseen has joined #silverstripe
263: [09:11:00] * SightUnseen has left #silverstripe
264: [09:31:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
265: [09:34:00] * joelpitt_ quit (Remote host closed the connection)
266: [09:44:00] <ss23> simon_w|air: LIAR LIAR!
267: [09:44:00] <ss23> simon_w|air: I just gave Silverstripe the d ;)
268: [10:06:00] <ss23> Pyromanik: One question~ you here?
269: [10:06:00] <ss23> Or simon_w
270: [10:07:00] <Pyromanik> how was your dinner?
271: [10:07:00] <ss23> wait, I got it
272: [10:07:00] <ss23> I'm very silly :<
273: [10:07:00] <Pyromanik> yes you are
274: [10:08:00] <ss23> And turns out my little brother and sister are 10 and 12 now... I thought they were like 7 / 9
275: [10:08:00] <ss23> I need to make more of an effort to keep up with my family :O
276: [10:08:00] <ss23> I played monopoly with my family after, and uh... they play brutal rules
277: [10:08:00] <ss23> It was good, actually, but uh
278: [10:08:00] <ss23> If you don't specifically ask to be paid, you don't get paid.
279: [10:08:00] <ss23> :<
280: [10:08:00] <ss23> Not rules I'm used to, I came last.
281: [10:10:00] <Pyromanik> half family?
282: [10:10:00] <ss23> half, fathers side
283: [10:10:00] <Pyromanik> rofl
284: [10:10:00] <Pyromanik> or just like, randomly decided to have more kids when you were already 15?
285: [10:11:00] <Pyromanik> 10 year gap from having you to having more would be a bit o.0 on the female side
286: [10:11:00] <Pyromanik> the asking for rent rule
287: [10:11:00] <Pyromanik> or 10, as it would be
288: [10:11:00] <Pyromanik> yeah, figured as much
289: [10:11:00] <Pyromanik> anyway
290: [10:12:00] <ss23> Pay your mother fuckined dues.
291: [10:12:00] <Pyromanik> anyway
292: [10:12:00] <Pyromanik> so the way it's playeed.
293: [10:12:00] <ss23> NO
294: [10:12:00] <Pyromanik> always was afaik
295: [10:12:00] <Pyromanik> it's a pretty rare case where someone forgets to ask for money
296: [10:12:00] <ss23> Fucking, I swear
297: [10:12:00] <Pyromanik> yes
298: [10:12:00] <ss23> Everyone plays that way
299: [10:12:00] <Pyromanik> what
300: [10:12:00] <ss23> I've never played that way.
301: [10:12:00] <Pyromanik> you just land on a square and then randomly fork over money?
302: [10:12:00] <ss23> I just found out today thats the way everyone plays ;_;
303: [10:12:00] <ss23> Pyromanik: Yeah, if its owned by soemone..
304: [10:12:00] <Pyromanik> everyone because it's in the rules and eveyrtyh8ing
305: [10:12:00] <Pyromanik> pretty sure
306: [10:13:00] <Pyromanik> well you weren't playing monopoly then were you
307: [10:13:00] <Pyromanik> lol
308: [10:13:00] <ss23> ;__
309: [10:13:00] <ss23> I WAS TRYING
310: [10:13:00] <Pyromanik> just your family were :P
311: [10:13:00] <ss23> lol
312: [10:13:00] <Pyromanik> everyone watches with glee has someone else moves their pieces towards their property...
313: [10:13:00] <ss23> I had people land on me 4 times and got paid once.
314: [10:15:00] <Pyromanik> bed time
315: [10:17:00] <ss23> nn Pyromanik
316: [10:17:00] <ss23> I swear, no one QA's commits at Silverstripe.
317: [10:17:00] <ss23> They're *everywhere*
318: [10:17:00] <ss23> I'm sure I could write a bot to find typos in the Silverstripe docs
319: [10:18:00] * chillu has joined #silverstripe
320: [10:18:00] <Pyromanik> hey what is analagous to outer join?
321: [10:18:00] <Pyromanik> ss23, more like no one cares about docs quite as much as they perhaps should.
322: [10:20:00] <ss23> Still missing a lot of topics, but pretty good
323: [10:20:00] <ss23> They seem nicer than they used to be though
324: [10:20:00] <ss23> They should care, docs are how people like me can actually get into Silverstripe
325: [10:20:00] <simon_w|air> You crowd source docs, you get docs written by people who don't know English that well. Especially earlier on
326: [10:20:00] <ss23> And my commits get accepted quickly, so A+ on that front
327: [10:21:00] <Pyromanik> so anyway, actually going now
328: [10:21:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.)
329: [10:21:00] <Pyromanik> night
330: [10:21:00] <Pyromanik> and those earlier on things are still basically what you see now, just edited to still make sense (sometimes)
331: [10:22:00] <ss23> http://doc.silverstripe.org/framework/en/reference/dataextension doesn't seem to talk about it that I can see
332: [10:22:00] <ss23> simon_w|air: pyro referenced a static $extensions = foo to extend a thing I subclassed from Page. Is there docs on that?
333: [10:22:00] * ARNHOE has joined #silverstripe
334: [10:23:00] <ss23> I built my thingy that extends DataExtension and has a $db and implmentes updateCMSFields, so I just need to like actually tell it to extend my class and it should work right?
335: [10:24:00] <simon_w|air> And $extensions isn't mentioned, since it's almost entirely used by internal classes
336: [10:24:00] <simon_w|air> Yup
337: [10:24:00] <ss23> Is there a nicer way for me to extend it? I see they mentioned _config.php, but that seems like the worst place to put it
338: [10:25:00] <ss23> static $extensions is the best place right?
339: [10:25:00] <simon_w|air> yup
340: [10:25:00] <simon_w|air> SiteTree does this
341: [10:25:00] <simon_w|air> Yes, then it can use the static $extensions
342: [10:25:00] <simon_w|air> You can do it with a YAML config file
343: [10:25:00] <ss23> Like, if a class wants to implmenet and extension, seens like it should be able to do it in its own class file kinda thing
344: [10:29:00] <ss23> tfw you can't spell extensions so it doesn't work :<
345: [10:32:00] <ss23> simon_w|air: I can't get it to work... https://gist.github.com/ss23/5175869 is my "module" code
346: [10:33:00] <simon_w|air> ss23, adding it to a Page type?
347: [10:33:00] <simon_w|air> you want $fields->addFieldToTab('Root.Map', new ...) too
348: [10:33:00] <ss23> Yep
349: [10:33:00] <ss23> I included the _config.php (empty file apart from <?php tags) in googlemaps/_config.php, but it looks like doing a rebuild after putting that there does nothing
350: [10:33:00] <simon_w|air> Page
351: [10:33:00] <ss23> Is it on page, or controller?
352: [10:33:00] <ss23> Oh... controller, not page
353: [10:33:00] <ss23> I might have done it wrong, let me gist that too
354: [10:34:00] <ss23> Is there an explanation of that Root stuff?
355: [10:34:00] <simon_w|air> The tutorial on adding fields to the CMS?
356: [10:34:00] <ss23> I didn't see it explaining it, let me go back and read again
357: [10:35:00] <ss23> Assuming you're talking about the tutorial 2 - extending a basic site, the explanation it gives is ""Root.Main" is the tab which the content editor is on."
358: [10:36:00] <ss23> The API docs?
359: [10:36:00] <simon_w|air> YA
360: [10:36:00] <ss23> I think I can get the idea, but was just looking for some extra explanation on it
361: [10:36:00] <ss23> Not a big deal
362: [10:36:00] <simon_w|air> Look at FieldList::addFieldsToTab then
363: [10:37:00] <ss23> The extension works now, ty
364: [10:37:00] <ss23> Yay, simon_w|air :D
365: [10:37:00] <ss23> But simon_w|air~ they don't explain it properly, I have to read lots of PHP to get it :<
366: [10:40:00] * zfmf has joined #silverstripe
367: [10:40:00] <ss23> awww, simon_w|air, if you were here, I would get you lunch/dinner <3
368: [10:42:00] <ss23> simon_w|air: I think you mean, "but then I'd have to control myself around you while I have a lady friend..."
369: [10:42:00] <simon_w|air> Yes, I wanted lunch
370: [10:42:00] <ss23> XD
371: [10:42:00] <ss23> You wanted it.
372: [10:42:00] <ss23> I saw the look in your eyes, simon_w|air
373: [10:42:00] * Pyromanik has joined #silverstripe
374: [10:42:00] <simon_w|air> I've been around you before :p
375: [10:42:00] <ss23> :D
376: [10:42:00] <Pyromanik> sidetracked on the way to bed
377: [10:42:00] <simon_w|air> But then I'd be in Hamilton :p
378: [10:43:00] <Pyromanik> I knew there must be something easy
379: [10:43:00] <ss23> Not enough to tell me WHAT you wanted
380: [10:43:00] <ss23> I even went past McDonalds on my way over...
381: [10:43:00] <ss23> ^.^
382: [10:43:00] <Pyromanik> simon_w|air, how to OR instead of AND when ->filter()
383: [10:43:00] <Pyromanik> ?
384: [10:43:00] <simon_w|air> filterAny
385: [10:43:00] <Pyromanik> ah, thank you!
386: [10:43:00] <ss23> np. Pyromanik
387: [10:43:00] <ss23> Any time
388: [10:44:00] <ss23> Awwwwww
389: [10:44:00] <Pyromanik> D:
390: [10:44:00] <ss23> Lets get simon_w|air to help
391: [10:44:00] <ss23> :D
392: [10:44:00] <ss23> simon_w|air: Please help us poor Silverstripe noobs!
393: [10:44:00] <simon_w|air> Ah, yeah it does
394: [10:44:00] <ss23> OH
395: [10:44:00] <ss23> FIGHT
396: [10:44:00] <ss23> FIGHT
397: [10:44:00] <Pyromanik> filterAny does not exist on datalist -.-
398: [10:44:00] <Pyromanik> :<
399: [10:44:00] * ss23 snuggles Pyromanik <3
400: [10:45:00] <simon_w|air> Probably
401: [10:45:00] <Pyromanik> http://api.silverstripe.org/3.0/class-DataList.html#_filterAny
402: [10:45:00] <Pyromanik> simon_w, introduced 3.1?
403: [10:45:00] * howardgrigg has joined #silverstripe
404: [10:46:00] <ss23> Seems obvious
405: [10:46:00] <Pyromanik> goes nowhere
406: [10:46:00] <Pyromanik> D:
407: [10:46:00] <Pyromanik> SearchContext to the rescue I hope
408: [10:46:00] <Pyromanik> now what :'(
409: [10:46:00] <ss23> UPGRADE
410: [10:46:00] <ss23> :D
411: [10:48:00] <Pyromanik> tomorrow job
412: [10:49:00] <ss23> yep yep
413: [10:49:00] <ss23> nn Pyromanik
414: [10:49:00] <Pyromanik> thought I could hack a quick search before bed
415: [10:49:00] <Pyromanik> WRONG
416: [10:49:00] <ss23> XD
417: [10:49:00] <Pyromanik> DATALIST NO SUPPORT OR :<
418: [10:49:00] <Pyromanik> !
419: [10:49:00] * Pyromanik cries
420: [10:49:00] <ss23> Pyromanik: MANUAL SQL QUERIEs
421: [10:49:00] * ss23 whips Pyromanik
422: [10:49:00] <ss23> DO EET
423: [10:49:00] <Pyromanik> no, want list back.
424: [10:49:00] * ss23 whips Pyromanik more
425: [10:49:00] <ss23> RAW SQL IS THE FUTURE
426: [10:49:00] <ss23> COMPLETELY OPTIMIZED
427: [10:50:00] <Pyromanik> injection safe!
428: [10:50:00] <ss23> $query = $pdo->prepare('select * from users where username = "' . $_POST['username'] . '"'); // 100% secure, prepared statements rule!
429: [10:50:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!)
430: [10:50:00] <ss23> COME ON, DO IT
431: [10:52:00] * gelignite has joined #silverstripe
432: [10:57:00] * simon_w|air quit (Quit: This computer has gone to sleep)
433: [11:15:00] * zfmf has left #silverstripe
434: [12:08:00] * howardgrigg quit (Remote host closed the connection)
435: [12:12:00] * howardgrigg has joined #silverstripe
436: [12:19:00] * UncleCheese has joined #silverstripe
437: [12:19:00] * howardgrigg quit (Remote host closed the connection)
438: [12:22:00] * UncleCheese quit (Client Quit)
439: [12:32:00] * howardgrigg has joined #silverstripe
440: [13:05:00] * Error404NotFound has joined #silverstripe
441: [13:05:00] * UncleCheese has joined #silverstripe
442: [13:14:00] * howardgrigg quit (Remote host closed the connection)
443: [13:16:00] * Err404NotFound has joined #silverstripe
444: [13:16:00] * Error404NotFound quit (Disconnected by services)
445: [13:25:00] * Err404NotFound quit (Ping timeout: 264 seconds)
446: [13:29:00] * ARNHOE quit (Remote host closed the connection)
447: [13:38:00] * Error404NotFound has joined #silverstripe
448: [13:43:00] * ajshort has joined #silverstripe
449: [13:53:00] * Error404NotFound quit (Ping timeout: 245 seconds)
450: [14:08:00] * Error404NotFound has joined #silverstripe
451: [14:31:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
452: [14:42:00] * UncleCheese quit (Quit: UncleCheese)
453: [15:09:00] * UncleCheese has joined #silverstripe
454: [15:14:00] * LoveDuckie quit ()
455: [15:29:00] * priithansen has joined #silverstripe
456: [15:51:00] * UncleCheese quit (Quit: UncleCheese)
457: [15:52:00] * UncleCheese has joined #silverstripe
458: [15:55:00] * priithansen quit (Quit: priithansen)
459: [16:07:00] * priithansen has joined #silverstripe
460: [16:37:00] * chillu quit (Quit: chillu)
461: [16:38:00] * chillu has joined #silverstripe
462: [16:55:00] * joelpittet has joined #silverstripe
463: [17:04:00] * UncleCheese quit (Quit: UncleCheese)
464: [17:44:00] * aaron1245 has joined #silverstripe
465: [18:06:00] * zfmf has joined #silverstripe
466: [18:09:00] * Error404NotFound quit (Ping timeout: 256 seconds)
467: [18:12:00] * ralf_l quit (Remote host closed the connection)
468: [18:12:00] * ralf_l has joined #silverstripe
469: [18:20:00] * joelpittet quit (Remote host closed the connection)
470: [18:21:00] * Error404NotFound has joined #silverstripe
471: [18:21:00] * joelpittet has joined #silverstripe
472: [18:39:00] * joelpittet quit (Ping timeout: 240 seconds)
473: [18:42:00] * joelpittet has joined #silverstripe
474: [19:08:00] * yaman has joined #silverstripe
475: [19:13:00] * yaman quit (Ping timeout: 245 seconds)
476: [19:34:00] * joelpittet quit (Remote host closed the connection)
477: [19:35:00] * joelpittet has joined #silverstripe
478: [19:36:00] * Zauberfisch_ has joined #silverstripe
479: [19:38:00] * Squandered has joined #silverstripe
480: [19:40:00] * Squandered quit (Client Quit)
481: [19:41:00] * Squandered has joined #silverstripe
482: [19:41:00] * Squandered has joined #silverstripe
483: [19:41:00] * Squandered quit (Client Quit)
484: [19:44:00] * Squandered has left #silverstripe
485: [19:50:00] * Squandered has joined #silverstripe
486: [19:54:00] * Squandered has joined #silverstripe
487: [19:54:00] * Squandered quit (Client Quit)
488: [19:55:00] * Squandered has left #silverstripe
489: [19:56:00] * Squandered has joined #silverstripe
490: [19:56:00] * Squandered quit (Client Quit)
491: [19:57:00] * Squandered has joined #silverstripe
492: [20:06:00] * simon__w has joined #silverstripe
493: [20:08:00] * simon_w quit (Disconnected by services)
494: [20:08:00] * simon__w is now known as simon_w
495: [20:12:00] * Squandered2 has joined #silverstripe
496: [20:22:00] * Squandered2 has left #silverstripe
497: [20:23:00] * SightUnseen has joined #silverstripe
498: [20:25:00] * SightUnseen has left #silverstripe
499: [20:26:00] * Squandered quit (Read error: No route to host)
500: [20:28:00] * Squandered has joined #silverstripe
501: [20:36:00] * stillEPIK quit (Remote host closed the connection)
502: [20:36:00] * stillEPIK has joined #silverstripe
503: [20:37:00] * EPIK quit (Ping timeout: 252 seconds)
504: [21:06:00] * chillu quit (Quit: chillu)
505: [21:34:00] * Zauberfisch__ has joined #silverstripe
506: [21:35:00] * Zauberfisch___ has joined #silverstripe
507: [21:38:00] * Zauberfisch_ quit (Ping timeout: 260 seconds)
508: [21:40:00] * Zauberfisch__ quit (Ping timeout: 264 seconds)
509: [21:44:00] * zfmf has left #silverstripe
510: [21:49:00] * ajshort has joined #silverstripe
511: [21:54:00] * Motoservo quit (Quit: Motoservo)
512: [21:55:00] * micmania1_ has joined #silverstripe
513: [21:57:00] * Motoservo has joined #silverstripe
514: [22:16:00] * UncleCheese has joined #silverstripe
515: [22:29:00] * micmania1_ quit (Ping timeout: 245 seconds)
516: [23:04:00] * joelpittet quit (Remote host closed the connection)
517: [23:06:00] * joelpittet has joined #silverstripe
518: [23:50:00] * joelpittet quit (Remote host closed the connection)
519: [23:55:00] * zfmf has joined #silverstripe
520: [23:59:00] * UncleCheese quit (Quit: UncleCheese)

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