#silverstripe IRC Log

IRC log for 2 August 2013

All timestamps are in UTC.

1: [00:02:26] * mirrors has joined #silverstripe
2: [00:03:16] <Peavers> Don't forget to submit this week's timesheet folks.
3: [00:03:55] <simon_w> Hmm, I could actually do that and go home now...
4: [00:04:11] <Peavers> I could go home now and submit mine at 5 ;)
5: [00:04:23] <ss23> I could submit mine WHENEVER I FEEL LIKE IT
6: [00:04:37] <mirrors> hey everyone...I am having trouble with the ToggleCompositeField when using it in the SiteConfig......the height for some reason is being set to 0...if i load admin/pages and then click on settings the togglecompositefield loads correctly. If i however refresh the page (so going directly to admin/settings) then the height is set to 0
7: [00:04:41] <Jayden90> wow the 3.1 CMS interface is as rad as I thought
8: [00:05:00] <Jayden90> nice one guys
9: [00:05:00] <Peavers> I'm not really a fan...
10: [00:05:07] <Colin[pi]> simon_w: someone needs to make you a tshirt with a giant "HOME TIME!" on it
11: [00:05:27] * zippy__ has joined #silverstripe
12: [00:05:28] <simon_w> Colin[pi], well, I have done >40 hours this week
13: [00:05:36] <simon_w> And I start early, so get to leave early! :)
14: [00:05:43] <Colin[pi]> lol 40 hours, that's cute ;)
15: [00:05:50] <Jayden90> Peavers: probably set a css min-width on the body to prevent scrunching the layout with a window to small
16: [00:05:50] <mirrors> my guess is pages loads something that settings does not load by itself???
17: [00:05:51] <ss23> lol Colin[pi]
18: [00:05:54] <Peavers> I'm govt so I can play that 40 hour card.
19: [00:06:11] <ss23> Wait, I thought you were meant to put in 30 hours a week?
20: [00:06:13] <ss23> well fuck....
21: [00:06:17] <Peavers> 37.5
22: [00:06:28] <Colin[pi]> lol that .5 makes all the difference
23: [00:06:38] <Peavers> it does on my paycheck lol
24: [00:06:46] * zippy__ is coming up to 30 hours...
25: [00:07:27] <zippy__> In the CMS, is there a less rangi way to add a button than using a LiteralField with HTML coded in?
26: [00:07:54] <ss23> zippy__: "button"?
27: [00:07:59] <ss23> Just a new SubmitButton or w/e?
28: [00:08:20] * mobiusnz quit (Ping timeout: 256 seconds)
29: [00:08:21] * mobiusnz1 has joined #silverstripe
30: [00:08:22] <zippy__> just a button which I can bind to an action, I can use js to bind if needed
31: [00:08:43] <ss23> But button as in <button> or <a> or <input>?
32: [00:08:52] <simon_w> I'm waged, so usually aim for 45 hours
33: [00:09:24] <ss23> Salary here :<
34: [00:09:42] <zippy__> <button> like the same style as the save publish/unpublish etc
35: [00:09:51] <Colin[pi]> "whenever they pay me" here
36: [00:10:18] <ss23> lol Colin[pi]
37: [00:10:37] <Colin[pi]> zippy__: isn't that from getCMSActions() ?
38: [00:12:39] <irogue> ooo
39: [00:12:41] <irogue> lots of sirens
40: [00:12:45] <ss23> I can't hear any!
41: [00:12:58] <irogue> sounds like yet another police chase on the motorway
42: [00:14:21] <Peavers> got phpstorm git working with a proxy
43: [00:14:26] <Peavers> highfive someone
44: [00:14:54] * Colin[pi] highfives peavers but misses and smacks him in the forehead
45: [00:15:00] <ss23> XD
46: [00:15:06] <ss23> >phpstorm
47: [00:15:07] <ss23> :3
48: [00:15:13] <Peavers> I'm sure I'm taller than you, so you'd just miss and hit my massive chest.
49: [00:15:37] <zippy__> I do like phpstorm
50: [00:15:46] <Peavers> I love all JetBrains products
51: [00:15:52] <Colin[pi]> how many cm peavers?
52: [00:15:55] <Peavers> IntelliJ is like sex on the screen
53: [00:15:58] <Peavers> 196 Colin[pi]
54: [00:16:02] <zippy__> I do sometimes get the spinning beach ball every now and then, but I wonder if that is due to several SS projects open at once
55: [00:16:04] <Colin[pi]> yup 178 here lol
56: [00:16:22] <Peavers> zippy__, thats a mac issue. Don't get it on windows ;)
57: [00:16:30] <mirrors> i cannot find the javascript that set the height to 0
58: [00:16:44] <zippy__> Peavers: you don't get a lot of stuff on windows that is why I use mac
59: [00:16:51] <mirrors> i cant just change the css because some js somewhere is setting the hieght to 0
60: [00:16:56] <Peavers> zippy__, like what?
61: [00:17:27] <zippy__> a decent native terminal without having to install some cygwin bollocks
62: [00:17:50] <Peavers> ss23, deploynut builds the site from composer when deploying it yeah? so I don't need to add all the modules to the git repo ?
63: [00:17:54] <Peavers> zippy__, thats very true
64: [00:17:55] <zippy__> a decent looking laptop with sleeps and resumes properly
65: [00:18:01] <Peavers> now thats not true
66: [00:18:05] <ss23> simon_w: Just FYI, going to get noms with coworkers looks like
67: [00:18:07] <zippy__> a battery that lasts more than 2 hours
68: [00:18:10] <Peavers> my lenovo U300s is awsome
69: [00:18:14] <Peavers> bat lasts 10+ hours
70: [00:18:19] <zippy__> decent
71: [00:18:37] <ss23> Peavers: Yeah. Basically does a git clone, composer install, then tar's it up, transferes it, untars it, dev/build it, symlink it
72: [00:18:45] <Peavers> sweet
73: [00:19:13] <zippy__> Colin[pi]: I will look into getCMSActions thanks
74: [00:19:16] <ss23> It's pretty good at reverting if it anything fucks up too (like if you accidently commit an invalid composer.json, it'll just halt the deploy rather than put you in a weird state)
75: [00:19:31] <irogue> still sirens...
76: [00:20:19] <Colin[pi]> zippy__: yeah pretty sure it's the method that gets called to define those action buttons in the footer of the cms
77: [00:21:01] <Peavers> so ss23, what if I create a themes folder and put a theme in it, then commit it and deploy it?
78: [00:21:10] <Peavers> will composer override it?
79: [00:21:24] <Peavers> no it wont looking at it
80: [00:21:26] <Peavers> nevermind me
81: [00:21:28] <ss23> Peavers: Not sure, try it in your local dev?
82: [00:22:42] <simon_w> ss23, fine then
83: [00:24:56] <ss23> ;_;
84: [00:24:57] <ss23> <3
85: [00:25:06] <Peavers> If I push a complete new "recipe" will it create me a brand new instance of ss under a dif domain on uat?
86: [00:25:37] <Colin[pi]> dumb qn, what's the procedure to programmatically create a new file in assets? write the file and then create a File object? or use Filesystem::sync() ?
87: [00:27:11] <simon_w> Colin[pi], create a File object. A lot more efficient than a full ::sync()
88: [00:27:41] <Colin[pi]> k, what about ::sync($folderID) though?
89: [00:28:19] <simon_w> Depends on the folder. $f = new File; $f->Filename = $path; $f->write(); isn't all that hard though :p
90: [00:28:20] * pex quit (Ping timeout: 245 seconds)
91: [00:28:47] <Colin[pi]> oic.. do I need to link up the Folder manually? or will it get that from the path?
92: [00:29:41] <simon_w> It should get it from the path
93: [00:29:48] <Colin[pi]> k I'll give it a try, thx
94: [00:30:43] * pex has joined #silverstripe
95: [00:30:45] <Peavers> server guys want to know why I want another linux box for gitlab... what to say...
96: [00:32:41] <irogue> COS LINUX ROX
97: [00:33:00] <Peavers> I took my manager two years to get one virtual linux box...
98: [00:34:31] <timespoon> just run lxc or something if it's a hassle to get more
99: [00:34:43] <timespoon> easier than fucking around with xen
100: [00:35:28] <timespoon> "Because I wish to provide yet another black box appliance for you to worry about during pen testing and compliance audits"
101: [00:35:38] <Peavers> lol
102: [00:35:40] <timespoon> there, i wrote it for you
103: [00:36:19] <timespoon> i've taken to lugging my laptop around with a dozen virtual box instances and a variety of nic configs / ssh tunnels to get them touching whereever they are needed
104: [00:38:09] <Jayden90> Silverstripe 3.1 does not seem to look for a "templates" folder in "mysite"
105: [00:38:27] <Peavers> why would you have a template there in the first place?
106: [00:38:55] <Jayden90> You used to be able to avoid themes by keeping all project stuff in mysite
107: [00:39:20] * joelpitt_ has joined #silverstripe
108: [00:39:25] * joelpitt_ quit (Remote host closed the connection)
109: [00:39:29] <Peavers> ewww
110: [00:39:35] <Peavers> use themes dude
111: [00:39:40] * joelpitt_ has joined #silverstripe
112: [00:39:58] <Jayden90> Is that a requirment now? I can not see a mention of that in http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
113: [00:40:19] <Colin[pi]> simon_w: hmm the file was created but it went to the root /assets.. not liking the path
114: [00:40:59] <simon_w> Colin[pi], can set Name and ParentID then
115: [00:41:12] <simon_w> Jayden90, uh, it does look in my site?
116: [00:41:48] <Jayden90> it keeps defaulting to the silverstripe default templates
117: [00:42:00] <simon_w> Have you flushed?
118: [00:42:08] <Jayden90> yep
119: [00:42:16] * joelpittet quit (Ping timeout: 246 seconds)
120: [00:42:17] <simon_w> and what's the name of the template?
121: [00:42:28] <Jayden90> Page.ss
122: [00:42:49] <Jayden90> not sure what do do about the config.yml
123: [00:42:59] <Jayden90> tried removing the part about themes
124: [00:43:05] <simon_w> And are you using the CMS module?
125: [00:43:35] <guzzlefry> simon_w: Doesn't the theme need to be set in the CMS?
126: [00:43:43] <simon_w> guzzlefry, no
127: [00:43:45] <guzzlefry> Not sure if that works outside of themes/
128: [00:43:56] <simon_w> Templates work outside themes fine
129: [00:44:21] * guzzlefry had to manually set it once. But I didn't use create-project, which meant lots of other fun to do.
130: [00:44:43] <Jayden90> just built the project using "composer create-project silverstripe/installer ./stripe 3.1.x-dev
131: [00:45:00] <Jayden90> Sorry don't know why paste repeated that
132: [00:45:54] <simon_w> Jayden90, is the page you're trying to render using a custom page type?
133: [00:46:24] <Jayden90> just loading the homepage of a default install
134: [00:47:00] <simon_w> The default install uses simple as a theme
135: [00:47:10] <simon_w> And the theme overrides anything in a module
136: [00:47:34] <Jayden90> unticked that, deleted the themes
137: [00:47:41] <Colin[pi]> simon_w: yeah I had to use Folder::findOrMake() and link it up via ParentID.. weird I thought it did it automagically
138: [00:47:57] <simon_w> Jayden90, so what are you actually seeing?
139: [00:48:20] <Jayden90> wierd stuff now, attempting /dev/build/flush=all
140: [00:48:31] <Jayden90> "[User Warning] Couldn't set response type to 404 because of output on line 101 of /Users/jaydenseric/Sites/roselawyers2/website/framework/dev/DebugView.php"
141: [00:48:38] <Peavers> lunch!
142: [00:49:15] <simon_w> Jayden90, well, dev/build/flush=all doesn't exist, so that makes sense
143: [00:50:03] <Jayden90> sorry just typo'd that
144: [00:50:12] <Jayden90> but still template not working
145: [00:50:26] <simon_w> So what are you seeing?
146: [00:50:56] <Jayden90> blue bar at the top of the page, silverstripe logo in the top right with page title "Home"
147: [00:51:11] <simon_w> and what's the path for your Page.ss?
148: [00:52:14] <Jayden90> mysite/templates/Page.ss and mysite/templates/Layout/Page.ss
149: [00:52:47] <simon_w> And you haven't changed any of the PHP files at all?
150: [00:53:02] * AntiSol has joined #silverstripe
151: [00:53:08] <Jayden90> not at all
152: [00:53:41] <Jayden90> Only thing I have tried is fiddling with the _config/config.yaml as it has a themes setting in there
153: [00:53:55] <Jayden90> what should I do about that?
154: [00:55:21] <Jayden90> in CMS Settings, Theme the drop down says (Use default theme) as the only option
155: [00:56:06] * Bollig|DesignCty has joined #silverstripe
156: [00:56:11] <AntiSol> hello silverstripe wizards! I want to use exit codes in a CliController script, but I can't seem to find any way of doing this within silverstripe. Is there a way to do this, or should I just use php's exit() function?
157: [00:56:27] <simon_w> Jayden90, are you seeing the content at all? Or just the blue bar?
158: [00:56:33] <Jayden90> content too
159: [00:56:51] <simon_w> And your template is something different?
160: [00:57:26] <Jayden90> totaly diffirent
161: [00:57:41] <spronk> hmm
162: [00:57:46] <spronk> what do you all use for dev vms?
163: [00:58:03] <Jayden90> What should I do about the yaml theme setting? I just deleted it
164: [00:58:11] <Jayden90> no change
165: [00:58:35] <simon_w> AntiSol, well, there's no way to set the return code so a exit() call's probably the safest
166: [00:58:49] <simon_w> Jayden90, you need to flush after a config change
167: [00:58:56] <irogue> figured out where all the sirens were going
168: [00:59:07] <Colin[pi]> newtown?
169: [00:59:25] <mirrors> hey.....the new pop up in the tinymce to add a tags is missing a place to enter an alt and title text.....am i missing it...or is it not there
170: [00:59:43] <Jayden90> simon_w: Tried flushing
171: [00:59:53] <AntiSol> cool, thanks simon :)
172: [01:00:10] <irogue> Colin[pi]: just up the road
173: [01:00:26] <irogue> http://180.189.209.112/l_camera2.jpg
174: [01:00:34] <irogue> many many fire, police and amberlamps
175: [01:00:37] <irogue> fatal crash
176: [01:00:50] <spronk> oo
177: [01:01:34] <Colin[pi]> oops :(
178: [01:02:23] <mirrors> sorry i meant img tags
179: [01:03:00] <irogue> just walked through that intersection to get lunch
180: [01:03:13] <irogue> policemen on point duty since a bunch of the intersection is closed
181: [01:03:46] <Peavers> this is newtown?
182: [01:03:50] <Peavers> of course its in newtown
183: [01:04:33] * irogue is in Auckland...
184: [01:04:51] <irogue> i swear, ever asian that approached the intersection
185: [01:05:00] <irogue> looked thoroughly confused
186: [01:05:00] <irogue> WHAT DO
187: [01:05:44] <spronk> laawwwwwl
188: [01:05:49] * UncleCheese quit (Quit: UncleCheese)
189: [01:06:05] <Jayden90> simon_w: Think its some sort of bug? Not sure what to do.
190: [01:07:37] <irogue> http://iforce.co.nz/i/ai1fuawd.kv5.png
191: [01:08:14] <irogue> people trying to go straight ahead from Schnapper Rock into Bush, or right from Schnapper Rock into Albany Hwy
192: [01:08:19] <irogue> just sitting at the intersection
193: [01:08:29] <irogue> while policeman points at them, points left, points at them, points left
194: [01:08:33] <irogue> they just don't get it
195: [01:09:03] <spronk> ooh i know that road
196: [01:09:20] * will_ has joined #silverstripe
197: [01:09:33] <irogue> and people going straight through on Albany Hwy northbound
198: [01:09:35] <irogue> sitting at red light
199: [01:09:38] <irogue> while cop waves them on
200: [01:09:44] * will_ is now known as Guest36782
201: [01:09:44] <irogue> cos theres no traffic to stop for...
202: [01:10:03] <irogue> can see their face being like BUT LIGHT IS RED, MR POLICEMAN
203: [01:10:07] <Guest36782> hi guys. I installed 3.1 using composer. seems ok but then copied my templates & app code over from a 3.0 project. errors! : )
204: [01:10:30] <Guest36782> eg: SSTemplateParser->ClosedBlock_Handle_Control is deprecated. is deprecated. Use or instead.
205: [01:10:35] <zippy__> 3.1 is still beta
206: [01:11:03] <Guest36782> when doing: <% control NextDebate() %> <% include HomeLead %> <% end_control %>
207: [01:11:19] <zippy__> use 'with' or 'loop' depending on what your doing
208: [01:11:21] <Guest36782> yep, thats ok - to be expected
209: [01:11:29] <irogue> spronk: that's... surprising
210: [01:11:38] * mirrors quit (Quit: Page closed)
211: [01:11:39] <Guest36782> just wondering if i should log them in git issues or if im doing something wrong?
212: [01:11:57] <zippy__> ClosedBlock_Handle_Control is deprecated
213: [01:12:00] <irogue> christchurchian knowing a random industrial area in North Shore
214: [01:12:10] <zippy__> use 'with' or 'loop'
215: [01:12:29] <zippy__> probably with
216: [01:12:31] * spronk spent a bit of time up in orewa
217: [01:12:39] <irogue> ahh
218: [01:12:47] <Guest36782> when doing: <% with NextDebate() %> <% include HomeLead %> <% end_with %> ? like so?
219: [01:12:49] <zippy__> <% with NextDebate() %> <% include HomeLead %> <% end_with %>
220: [01:12:54] <zippy__> yea
221: [01:13:03] <Guest36782> ok, thanks. ill give it a go.
222: [01:13:15] <zippy__> might want to have a look over the 3.1 notes
223: [01:15:34] <irogue> http://www.athop.co.nz/what-is-AT-HOP/bus-rollout-schedule/Pages/North-Star.aspx
224: [01:15:35] <Colin[pi]> who wrote this File code? it's um... interesting
225: [01:15:42] <irogue> YAY, i can have one less card in my wallet
226: [01:18:38] <Peavers> Gilmore becomes bullying poster boy http://www.stuff.co.nz/oddstuff/8995085/Gilmore-becomes-bullying-poster-boy
227: [01:18:40] <Peavers> mwahaha
228: [01:19:54] <Guest36782> its giving can't find class "ContactForm" too. changes to autoloading?
229: [01:20:15] <Guest36782> its trying to load the bluehousegroup module
230: [01:21:53] <Pyromanik> what
231: [01:21:53] <zippy__> have you created your yaml configs?
232: [01:23:23] <Pyromanik> bluehousegroup sounds like a 2.4 module, as your control statements would agree.
233: [01:23:40] <Pyromanik> read up on 3.0 changes, and 3.1 upgrading.
234: [01:23:46] <Guest36782> nope, its 3.0.
235: [01:23:48] <Pyromanik> many things have changed and will need manual updating
236: [01:24:06] <Jayden90> simon_w: perhaps related to "SSViewer::current_custom_theme() has been replaced with the SSViewer.theme_enabled configuration setting. Please use it to toggle theme behaviour rather than relying on the custom theme being set in the (now deprecated) SSViewer::set_theme() call."
237: [01:24:10] <Jayden90> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
238: [01:24:18] * AntiSol quit (Quit: Leaving)
239: [01:24:43] <Pyromanik> Guest36782: and what does it do? this? https://github.com/bluehousegroup/silverstripe-contact-form
240: [01:26:06] <mobiusnz1> gah. versioned is annoying in that it breaks if you rename columns
241: [01:26:12] * mobiusnz1 is now known as mobiusnz
242: [01:27:45] <Guest36782> yeah that. i installled it last night on the 3.0 site im working on, then copied it over to the 3.1 experiment this morning. I guess they need to update it? will it be something trivial i could do ?
243: [01:27:50] <ss23> irogue: Which card? :O
244: [01:27:56] <Pyromanik> Guest36782: maybe
245: [01:28:05] <ss23> I keep all my cards in my wallet, since otherwise I would lose them
246: [01:28:07] * swordsmanz quit (Ping timeout: 264 seconds)
247: [01:28:11] <Pyromanik> if it has DB entries you'll need to change all the public static db vars to private
248: [01:28:24] <Pyromanik> as previously pointed out, read the changelog for 3.0 to 3.1
249: [01:28:34] <Pyromanik> it'll tell you the important changes.
250: [01:29:55] * mobiusnz1 has joined #silverstripe
251: [01:30:02] * mobiusnz quit (Read error: Connection reset by peer)
252: [01:30:08] * mobiusnz1 is now known as mobiusnz
253: [01:32:05] <irogue> ss23: can get rid of my Snapper (aka Purple HOP)
254: [01:32:15] <Peavers> My snapper is awsome
255: [01:32:33] <Peavers> Was one of the very first usb test units from must be 10ish years ago
256: [01:35:15] <ss23> aw k
257: [01:35:31] <simon_w> My snapper would be more useful if I actually kept some money on it for micro transactions
258: [01:35:46] <Peavers> I've not once used mine for mico transactions
259: [01:35:56] <ss23> wtf are microtransactions?
260: [01:35:57] <simon_w> So much faster than EFTPOS
261: [01:36:05] <simon_w> ss23, <$50 transactions
262: [01:36:12] <simon_w> Buying stuff from Fix
263: [01:36:16] <ss23> oic, like the standard paywave stuff
264: [01:36:18] <Peavers> and because I only use it once in a blue moon I never remember how much I've got on it, so I always put $10 on.. must have ~50k by now ;)
265: [01:36:31] <simon_w> Can't have more than $300 :p
266: [01:36:42] <ss23> balance $49.55
267: [01:36:43] <ss23> :D
268: [01:36:45] <Peavers> WELL THEN IT MUST HAVE $400
269: [01:36:50] <Peavers> $300 even..
270: [01:37:09] <simon_w> ss23, yeah, but without the credit card-ness
271: [01:37:16] <ss23> Hmm
272: [01:37:17] <ss23> weird
273: [01:37:23] <ss23> If you snapper on two people, it doesn't really tell you
274: [01:37:38] <ss23> It just doubles the price
275: [01:37:38] <simon_w> "Multiple fares paid" not enough?
276: [01:37:45] <ss23> simon_w: I mean on the website
277: [01:38:01] <simon_w> You want Korea to get more metadata on you? :p
278: [01:38:04] <Guest36782> hmm, yeah think ill retreat to 3.0 for now.
279: [01:38:19] <ss23> lol
280: [01:38:25] <ss23> KOREA ALREADY KNOWS
281: [01:39:12] <Pyromanik> irogue: will HOP work with snapper if you go to WLG though?
282: [01:39:21] <Pyromanik> and, can you transfer the funds already loaded?
283: [01:39:56] <simon_w> Newslands/Mana should hurry up and switch to Snapper
284: [01:40:20] <ss23> doing a /dev/build, been over 2 mins, not even showing up in top
285: [01:40:22] <ss23> idek what to thik
286: [01:40:23] <ss23> think
287: [01:40:57] <Pyromanik> hmm, I don't think screen handles C-s that well
288: [01:41:15] <Colin[pi]> ss23: nothing in the logs?
289: [01:41:21] <ss23> Worked now, just took ~4 mins
290: [01:41:28] <Colin[pi]> damn
291: [01:41:38] <Colin[pi]> what the heck was it doing for 4 mins?
292: [01:41:47] <ss23> idk
293: [01:41:48] <ss23> o.o
294: [01:41:52] <ss23> I'm willing to ignore it
295: [01:41:53] <zippy__> Magic happens
296: [01:42:41] <ss23> Field RSVPAttendee.Cost: changed to decimal(9,2) not null default 0 (from decimal(9,2) not null default 0.00)
297: [01:42:47] <ss23> someone needs to fix this
298: [01:43:39] <Colin[pi]> surely.. surely there must be a better way of checking if a File object already exists than this http://www.sspaste.com/paste/show/51fb0e030c734
299: [01:43:43] <simon_w> Hmm, I should lunch
300: [01:44:02] <simon_w> Colin[pi], File::find($path)
301: [01:44:30] <Colin[pi]> yes but first I need to munge the file name (spaces -> dashes) right?
302: [01:45:18] <simon_w> Probably
303: [01:45:34] * pex quit (Quit: pex)
304: [01:45:40] <Colin[pi]> ugh
305: [01:45:50] <Colin[pi]> this File code has a lot of bad smells
306: [01:45:59] <ss23> Give it a wash :D
307: [01:46:00] <Colin[pi]> but it's 2.4, maybe it's better in 3.1? ;P
308: [01:46:35] <ss23> blurgh
309: [01:46:38] <ss23> something is wrong with this site
310: [01:46:42] <ss23> dev/build is taking way too long
311: [01:47:32] <simon_w> Colin[pi], $path = $folder->Path . '/' . FileNameFilter::create()->filter($name)
312: [01:47:35] <simon_w> Um, no idea about 2.4
313: [01:47:53] <ss23> simon_w is too much of a cool kid for 2.4
314: [01:47:56] <simon_w> Oh, 2.4 just does some straight replaces. Nothing nice.
315: [01:48:01] <Colin[pi]> it's so icky.. this file stuff could be handled soo much better
316: [01:48:09] <simon_w> Anyway, lunch!
317: [01:48:17] <Colin[pi]> I mean File doesn't even have an exists() method.. WTF
318: [01:49:58] * mobiusnz1 has joined #silverstripe
319: [01:50:46] * mobiusnz quit (Read error: Connection reset by peer)
320: [01:52:07] * gelignite quit (Quit: http://bit.ly/nkczDT)
321: [01:52:56] * ChaBuku has joined #silverstripe
322: [01:53:13] <ChaBuku> Hey
323: [01:53:21] <Peavers> Hey
324: [01:53:59] * UncleCheese has joined #silverstripe
325: [01:54:39] <ChaBuku> Is it acceptable to ask questions about silverstripe here? =)
326: [01:54:58] <Bollig|DesignCty> sure ChaBuku, shoot ;
327: [01:55:00] <Bollig|DesignCty> :)
328: [01:55:05] <Colin[pi]> since it's the SilverStripe channel, I'd think so yes :)
329: [01:55:22] <Peavers> I'm not really acceptable though =(
330: [01:55:38] <ChaBuku> well some places have a regular channel and a questions channel, so I always find it easier to just ask if I can ask first.
331: [01:56:01] <ChaBuku> I am just curious if its possible to use something like ACE editor with silverstripe when creating articles?
332: [01:57:38] <Peavers> Don't see why not
333: [01:58:43] * mobiusnz1 quit (Ping timeout: 260 seconds)
334: [01:59:13] <ChaBuku> Is it something I would have to figure out how to install on my own, or is there some sort of functionality that can easily be added? Other CMSes I've used have a module/plugin/etc to add ACE functionality
335: [01:59:33] <Peavers> You'd have to build it in
336: [01:59:36] <ChaBuku> I looked briefly through the module repository and didn't see anything (at least under 'A')
337: [01:59:52] <ChaBuku> Ok.
338: [02:00:07] <Peavers> The question is though, what does it offer that the standard WYSIWYG editor doesn't for blog posting?
339: [02:01:00] * mobiusnz has joined #silverstripe
340: [02:01:26] <Colin[pi]> Yeah I've never had much of an issue with TinyMCE
341: [02:01:40] <Colin[pi]> also in terms of the markup it produces it's top notch
342: [02:01:52] <Colin[pi]> I used to use CKeditor and it was a dog's breakfastr
343: [02:01:53] <ChaBuku> I like to do things in HTML sometimes and the html source editor isn't pretty
344: [02:01:54] <Colin[pi]> -r
345: [02:01:55] <Peavers> Sure TinyMCE isn't amazing, but all you're adding is a few headings and some text yeah? Maybe a few lines of preformatted code?
346: [02:02:32] <Peavers> If you really want to do that, just write your code in sublime and copy n paste.
347: [02:03:18] <ChaBuku> I suppose that is what i normally do anyways, but its nice to be able to look at it and read it legibly
348: [02:03:19] <Peavers> but if you're adding more than a few basic markup options in the editor, you might want to think about changing things at the template level
349: [02:03:40] <Jayden90> For some reason setting up a folder "silverstripe_cache" in the root witht the right permissions is not working.
350: [02:03:55] <Jayden90> is this a 3.1 thing too?
351: [02:04:27] <ChaBuku> I haven't begun to use Silverstripe, but I've been reading a lot about it today so I was just curious... I really like the way the article posting is set up.
352: [02:05:04] <Colin[pi]> dive in and give it a try ChaBuku, it's great to develop in
353: [02:05:06] <ChaBuku> So far I've been using a couple different CMSes for projects and I'm not 100% satisfied with either of the ones I've used so far
354: [02:05:13] <Peavers> I find its best to think about silverstripe as a framework rather than a cms
355: [02:05:24] <Colin[pi]> well it's a framework with a CMS module
356: [02:05:37] <Peavers> (even though tis a framework with a cms mod)
357: [02:05:39] <Peavers> beaten...
358: [02:05:47] <Colin[pi]> XD
359: [02:06:24] <Peavers> The great thing about SS is if it doesn't act how you want out the box, its normally pretty easy to make it do what you want, unlike wordpress or drupal which can be rather fiddly at best.
360: [02:06:33] <ChaBuku> I'm just used to hard coding sites, so using any CMS is still pretty new to me. So far both the ones I've used I just tried to tear apart a default template and only include the couple small elements I needed
361: [02:06:54] <ss23> What should I write for my bio on Silverstripe?
362: [02:07:12] <Peavers> That you're a massive dork who likes lunch.
363: [02:07:17] <ChaBuku> the two I've been messing with are WolfCMS (which is pretty slowly developed), and CMS Made Simple
364: [02:07:18] <ss23> :D
365: [02:07:32] <Colin[pi]> LOL
366: [02:07:55] <Peavers> Do you need to write your own bio?
367: [02:07:58] <Peavers> thats a bit weak.
368: [02:08:13] <Peavers> They are all written in third person though arn't they?
369: [02:09:04] <ss23> Just cause they're in third person doesn't mean I can't write it myself though right? :O
370: [02:09:05] <ChaBuku> Are templates basically created externally and then just uploaded into a directory and they show up in the CMS? That's what it seems like at first glance
371: [02:09:22] <Peavers> ChaBuku, yup
372: [02:09:38] <ChaBuku> Great, that makes it much easier than having to try to copy and paste through the CMS itself.
373: [02:09:50] <ChaBuku> which is what i find frustrating about CMSMS
374: [02:10:14] <Peavers> This would have to be the best template ever written for ss, and I think everyone agrees https://github.com/peavers/silverstripe-squandered-theme
375: [02:11:03] <Colin[pi]> ChaBuku... the way I think about SS is like a having a sexy wife, most of the time she's so amazing that you forgive the times she flips out and you fight for a few hours, at the end of the day it's like "aww let's not fight, I love you"
376: [02:11:03] * coldblooded01 has joined #silverstripe
377: [02:11:24] <ChaBuku> haha
378: [02:11:41] <ChaBuku> The backend is pretty sexy I must say.
379: [02:12:08] <Colin[pi]> so like everything there are times where I get frustrated but I reckon 90% of the time it's more my limitation/learning/lack-of-knowledge
380: [02:12:23] <Colin[pi]> scratch my head for a few hours and then go "ohhhh, I see now"
381: [02:12:57] <Colin[pi]> but so many things about the framework are so handy and nice that I easily forgive those moments
382: [02:13:04] <ChaBuku> Yeah, that's usually where I get stuck... I've only taken a few peaks at what is available, is there a lot of docs on SS?
383: [02:13:16] <Peavers> errr
384: [02:13:29] <ChaBuku> I'm pretty beginner for development, I can do HTML/CSS, but I'm pretty basic with my PHP right now
385: [02:13:39] <Colin[pi]> for example, I made a complete image gallery module, with admin, albums, pagination, resampling, popups etc.... in SS in *ONE hour*
386: [02:13:48] <Colin[pi]> ONE hour, from scratch
387: [02:14:02] * ss23 scratches Colin[pi]
388: [02:14:08] <Colin[pi]> I have never seen that sort of turnaround in anything else I've used
389: [02:14:13] * Jayden90 quit (Quit: Jayden90)
390: [02:14:48] * Colin[pi] turns his head 90 degrees and kicks his leg repeatedly
391: [02:15:17] <Peavers> Getting that third person practise in for your bio ss23?
392: [02:17:59] <ss23> XD
393: [02:18:52] <Colin[pi]> ss23 don't forget your profile pic: http://i.imgur.com/dBDw55n.jpg
394: [02:19:15] <ChaBuku> how often does SS get updated?
395: [02:19:36] <Colin[pi]> regular updates ChaBuku
396: [02:19:46] <Colin[pi]> every 1-2 months perhaps?
397: [02:20:05] * Jayden90 has joined #silverstripe
398: [02:20:19] <Peavers> just live on the edge
399: [02:20:20] <ChaBuku> someone should update the Wikipedia CMS comparison article then.... http://en.wikipedia.org/wiki/List_of_content_management_systems
400: [02:20:22] <Peavers> every few hours.
401: [02:20:27] <ss23> ChaBuku: Kind of at least once a day someone makes a commit, but as Colin[pi] says, versions are released in batches once every few months
402: [02:20:27] <ChaBuku> It says last update was last year.
403: [02:20:38] <ss23> Colin[pi]: XD
404: [02:20:58] <Colin[pi]> ChaBuku: aye, you can download from GitHub whenever you like
405: [02:21:09] <Colin[pi]> or the major releases are posted on the site
406: [02:21:19] <ss23> ChaBuku: On that list on wikipedia, it's very out of date
407: [02:21:50] <ss23> ChaBuku: https://github.com/silverstripe/silverstripe-framework/releases - When we're trying to release a major version, e.g. 3.1, other versions slow down
408: [02:22:04] <ss23> ChaBuku: You can look at the trends of releases there anyway :)
409: [02:23:07] <ChaBuku> Gotcha.
410: [02:24:51] <Colin[pi]> ChaBuku: install in and run through the tutorials, it's good fun
411: [02:24:54] <Colin[pi]> *install it
412: [02:25:00] <Colin[pi]> I remember those early days :)
413: [02:25:56] <ChaBuku> I have been working on a project for about a month now, and I really should have it farther along than I do.. so I'm trying to decide if I want to scrap the second CMS I spent time installing or just wait for my next project. =P
414: [02:26:34] <irogue> @WgtnCC: An old artillery shell found today in Newtown will be detonated this afternoon - it will make a loud noise. There is no cause for concern.
415: [02:26:55] <ss23> I wanna be there for it :<
416: [02:26:57] <ChaBuku> I was considering just finishing the basic HTML framework and ignoring my current CMS really except for serving pages and then trying to migrate everything after I am finished
417: [02:27:47] <ChaBuku> Where is the development team for SS based out of?
418: [02:27:51] <ChaBuku> In the world that is
419: [02:28:15] <ss23> ChaBuku: There's a company, but most of the stuff is opensource
420: [02:28:44] <Colin[pi]> Nu Zuhlundurs
421: [02:28:50] <ChaBuku> There has to be a handful of people that make the most commits, though right?
422: [02:28:50] <ss23> ChaBuku: think like Linux, companies contribute (like redhat etc), but mainly just people doing it for fun
423: [02:29:00] <ss23> ChaBuku: Sure, simon_w is one of them, he works for a place called PocketRent
424: [02:29:03] <ss23> Oh well
425: [02:29:05] <ss23> Most core devs are in NZ, yeah
426: [02:29:12] <ss23> A guy in Germany does a lot too
427: [02:29:15] <Colin[pi]> NZ and some German collab too
428: [02:29:16] <Colin[pi]> dammit
429: [02:29:19] <ss23> :D
430: [02:29:21] <ss23> Australia sometimes too
431: [02:29:23] <ChaBuku> I think I read a review of SS that said NZ/Aus
432: [02:29:32] <Colin[pi]> Well SS has offices in both
433: [02:29:42] <ss23> SS has an office in NZ, AU, and Germany! :D
434: [02:29:48] <Colin[pi]> oh they have Germany too?
435: [02:29:50] <ss23> But I think overall, a lot of the NZ work at least isn't done by SS
436: [02:29:54] <ss23> Colin[pi]: Ingo is the Germany office
437: [02:29:54] <ss23> :P
438: [02:30:01] <ChaBuku> I decided I am not going to use any CMS that doesn't have an IRC channel from now on. It was one of the first things I checked for SS
439: [02:30:05] <DesignerX> I read there is an office in australia.. somewhere
440: [02:30:10] <Colin[pi]> ah I knew of the connection but I wasn't sure if it was an "office" as such
441: [02:30:11] <ss23> DesignerX: Yes, there's an AU office too
442: [02:30:19] <Colin[pi]> In Melbourne
443: [02:30:25] <DesignerX> I think its in Melbourne
444: [02:30:28] <DesignerX> :)
445: [02:30:29] <Colin[pi]> in fact there is a Gold Coast contingent too I think?
446: [02:30:36] <ss23> I'm the only person who works for Silverstripe here, right?
447: [02:30:43] <Colin[pi]> define "works"
448: [02:30:43] <Colin[pi]> ;D
449: [02:30:49] <ss23> wait, halkyon is here atm :O
450: [02:31:14] <DesignerX> ss23: I work "with" silverstripe
451: [02:31:23] <ss23> Contracting?
452: [02:31:35] <DesignerX> nah, just use the CMS
453: [02:31:53] <DesignerX> not directly with the company I mean
454: [02:32:05] <ss23> oic oic
455: [02:32:09] <ChaBuku> "works for" would imply a paycheck from said company, yes
456: [02:32:10] <ss23> yeah, well ots ofp oeple do that!
457: [02:32:31] <ss23> ChaBuku: Where are you based?
458: [02:32:41] <ChaBuku> whether you're pretending to work or actually working makes no difference if you're getting paid.
459: [02:32:48] <ChaBuku> North Carolina, US
460: [02:32:53] <ss23> aw cool
461: [02:33:36] <ChaBuku> I must clarify Western North Carolina though... its a strange state. I'm not from here originally.
462: [02:35:04] <ss23> Where as UncleCheese from again?
463: [02:35:06] <simon_w> Yeah, there's two NZ offices, two AU offices and one DE office
464: [02:35:46] <UncleCheese> VT
465: [02:36:14] <simon_w> Vermont?
466: [02:36:21] <DesignerX> simon_w: where is the 2nd SS office in AU ?
467: [02:36:29] <simon_w> DesignerX, gold coast
468: [02:36:34] <irogue> OH GOD I'M GONNA DIE
469: [02:36:40] <irogue> incoming call from "TRIAD NEW ZEALAND"
470: [02:36:42] <simon_w> irogue, we all are!
471: [02:37:23] <spronk> LOL
472: [02:38:00] <simon_w> irogue, dibs on your stuff!
473: [02:38:04] <ss23> XD
474: [02:38:16] <Colin[pi]> <Colin[pi]> in fact there is a Gold Coast contingent too I think? -_-
475: [02:38:22] <Colin[pi]> what am I, invisible? ;P
476: [02:39:13] <Pyromanik> simon_w: yeh.
477: [02:39:32] <Pyromanik> Colin[pi]: yes.
478: [02:39:32] <DesignerX> brb, my windows taskbar FROZE !!
479: [02:39:35] <Pyromanik> because no.
480: [02:39:51] <simon_w> Woo, time to make my own session implementation!
481: [02:40:25] <Colin[pi]> simon_w chillout sessions: now with 110% more Rebecca Black
482: [02:40:36] <simon_w> Ooh, I like the sound of that
483: [02:40:38] * joelpitt_ quit (Remote host closed the connection)
484: [02:40:52] <Colin[pi]> you're a sick, sick man
485: [02:40:54] * bennettpr has joined #silverstripe
486: [02:40:57] <Colin[pi]> ;)
487: [02:41:12] <simon_w> Friday isn't even my most played Rebecca Black song! :p
488: [02:41:26] <spronk> it had more than one song?
489: [02:42:05] <simon_w> http://swng.it/l7BWh.png
490: [02:42:52] <Peavers> ban.
491: [02:43:06] <spronk> concur
492: [02:43:11] <spronk> at the very least
493: [02:43:14] <spronk> label with [NSFL]
494: [02:44:21] <simon_w> Ooh, I'm missing a song
495: [02:45:20] <simon_w> And now I'm not
496: [02:45:47] <Peavers> simon_w, did you need to deal with Tracey Raouf-Morton at all with ESAA?
497: [02:45:55] <simon_w> Peavers, nope
498: [02:46:39] <spronk> laaawwl
499: [02:47:12] * Jayden90 quit (Ping timeout: 268 seconds)
500: [02:48:36] * atmos has joined #silverstripe
501: [02:52:27] <Pyromanik> SWEET ELEPHANTS
502: [02:52:30] <Pyromanik> SWEET ELEPHANTS
503: [02:52:35] <Peavers> I don't think so.
504: [02:52:37] <Pyromanik> I'M LIVING ON SUCH SWEET ELEPHANTS
505: [02:52:43] <Pyromanik> SWEET ELEPHANTS
506: [02:52:47] <Pyromanik> SWEET ELEPHANTS
507: [02:52:49] <Peavers> ban for flooding please.
508: [02:52:54] <Pyromanik> YOU'RE GIVING ME SUCH SWEET ELEPHANTS
509: [02:53:41] <simon_w> Aww, he stopped
510: [02:54:49] <Pyromanik> http://www.youtube.com/watch?v=17ozSeGw-fY
511: [02:55:18] <simon_w> http://www.youtube.com/watch?v=kfVsfOSbJY0
512: [02:55:27] <Pyromanik> Just remember: elephants. You'll thank me later, song suddenly 100x better.
513: [02:57:54] <Pyromanik> yes simon_w, yes indeed
514: [02:58:56] <UncleCheese> Longshot.. does anyone know how to refresh the CMS site tree programatically?
515: [02:59:35] * atmos quit (Ping timeout: 250 seconds)
516: [03:00:04] <spronk> this ain't bad doofdoof
517: [03:00:15] <spronk> also lolelephant
518: [03:00:26] * pex has joined #silverstripe
519: [03:16:07] * ChaBuku quit (Ping timeout: 264 seconds)
520: [03:18:39] <simon_w> Yay, rDNS entries updated now too
521: [03:19:34] <ss23> THE BIG BAD WOLF.
522: [03:19:42] <ss23> yay, zendesk isn't even loading now
523: [03:19:45] <ss23> This makes doing tickets fun
524: [03:19:58] <zippy__> holy crap
525: [03:20:13] <zippy__> I just watched a minute of that friday song for the first time ever
526: [03:20:19] <ss23> lol
527: [03:20:20] <zippy__> it really is terrible
528: [03:20:40] <zippy__> 56mil views thou..
529: [03:21:01] <Peavers> zippy__ http://excusememe.com/pics/images/1300861362_4gifwhitepeoplefriday.gif
530: [03:21:02] <Peavers> just for you
531: [03:21:14] <Colin[pi]> I will hand it to her, she doesn't give up easily
532: [03:21:26] <Peavers> shes prob made millions though.
533: [03:21:42] <ss23> Peavers: Doubt it
534: [03:21:47] <ss23> Wasn't her account or anything
535: [03:22:01] <Peavers> her youtube ads alone would be a truck load
536: [03:22:16] <Peavers> and I think a lot of her tracks sold on itunes?
537: [03:22:34] <ss23> Might've made a bit there, but I would be surprised if she broke a million, personally
538: [03:22:46] <Colin[pi]> jesus she was born in 1997... 1997... I was at uni :(
539: [03:23:17] <Peavers> her net worth is put at $1.2 Million USD
540: [03:23:32] <irogue> Colin[pi]: OLD
541: [03:23:49] <ss23> ^^^
542: [03:23:50] <ss23> OLLLDDDDD
543: [03:24:00] <irogue> ss23 prob hadn't even started kindy
544: [03:24:04] <irogue> i wouldve been in primary school
545: [03:24:15] <ss23> I was in primary school too!
546: [03:24:19] <ss23> I was 92
547: [03:24:20] <irogue> ss23: lies, you're 12
548: [03:24:21] * priithansen quit (Quit: priithansen)
549: [03:24:24] <Peavers> was ss23 even alive in 97?
550: [03:24:24] <ss23> :<
551: [03:24:26] <simon_w> Ah, year 1. I can remember absolutely nothing of it!
552: [03:24:29] <ss23> Peavers: ;____;
553: [03:24:49] <Colin[pi]> 35 and already over the hill!
554: [03:24:50] <ss23> coworker the other day was all "OMG like you were born pre-2000"
555: [03:25:49] <spronk> ooohhhh
556: [03:25:52] * irogue wouldve been in Year 6 when Rebecca Black was born
557: [03:25:54] <spronk> silverstripe's mylotto site causing issues
558: [03:25:58] <spronk> anyone else get that email?
559: [03:26:24] <Peavers> nope
560: [03:26:30] <Peavers> and I use mylotto weekly
561: [03:26:39] <spronk> I?d like to apologise if you?ve had trouble accessing MyLotto over the last few Saturday nights.
562: [03:26:40] <spronk> Our site is really growing in popularity and the increase in traffic at peak times, like after the Saturday Lotto draw, has led to patchy access. I know how frustrating this can be when you just want to check your tickets.
563: [03:26:47] <spronk> RUHROH
564: [03:27:46] <ss23> Hmm
565: [03:27:48] <ss23> Don't we run that site?
566: [03:28:05] <Peavers> ss23, have you fixed anchor links in the newsletter module yet?
567: [03:28:17] <ss23> Peavers: Have you submitted a pull request?
568: [03:28:30] <Peavers> Yes.
569: [03:28:39] <ss23> Linky?
570: [03:29:05] <Peavers> I've not actually.
571: [03:29:08] <ss23> lol
572: [03:29:24] <Guest36782> SSViewer::dontRewriteHashlinks(); - this does a warning. which messes with things. is there a 3.1 way to do this?
573: [03:29:37] <mobiusnz> has something changed in how we get the tinymce editor working in the frontend in ss3?
574: [03:29:38] <spronk> ss23: ss ltd built it
575: [03:29:44] <spronk> fix it
576: [03:29:47] <spronk> not good press for ss
577: [03:29:54] <ss23> spronk: I don't see a helpdesk ticket ^.^
578: [03:29:57] * ss23 looks around
579: [03:30:07] <ss23> I can't really slander Silverstipe in here, I guess :P
580: [03:30:11] <ss23> So I won't say anything
581: [03:30:13] <ss23> :D
582: [03:30:26] <spronk> lul
583: [03:30:28] <spronk> just blame...
584: [03:30:29] <spronk> Samm
585: [03:30:30] <spronk> -m
586: [03:30:33] <ss23> Xd
587: [03:30:36] <Peavers> I'm putting all this in my report about our overall service from ss.
588: [03:30:38] <ss23> smminnee -- destroyer of sites
589: [03:30:54] <ss23> Peavers: :D Nice
590: [03:31:02] <ss23> I'm already famous from that guys ?flush=1 talk
591: [03:31:05] <ss23> spronk was too
592: [03:31:09] <spronk> yeah
593: [03:31:13] <ss23> His quote of "I want to punch that guy in the face" got quoted
594: [03:31:13] <ss23> :D
595: [03:31:23] <spronk> hopefully in context
596: [03:31:29] <ss23> He gave no context
597: [03:31:31] <spronk> ugh
598: [03:31:32] <spronk> that cunt
599: [03:31:36] <Peavers> I've no idea what your talking about. hope that helps.
600: [03:31:38] <spronk> i want to punch that guy in the face.
601: [03:31:39] <ss23> XD
602: [03:32:03] <spronk> ==B D:
603: [03:36:34] * DesignerX has joined #silverstripe
604: [03:47:33] * Jayden90 has joined #silverstripe
605: [03:47:53] <Peavers> just got that lotto email
606: [03:47:57] <Peavers> marked it as spam.
607: [03:47:58] <ss23> I didn't! :<
608: [03:49:10] <zippy__> ah, if you look at the mylotto website html
609: [03:49:20] <zippy__> htmlcomment : Todo? https://mylotto.co.nz// swagner 25/03/2013
610: [03:49:42] <zippy__> wonder what else was forgot to be to done
611: [03:49:58] <zippy__> performance I guess
612: [03:50:14] <zippy__> <!--% require javascript(mysite/javascript/thirdparty/swfobject.js) %-->
613: [03:50:15] <zippy__> nommy
614: [03:50:22] * cloph has joined #silverstripe
615: [03:51:47] <simon_w> Only one in the office! Party time!
616: [03:51:50] * cloph_away quit (Ping timeout: 240 seconds)
617: [03:52:01] <ss23> haha zippy__
618: [03:52:14] <spronk> yeesh
619: [03:59:31] <Pyromanik> 15:32 < spronk> ==B D:
620: [03:59:38] <Pyromanik> the face of some guy about to get teabagged?
621: [03:59:45] <spronk> well yeah
622: [03:59:47] <spronk> or that
623: [03:59:50] <zippy__> hmm in the CMS Site tree - it's not 'easy' to make new pages / children of a certain page be ordered in a different order is it (like, created first)
624: [03:59:59] <spronk> noep
625: [04:00:06] <zippy__> would have to iterate through and update the sort on all the other children..
626: [04:01:13] <ss23> INVADERS MUST DIE.
627: [04:02:33] <simon_w> zippy__, define stageChildren()
628: [04:02:54] <zippy__> right, noted for Monday, thanks simon
629: [04:03:06] * Guest36782 quit (Quit: Page closed)
630: [04:03:06] <simon_w> Look at Hierarchy#stageChildren() for the default implementation
631: [04:03:32] <zippy__> ty
632: [04:03:39] <zippy__> it's now time to drink beer
633: [04:03:43] <zippy__> o/
634: [04:03:44] <zippy__> chow
635: [04:04:39] <UncleCheese> t-minus 56 minutes to friday fives
636: [04:05:04] <simon_w> Tempted to commit this and go home
637: [04:05:18] <simon_w> Man, /dev/random so much slower than urandom
638: [04:06:03] <ss23> Not often you need /dev/random though, right?
639: [04:06:16] <ss23> I mean, if you are finding yourself needing it, you're probably going to just aget a hardware prng anyway
640: [04:06:21] <ss23> or rng
641: [04:06:21] <ss23> w/e
642: [04:07:23] <spronk> who the fuck gets a hardware prng
643: [04:07:32] <ss23> lol
644: [04:07:33] <spronk> just use electron flux
645: [04:07:36] <spronk> YEAHH
646: [04:07:43] <simon_w> Everyone? It's kinda built in :p
647: [04:07:51] <ss23> you know what I mean!
648: [04:08:16] <simon_w> Well, every so often you do need a CSRNG
649: [04:08:28] * zippy__ quit (Ping timeout: 260 seconds)
650: [04:08:38] <ss23> If it's a real RNG, how is it not CSRNG?
651: [04:10:06] <simon_w> Define real
652: [04:10:19] <ss23> Not psuedo
653: [04:11:07] <simon_w> So, like http://www.xkcd.com/221/? :p
654: [04:11:18] <simon_w> (Yes, I know what you mean)
655: [04:11:23] <ss23> lol
656: [04:11:24] <ss23> :P
657: [04:15:59] <simon_w> The problem with calling it real is there's a number field called the reals and the numbers in it are real numbers
658: [04:16:32] <ss23> Yeah, but I couldn't think of another word in the context. I just meant not prng
659: [04:16:56] <simon_w> Non-algorithmic?
660: [04:17:36] <simon_w> Or just actually random
661: [04:20:47] * will has joined #silverstripe
662: [04:20:48] <simon_w> Committed! That means home time! :)
663: [04:21:04] <ss23> :D
664: [04:21:40] <will> in a controller function, i can use $this->Created and get the page's created date, but if i do $this->ID, id or Id i get nothing. how do i get the object id?
665: [04:22:10] <Bollig|DesignCty> what? that makes no sense will!
666: [04:22:14] <ss23> will: Hmm, $this->ID should work, I think
667: [04:22:56] <simon_w> will, $this->data()->ID;
668: [04:23:13] <Bollig|DesignCty> simon_w: is data() the new db()?
669: [04:23:17] <simon_w> No
670: [04:23:32] <simon_w> data() returns the underlying model from a ContentController
671: [04:23:48] <Bollig|DesignCty> coooool
672: [04:23:58] <Bollig|DesignCty> so how the hell does Created work?
673: [04:24:31] <simon_w> Somethings fallback nicely, some don't
674: [04:25:27] <simon_w> Stupid timesheet and VM. There goes the bus.
675: [04:25:32] <ss23> lol
676: [04:25:33] <will> thats returning blank
677: [04:25:38] <ss23> Oh no, you'll have to wait another 2 mins!
678: [04:25:44] <ss23> Maybe even 10 mins!!!!!!
679: [04:26:02] <simon_w> ss23, that means more people on the bus.
680: [04:26:03] <will> its fate. you are meant to solve the id riddle
681: [04:26:26] <simon_w> will, does the controller you're on actually have a page?
682: [04:27:37] <will> yep
683: [04:27:58] <will> but im in one of those functions that just returns a value, not an action
684: [04:28:42] <will> die($this->data()->Created); returns the date, title returns title id just stares blankly at me.
685: [04:28:57] <will> is it some sort of security secret?
686: [04:30:19] * simon_w quit (Quit: This computer has gone to sleep)
687: [04:31:27] <will> oh noes
688: [04:32:39] * bennettpr quit ()
689: [04:34:07] * Peavers quit (Ping timeout: 264 seconds)
690: [04:37:00] * coldblooded01 quit (Quit: coldblooded01)
691: [04:37:28] * DigNZ quit (Quit: DigNZ)
692: [04:40:07] * will quit (Ping timeout: 250 seconds)
693: [04:43:15] <Pyromanik> LA CERVEZA MAS FINA
694: [05:08:08] <Pyromanik> commit message: "oh yup"
695: [05:08:18] <Pyromanik> done for the week. Time for more beer :D
696: [05:08:19] * Pyromanik quit (Quit: leaving)
697: [05:08:41] * DigNZ has joined #silverstripe
698: [05:09:01] * DigNZ quit (Client Quit)
699: [05:12:24] * UncleCheese quit (Quit: UncleCheese)
700: [05:18:34] * simon_w has joined #silverstripe
701: [05:20:58] * robert__ has joined #silverstripe
702: [05:20:58] * robert__ quit (Changing host)
703: [05:20:58] * robert__ has joined #silverstripe
704: [05:23:55] * robert_ quit (Ping timeout: 264 seconds)
705: [05:30:43] * will has joined #silverstripe
706: [05:31:11] <guzzlefry> hm, tutorial 2 doesn't tell you what the third argument to FieldSet::addFieldToTab() is.
707: [05:31:15] <will> hi there. is GridFieldDetailForm available in 3.0 ? If so, is there an idiot guide to using it? (an example)
708: [05:32:14] <simon_w> will, yes and you stick it in a GridField
709: [05:32:38] <simon_w> Usually by using GridFieldConfig_RecordEditor
710: [05:32:48] <simon_w> Or the relational equivalent
711: [05:35:34] <will> ok thanks. as an argument?
712: [05:35:35] <will> GridFieldConfig_RelationEditor::create($detailFormFields)
713: [05:36:08] * mobiusnz quit (Quit: Leaving.)
714: [05:48:51] <guzzlefry> Is there some <% require ThemeJavascript() %> template function?
715: [05:50:19] <guzzlefry> okay, doesn't look like it.
716: [05:51:27] * Shrike_Finland has joined #silverstripe
717: [05:52:13] * pippy_ has joined #silverstripe
718: [05:52:53] * pippy quit (Ping timeout: 240 seconds)
719: [05:56:45] <simon_w> will, GridFieldDetailForm just uses getCMSFields()
720: [06:00:52] <will> errr
721: [06:02:15] <spronk> UGHHh
722: [06:02:18] <spronk> FUCKING LINUX
723: [06:02:19] <spronk> when it goes bad
724: [06:02:21] <spronk> it goes BAD
725: [06:02:24] <spronk> grub>
726: [06:02:28] <spronk> invalid arch independent ELF magic
727: [06:02:32] * spronk tears face off
728: [06:03:47] <guzzlefry> How's that happen? 0.o
729: [06:04:10] <spronk> dno
730: [06:04:16] <spronk> think one of my vdks is corrupt
731: [06:04:21] <guzzlefry> grub install && yada yada
732: [06:04:28] <spronk> mm
733: [06:04:32] <spronk> trying that now
734: [06:04:39] <spronk> didn't have much success with update-grub
735: [06:04:44] <guzzlefry> vdks? Are those the thingies that handle different file system types?
736: [06:05:45] <spronk> vm disks
737: [06:06:03] * mobiusnz has joined #silverstripe
738: [06:06:09] <guzzlefry> oh yeah... :/
739: [06:06:32] <simon_w> spronk, I had a similar problem when I switched the connection to IDE and grub didn't know how to talk IDE
740: [06:06:38] * DigNZ has joined #silverstripe
741: [06:06:44] * DigNZ quit (Remote host closed the connection)
742: [06:06:58] * DigNZ has joined #silverstripe
743: [06:07:20] <spronk> le sigh
744: [06:07:22] <spronk> bullshit wasting my time
745: [06:08:03] * DigNZ quit (Client Quit)
746: [06:09:09] <will> so i'm not getting it at all.
747: [06:09:24] <simon_w> will, what are you trying to do?
748: [06:09:45] <will> i have debate pages, which has many_many panelists - who can each vote yay or nay on the debate
749: [06:09:51] <will> which is awkward
750: [06:10:03] <will> cos i need a yes or no as well as the many many
751: [06:10:36] <will> so i have a static $many_many_extraFields = array( 'Panelists' => array( 'Motion' => 'Boolean' ) );
752: [06:10:58] <will> and now i want to be able to choose the panelist and cast their vote when editing a debate
753: [06:12:53] * gumble has joined #silverstripe
754: [06:14:01] <simon_w> Well, support for editing many_many_extraFields in GridFieldDetailForm is added in 3.1
755: [06:14:34] <will> noooo
756: [06:15:11] * Liquide quit ()
757: [06:15:45] <will> ok. i nearly maanged to upgrade to 3.1 this morning. I just had overcoming the deactivaterewritehashlinks issue to beat. which surely is possible.
758: [06:16:59] <will> if i managed to do that, how might i do extrafields?
759: [06:17:41] <simon_w> Well, you use the SSViewer.rewrite_hashlinks setting. You shouldn't be using dontRewriteHashlinks() to start with, since it's an instance method
760: [06:17:52] * willr_ has joined #silverstripe
761: [06:17:52] * willr_ quit (Changing host)
762: [06:17:52] * willr_ has joined #silverstripe
763: [06:18:21] <simon_w> In getCMSFields() for Panelist, new DropdownField('ManyMany[Motion]', 'Motion', array('Nay', 'Yay'))
764: [06:20:13] <will> ok, thank you. ill have a go
765: [06:27:06] <will> hmm, still not doing it right. Call to undefined method GridFieldDetailForm::setContainerFieldList
766: [06:27:15] <will> $yay_nay = new DropdownField('ManyMany[Motion]', 'Motion', array('Nay', 'Yay')) ;
767: [06:27:24] <will> $panelistsField = new GridFieldDetailForm( 'Panelists', 'Panelists', $this->Panelists(), GridFieldConfig_RecordEditor::create($yay_nay), GridFieldConfig_RelationEditor::create() ); $fields->addFieldToTab('Root.Panelists', $panelistsField);
768: [06:34:08] * gumble quit (Ping timeout: 268 seconds)
769: [06:43:03] * howardgrigg quit (Read error: Connection reset by peer)
770: [06:53:23] * willr_ quit (Quit: willr_)
771: [06:54:38] * guci0 has joined #silverstripe
772: [06:54:50] <guci0> Hi all!
773: [06:56:44] <guzzlefry> evening
774: [06:58:23] <guci0> http://greyscalegorilla.com/intro-to-cinema-4d – promises to be interesting
775: [06:58:58] <guzzlefry> I'm reading through tutorial 2 still. Have a question regarding the $has_one = array ("Photo" => "Image"); and then the form field $fields->addFieldToTab("Root.Images", new UploadField('Photo')); in getCMSFields().
776: [06:59:14] <guzzlefry> This is probably a given, but is SilverStripe smart enough to filter out non-image uploads?
777: [06:59:48] <guci0> extend Image
778: [07:01:05] <guzzlefry> oh no, I mean if I try to upload something like an .exe file in that upload field, will SilverStripe stop it?
779: [07:02:39] <timespoon> generally you should always transcode any uploaded data
780: [07:02:54] <timespoon> and absolutely ignore file names
781: [07:03:13] <timespoon> if someone says they have a png, transcode it to png, if it was a jpg, that's their problem
782: [07:03:16] <timespoon> don't trust user data
783: [07:05:45] * Jayden90 quit (Quit: Jayden90)
784: [07:06:36] <guzzlefry> ah yeah, that sounds like it requires messing with CMS code though.
785: [07:06:41] <guzzlefry> oh, maybe I should check the image class. :P
786: [07:07:59] * zfmf1 has joined #silverstripe
787: [07:09:12] <guci0> timespoon: right!
788: [07:10:47] * ARNHOE has joined #silverstripe
789: [07:18:00] * gumble has joined #silverstripe
790: [07:22:51] <guci0> wow: /js/,shivDocument:q,createElement:n,createDocumentFragment:o}
791: [07:23:12] <guci0> Somone try hack me :)
792: [07:23:53] * chillu has joined #silverstripe
793: [07:30:41] * willr_ has joined #silverstripe
794: [07:30:41] * willr_ quit (Changing host)
795: [07:30:41] * willr_ has joined #silverstripe
796: [07:31:26] * Peavers has joined #silverstripe
797: [07:51:46] * ocm has joined #silverstripe
798: [07:51:59] <ocm> howdty
799: [07:52:05] * will quit (Ping timeout: 250 seconds)
800: [07:53:05] <ocm> willr_ are you here for a chance?
801: [07:53:14] <willr_> yo
802: [07:53:47] <ocm> hai!
803: [07:54:00] <ocm> its about the validation of the datefield, should I try update vaildate.js from the thirdparty dir?
804: [07:54:45] <ocm> which I didnt try so far
805: [07:55:23] <willr_> yep. The module just uses that for the date field validation so that may need to be updated
806: [07:56:11] <ocm> I see, is there any reason why version 1.7 is integrated in 3.0.5?
807: [07:59:57] <willr_> how do you mean integrated? I'd just grabbed the latest version at the time
808: [08:01:44] * pex quit (Ping timeout: 256 seconds)
809: [08:03:43] * priithansen has joined #silverstripe
810: [08:04:21] * Peavers quit (Ping timeout: 248 seconds)
811: [08:05:29] <ocm> ah, I see :)
812: [08:12:16] * violetina has joined #silverstripe
813: [08:14:54] * lewellyn quit (Ping timeout: 240 seconds)
814: [08:28:14] * lobarvaz has joined #silverstripe
815: [08:41:40] * lewellyn has joined #silverstripe
816: [08:53:06] * DigNZ1 quit (Quit: DigNZ1)
817: [08:53:38] * DigNZ has joined #silverstripe
818: [08:54:29] * DigNZ quit (Client Quit)
819: [09:00:33] * guci0 quit (Ping timeout: 250 seconds)
820: [09:10:17] * willr_ quit (Quit: willr_)
821: [09:10:48] * willr_ has joined #silverstripe
822: [09:10:49] * willr_ quit (Changing host)
823: [09:10:49] * willr_ has joined #silverstripe
824: [09:11:59] * micmania1 has joined #silverstripe
825: [09:18:21] * priithansen quit (Quit: priithansen)
826: [09:27:17] * guci0 has joined #silverstripe
827: [09:29:28] <wmk> hi all, is there a way to tell Form class to mark all required fields in fieldlist as requierd?
828: [09:38:30] * r3v3rb has joined #silverstripe
829: [09:38:40] <r3v3rb> hello
830: [09:38:56] <r3v3rb> google sitemap module on github? anyone have it working?
831: [09:39:44] <r3v3rb> I have installed it, setup the gogglesitemaps.yml but on viewing sitemap.xml get no pages listed on the site in question :(
832: [09:55:25] * NobrainerWeb has joined #silverstripe
833: [09:55:34] <NobrainerWeb> Hey guys
834: [09:56:20] <NobrainerWeb> I just tried installing and setting up the sortable files module for SS3.1 - i can sort and stuff - but i can not remove or add files
835: [09:56:54] <NobrainerWeb> i get an error "Action 'remove' isn't available on class SortableUploadField_ItemHandler."
836: [09:57:50] <NobrainerWeb> tried to add remove to allowed actions of SortableUploadField_ItemHandler but no luck :-(
837: [09:58:01] <NobrainerWeb> I'm on SS3.1 beta
838: [09:59:47] <NobrainerWeb> The author of the module writes about it here: https://github.com/bummzack/sortablefile/issues/11
839: [09:59:56] <NobrainerWeb> Any one that can help?
840: [10:02:32] <ocm> r3v3rb,. gogglesitemaps? need som goggleglasses for that? :p
841: [10:02:44] <r3v3rb> ocm: lol
842: [10:02:46] <r3v3rb> my bad
843: [10:03:13] <ocm> but havent used it so far
844: [10:04:32] * lobarvaz_ has joined #silverstripe
845: [10:05:00] * lobarvaz quit (Ping timeout: 245 seconds)
846: [10:05:24] <ocm> it doesnt do anything at all or?
847: [10:12:50] <ocm> hm, how can I get the url of an image in a controller after cropping?
848: [10:13:02] <ocm> $Specialist->Photo()->CroppedImage(400,370)->URL?
849: [10:13:29] <ocm> hm, seems to work
850: [10:13:33] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
851: [10:13:34] * ocm should think before speach
852: [10:14:49] <willr_> r3v3rb you're getting an index file which links to child pages?
853: [10:15:18] <r3v3rb> willr_: no, I get an xml response from the site, but now pages listed in it
854: [10:15:37] <willr_> What is in the XML
855: [10:15:57] <r3v3rb> and the sitemap loc was something like, http://mysite.com/sitemap.xml/sitetree/1/sitemap or some such
856: [10:16:18] <r3v3rb> I have removed it from the site for now, but can easily reinstate if you wish to see it?
857: [10:16:48] <willr_> That is what you should see
858: [10:16:56] <r3v3rb> ok, that's good then
859: [10:17:07] <r3v3rb> but why no other pages listed from the sitetree?
860: [10:17:11] <willr_> The site map is broken down into sub site maps. If you go to that <loc> you'll see the pages
861: [10:17:26] <r3v3rb> oh, i see
862: [10:17:35] <willr_> It's for performance, we break it down into separate files based on classname.
863: [10:18:06] <willr_> http://www.sitemaps.org/protocol.html#index
864: [10:18:09] <r3v3rb> shouldn't the top level show all those pages though, /, /about-us, /xyx etc etc
865: [10:18:32] <r3v3rb> or am I completely misguided :)
866: [10:18:41] <willr_> No because an index file cannot also include your pages
867: [10:19:13] <r3v3rb> right, so its / -> top level pages -> sub pages etc etc
868: [10:19:24] <willr_> Not the first to ask about it. Probably need to explain it somewhere or a big link to the spec
869: [10:19:26] <willr_> No.
870: [10:20:07] <willr_> It's an index which lists all the sub site maps, you might have 1 for pages, 1 for forum posts, 1 for member profiles… Based on class name
871: [10:20:13] <r3v3rb> lets just say I was expecting a 'old-style' sitemap with the pages in the site listed in a tree style
872: [10:20:36] <willr_> i.e sitemap.xml/SiteTree/1/sitemap is your first 1000 pages in site tree as you would be used too
873: [10:20:45] <r3v3rb> things have obviously changed in sitemapping over the last couple of decades ;)
874: [10:20:54] <willr_> sitemap.xml/SiteTree/2/sitemap will be your second 1000 pages.
875: [10:21:15] <r3v3rb> and how do I view that sitemap? view that url?
876: [10:21:20] <willr_> yep
877: [10:21:23] <r3v3rb> got it
878: [10:21:26] <willr_> it's a link.
879: [10:21:37] <r3v3rb> that could do with being in the doc's I reckon :)
880: [10:21:56] <r3v3rb> want an idiot to write it up for you?
881: [10:22:04] <r3v3rb> from an idiot's perspective?
882: [10:23:16] <willr_> Ha, that would be awesome
883: [10:23:49] <willr_> Would probably be better than my, RTFM http://www.sitemaps.org/protocol.html#index
884: [10:24:16] <r3v3rb> lol, I'll try and put something together later
885: [10:25:23] <r3v3rb> also, if anyone is interested I played with Laravel last night - lets just say I'm sticking with SS framework for my next little project ;)
886: [10:26:11] <r3v3rb> I went throught the setup, routing, db and form stuff and can honestly say SS beats it hands down
887: [10:26:26] <r3v3rb> for 'app' development
888: [10:30:23] <willr_> interesting to hear. Good to hear, but Laravel does get some good props.
889: [10:34:48] <r3v3rb> willr_: not saying it isn't great, just SS is greater :) for me at least
890: [10:35:45] <willr_> Awesome :)
891: [10:43:03] * NobrainerWeb quit (Quit: NobrainerWeb)
892: [10:48:20] * NobrainerWeb has joined #silverstripe
893: [11:01:42] * Peavers has joined #silverstripe
894: [11:01:52] * r3v3rb quit (Quit: r3v3rb)
895: [11:03:10] * zfmf1 quit (Ping timeout: 246 seconds)
896: [11:04:02] * anon_ has joined #silverstripe
897: [11:06:42] * Peavers quit (Ping timeout: 268 seconds)
898: [11:08:23] * anon_ quit (Ping timeout: 250 seconds)
899: [11:09:04] * gelignite has joined #silverstripe
900: [11:14:20] * Motoservo has joined #silverstripe
901: [11:23:31] * r3v3rb has joined #silverstripe
902: [11:29:28] * mdowton has joined #silverstripe
903: [11:48:41] * gumble quit (Quit: Verlassend)
904: [11:49:25] * NobrainerWeb quit (Quit: NobrainerWeb)
905: [11:53:01] * Motoservo_ has joined #silverstripe
906: [11:54:01] * NobrainerWeb has joined #silverstripe
907: [11:55:07] * Motoservo quit (Ping timeout: 264 seconds)
908: [11:55:07] * Motoservo_ is now known as Motoservo
909: [11:55:59] * NobrainerWeb quit (Client Quit)
910: [12:02:06] * UndefinedOffset has joined #silverstripe
911: [12:04:55] <micmania1> anybody know why url rewrites would work only sometimes?
912: [12:05:26] <micmania1> If I go to /urlsegment it works, but when links are taking me to /index.php/urlsegment
913: [12:11:03] <DesignerX> micmania1: I dont know why, buy found removing index.php fixes it
914: [12:11:08] <DesignerX> but *
915: [12:13:37] <micmania1> DesignerX, that worked. Very strange.
916: [12:13:48] * mdowton quit (Quit: The computer fell asleep)
917: [12:14:04] <micmania1> cheers
918: [12:14:41] <DesignerX> yeh .. I had to do this on some web hosts .. not sure why ..
919: [12:16:02] * robert__ is now known as robert_
920: [12:17:11] * howardgrigg has joined #silverstripe
921: [12:18:02] * willr_ quit (Quit: willr_)
922: [12:30:29] * Colin[pi] quit (Ping timeout: 248 seconds)
923: [12:45:13] * ocm quit (Read error: Connection reset by peer)
924: [12:52:05] * drazafsky has joined #silverstripe
925: [12:55:22] <UndefinedOffset> chillu is this https://github.com/silverstripe/silverstripe-cms/pull/772 going to get merged into 3.0?
926: [12:55:36] <UndefinedOffset> working with translatable ;)
927: [12:56:04] <chillu> Hmm, no since its an API change
928: [12:56:17] <UndefinedOffset> bummer
929: [12:56:43] <UndefinedOffset> having home-es-es is kinda strange lol
930: [13:11:17] * inadream has joined #silverstripe
931: [13:14:20] * pex has joined #silverstripe
932: [13:26:54] * ocm has joined #silverstripe
933: [13:26:56] <ocm> howdy!
934: [13:27:03] <ocm> my computer is melting.. what should I do?
935: [13:27:06] <ocm> water it? :D
936: [13:31:22] * mento has joined #silverstripe
937: [13:31:26] * jcwacky quit (Quit: jcwacky)
938: [13:33:09] * robert_ quit (Read error: Connection reset by peer)
939: [13:33:37] * robert_ has joined #silverstripe
940: [13:33:37] * robert_ quit (Changing host)
941: [13:33:37] * robert_ has joined #silverstripe
942: [13:34:35] * robert_ quit (Read error: Connection reset by peer)
943: [13:34:57] * robert_ has joined #silverstripe
944: [13:37:01] * inadream has left #silverstripe
945: [13:38:29] * Shrike_Finland quit (Quit: Leaving.)
946: [13:52:57] * mento quit (Quit: Page closed)
947: [14:01:21] * Motoservo quit (Quit: Motoservo)
948: [14:14:40] * Motoservo has joined #silverstripe
949: [14:46:05] * r3v3rb quit (Quit: r3v3rb)
950: [14:54:56] * catcher has joined #silverstripe
951: [14:56:55] * pex quit (Ping timeout: 264 seconds)
952: [14:56:56] * Nivery_ has joined #silverstripe
953: [15:10:36] <jon-shape> Anyone familiar with The GridFieldManyRelationHandler and ManyManyList?
954: [15:18:25] * ARNHOE quit (Remote host closed the connection)
955: [15:30:54] <micmania1> jon-shape, what's your question?
956: [15:31:21] <jon-shape> I keep getting Uncaught Exception: ManyManyList::add() can't be called until a foreign ID is set
957: [15:31:52] <jon-shape> However when I alread called forForeignID on the ManyManyList
958: [15:32:01] <jon-shape> *however I have already
959: [15:33:33] <jon-shape> If you know of any good examples of it being used I would probably be able to solve my own problem
960: [15:35:58] <AlphaCactus> jon-shape: do you have a belongs_many_many set on the other end of the relationship
961: [15:36:58] <jon-shape> I do, I have a ListingPage with a many_many to SomeDataObject and SomeDataObject belong_many_many to ListingPage
962: [15:37:54] <micmania1> jon-shape - belongs_many_many with an s?
963: [15:38:20] <jon-shape> without
964: [15:40:11] <AlphaCactus> needs to be with
965: [15:43:14] <jon-shape> Same error when I come to save the relation status in the admin area
966: [15:45:39] <AlphaCactus> so you changed it to belongs_many_many and dev/build and still error?
967: [15:45:45] <jon-shape> Could it be problem with the args when I am constructing the ManyManyList?
968: [15:48:32] <AlphaCactus> that wouldn't cause an error in model admin or pages area tho I don't think.
969: [15:52:11] <jon-shape> It's bizare I can see the join table of ListingPage_SomeDataObject in the db and when I manually add to it, it shows up fine in the admin area, I just can get the grid field to save anything
970: [15:52:17] * pex has joined #silverstripe
971: [15:52:33] <jon-shape> *can't get the
972: [15:55:23] * nhorstmeier has joined #silverstripe
973: [16:10:04] * nhorstmeier quit (Remote host closed the connection)
974: [16:11:17] * C10ne quit (Ping timeout: 250 seconds)
975: [16:11:36] * SphereSilverNL has joined #silverstripe
976: [16:12:08] * toddmorey has joined #silverstripe
977: [16:20:02] * lobarvaz_ quit (Read error: Connection reset by peer)
978: [16:20:20] <jon-shape> Solved ! for reference this helped http://www.codem.com.au/web-development-blog/2012/web-development/little-helper-gridfield-dataextensions.html
979: [16:22:58] <AlphaCactus> oh, I missed that you were manually creating a ManyManyList instance to pass to the gridfield
980: [16:24:31] <jon-shape> I'm open to switching my way of doing it if you can think of a better way
981: [16:27:53] <jon-shape> Oh snap I don't even have to construct the manymanylist manually, SS does it for me
982: [16:29:14] <jon-shape> I'm going to call it a day, thanks for your help gents.
983: [16:29:24] <SphereSilverNL> Is there a reason why $object->Component()->add($newComponent); doesn't work, but $newComponent->Object()->add($object); does?
984: [16:29:56] <SphereSilverNL> where the $object many_many Component, and Component belongs_many_many $Objects
985: [16:31:57] * micmania1 quit (Quit: Leaving)
986: [16:35:48] * kerosene_ has joined #silverstripe
987: [16:36:00] * kerosene is now known as Guest76016
988: [16:36:00] * kerosene_ is now known as kerosene
989: [16:36:15] * Guest76016 quit (Ping timeout: 256 seconds)
990: [16:37:19] * Shrike_Finland has joined #silverstripe
991: [16:39:42] * ARMWorksiMac1 quit (Quit: ARMWorksiMac1)
992: [16:41:57] <AlphaCactus> do you mean $newComponent->Objects()->add($object);
993: [16:42:30] * pex quit (Ping timeout: 256 seconds)
994: [16:42:40] <AlphaCactus> WHat I want to know is, why "Action 'edit' isn't available on class GridFieldSubsiteDetailForm_ItemRequest." keeps showing up but not always...
995: [16:48:10] <SphereSilverNL> AlphaCactus: yeah, should be plural indeed. But still, one way around works, other way around doesn't :/
996: [16:49:01] <SphereSilverNL> Yay for airco! outside temp-sensor just hit 45C
997: [16:50:06] * swordsmanz has joined #silverstripe
998: [16:52:45] <AlphaCactus> is it getting confused by Component being a special term or anything like that
999: [16:57:23] <SphereSilverNL> No, Component is an example-word, the actual classname and connection is ProductComponentSpecifications => ProductComponentSpecification
1000: [16:57:31] <AlphaCactus> oh
1001: [16:58:24] <AlphaCactus> 45c ... its raining today here. first time in like a month
1002: [16:58:38] <SphereSilverNL> The classes are like ProductComponentSpecification, ProductSpecificationIndicator, ProductComponent, ProductSpecification, etc. ;)
1003: [16:58:54] <SphereSilverNL> I did not really feel like typing that out completely everytime ;)
1004: [16:59:28] <SphereSilverNL> But I noticed, the belongs_many_many works when adding something, the many_many side of the relation is iffy and often failing to add the link to the database
1005: [17:00:02] * Colin[pi] has joined #silverstripe
1006: [17:05:29] <toddmorey> Hello! I've done some reading on this online, but I'm stuck. I'm trying to control where someone ends up after resetting their password via the password reset link in 2.4.
1007: [17:06:04] <toddmorey> I've found the relevant lines in ChangePasswordForm and I feel comfortable extending it
1008: [17:06:31] <SphereSilverNL> got a code example?
1009: [17:07:14] <toddmorey> in ChangePasswordForm there's this bit...
1010: [17:07:25] <toddmorey> $redirectURL = HTTP::setGetVar('BackURL', Director::absoluteBaseURL(), Security::Link('login'));
1011: [17:07:26] <toddmorey> Director::redirect($redirectURL);
1012: [17:07:42] <toddmorey> That's what puts you on the "You are logged in as..." page
1013: [17:08:25] <toddmorey> I've tried all the ways I can think of to get a backURL to carry through the password reset email process, but I can't do that
1014: [17:09:02] <SphereSilverNL> Isn't the backURL in the link provided via e-mail? Thus, you require to set the e-mail reset link to change?
1015: [17:09:06] <SphereSilverNL> (just a thought)
1016: [17:10:13] <toddmorey> Nope, just a token to change the password. One of my first thoughts was to put the backURL in the change password template. However, it doesn't stick when the ChangePassswordForm is reloaded to show the reset fields.
1017: [17:13:02] <SphereSilverNL> You're trying to send a person to location Y, where the default redirects to location X, when a person wants to change their password. Am I correct?
1018: [17:13:14] <SphereSilverNL> Reset/forgot, not change
1019: [17:14:14] <toddmorey> Right. Well, when they forgot their password and had a reset password email sent to themselves.
1020: [17:15:09] <toddmorey> The ChangePasswordForm (as I understand) handles both a password change (requiring you to provide the old password) and a passwrod reset (requiring a token provided in email via Silverstripe)
1021: [17:15:24] <SphereSilverNL> jep, that is correct.
1022: [17:15:34] <toddmorey> The password reset is most common for us (like a lot of sites with users)!
1023: [17:15:36] <SphereSilverNL> the token semi-logs the person in,
1024: [17:16:17] <SphereSilverNL> than, the person can only change it's password, do nothing of other user-privileges
1025: [17:16:34] <toddmorey> Right. And as it returns to the form to ask them to provide a new pass + confirm new pass, the back URL is wiped out.
1026: [17:17:01] <SphereSilverNL> Ehm, you mean, after entering the new password, the user should be redirected elsewhere?
1027: [17:17:09] <toddmorey> So once they do change their password, they are redirected back with the "You are logged in as…" message. Not the most helpful destination of course. :)
1028: [17:17:44] <SphereSilverNL> Ok, I think I understand what you want. Not experienced with it, but I guess you should extend the pwd-change-form
1029: [17:18:01] <SphereSilverNL> have that use a different (your) function to handle the password change
1030: [17:18:04] <toddmorey> I've tried Security::set_default_login_dest(); in my _config file, but that's ignored here, too
1031: [17:18:16] <SphereSilverNL> and have your function redirect to the preferred location
1032: [17:19:01] <toddmorey> Yeah, I think I need to overwrite line 115 of ChangePasswordForm.php (in the doChangePassword function)
1033: [17:19:40] <SphereSilverNL> Yep, you have to overwrite the actual action, not just the form itself ;)
1034: [17:19:53] <toddmorey> yeah, exactly.
1035: [17:20:28] <toddmorey> so… tempted… to… hack… core… But I'm going to do it the right way!
1036: [17:20:42] <toddmorey> Haven't explored the difference with SS3 on this process, may be worth a look
1037: [17:20:51] <SphereSilverNL> Don't hack, override via extensions ;) so you can use the parent ;)
1038: [17:28:26] * AlphaCactus quit (Remote host closed the connection)
1039: [17:29:11] <toddmorey> However, extending to overwrite the action with my own URL works! Thanks so much for helping me think this out.
1040: [17:29:22] <toddmorey> You rock, SphereSilverNL
1041: [17:30:08] <SphereSilverNL> It's often just a matter of having someone think along and think just a little step ahead. I'm happy to have helped by being a rubber ducky ;)
1042: [17:30:20] <SphereSilverNL> (You know what Rubber Duck Debugging is?)
1043: [17:31:53] <toddmorey> Yes! And that's so appropriate because all of this is for our Hong Kong Summit site. And you know what's currently in the Hong Kong bay? http://i2.cdn.turner.com/cnn/dam/assets/130502152627-rubber-duck-in-hong-kong-1-horizontal-gallery.jpg
1044: [17:32:55] <toddmorey> can't wait to do pair programming with that guy. :)
1045: [17:33:57] * AlphaCactus has joined #silverstripe
1046: [17:37:40] * Nivery_ quit (Quit: Nivery_)
1047: [17:52:14] <SphereSilverNL> That's one rubber ducky! :D
1048: [18:03:29] <lewellyn> that reminds me of http://blogs.artinfo.com/artintheair/files/2013/06/rubber-duck-tiananmen-square.jpg
1049: [18:06:12] * timespoon is now known as time`spoon
1050: [18:06:19] * time`spoon is now known as timespoon
1051: [18:11:48] <AlphaCactus> um lol, the urlsegment puts ellipses in the href for long url segments.
1052: [18:12:13] <SphereSilverNL> limit to the charactercount?
1053: [18:12:47] <SphereSilverNL> or actually
1054: [18:12:53] <SphereSilverNL> limit to charactercount - 3
1055: [18:13:02] <SphereSilverNL> then, add _$ID to it
1056: [18:13:26] <SphereSilverNL> now, you URLSegment can be anything, as long as it is followed by an ID. Explode/List/Whatever you like
1057: [18:13:36] <AlphaCactus> in the Pages section of the CMS I mean
1058: [18:16:19] <FrozenFire> ellipses are perfectly valid URL characters
1059: [18:16:38] <FrozenFire> Unless you mean that it's creating them when it should not
1060: [18:17:40] <AlphaCactus> right. in the link it provides in the URLsegment field, not only does the link show it with ellipses, which makes sense to save space, but the herf itself of that link also has them so clicking on it goes to an invalid page
1061: [18:34:13] * Nivery_ has joined #silverstripe
1062: [18:37:33] * micmania1 has joined #silverstripe
1063: [18:40:29] <micmania1> Is SphereSilverNL around?
1064: [18:44:36] <SphereSilverNL> partially
1065: [18:45:19] <SphereSilverNL> I'll be right back, let me get my laptop, it's too hot in the office
1066: [18:46:36] * SphereSilver has joined #silverstripe
1067: [18:47:01] <SphereSilver> so.... on laptop now :)
1068: [18:47:11] <SphereSilver> Got about 20 minutes then I have to go :)
1069: [18:50:26] <micmania1> I started building a blog in the SiteTree :)
1070: [18:50:40] <micmania1> Its almost done too!
1071: [18:50:57] <micmania1> Just need to clean a few things up in the cms then i'll put it on github
1072: [18:51:10] <SphereSilver> Nice :D
1073: [18:51:35] <SphereSilver> The only reason I choose for the ModelAdmin was the cluttering. But good to see other projects doing it differently.
1074: [18:51:45] <SphereSilver> You're not a friend anymore :P
1075: [18:51:49] <micmania1> haha
1076: [18:52:20] <micmania1> The way I've done it is its technically in the SiteTree, but it excludes them in the CMS and instead shows blog posts in a GridField
1077: [18:52:24] <SphereSilver> Hi mister client. It would be nice if you'd stop adding tickets after 5PM on friday! :P
1078: [18:52:34] <micmania1> but for smaller blogs, you can configure it to show in the SiteTree instead of a GridField
1079: [18:52:58] <micmania1> All through yaml config
1080: [18:53:01] <SphereSilver> ahhhh, I've thought about that method, but I found it sometimes caused issues at other multi-level trees
1081: [18:53:08] <SphereSilver> make sure you fix that ;)
1082: [18:53:30] <micmania1> yeah, I spent a lot of time with it. It still respects built in function calls
1083: [18:53:39] <SphereSilver> My first try on something like that, went dead when a customer decided the holder should be a child of a child of a page
1084: [18:53:54] <micmania1> I've used WordPress' Twenty Twelve theme as an example too :p
1085: [18:53:59] <SphereSilver> that went completely wrong because I didn't think the client could think of that ;)
1086: [18:54:17] <SphereSilver> so, if it works to limit at the correct parent/child point, nice one!
1087: [18:54:42] <SphereSilver> and don't worry, I'm the last person to take offence :)
1088: [18:54:49] <micmania1> I added special GridField components so that you can add tags/categories quickly too (without refreshing)
1089: [18:55:04] <SphereSilver> the many-many relation?
1090: [18:55:20] <micmania1> yeah
1091: [18:55:24] <SphereSilver> because that's still sucky in all ways, due to the "need-to-save-to-add" feature
1092: [18:55:37] <SphereSilver> I could fix it, but I took it for granted ;)
1093: [18:55:55] <SphereSilver> gtg
1094: [18:56:32] <micmania1> ok, cya
1095: [19:02:08] * SphereSilver quit (Ping timeout: 260 seconds)
1096: [19:19:49] * AlphaCactus_ has joined #silverstripe
1097: [19:20:15] * Nivery_ quit (*.net *.split)
1098: [19:20:15] * AlphaCactus quit (*.net *.split)
1099: [19:20:15] * howardgrigg quit (*.net *.split)
1100: [19:20:53] * AlphaCactus_ is now known as AlphaCactus
1101: [19:21:02] * AlphaCactus quit (Read error: Connection reset by peer)
1102: [19:21:30] * AlphaCactus has joined #silverstripe
1103: [19:31:23] * RojoD quit (Ping timeout: 264 seconds)
1104: [19:31:37] * zfmf1 has joined #silverstripe
1105: [19:32:18] * ChaBuku has joined #silverstripe
1106: [19:35:44] <Shrike_Finland> Were the small image thumbnail function StripThumbnail besides CMSThumbnail on gridfield?
1107: [19:36:53] * swordsmanz quit (Quit: swordsmanz)
1108: [19:36:55] * Nivery_ has joined #silverstripe
1109: [19:37:04] * zfmf1 quit (Read error: No route to host)
1110: [19:37:53] * pex has joined #silverstripe
1111: [19:39:14] * swordsmanz has joined #silverstripe
1112: [19:40:43] * howardgrigg has joined #silverstripe
1113: [19:42:39] <guzzlefry> What's this flushtoken I see in the query string when I flush a page?
1114: [19:45:28] <UndefinedOffset> guzzelfry its a fix for a security issue https://github.com/silverstripe/silverstripe-framework/issues/1692
1115: [19:46:45] <UndefinedOffset> well rather a bug ;)
1116: [19:46:54] <guzzlefry> ah okay, guessing that's some recent change then.
1117: [19:47:05] <guzzlefry> thank you
1118: [20:43:31] <simon_w> Woo, actually came up with a module idea that's potentially useful for once
1119: [20:49:52] <Zauberfisch> chef vs puppet
1120: [20:49:56] <Zauberfisch> guys, hit me
1121: [20:51:34] * simon_w hits Zauberfisch
1122: [20:51:40] <Zauberfisch> -.-
1123: [20:53:11] <simon_w> Woo, it's loading the data. Now, to make it save
1124: [20:55:38] * DigNZ has joined #silverstripe
1125: [20:55:39] * DigNZ quit (Remote host closed the connection)
1126: [20:55:53] * DigNZ has joined #silverstripe
1127: [20:57:07] * DigNZ quit (Client Quit)
1128: [21:07:42] <simon_w> Gah, stupid CMS javascript
1129: [21:07:50] * toddmorey1 has joined #silverstripe
1130: [21:08:53] * toddmorey quit (Ping timeout: 248 seconds)
1131: [21:16:46] * ChaBuku quit (Quit: Leaving)
1132: [21:17:43] * UndefinedOffset quit (Quit: Leaving.)
1133: [21:22:40] * pex quit (Ping timeout: 264 seconds)
1134: [21:33:42] <simon_w> Woo, CMSMain bit done. Now, ModelAdmin
1135: [21:34:43] * Nivery quit (Ping timeout: 260 seconds)
1136: [21:35:00] * Nivery_ has left #silverstripe
1137: [21:42:50] * gelignite quit (Quit: http://bit.ly/nkczDT)
1138: [21:46:43] * DigNZ has joined #silverstripe
1139: [21:46:44] * DigNZ quit (Remote host closed the connection)
1140: [21:46:58] * DigNZ has joined #silverstripe
1141: [21:51:11] <micmania1> simon_w, what are you working on? or is it a secret...
1142: [21:51:45] <simon_w> Editing a has_one directly in the CMS
1143: [21:52:09] <micmania1> That would be useful.
1144: [21:52:25] <simon_w> Just gotta test 3.1 then add the metadata and release
1145: [21:52:30] <AlphaCactus> create too?
1146: [21:52:36] <simon_w> Works in both CMSMain and GridFieldDetailForm
1147: [21:52:42] <micmania1> I have a Gridfield component which does it :) (creates one anyway)
1148: [21:52:47] <simon_w> Yes, it'll create the object if ti doesn't exist
1149: [21:53:34] <simon_w> http://swng.it/1hj7Mx.png
1150: [21:53:36] <micmania1> http://awesomescreenshot.com/0f01khq5a2
1151: [21:53:45] <simon_w> "Show Title" is one a has_one
1152: [21:55:11] <micmania1> ss could do with a lot of little shortcuts like this.
1153: [21:55:14] <simon_w> And this is a newly saved object. The Show got created along with the Episode
1154: [21:58:05] <simon_w> Sadly, you can't use HasOne.FieldName though
1155: [21:58:08] <simon_w> Stupid CMS JS
1156: [21:58:55] <simon_w> Sweet, works fine in 3.1
1157: [22:02:17] * drazafsky quit (Ping timeout: 250 seconds)
1158: [22:15:26] <simon_w> And there we go: https://packagist.org/packages/simonwelsh/hasoneedit
1159: [22:21:08] <simon_w> chillu, how often does addons.silverstripe.org get updated?
1160: [22:23:19] * DigNZ quit (Quit: DigNZ)
1161: [22:24:10] * nickmolhoek quit (Quit: nickmolhoek)
1162: [22:30:00] <micmania1> simon_w, maybe ?flush=1 would work lol
1163: [22:30:21] <simon_w> I'd hope that it's a task that pulls things down :p
1164: [22:31:21] <simon_w> Yup https://github.com/silverstripe/addons.silverstripe.org/blob/master/mysite/code/tasks/UpdateAddonsTask.php :p
1165: [22:35:31] <simon_w> Okay, one module done. What should I do next...
1166: [22:38:22] * simon_w|air has joined #silverstripe
1167: [22:38:28] * simon_w|air quit (Client Quit)
1168: [22:46:50] <AlphaCactus> fix the slightly offset Export to CSV button
1169: [22:53:07] * AlphaCactus quit (Quit: kthxbai)
1170: [22:56:11] <micmania1> improve the widgets module!
1171: [23:02:09] * chillu quit (Quit: chillu)
1172: [23:25:55] * catcher quit (Ping timeout: 276 seconds)

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