#silverstripe IRC Log

IRC log for 29 August 2013

All timestamps are in UTC.

1: [00:00:29] * Nimle has joined #silverstripe
2: [00:01:19] <Nimle> Hi guys, I want to add a small css style for admin panel. For example, for model admin. it loads if you hard-refresh, but it doesnt work when you come there by ajax.
3: [00:01:28] <Nimle> Is there a way to load css for the admin area
4: [00:02:19] <simon_w> LeftAndMain::require_css
5: [00:02:32] <simon_w> In a _config.php, or the YAML equivalent
6: [00:04:12] <Nimle> ah, thanks.
7: [00:05:02] <DesignerX> Hi guys, i'm having problem managing Members (and sub-classes of Member) in a GF, I'm unable to create a new member. It gets stuck on creating the Member for some reason & doesnt move to the next page (doesnt open the Editing page & there is no 'save' button). Any Ideas ? is there something extra I have to do when managing Member & its sub-classes with ModelAdmin+GF ?
8: [00:06:23] <Nimle> @simon_w, require_css only accepts file or I can but a line of css to hide filter panel. I want to hide the filter panel on the model admin.
9: [00:06:42] <Pyromanik> urgh
10: [00:07:05] <Pyromanik> Nimle: file.
11: [00:07:26] <Pyromanik> DesignerX: don't subclass member.
12: [00:07:40] <Pyromanik> it just leads to headaches.
13: [00:07:41] <Nimle> besides with css, is there a way to hide the filter panel?
14: [00:07:53] <Pyromanik> Nimle: remove it from the gridfieldconfig.
15: [00:08:01] <Pyromanik> oh
16: [00:08:20] <Pyromanik> wait, modeladmin... maybe, but not as easy probably
17: [00:10:00] <Nimle> I am not using gridfield. not good to just use it to hide that panel. Maybe, css is better
18: [00:20:37] <Nimle> Used LeftAndMain::require_css. worked. thank you very much
19: [00:27:24] <DesignerX> Pyromanik: What other options I have ? I need differnt classes for Staff,Manager and Supervisor members and Manager has differnt relations & few extra fields so I will need a new oject as "Groups" will not do it here .
20: [00:29:22] <mirrors> is there much difference in using $obj->getManyManyComponents('MailingLists') compared to $obj->MailingLists();
21: [00:36:49] <simon_w> It's been 11 months since we had the CIA bot in here
22: [00:37:00] <simon_w> mirrors, two layers of stack
23: [00:38:21] * lenore has joined #silverstripe
24: [00:38:56] * lenore quit (Client Quit)
25: [00:45:03] <ss23> okay guise
26: [00:45:06] <ss23> I have control of office speakers
27: [00:45:10] <ss23> Currently playing Two Steps From Hell
28: [00:47:07] <guzzlefry> wait so
29: [00:47:13] <guzzlefry> everyone has to listen to whatever you want?
30: [00:47:56] <simon_w> Headphones, bitches!
31: [00:48:08] <simon_w> My own speakers!
32: [00:48:22] <simon_w> I'm fairly sure I can play though all three things at the same time
33: [00:48:41] <batbadger> i only just encountered fish shell yesterday, and it alarms me
34: [00:49:18] <batbadger> not sure someone can use a shell without ^r
35: [00:49:23] <Colin[pi]> morning all
36: [00:49:39] <DesignerX> hi simon_w and Pyromanik , sorry to bother you but this is regarding sub-classing Member . I read few forum posts dated back from 2009 about ptoblems with sub-classing the member class , is it still a problem & what kind of problem I should expect ?
37: [00:50:24] <simon_w> Yes, you still have all the same problems.
38: [00:50:44] <simon_w> You can't have two subclasses with the same email address, the admin interface isn't designed for creating them
39: [00:50:53] <simon_w> Morning Colin[pi]. I see you're back.
40: [00:51:30] <Colin[pi]> Indeed I am! Don't really want to be, but here I am
41: [00:51:43] <DesignerX> simon_w: I can work around the e-mail problem & I only need these subclasses to be managed using MyModelAdmin (doesnt bother me if they do/dont appear the ine Security section)
42: [00:53:45] <DesignerX> one of the problems I found so far is it freezes on creating the Member. It does create the member & I can use that member details to login fine
43: [00:57:23] <DesignerX> are there any other kwon pronlems, any open discussion regading fixing advancing the member class. I'm willing to put time and effort into getting this to work as it effect my current project in a big way.
44: [01:05:37] <atmos> http://gawker.com/a-stoned-sir-patrick-stewart-teaches-his-girlfriend-how-1213919634
45: [01:09:05] * coldblooded01 has joined #silverstripe
46: [01:11:37] <Pyromanik> batbadger: fish what?
47: [01:12:41] <batbadger> it's a posix shell like bash
48: [01:12:42] * Stomach quit (Ping timeout: 264 seconds)
49: [01:13:20] <Pyromanik> sounds bad
50: [01:13:29] <Pyromanik> atmos: oh gawd, that link.
51: [01:13:39] <Pyromanik> also, seems like a multipage post. SUDDENLY NO CARE.
52: [01:13:45] <atmos> Pyromanik: XD
53: [01:13:46] <Pyromanik> FUCK multipage stories.
54: [01:13:50] <batbadger> yeah it's terrible, but lots of thse web guys i work with seem to use it
55: [01:13:55] <Pyromanik> fuck them and their entire existance.
56: [01:14:34] <atmos> what is it, kinja?
57: [01:15:40] <Pyromanik> kinja?
58: [01:16:32] <atmos> Pyromanik: nevermind, just looking at what that gawker site used
59: [01:16:48] <Pyromanik> I googled kinja and found that it apparently is gawker
60: [01:17:21] <atmos> Pyromanik: news aggregator of somekind?
61: [01:17:33] * zippy__ has joined #silverstripe
62: [01:17:34] <Pyromanik> batbadger: fish looks kinda cool in idea, but terrible in use.
63: [01:17:47] <Pyromanik> atmos: *shrug* yeh?
64: [01:17:48] * zippy__ quit (Client Quit)
65: [01:17:49] <batbadger> there is no ^r
66: [01:17:52] <Colin[pi]> jesus patrick stewart was higher than the enterprise's orbit in that video
67: [01:17:55] <batbadger> i'm hating on it hard
68: [01:18:11] <Pyromanik> I avoid any american site that tries to rip profit out of me by putting shit on 62 pages when it's a 3 sentence story.
69: [01:18:16] * zippy__ has joined #silverstripe
70: [01:18:20] <Pyromanik> batbadger: ^r?
71: [01:18:24] * catcher quit (Quit: Ex-Chat)
72: [01:19:18] * Stomach has joined #silverstripe
73: [01:19:50] <Pyromanik> batbadger: just bash like a pro.
74: [01:19:59] <Pyromanik> if it ain't broke, don't fix it.
75: [01:20:05] <atmos> ^
76: [01:20:20] <batbadger> that's what i use, bash, but most of the stuff i work on is other peoples
77: [01:20:26] <atmos> what irc client are most people using here?
78: [01:20:28] <batbadger> i was just checking out fish cause they use it and lolling
79: [01:20:30] <Pyromanik> irssi
80: [01:20:32] <batbadger> irssi
81: [01:20:39] <atmos> tah
82: [01:21:01] <batbadger> ^r is a reverse isearch on your history, so you can go ^rapache for example and it'll scan back and show you sudo service apache2 restart (for instance)
83: [01:21:08] <batbadger> tapping ^r over and over goes through the match list
84: [01:21:12] <batbadger> it's a time saver and a half
85: [01:21:19] <batbadger> (in bash and zsh)
86: [01:32:01] * Nimle quit (Ping timeout: 250 seconds)
87: [01:34:43] <zippy__> atmos: Colloguy
88: [01:35:26] <atmos> ?z?
89: [01:35:29] <atmos> bah
90: [01:35:38] <atmos> zippy__: colloguy?
91: [01:35:46] <zippy__> irc client
92: [01:35:54] <atmos> zippy__: ah, nice
93: [01:37:19] <zippy__> does the job
94: [01:39:20] <simon_w> 33 line response to this support ticket. Biggest ever!
95: [01:41:58] <simon_w> And then Zendesk goes and emails the response to itself!
96: [01:44:04] <ss23> Argument 1 passed to UploadField::getFileEditFields() must be an instance of File, instance of DMSDocument given
97: [01:44:07] <ss23> :<
98: [01:44:10] <Colin[pi]> oh my: http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/
99: [01:44:14] <ss23> simon_w: Did you get lunch yet?
100: [01:44:24] <simon_w> Just about to
101: [01:44:32] * nhorstmeier has joined #silverstripe
102: [01:44:33] <simon_w> Going to the supermarket and that stuff!
103: [01:44:36] <ss23> oic
104: [01:44:37] <ss23> laaaame
105: [01:44:38] <ss23> :<
106: [01:44:45] <simon_w> You can come with me if you really want :p
107: [01:44:58] <Colin[pi]> will you two get a room?
108: [01:45:04] <simon_w> This is a room!
109: [01:45:11] <Colin[pi]> oh I see, carry on
110: [01:45:45] <simon_w> And is still nowhere near as bad as some of the stuff Bollig|DesignCty got up to :p
111: [01:46:50] <Bollig|DesignCty> Oh, it got wild—WILD—in the Silverstripe IRC channel back in the old days...
112: [01:47:28] <simon_w> And then everyone went off and got married :p
113: [01:49:30] <ss23> WEll
114: [01:49:38] <ss23> I did get told I'm allowed to grab simon_w's ass when we're out in public together
115: [01:49:38] * nhorstmeier quit (Read error: Connection reset by peer)
116: [01:50:03] * nhorstmeier has joined #silverstripe
117: [01:52:19] <simon_w> And now I get to wait until after work to find out if the person likes my response or not. Bah.
118: [01:53:34] <Pyromanik> nailed it, Decorate Controller, add permissions and canview xD
119: [01:53:35] <Pyromanik> yus
120: [01:54:59] <Pyromanik> thanks for help simon_w
121: [01:55:37] <mirrors> simon_w: "mirrors, two layers of stack"...so which one is quicker/should I use
122: [01:57:00] <batbadger> i have a reasonably elaborate dataobject and i want to render them with a given template on some kind of subroute, like /library/<object friendly name>/<page id> since they have 3 pages (a bit like a wizard)
123: [01:57:11] <batbadger> is there something i can read for implementing this strategy
124: [01:57:54] <batbadger> or would i just have a library page that knows how to render it based on the rest of the route
125: [01:58:06] <batbadger> usign 3.0.4 here
126: [02:03:12] * nhorstmeier quit (Remote host closed the connection)
127: [02:04:13] * nhorstmeier has joined #silverstripe
128: [02:06:15] * DigNZ1 has joined #silverstripe
129: [02:06:37] <Pyromanik> batbadger: eh?
130: [02:06:43] <Pyromanik> ->renderWith() ?
131: [02:07:19] <mirrors> does anyone know how i can stop a modules model admin from showing...i created an extension to that model admin, but i do not want to edit the module
132: [02:07:39] <Pyromanik> no permission for it mirrors ?
133: [02:07:50] <Pyromanik> (security -> permissions)
134: [02:08:14] <mirrors> just dont want to touch the module so i can keep it updated
135: [02:09:02] <mirrors> and need to show my extended model admin instead of its
136: [02:11:21] <coldblooded01> Is there any way in template side to link next page? Next page being other child pages
137: [02:11:56] <coldblooded01> $Next.Link I was hoping to be lucky but nope, that doesn't do the job
138: [02:16:12] <mirrors> coldblooded01: http://www.ssbits.com/tutorials/2009/creating-previous-and-next-buttons-on-a-page/
139: [02:16:22] <mirrors> look in the comments for the SilverStripe 3 version
140: [02:16:28] <coldblooded01> cheers mirrors !
141: [02:18:49] <simon_w> mirrors, getManyManyComponents is faster, but you should use MailingLists()
142: [02:19:51] <mirrors> simon_w: ok will do thanks....do you know how I can disable a modules model admin...i do not want to edit the module
143: [02:24:02] <mirrors> ahh its super easy......CMSMenu::remove_menu_item('NewsletterAdmin');
144: [02:32:59] <ss23> gargh
145: [02:33:34] <batbadger> this seems to be what i was going on about http://www.silverstripe.org/general-questions/show/19914 is that out of date as hell / part of 3.0 now?
146: [02:33:44] <batbadger> i think this is another basic failure of understanding SS on my part
147: [02:33:46] <ss23> Action 'ItemEditForm' isn't allowed on class DMSGridFieldDetailForm_ItemRequest.
148: [02:33:49] * nickspiel has joined #silverstripe
149: [02:33:52] <ss23> Someone has broken the shit out of the entire SilverStripe
150: [02:35:53] <nickspiel> hey lads, with the GridFieldAddExistingAutocompleter, how do I tell silverstripe to return an objects attribute rather than the id of the asset?
151: [02:38:11] * nhorstmeier quit (Remote host closed the connection)
152: [02:39:58] <simon_w> ss23, if you redefine a method, you need to add it to allowed_actions (3.1)
153: [02:40:18] <ss23> simon_w: Yeah, it's a DMS bug, just annoying :<
154: [02:42:09] * nhorstmeier has joined #silverstripe
155: [02:43:05] * Jayden90 has joined #silverstripe
156: [02:47:14] * DigNZ quit (Quit: DigNZ)
157: [02:50:43] <Pyromanik> what can one do from onBeforeHTTPError?
158: [02:50:45] <Pyromanik> not much?
159: [02:50:46] <Pyromanik> :<
160: [02:51:19] <Pyromanik> I want to alter the output, but I do not have access to the $errorMessage
161: [02:51:49] <Pyromanik> I suppose I could beat RequestHandler::httpError() to the punch and throw a new SS_HTTPResponse_Exception before it does... but it seems ugly :<
162: [02:53:24] <nickspiel> does anyone have any insight on my GridFieldAddExistingAutocompleter question?
163: [02:54:33] <Pyromanik> nickspiel: what do you mean attribute?
164: [02:56:07] <nickspiel> hi Pyromanik - i am refferring to items in the $db array of a class that extends DataObject, in my case 'headline'
165: [02:56:16] <simon_w> Pyromanik, that's its purpose though
166: [02:59:05] <Jayden90> Pyromanik: I think nickspiel means how to set what shows up in the autocomplete list when adding existing items to a gridfield
167: [03:00:52] <nickspiel> Jayden90: spot on!
168: [03:01:08] <nickspiel> any ideas anyone?
169: [03:04:29] * cloph_away has joined #silverstripe
170: [03:04:35] * cloph quit (Ping timeout: 245 seconds)
171: [03:04:58] * DigNZ1 quit (Quit: DigNZ1)
172: [03:05:05] <ss23> Hmm
173: [03:05:18] <ss23> I need this upload form to do the whole "SAVE ME BEFORE YOU UPLOAD" thing
174: [03:05:56] * Guits quit (Read error: Connection reset by peer)
175: [03:08:37] <simon_w> if($this->ID) add UploadField else Lolnope
176: [03:10:16] * Guits has joined #silverstripe
177: [03:11:08] <ss23> simon_w: Close, but it'll look weird if it doesn't display the standard "save me first please!"
178: [03:11:24] <ss23> DMS uses a subclass, DMSUploadField, so the funtinoality is probably overridden
179: [03:11:28] <simon_w> You mean that thing that 3.1 doesn't have?
180: [03:11:33] <ss23> wat
181: [03:11:36] <ss23> What do you mean it doesn't have it?!
182: [03:11:54] <simon_w> You can use UploadField without saving the base object first
183: [03:12:56] * Trooy_ has joined #silverstripe
184: [03:13:09] <ss23> simon_w: Is there a page detailing the change or something? It would be a nice feature for DMS
185: [03:14:21] <ss23> Eh, it won't work for DMS anyway
186: [03:15:16] * UncleCheese quit (Quit: UncleCheese)
187: [03:16:00] * Trooy quit (Ping timeout: 256 seconds)
188: [03:16:26] <ss23> simon_w: In any case, it's a requirement that you have to save before uploading images for DMS module unless it's heavily refactored which I'm not in the mood to do. Where is the best place to look for implmenting a "Please save me before uploading" on an upload field?
189: [03:16:39] <ss23> I presume 3.0 had it built in or something so I can just copy it?
190: [03:17:16] <simon_w> https://github.com/silverstripe/silverstripe-framework/commit/7f057ce#diff-9 is what removed it
191: [03:17:29] <ss23> Thank you, simon_w :D
192: [03:25:24] * Stomach quit (Quit: Leaving.)
193: [03:32:11] * Jayden90 quit (Quit: Jayden90)
194: [03:34:07] * UncleCheese has joined #silverstripe
195: [03:39:36] * tankr has joined #silverstripe
196: [03:39:42] <UncleCheese> the new list of most liveable cities in the world came out yesterday
197: [03:39:53] <UncleCheese> Australia, anyone?
198: [03:40:33] <DesignerX> I'm in Australia :D
199: [03:41:25] <DesignerX> where can I find that list UncleCheese
200: [03:41:31] <UncleCheese> jesus
201: [03:41:39] <UncleCheese> 5 of the top ten are AUS
202: [03:41:49] * DigNZ has joined #silverstripe
203: [03:41:50] * DigNZ quit (Remote host closed the connection)
204: [03:41:58] <UncleCheese> http://en.wikipedia.org/wiki/World's_most_livable_cities
205: [03:42:04] * DigNZ has joined #silverstripe
206: [03:42:27] <zippy__> Freaking Auckland
207: [03:42:32] <UncleCheese> i know!
208: [03:42:36] <UncleCheese> Wellington got #22
209: [03:42:48] <ss23> Wow
210: [03:42:52] <ss23> Surprised at that list kind of
211: [03:43:04] <UncleCheese> other surveys rate Wellington higher.. I've seen it at #11
212: [03:43:05] <ss23> Guess our cities aren't *too* bad
213: [03:43:17] <UncleCheese> http://en.wikipedia.org/wiki/Quality_of_Living_Survey
214: [03:43:23] <UncleCheese> that one is nicer to NZ
215: [03:44:06] <zippy__> Melbourne eh hmm
216: [03:44:24] <DesignerX> i'm packing to Melbourne :)
217: [03:44:34] <UncleCheese> right on
218: [03:44:37] <UncleCheese> nice there eh?
219: [03:45:08] <DesignerX> I'v been there twice, its much better then Sydney.
220: [03:45:28] <UncleCheese> I know it seems really subjective, but it's actually really good data, because employers use it to calculate hardships imposed by displacing new hires from their home
221: [03:46:44] <UncleCheese> like when I got a job in wellington, they were like, well, life sucks in the US, and you're going to live better here, so you're in no position to negotiate, boy
222: [03:46:58] <UncleCheese> * That may not have actually happened
223: [03:49:28] <DesignerX> from the wiki "It does not take into account climate or the cost of living as a factor in 'liveability.' "
224: [03:50:20] <UncleCheese> yup
225: [03:50:25] <UncleCheese> rightly so
226: [03:51:12] * Stomach has joined #silverstripe
227: [03:51:15] <Pyromanik> Being an NZ Citizen is fuck'n baller.
228: [03:51:22] <UncleCheese> because otherwise the top would be polluted with all kinds of throwaway places like Cincinnatti and Vina del MAr
229: [03:51:42] <simon_w> Because cost of living is such a minor factor that it's safe to ignore!
230: [03:52:12] <DesignerX> simon_w: lol
231: [03:52:34] <DesignerX> Australia is one of the most expensive places in the world
232: [03:52:54] <UncleCheese> the cost of living is going to be accounted for in your salary, though.. in theory
233: [03:53:11] <DesignerX> " in theory"
234: [03:53:12] <UncleCheese> it's just mean to isolate the cost of moving from a sad place to a happy place, or vice-versa
235: [03:53:22] <simon_w> And it looks like these sorts of surveys weight international connectivity much higher than most people normally would, since they're targeting multinationals
236: [03:53:23] <UncleCheese> the cost of living is a totally separate scope
237: [03:54:30] <UncleCheese> There are several studies on the places that give you the most for your dollar, though
238: [03:54:38] <UncleCheese> and you wouldn't want to live in most of them
239: [03:55:28] <simon_w> But you also wouldn't want to live somewhere that's expensive
240: [03:55:41] <UncleCheese> I actually read that if Wellington insulated its houses, it would be #6
241: [03:55:41] <simon_w> It's an important metric in how liveable a place is
242: [03:56:09] <simon_w> You also wouldn't want to live in some of the places that rank well in those
243: [03:56:13] <atmos> From my experience, Wellington is 'way-to-expensive' place to live
244: [03:56:43] <atmos> if not only in the real-estate market - rates, rent etc
245: [03:57:08] <simon_w> Compare it to Auckland :p
246: [03:57:36] <atmos> simon_w: that margin upwards is the same as Nelson downwards
247: [03:58:29] <spronk> hmm
248: [03:58:39] <simon_w> You mean you can get a 2 bedroom place in the CBD for free?
249: [03:58:41] <spronk> when i was looking at moving to welly a few years ago, housing seemed pretty lacklustre
250: [03:58:44] <atmos> having pay reflected to cost of living is kind of a double edge sword
251: [03:59:21] <UncleCheese> well it's important
252: [03:59:30] * spronk worked out that he'd have to earn something like 14k more PA after tax than he does in CHCH to be equivalent
253: [03:59:32] <UncleCheese> if you just query, "where do web devs make the most money?"
254: [03:59:37] <atmos> Nelson -> Wellington -> Auckalnd = $300 -> $400 - $500
255: [03:59:39] <UncleCheese> you come up with something like NYC
256: [03:59:51] <atmos> ->*
257: [04:00:02] <UncleCheese> but a 15 sq metre flat in Manhattan costs $1,800/month
258: [04:00:27] <atmos> UncleCheese: yeah and that's fine, but going the other way sucks
259: [04:00:56] <spronk> commuting vs central city living is the big issue with wellington
260: [04:01:07] <atmos> you can't be expected to take a downgrade in pay just because the cost of living is less (subjective to where the new/old place is nicer/worse)
261: [04:01:08] <UncleCheese> spronk: how do you mean?
262: [04:01:42] <spronk> well, wellington central city is small, and apartment costs are maaaaasssive. The near-central-city stuff isn't particularly bike friendly thanks to all the hills, so you're up with commuting costs
263: [04:01:47] <UncleCheese> it seems like if I move to the Lower Hutt, I could live in a place that's twice as nice and 20% less in rent
264: [04:01:56] <UncleCheese> yeah
265: [04:01:57] <spronk> alternatively, you can go outwards a bit i.e. the hutt
266: [04:02:02] <spronk> but then you're down for $2k/year in commute costs
267: [04:02:06] <atmos> UncleCheese: true, same with like Titirangi in Auckland
268: [04:02:10] <UncleCheese> we just looked at a place in Karori, and i can't believe what a difference even just that makes
269: [04:02:11] <simon_w> And you're in the Hutt
270: [04:02:15] <spronk> yeah, exactly
271: [04:02:18] <UncleCheese> right
272: [04:02:28] <UncleCheese> but i could deal with it if i loved my home
273: [04:02:36] <Pyromanik> It's not just loving your home though
274: [04:02:40] <UncleCheese> Are there any places in Wellington city that are warm?
275: [04:02:41] <simon_w> Really though, using the hills as your reason to not bike is pathetic :p
276: [04:02:44] <spronk> but the standard of places in welly in general definitely didn't seem to compare to CHCH
277: [04:02:44] <Pyromanik> it's the neighbours & neighbourhood
278: [04:02:58] <Pyromanik> also, yes. Hills are good for your health :P
279: [04:03:05] <Pyromanik> crazy motorists on the other hand... :<
280: [04:03:18] <Pyromanik> also
281: [04:03:22] <simon_w> Or just live in the flat areas, or the Hutt
282: [04:03:27] <UncleCheese> i think the best antidote to commuting costs is a scooter
283: [04:03:31] <Pyromanik> dafuq is director rule ordering up to?
284: [04:03:34] <atmos> UncleCheese: agreed
285: [04:03:36] * spronk disagrees
286: [04:03:39] <UncleCheese> one time cost of $2k, and you can drive it for a year for $100
287: [04:03:46] <spronk> i'm prepared to spend about 10 minutes commuting
288: [04:03:51] <Pyromanik> lol, bit more than that UncleCheese
289: [04:03:58] <UncleCheese> i dunno
290: [04:04:00] <Pyromanik> I walk to work.
291: [04:04:01] <spronk> a bit more if i can be produictive while doing so - i.e. on a train
292: [04:04:03] <Pyromanik> it's boss.
293: [04:04:06] <UncleCheese> they get like 15 litres to the 100k
294: [04:04:22] <Pyromanik> unless you've bung your achilles in, limping a 15min walk is pretty f'n horrible :<
295: [04:04:30] <UncleCheese> yeah, walking is great, but it's expensive
296: [04:04:34] <Pyromanik> but then if I drove I'd have to park 15m away anyway
297: [04:04:35] <Pyromanik> so meh.
298: [04:04:41] <UncleCheese> because in order to be within walking distance of your job, you pay more in rent
299: [04:04:44] <simon_w> UncleCheese, what conditions?
300: [04:04:51] <Pyromanik> UncleCheese: depends on the place.
301: [04:04:58] <Pyromanik> and depends on how far you're willing to walk
302: [04:05:08] <Pyromanik> eg. I walked from Newtown to CBD in 20 mins.
303: [04:05:09] <UncleCheese> time is money, too
304: [04:05:28] * nhorstmeier quit (Remote host closed the connection)
305: [04:05:29] <UncleCheese> you spend 90 minutes a day walking, and that's 90 minutes that you could be making money
306: [04:05:33] <spronk> see, i don't think public transport in any NZ city is good enough to remove utility of car ownership
307: [04:05:38] <simon_w> Surely you're on a salary?
308: [04:05:39] <Pyromanik> ^
309: [04:05:54] <Pyromanik> surely you don't want to spend 24 hours a day working?
310: [04:05:59] <UncleCheese> spronk: agreed. the buses are like $1 too expensive to make it a car-killer
311: [04:06:05] <spronk> yeah
312: [04:06:10] <spronk> and the prices just keep going up
313: [04:06:15] <ss23> 16:05:31 < spronk> see, i don't think public transport in any NZ city is good enough to remove utility of car ownership
314: [04:06:17] <Pyromanik> so do fuel prices.
315: [04:06:19] <ss23> IT's fine enough in Wellington
316: [04:06:24] <simon_w> ss23, nope
317: [04:06:26] <spronk> it's cheaper to own and drive a reasonably efficient car in NZ than it is to use public transport
318: [04:06:26] <Pyromanik> yeah you can get by just fine.
319: [04:06:29] <atmos> well, I'm on a salary, but my free time I free lance so time=money even then
320: [04:06:32] <simon_w> $7/day for the bus
321: [04:06:34] <Pyromanik> but it's still not the best
322: [04:06:34] <spronk> unless you live a very long distance away
323: [04:06:40] <Pyromanik> at lucky you
324: [04:07:02] <ss23> I never said it wans't expensive, but it's definitly possible to not own a car
325: [04:07:08] <ss23> Sydney was awesome for no car :D
326: [04:07:14] <ss23> In fact, only like 2 people I knew had cars
327: [04:07:17] <spronk> melb is pretty good for no car as well
328: [04:07:22] <simon_w> ss23, it's cheaper for two people to drive + park than bus
329: [04:07:38] <ss23> Yes
330: [04:07:48] <atmos> my petrol is about $35 p/w = a bus everyday
331: [04:07:53] <Pyromanik> so someone explain to me how framework/routes#rootroutes, then #coreroutes comes AFTER cms/routes#modelascontrollerroutes, but when you tell director to shit out the rules model as controller is the very last one on the list
332: [04:07:59] <atmos> $7 per day I mean
333: [04:08:03] <Pyromanik> I just dont' even.
334: [04:08:18] <Pyromanik> I survive in CHC without a car.
335: [04:08:23] <spronk> my car used to cost me about $1.20 in fuel costs per 10k trip
336: [04:08:24] <simon_w> Pyromanik, After: #modelascontrollerroutes
337: [04:08:35] <Pyromanik> simon_w: yes
338: [04:08:37] <Pyromanik> so
339: [04:09:02] <Pyromanik> order should be: rootroutes,modelascontrolleroutes,coreroutes no?
340: [04:09:21] <simon_w> yes
341: [04:09:25] <spronk> add depreciation (minimal, because 1990s car), maintenance (minimal, because japanese), WOF and rego, and it's still a loooot cheaper than $7/day bus trips
342: [04:09:44] <Pyromanik> so how do coreroutes come before modelascontroller routes when you dump routes in director?
343: [04:09:47] <Pyromanik> with ?debug
344: [04:10:19] <Pyromanik> and how would you ever get to Security//$Action etc if $URLSegment superceeds it?
345: [04:10:49] <simon_w> Pyromanik, because it doesn't?
346: [04:11:34] <Pyromanik> if $URLSegment comes BEFORE coreroutes, which contains Secruity/$blah, and $Controller//$blah, etc...
347: [04:12:02] <simon_w> Pyromanik, output is higher priority at the top
348: [04:12:11] <Pyromanik> simon_w: yeah
349: [04:12:20] <Pyromanik> but include order is confusing the shit out of me.
350: [04:12:24] <simon_w> So modelascontrollerroutes is last
351: [04:12:27] <Pyromanik> yes
352: [04:12:39] <simon_w> Because it's the lowest priority
353: [04:12:41] <Pyromanik> I know that's how it IS. but ... hang on, getting link
354: [04:12:44] <simon_w> Because everything is added after it
355: [04:13:02] <Pyromanik> right
356: [04:13:09] <Pyromanik> so everything else overlays it
357: [04:13:15] <simon_w> Yes
358: [04:13:43] <Pyromanik> so wouldn't $Controller//$Action/$ID/$OtherID override $URLSegment//$Ac... yeah
359: [04:13:58] * mirrors quit (Quit: Page closed)
360: [04:14:00] <simon_w> Yup
361: [04:14:06] <Pyromanik> so...
362: [04:14:07] <simon_w> But that needs $Controller to actually exist to work
363: [04:14:11] <Pyromanik> right
364: [04:14:22] <Pyromanik> so wouldn't $Controller//$Action/$ID/$OtherID: '*'
365: [04:14:25] <Pyromanik> * == ?
366: [04:14:31] * atmos quit (Ping timeout: 250 seconds)
367: [04:14:41] <Pyromanik> urgh - "so wouldn't"
368: [04:14:42] <simon_w> Well, you usually have the name of the controller on the right
369: [04:14:48] <simon_w> This has it on the left
370: [04:14:51] <Pyromanik> yeah, so the star makes it...
371: [04:14:54] <Pyromanik> just
372: [04:15:11] <simon_w> The star's there because you need something on the right
373: [04:15:14] <Pyromanik> ignore that side of the rule
374: [04:15:16] <Pyromanik> right
375: [04:16:42] <Pyromanik> so order is also defined by top to bottom, bottom being overlaid on previous rules in the same rule block right/
376: [04:16:45] <Pyromanik> ?*
377: [04:16:55] * atmos has joined #silverstripe
378: [04:17:06] <Pyromanik> so if I have 2 rules the same the latter will be used
379: [04:17:13] <simon_w> Yup
380: [04:17:17] <Pyromanik> ok cool thanks
381: [04:17:25] <Pyromanik> just trying to figure out this 404 business.
382: [04:19:55] * zippy__ quit (Ping timeout: 268 seconds)
383: [04:25:13] * Stomach quit (Quit: Leaving.)
384: [04:26:03] * UncleCheese quit (Quit: UncleCheese)
385: [04:30:06] * DigNZ quit (Quit: DigNZ)
386: [04:30:14] * atmos quit (Quit: Page closed)
387: [04:33:48] * DigNZ has joined #silverstripe
388: [04:33:49] * DigNZ quit (Read error: Connection reset by peer)
389: [04:34:03] * DigNZ has joined #silverstripe
390: [04:49:43] * DigNZ quit (Quit: DigNZ)
391: [04:50:15] <Pyromanik> oic
392: [04:50:16] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/HTTPRequest.php#L474
393: [04:50:44] <Pyromanik> special case.
394: [04:52:00] * Stomach has joined #silverstripe
395: [04:54:28] <Pyromanik> Fatal error: Based on their before & after rules two fragments both need to be before/after each other
396: [04:54:31] <Pyromanik> fff
397: [04:54:33] <Pyromanik> tell me which ones :<
398: [05:00:10] * nickmolhoek quit (Quit: nickmolhoek)
399: [05:01:29] * Trooy_ quit (Ping timeout: 240 seconds)
400: [05:01:44] * coldblooded01 quit (Quit: coldblooded01)
401: [05:06:35] <Pyromanik> oh, it does if ?debug
402: [05:06:42] <Pyromanik> actually nope :<
403: [05:06:49] <Pyromanik> user error dominates it :<
404: [05:07:53] * UncleCheese has joined #silverstripe
405: [05:18:30] <Pyromanik> Name: modelascontrollerroutes
406: [05:18:30] <Pyromanik> Before: '*'
407: [05:18:30] <Pyromanik> After: '#rootroutes'
408: [05:18:40] <Pyromanik> but when I do it, it fails :<
409: [05:20:04] <Pyromanik> (different name, same before and afters, no CMS module installed)
410: [05:21:10] <Pyromanik> even when I change to Before: '#coreroutes' it doesn't work :<
411: [05:27:30] <Pyromanik> how mad, full mad.
412: [05:29:09] <spronk> o_O
413: [05:29:19] <Pyromanik> more like 0_0
414: [05:29:37] <Pyromanik> V
415: [05:29:39] <Pyromanik> 0_0
416: [05:29:54] * violetina has joined #silverstripe
417: [05:31:27] <simon_w> (??????? ???
418: [05:31:58] <simon_w> Aww, ss-log doesn't handle my table flip :(
419: [05:31:59] <simon_w> (??????? ???
420: [05:32:11] <Pyromanik> ?
421: [05:33:12] <simon_w> https://files.app.net/hq9z2CHI.png
422: [05:33:33] <Pyromanik> oh
423: [05:33:37] <Pyromanik> neither does my irssi
424: [05:33:49] <Pyromanik> 17:31 <@simon_w> (??????? ???
425: [05:34:09] <Pyromanik> simon_w: halp.
426: [05:35:03] <simon_w> Well, I'm off to eat pizza and play board games
427: [05:35:13] <Pyromanik> but halp
428: [05:35:17] <Pyromanik> http://sspaste.com/paste/show/521edc8aeb039
429: [05:35:22] <Pyromanik> why is it so wrong :'(
430: [05:35:49] <Pyromanik> I said before F'n everything!
431: [05:35:55] <Pyromanik> but it doesn't believe me :<
432: [05:36:25] <simon_w> Because there's other things that need to go before everything
433: [05:36:27] * Shrike_Finland has joined #silverstripe
434: [05:37:19] <Pyromanik> yeah but when I put Before: #coreroutes and After: #rootroutes it still fails :<
435: [05:38:16] <Pyromanik> mysite/config#errorroutes marked to come after
436: [05:38:17] <Pyromanik> framework/routes#coreroutes
437: [05:38:26] <Pyromanik> Name: errorroutes
438: [05:38:26] <Pyromanik> Before: '#coreroutes'
439: [05:38:32] <Pyromanik> :<
440: [05:38:38] <Pyromanik> I just don't even.
441: [05:39:01] * openbees has joined #silverstripe
442: [05:47:41] <Pyromanik> I'm mad about this. This should be easier. I think I'll go home and change it.
443: [05:57:14] * violetina quit (Remote host closed the connection)
444: [05:57:17] * UncleCheese quit (Quit: UncleCheese)
445: [06:00:12] * Stomach quit (Quit: Leaving.)
446: [06:00:19] * Pyromanik quit (Quit: leaving)
447: [06:12:14] * SightUnseen has joined #silverstripe
448: [06:18:02] <openbees> Hello is anyone else faced issue with ss3 default rss feed headers .. it always sends request as type "taxt/plain" instead of "application/rss+xml" .. causing some formatting issue .. one ideal example is silverstripe.com(http://www.silverstripe.com/blog/rss/) vs silverstripe.org(http://www.silverstripe.org/blog/rss)
449: [06:18:19] <openbees> in ss.org its right ... sending correct header type
450: [06:22:58] <openbees> seems like its been fixed with this pull request but still not effective https://github.com/silverstripe/silverstripe-framework/pull/1160 :(
451: [06:26:26] * abitran quit (Quit: leaving)
452: [06:28:38] <openbees> never mind it was chrome issue :)
453: [06:29:50] * SightUnseen quit (Quit: Leaving.)
454: [06:31:48] * willr quit (Quit: willr)
455: [06:35:36] * abitran has joined #silverstripe
456: [06:36:05] * violetina2_ has joined #silverstripe
457: [06:37:38] * violetina2 quit (Ping timeout: 245 seconds)
458: [07:20:21] * ARNHOE has joined #silverstripe
459: [07:33:54] * howardgrigg has joined #silverstripe
460: [07:35:26] <howardgrigg> I'm playing around and building a simple library application in SS - I was thinking of making each 'Issue' a DO linked to a single Member and Book
461: [07:36:19] <howardgrigg> but then how would I manage renewals? have a counter on the issue? Any pitfalls or ideas?
462: [07:41:17] <wmk> howardgrigg, how often can one renew the renting?
463: [07:42:01] <wmk> maybe you can calculate a max duration, so if rentEndDate > rentStartDate + MaxDuration it can throw a notice
464: [07:43:11] <wmk> or Issue 1:n renewal (renewal date), updating issue rentEndDate
465: [07:45:15] * chillu has joined #silverstripe
466: [07:45:21] <howardgrigg> yea interesting..
467: [07:45:35] * SightUnseen has joined #silverstripe
468: [07:47:01] <wmk> you'll have to update the bringbackdate, so you can make a report on which customers are due to bring back the books.
469: [07:47:28] <wmk> and maybe autocalculate a fee for bringing back too late
470: [07:48:10] <howardgrigg> yea and I need to have a process that automatically emails for overdues
471: [07:48:19] <howardgrigg> daily or something
472: [07:49:32] * SightUnseen has left #silverstripe
473: [07:50:29] <openbees> library application .. sounds interesting .. will it be open source ?
474: [07:51:43] <howardgrigg> openbees: yea for sure - it's going to be pretty simple, mainly doing it because all the current ones are too complex and we need something simple for my churches library
475: [07:54:13] * Guits quit (Ping timeout: 248 seconds)
476: [07:55:13] <howardgrigg> hah I was storing the ISBN as an 'Int' and kept wondering why it was getting changed to a 'random' number 2147483647
477: [07:55:38] <howardgrigg> worked it out :) Varchar it is
478: [07:55:45] <openbees> cool ... would love to contribute :)
479: [07:57:16] <openbees> I have also started a project .. inspired by Moodle but still in very early stage ... I always wonder what the hell they are doing with 450MB codebase .. so its an attempt to do everything they have with small codebase :)
480: [07:59:06] <howardgrigg> oh nice - I did a 'BetterBoard' which was used for my course instead of Blackboard
481: [07:59:56] <howardgrigg> our uni had a horrendous implementation of blackboard so I did this thing up with SS and ended up getting used by the majority of students lol
482: [08:00:40] <openbees> cool
483: [08:01:30] <howardgrigg> but yea when theres something to contribute to I'll put the library stuff on github and let you know - currently I've only spent about an hour on it so not much to help with yet
484: [08:01:37] * zippy__ has joined #silverstripe
485: [08:02:17] <openbees> sure :)
486: [08:03:23] * Guits has joined #silverstripe
487: [08:04:00] * kinglozzer has joined #silverstripe
488: [08:18:19] * nickspiel quit (Ping timeout: 260 seconds)
489: [08:18:42] <wmk> howardgrigg, a howto for using a barcode scanner with this app would be great.
490: [08:19:34] <howardgrigg> yea I've been looking at this - barcode scanners are basically just a usb keyboard so they work automatically
491: [08:21:28] <howardgrigg> also got it working with the google books api so adding books just requires the ISBN then it pulls in all the other info :)
492: [08:27:15] <wmk> cool
493: [08:27:56] <wmk> does each book have an individual ID? what if we have more items of the same silverstripe book?
494: [08:28:36] <wmk> btw chillu, are there any plans to upgrade your great silverstripe book?
495: [08:30:12] <howardgrigg> wmk: yea that's tricky - one option is just have each Book DO have a unique ID and associate that with a unique barcode that we stick to the book
496: [08:30:50] <howardgrigg> the other - slightly trickier option is to have one book item with multiple 'holdings'
497: [08:31:11] <howardgrigg> then you could say '4 of 6 available'
498: [08:31:27] <howardgrigg> I wonder how you'ddo that
499: [08:32:12] <wmk> i'd go with a unique barcode item, have a book DO with ISBN and group by that
500: [08:32:17] <openbees> isbn could be your friend here
501: [08:32:30] <openbees> i was late :D +1 wmk
502: [08:32:42] <wmk> openbees, why use standards when we can do our own thing *duck*
503: [08:33:27] <openbees> yaah I am wrong .. missed the barcode part
504: [08:35:01] * wmk should make an ironic macro for irc
505: [08:35:26] <openbees> :/
506: [08:35:38] <wmk> ;)
507: [08:35:39] * lobarvaz has joined #silverstripe
508: [08:37:02] <howardgrigg> then each "Book" has_many "Holdings" ...? That would work but just trying to keep the admin interface simple might be the challenging part
509: [08:37:34] * openbees quit (Quit: Leaving)
510: [08:44:10] <wmk> depends on what you mean with "holding"
511: [08:45:07] <wmk> i'd look at it from the unique book in your shelf, this is n:1 ISBN
512: [08:45:39] <wmk> guess you see it the other way, ISBN (book title) 1:n items in library.
513: [08:46:47] <wmk> but on every book an individual barcode
514: [08:52:07] <wmk> LOL, Dataobject line 79 must be made by an bavarian programmer...
515: [09:11:29] <batbadger> i've got this large bit of body copy, it seems it'd fit usually in 4096 or so characters, is HTMLVarchar the right format here, or what
516: [09:13:01] <batbadger> ... sorry that was a dumb question
517: [09:17:07] * Guits quit (Ping timeout: 260 seconds)
518: [09:18:15] <howardgrigg> batbadger: yea I'd be using HTMLText
519: [09:20:10] <batbadger> is there a correct way to describe a dataobject relationship where i have exactly 3 images
520: [09:20:19] <batbadger> rather than just using has_one and going Image0 Image1 Image2
521: [09:20:24] <batbadger> or is that the best way
522: [09:20:51] <howardgrigg> that'll work and probably be easiest
523: [09:20:52] * travis-ci has joined #silverstripe
524: [09:20:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#889 (3.1 - cd8e643 : Will Rossiter): The build passed.
525: [09:20:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/eaa78b98b895...cd8e643357f8
526: [09:20:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10745958
527: [09:20:52] * travis-ci has left #silverstripe
528: [09:27:07] <kinglozzer> batbadger: Or use a many_many relation and set the uploadfield to only allow 3 images :)
529: [09:28:01] <batbadger> yeah i don't know how that works
530: [09:28:47] <kinglozzer> $uploadField->setConfig('allowedMaxFileNumber', 2);
531: [09:28:51] <kinglozzer> or 3 :P
532: [09:29:21] <batbadger> ahh that's cool i didn't know it had that
533: [09:29:23] <batbadger> thanks
534: [09:30:00] <kinglozzer> Yeah it's tucked away in the API docs somewhere, well hidden
535: [09:35:58] <DesignerX> Hi, I just updated a local site to SS3.0.5 , just copied the CMS & Framework folders & did a dev/build. Its trying to build the extra feilds needed for the database but the changes are not getting written to the database. I keep getting the green notice (created) on dev/build but nothing changed in the DB ! any ideas why ?
536: [09:44:53] <wmk> check your logs for errors. had this some days ago while integrating old codebase in 3.1
537: [09:45:32] <wmk> seems like some classes that fail stop SS from writing to DB.
538: [09:47:03] * guci0 has joined #silverstripe
539: [09:47:08] <guci0> Hi there!
540: [09:51:02] <DesignerX> i'm getting Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in W:\xampp\htdocs\_my_projects\SS3\SS3_t1\userform\code\model\UserDefinedForm.php on line 364 ! when was $db . $has_one & $has_many required to be public !
541: [09:51:21] * openbees has joined #silverstripe
542: [09:51:32] <kinglozzer> They're not, they're supposed to be private
543: [09:51:42] <kinglozzer> Or are you on 3.0?
544: [09:51:48] <kinglozzer> Oh, 3.0.5
545: [09:51:52] <DesignerX> 3.0.5
546: [09:52:07] <kinglozzer> I'm guessing you're using UserForms 3.1 compatible branch
547: [09:52:34] <kinglozzer> https://github.com/silverstripe/silverstripe-userforms/tree/1.0
548: [09:52:41] <batbadger> in my country we use 3.0.5 as a scary bedtime story
549: [09:52:43] <kinglozzer> Use that one instead, it's 3.0 compatible
550: [09:52:45] <DesignerX> guess so, is 3.1 stable enough to do some local test & very basic project ?
551: [09:53:23] <openbees> getting error blaw blaw should be compatible with parent blaw blaw ?
552: [09:53:41] <kinglozzer> DesignerX: Yes it is stable enough
553: [09:54:10] <openbees> DesignerX running on 3.1rc1 http://lanewayfestival.com/
554: [09:54:13] <openbees> ;)
555: [09:55:34] <DesignerX> kinglozzer: openbees thanks, Just about 2 hours ago I was having problem with saving objects in ModelAdmin so I "down graded" from 3.1 to 3.0.5 . The problem I had was ModelAdmin manages Staff, I can creat a staff but Staff has has_many relation to another object. This 2nd lvl GF is not saving the objects!
556: [09:57:26] <openbees> DesignerX are u sure that respective has_one is there between anther-object and Staff
557: [09:58:38] <DesignerX> openbees: yes. Just noticed there is an error in Firebug Error: Syntax error, unrecognized expression:
558: [09:58:38] <DesignerX>
559: [09:58:38] <DesignerX>
560: [09:58:38] <DesignerX> throw new Error( "Syntax error, unrecognized expression: " + msg );
561: [09:59:34] <DesignerX> jquery...1322165 (line 4267)
562: [10:00:32] <DesignerX> The object is written to the DB but the page gets stuck on creating & doesnt move to the next page (doesnt show the save button)
563: [10:01:43] <batbadger> can i create a new FieldList rather than using getCMSFields relatively easily?
564: [10:02:04] <DesignerX> The exact relation is : Branch has_many Properies & Property has_one Branch . The model admin is fine creating the Branch but when it comes to managing the Brahcn=>Property relation it gets stuck
565: [10:07:35] <kinglozzer> batbadger: You mean in your getCMSFields() method, create a new FieldList instead of using parent::getCMSFields()? Yes
566: [10:09:08] <kinglozzer> DesignerX: Are you using the automatically scaffolded fields? Or are you creating the 'Property' gridfield yourself?
567: [10:09:09] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
568: [10:10:01] <DesignerX> kinglozzer: Automatic
569: [10:10:37] <kinglozzer> Try creating it yourself: $grid = new GridField('Properties', 'Properties', $this->Properties(), new GridFieldConfig_RecordEditor());
570: [10:10:39] <DesignerX> kinglozzer: & I have another relation to branch (Staff) That I manage using a custom GF & still gives the same error
571: [10:11:18] <kinglozzer> Try looking directly at the response to the AJAX request and see if there's an error in there
572: [10:12:04] <DesignerX> no error there
573: [10:12:21] <DesignerX> the only error I see is in the COnsol , a JQuery error
574: [10:12:27] <kinglozzer> And if you look at the database, is it saving the 'BrandID' to the property when it creates it?
575: [10:12:44] <kinglozzer> BranchID*
576: [10:12:54] <DesignerX> checking
577: [10:13:40] <DesignerX> yes
578: [10:14:06] <kinglozzer> So it's saving fine, it's just not redirecting back?
579: [10:14:13] <DesignerX> exactly
580: [10:14:16] <kinglozzer> Are you using 3.1.0-rc1?
581: [10:14:34] <DesignerX> yes, & I get the same error with 3.0.5
582: [10:15:07] <kinglozzer> Strange, I'm using it with Category has_many Products, Product has_one Category and I don't have any issues
583: [10:15:27] <kinglozzer> I wonder if it might be a module that's causing it
584: [10:15:29] <DesignerX> kinglozzer: I will try a fresh install & see what I get
585: [10:17:40] * travis-ci has joined #silverstripe
586: [10:17:40] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#521 (3.1 - 23c9afa : Ingo Schommer): The build passed.
587: [10:17:40] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/6d694a550a2b...23c9afa25c06
588: [10:17:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/10747715
589: [10:17:40] * travis-ci has left #silverstripe
590: [10:26:07] * micmania1 has joined #silverstripe
591: [10:28:59] * Colin[pi] quit (Ping timeout: 240 seconds)
592: [10:40:52] * qlex has joined #silverstripe
593: [10:41:02] * qlex says hi
594: [10:41:15] <qlex> im editing my Home_page.ss file and stumbled upon a problem.
595: [10:41:50] <qlex> if i have my img src set to themes/mytheme/images/mrr.png it displays
596: [10:41:55] <qlex> if i change it to ../images/mrr.png it doesnt
597: [10:42:20] <qlex> i guess its because homepage.ss is "located" somewhere else then for example a phisical css file (as in css file i can use ../images/mrr.png
598: [10:43:39] <DesignerX> qlex: all pages are loaded at the "root", so you will need themes/MyTheme/Images/ImageName.png
599: [10:44:07] <DesignerX> you can use $themedir in template to provide you with a dynamic themes/MyTheme/ path
600: [10:45:10] <qlex> DesignerX: thanx. where and how do i constructe that $themedir ?
601: [10:45:13] <DesignerX> so you need {$themedir}/images/MyImage.png 9double check the path, it may not need the 'slash" after {$themedir} ..
602: [10:48:48] <Zauberfisch> it does need e slas
603: [10:48:50] <Zauberfisch> h
604: [10:49:11] <Zauberfisch> and even if not, a double slash shouldnt be a problem
605: [10:49:26] <DesignerX> Zauberfisch: it doesnt look nice :D
606: [10:49:39] <simon_w|air> You don't have to see it
607: [10:49:57] <Zauberfisch> but you have to use $TemeDir/images/MyImage.png
608: [10:50:05] <Zauberfisch> h is missing
609: [10:50:19] <Zauberfisch> but you see the uppercase T and D
610: [10:50:20] <DesignerX> whats wrong with the h today Zauberfisch
611: [10:50:28] <Zauberfisch> (:
612: [10:50:50] <Zauberfisch> stupid ipad onscreen keyboard, thats whats wrong
613: [10:51:18] <Zauberfisch> also, the {} are optional in this case
614: [10:51:27] <DesignerX> oh, IPad.. no wonder ...
615: [10:52:13] <DesignerX> it should be IBad
616: [10:53:09] * violetina2 has joined #silverstripe
617: [10:56:52] <qlex> thanx
618: [10:56:53] <qlex> working
619: [11:07:56] * travis-ci has joined #silverstripe
620: [11:07:56] <travis-ci> [travis-ci] chillu/silverstripe-framework#67 (pulls/gridfield-fragment-docs - 87ea171 : Ingo Schommer): The build has errored.
621: [11:07:56] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/86907bab2525...87ea171f637c
622: [11:07:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10749467
623: [11:07:56] * travis-ci has left #silverstripe
624: [11:11:33] * travis-ci has joined #silverstripe
625: [11:11:34] <travis-ci> [travis-ci] chillu/silverstripe-framework#68 (pulls/gridfield-fragment-docs - 0cca6cc : Ingo Schommer): The build has errored.
626: [11:11:34] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/87ea171f637c...0cca6ccdedb0
627: [11:11:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10749475
628: [11:11:34] * travis-ci has left #silverstripe
629: [11:11:43] * howardgrigg quit (Remote host closed the connection)
630: [11:11:46] * cloph_away is now known as cloph
631: [11:20:41] * travis-ci has joined #silverstripe
632: [11:20:42] <travis-ci> [travis-ci] chillu/silverstripe-framework#66 (pulls/gridfield-fragment-docs - 86907ba : Ingo Schommer): The build has errored.
633: [11:20:42] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/65d96e8d7ceb^...86907bab2525
634: [11:20:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10749455
635: [11:20:42] * travis-ci has left #silverstripe
636: [11:24:16] * travis-ci has joined #silverstripe
637: [11:24:17] <travis-ci> [travis-ci] chillu/silverstripe-framework#69 (pulls/gridfield-fragment-docs - ea6f720 : Ingo Schommer): The build passed.
638: [11:24:17] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/0cca6ccdedb0...ea6f7208c32b
639: [11:24:17] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10749547
640: [11:24:17] * travis-ci has left #silverstripe
641: [11:33:40] * Guits has joined #silverstripe
642: [11:38:12] * chillu quit (Quit: chillu)
643: [11:38:32] * meow- has joined #silverstripe
644: [11:39:12] <meow-> Hi. Has anyone here got experience getting silverstripe 2.4 to work on HHVM?
645: [11:45:09] * zippy__ quit (Ping timeout: 268 seconds)
646: [11:46:18] * chillu has joined #silverstripe
647: [11:47:49] <Shrike_Finland> A little checkout: is this right way of checking "grandparent" classname? http://pastebin.com/8nH44V76
648: [11:51:10] * qlex says seeya
649: [11:51:11] * qlex has left #silverstripe
650: [11:52:41] * PanPipes has joined #silverstripe
651: [11:53:03] <PanPipes> in 3.1 how do you order CMS Tabs?
652: [11:55:27] * violetina2 quit (Remote host closed the connection)
653: [11:55:42] * zippy__ has joined #silverstripe
654: [11:55:57] <wmk> the same procedure like every year
655: [11:56:04] <PanPipes> currently I do addFieldstoTab('Root.Type', ...) then addFieldstoTab('Root.Images', ...) then addFieldstoTab('Root.Attributes', ...) but it's displaying them as Images, Attributes then Type. Any ideas how I change it? Doesn't seem to make an sense
656: [11:56:34] <wmk> "oh, our website should be updated today cause tomorrow we make a mailing"
657: [11:56:45] <zippy__> wmk: good notice period eh
658: [11:56:55] <zippy__> PanPipes: Don't understand…. what are you expecting?
659: [11:56:59] <openbees> addFieldToTab accepts third parameter a field name it will then add it before that field
660: [11:57:41] <openbees> something like $fields->addFieldToTab("Root.Main", new CountryDropdownField("Country", "Country"), 'About'); country field will appear before About field PanPipes
661: [11:58:23] <wmk> zippy__, every year...
662: [11:58:34] * ARNHOE quit (Remote host closed the connection)
663: [11:59:35] * travis-ci has joined #silverstripe
664: [11:59:35] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#522 (3.1 - 9b15c8c : Ingo Schommer): The build passed.
665: [11:59:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/23c9afa25c06...9b15c8c16d68
666: [11:59:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/10750632
667: [11:59:35] * travis-ci has left #silverstripe
668: [11:59:44] <PanPipes> zippy__: well since i declared it as Type, Images then Attributes, then I expect that order.
669: [12:00:00] * violetina2 has joined #silverstripe
670: [12:00:03] <PanPipes> no idea why Type is being placed at the end
671: [12:00:29] <meow-> Hi guys is there anywhere I can find information on how to run silverstripe 2.4 on hiphop vm?
672: [12:01:33] <PanPipes> openbees: I saw that, but surely I can't use that to order the actually tabs? (not the fields in the tabs)
673: [12:01:52] <openbees> PanPipes : wll usually I remove all fields first then place them in order .. $fields->removeFieldFromTab("Root.Main","Type");
674: [12:02:50] <openbees> ohhh shit .. I am sorry PanPipes .. I ignored ur requirement
675: [12:03:10] * Pigeon has joined #silverstripe
676: [12:03:34] * Pigeon is now known as Guest89306
677: [12:03:48] <PanPipes> openbees: no worries
678: [12:05:38] <zippy__> PanPipes: Can you add them in the other order, in the code list the type last so it shows first?
679: [12:05:48] <zippy__> it MAY be alphabetical, but don't think so
680: [12:07:28] * UndefinedOffset has joined #silverstripe
681: [12:08:23] * openbees quit (Ping timeout: 260 seconds)
682: [12:09:36] * PanPipes quit (Quit: Computer went to sleep)
683: [12:13:15] * travis-ci has joined #silverstripe
684: [12:13:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#892 (3.1 - 4ff7b43 : Ingo Schommer): The build was broken.
685: [12:13:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/cd8e643357f8...4ff7b43c441a
686: [12:13:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10750800
687: [12:13:15] * travis-ci has left #silverstripe
688: [12:17:24] <Shrike_Finland> How can I loop menuitems from level 3, when user is on menu(1)? I want to skip menu(2) and go directly to menu(3) and create subnav out of it.
689: [12:20:35] <wmk> $Menu(3) ???
690: [12:20:43] <zippy__> <% loop menu(3) %> ?
691: [12:20:51] * unculture has joined #silverstripe
692: [12:20:52] * openbees has joined #silverstripe
693: [12:21:20] <batbadger> how do i change the tab order of my admin subtab things?
694: [12:21:24] <wmk> BUT: which menu3? Shrike_Finland if you have a tree you'll have multiple 3rd layers
695: [12:21:48] <batbadger> literally just grab the FieldList and change its order with array_ calls?
696: [12:22:07] <wmk> batbadger, tab is just another field, so like you move a field up or down.
697: [12:22:20] <batbadger> ahh i will hceck the api
698: [12:22:22] <batbadger> cheers
699: [12:22:40] <wmk> FieldList::changeFieldOrder()
700: [12:23:59] <wmk> hmm, or getFieldByName() followed by insert(Before|After)()
701: [12:24:14] <batbadger> can i subtract 1 from Pos some how in the template? designers made all his css 0 offset rather than 1 offset
702: [12:28:37] <openbees> batbadger i thin u can use $pos(0)
703: [12:30:08] <batbadger> cheers
704: [12:33:19] <openbees> chillu as you are busy with other stuff , is that ok if I merge my branch in addons repo . planning to reduce long awaiting issue list this weekend
705: [12:33:53] <chillu> yeah - in general, create pull requests for branches, that makes it easier to collaborate
706: [12:34:01] <chillu> (even if the branch is on the same repo, that's fine)
707: [12:34:43] <openbees> thanks .. I will do so .. cheers :)
708: [12:34:52] <chillu> Good to hear that you're planning more work on addons :) My next steps are a) fixing search and b) removing ss.org/modules and redirecting the module listings to addons.ss.org where appropriate
709: [12:35:51] <openbees> I can bet no one more eager to make it live than me :D
710: [12:36:46] <openbees> I Will start with Search fix after some more refactoring required by new API .
711: [12:38:18] * travis-ci has joined #silverstripe
712: [12:38:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#892 (3.1 - 4ff7b43 : Ingo Schommer): The build passed.
713: [12:38:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/cd8e643357f8...4ff7b43c441a
714: [12:38:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10750800
715: [12:38:18] * travis-ci has left #silverstripe
716: [12:48:16] * kerosene has joined #silverstripe
717: [12:50:15] <chillu> openbees: Hamish suggested that we might get away without a git checkout on github-hosted projects, since we can retrieve the README file through the github.com web URL. That should speed things up quite a bit in terms of initial processing time. Not sure if its worth the hassle, but in case you're running out of work .. :D
718: [12:50:58] <zippy__> chillu: 3.1 final today is it? :)
719: [12:51:14] <zippy__> just flip the switch, I wont say it was upi
720: [12:51:15] <zippy__> u
721: [12:51:19] <chillu> Oh yeah? Did the fairies come in and fix everything? ;)
722: [12:51:38] <zippy__> yeap, magic
723: [12:52:15] <zippy__> are there a few things holding it back are there? I thought rc1 was sort of, release ready
724: [12:54:02] <chillu> we'll need an RC2, since there was a couple of commits after 3.1.0-rc1 on the rc2 branch that were deemed important enough to make the release. There's also some other critical issues which will be 1-2 days of work before we can go RC2
725: [12:56:30] <zippy__> ah I see
726: [12:56:47] <zippy__> good to know
727: [13:00:58] <chillu> zippy__: I've created a placeholder issue in the github milestone to make that a bit clearer
728: [13:01:56] <zippy__> chillu: is 3.0.6 in the same suitation?
729: [13:02:05] <chillu> Yes
730: [13:02:26] <chillu> Well, yes and no. We'll probably release 3.0.6 before fixing this issue, simply because its been in rc1 for so long
731: [13:03:36] <openbees> chillu here at Silverstripers dream for the day when I am out of work .. even in weekends :D .. I will look into addons build talk .. i think its broken too
732: [13:04:27] <chillu> openbees: Yeah with open source you're pretty much never out of work. Unless you never write code in the first place ;)
733: [13:05:00] <openbees> yaah true :D
734: [13:05:33] <openbees> have a good day .. will update you on sunday evening
735: [13:07:48] * PanPipes has joined #silverstripe
736: [13:08:53] * simon_w|air quit (Ping timeout: 245 seconds)
737: [13:14:23] <micmania1> Can't I use a ManyManyComplexTableField within a popup? (2.4)
738: [13:14:42] * ARNHOE has joined #silverstripe
739: [13:14:45] * simon_w|air has joined #silverstripe
740: [13:14:45] <micmania1> The checkboxes don't seem to be working and a little hunting around online I've found others having the same issue without resolution
741: [13:21:39] * swordsmanz quit (Remote host closed the connection)
742: [13:21:51] * travis-ci has joined #silverstripe
743: [13:21:51] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#524 (3.1 - cdb4ab4 : Ingo Schommer): The build passed.
744: [13:21:51] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/9b15c8c16d68...cdb4ab4fbc53
745: [13:21:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/10753348
746: [13:21:51] * travis-ci has left #silverstripe
747: [13:23:43] * openbees quit (Quit: Leaving)
748: [13:26:17] * zippy__ quit (Ping timeout: 268 seconds)
749: [13:26:36] <ARNHOE> chillu: Want to check something with you, I have a holder page with limited to allowed children. For some reason I am able to select a page type that isn't allowed, but once I try ot add the page I don't really get a developer "friendly" error. : Call to a member function forTemplate() on a non-object in
750: [13:30:39] <kinglozzer> ARNHOE: Are you on 3.0.x? I don't get this on 3.1.0-rc1
751: [13:30:41] <chillu> I've fixed a bug on master for that a couple of days ago (entwine rules), otherwise that sounds like a critical bug on 3.1. Can you narrow it down to a test case, and file a bug?
752: [13:30:46] <ARNHOE> 3.1 latest branche
753: [13:30:47] <kinglozzer> ^^
754: [13:31:00] <ARNHOE> im on 3.1 branch hmpf
755: [13:32:42] * Shrike_Finland quit (Quit: Leaving.)
756: [13:36:30] * swordsmanz has joined #silverstripe
757: [13:38:44] * swordsmanz quit (Remote host closed the connection)
758: [13:39:10] * swordsmanz has joined #silverstripe
759: [13:41:12] * swordsmanz has left #silverstripe
760: [13:43:38] * hans_ has joined #silverstripe
761: [13:44:34] <hans_> hey, i want a subscription form for the newsletter module. everthing dislayed but when i submit i get an error: "There seems to have been a technical problem ..."
762: [13:44:55] <hans_> seems to be something with the security tokken, can someone help?
763: [13:53:41] <PanPipes> how do I make a DataObject property unique e.g Email Address must be unique?
764: [14:03:47] * swordsmanz has joined #silverstripe
765: [14:04:18] * swordsmanz quit (Remote host closed the connection)
766: [14:05:21] * swordsmanz has joined #silverstripe
767: [14:06:04] * violetina2_ quit (Remote host closed the connection)
768: [14:06:10] * chillu quit (Quit: chillu)
769: [14:13:36] * chillu has joined #silverstripe
770: [14:25:16] * swordsmanz quit (Quit: ooh ponies kinkeyyy)
771: [14:36:03] * swordsmanz has joined #silverstripe
772: [14:37:19] * swordsmanz has left #silverstripe
773: [15:12:26] * howardgrigg has joined #silverstripe
774: [15:12:32] * travis-ci has joined #silverstripe
775: [15:12:32] <travis-ci> [travis-ci] chillu/silverstripe-framework#70 (pulls/treedropdown-searchfield-default - b1957c3 : Ingo Schommer): The build has errored.
776: [15:12:32] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/ca2e7dad490f^...b1957c3d83cb
777: [15:12:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10758569
778: [15:12:32] * travis-ci has left #silverstripe
779: [15:13:47] * violetina has joined #silverstripe
780: [15:16:07] * travis-ci has joined #silverstripe
781: [15:16:07] <travis-ci> [travis-ci] chillu/silverstripe-framework#71 (pulls/treedropdown-searchfield-default - 9464d44 : Ingo Schommer): The build has errored.
782: [15:16:07] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/b1957c3d83cb...9464d44f7cea
783: [15:16:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10758626
784: [15:16:07] * travis-ci has left #silverstripe
785: [15:16:49] * howardgrigg quit (Ping timeout: 256 seconds)
786: [15:21:32] * swordsmanz has joined #silverstripe
787: [15:22:27] * travis-ci has joined #silverstripe
788: [15:22:27] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#525 (3.1 - 4e03107 : Ingo Schommer): The build passed.
789: [15:22:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/cdb4ab4fbc53...4e031076be5b
790: [15:22:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/10758609
791: [15:22:27] * travis-ci has left #silverstripe
792: [15:31:50] * g4b0 has joined #silverstripe
793: [15:31:59] <g4b0> hi all
794: [15:32:34] <g4b0> any experience running SS 3.1 on apache 2.4?
795: [15:32:59] <g4b0> It seems that actual .htaccess is not working anymore
796: [15:33:16] <g4b0> rewrite works fine for everithing but the homepage
797: [15:33:33] <g4b0> homepage processing pass through index.php
798: [15:37:13] * priithansen has joined #silverstripe
799: [15:37:27] * swordsmanz quit (Quit: swordsmanz)
800: [15:41:19] * ARNHOE quit (Ping timeout: 264 seconds)
801: [15:49:29] * PanPipes quit (Quit: Computer went to sleep)
802: [15:58:26] * g4b0 quit (Remote host closed the connection)
803: [16:05:48] * kinglozzer quit (Remote host closed the connection)
804: [16:50:47] * lobarvaz quit (Remote host closed the connection)
805: [16:58:52] * hans_ quit (Quit: Page closed)
806: [16:59:15] * ARNHOE has joined #silverstripe
807: [17:08:54] * AlphaCactus has joined #silverstripe
808: [17:11:45] * ARNHOE quit (Remote host closed the connection)
809: [17:12:21] * ARNHOE has joined #silverstripe
810: [17:12:58] * howardgrigg has joined #silverstripe
811: [17:17:11] * howardgrigg quit (Ping timeout: 241 seconds)
812: [17:21:40] <guzzlefry> Is there a special way to handle cookies in SilverStripe?
813: [17:33:49] <wmk> guzzlefry, not that i know of
814: [17:35:51] * micmania1 quit (Ping timeout: 245 seconds)
815: [17:40:55] * unculture quit (Quit: Leaving)
816: [17:44:31] * ARNHOE quit (Remote host closed the connection)
817: [17:45:05] * ARNHOE has joined #silverstripe
818: [17:49:11] * ARNHOE quit (Ping timeout: 245 seconds)
819: [18:29:24] <AlphaCactus> Anyone run into a problem where you can't have a lot of field in a userform?
820: [18:45:29] * Nivery quit (Quit: Nivery)
821: [18:52:01] * SightUnseen has joined #silverstripe
822: [18:52:19] * SightUnseen has left #silverstripe
823: [19:03:55] * gelignite has joined #silverstripe
824: [19:13:30] * howardgrigg has joined #silverstripe
825: [19:15:47] * PanPipes has joined #silverstripe
826: [19:17:15] * PanPipes quit (Client Quit)
827: [19:17:56] * howardgrigg quit (Ping timeout: 245 seconds)
828: [19:22:23] * PanPipes has joined #silverstripe
829: [19:26:52] <wmk> anyone knows a module where i can manage downloads for different user groups? e.g. not logged in users see other files than users in group A or in group B
830: [19:36:36] * PanPipes quit (Quit: Computer went to sleep)
831: [19:37:59] <simon_w|air> SecuredAssets
832: [19:38:12] <simon_w|air> guzzlefry, the Cookie class
833: [19:38:38] <guzzlefry> simon_w|air: thank you sir
834: [19:40:18] * PanPipes has joined #silverstripe
835: [19:49:01] <guzzlefry> simon_w|air: Before I go an implement this, is there already a way to check if a page was visited already?
836: [19:50:02] <wmk> guzzlefry, yes
837: [19:50:40] <simon_w|air> guzzlefry, nothing built in
838: [19:54:03] <wmk> simon_w, is $PastMember $PastVisitor not included anymore?
839: [19:59:45] <wmk> simon_w, cannot find secureassets module, only hamish's secure files which was 2.3/2.4.
840: [20:06:00] <PanPipes> do you have to sanitize urlParams taken from the request object?
841: [20:06:04] <PanPipes> in 3.1
842: [20:12:27] * DigNZ has joined #silverstripe
843: [20:12:28] * DigNZ quit (Remote host closed the connection)
844: [20:12:44] * DigNZ has joined #silverstripe
845: [20:17:34] <PanPipes> anyone?
846: [20:18:02] * kerosene quit (Quit: leaving)
847: [20:18:37] <wmk> PanPipes, http://doc.silverstripe.org/framework/en/3.1/topics/security may help
848: [20:24:08] <PanPipes> wmk: thanks for that, so i am right in saying that if i use a filter i need to escape the string?
849: [20:26:27] * atmos has joined #silverstripe
850: [20:28:21] * joelpittet has joined #silverstripe
851: [20:29:25] <simon_w> wmk, those tell you if they've visited the site, not the page
852: [20:29:47] <simon_w> PanPipes, If you use ->filter(), it escapes it for you
853: [20:29:51] <simon_w> And you should use filter()
854: [20:32:46] <simon_w> wmk, also, https://github.com/timsnadden/silverstripe-securefiles/tree/3.1
855: [20:34:14] * Pyromanik has joined #silverstripe
856: [20:36:15] * UndefinedOffset quit (Quit: Leaving.)
857: [20:38:20] <guzzlefry> How can I get the current SS_HTTPRequest object within a Form?
858: [20:39:51] <simon_w> guzzlefry, Controller::curr()->getRequest()
859: [20:40:20] <guzzlefry> thank you
860: [20:40:23] <guzzlefry> I almost found it. :P
861: [20:40:32] * guzzlefry is getting better with these docs. :)
862: [20:41:43] <wmk> simon_w, 10x
863: [20:50:16] <PanPipes> simon_w: thanks, i was sure for a second as filter was not listed in the docs.
864: [20:50:20] <PanPipes> wmk: thanks
865: [20:51:49] * Stomach has joined #silverstripe
866: [20:52:08] <Pyromanik> OMG OMG OMG OMG OMG
867: [20:52:17] <Pyromanik> last night I got really mad
868: [20:52:20] <Pyromanik> because 404s
869: [20:52:23] <Pyromanik> and bad docs
870: [20:52:37] <Pyromanik> docs were lacking decent explanations (assumed too much knowledge already)
871: [20:52:42] <Pyromanik> and I was getting frustrated
872: [20:52:44] <Pyromanik> AND THEN
873: [20:52:59] <Pyromanik> TURNS OUT TYPOS IN DOCS CAUSED THE RUN AROUND FOR TWO WHOLE HOURS
874: [20:53:05] * Pyromanik full madded
875: [20:53:30] * coldblooded01 has joined #silverstripe
876: [20:53:31] <Pyromanik> in docs - Injector: BlahClass: construct: WRONG
877: [20:53:40] <Pyromanik> in reality - Injector: BlahClass: constructor: RIGHT
878: [20:57:49] <Pyromanik> hey simon_w, as objects are passed by reference, if I have a param $blah, and in the function I $blah = $anotherObject; is that going to reassign the reference to the object, or do something locally that won't be effective after the function returns?
879: [20:58:06] <Pyromanik> will I need to &$blah = $anotherObject ?
880: [21:00:17] <batbadger> morning
881: [21:00:20] <Pyromanik> hi
882: [21:01:20] <atmos> guten morgen
883: [21:02:06] <Pyromanik> dolbre utra
884: [21:02:33] <Pyromanik> ohaiyoo
885: [21:05:01] <Pyromanik> morena
886: [21:06:48] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/injector/Injector.php#L69
887: [21:06:51] <Pyromanik> :<
888: [21:07:01] <Pyromanik> wrong!
889: [21:07:27] * PanPipes quit (Remote host closed the connection)
890: [21:07:52] * joelpittet quit (Remote host closed the connection)
891: [21:08:09] * joelpittet has joined #silverstripe
892: [21:08:18] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/docs/en/reference/injector.md#managed-objects
893: [21:08:21] <Pyromanik> right :<
894: [21:09:51] * priithansen quit (Ping timeout: 256 seconds)
895: [21:12:42] * UncleCheese has joined #silverstripe
896: [21:14:02] * howardgrigg has joined #silverstripe
897: [21:16:13] <atmos> instant coffee...
898: [21:16:53] * joelpittet quit (Remote host closed the connection)
899: [21:17:14] * joelpittet has joined #silverstripe
900: [21:17:39] * priithansen has joined #silverstripe
901: [21:18:42] * howardgrigg quit (Ping timeout: 264 seconds)
902: [21:22:21] * zippy__ has joined #silverstripe
903: [21:23:33] * Stomach quit (Quit: Leaving.)
904: [21:23:36] <zippy__> morning
905: [21:24:36] <atmos> zippy__: mornin - awesome day out in Richmond
906: [21:24:48] <zippy__> sure is, beautiful!
907: [21:24:50] * micmania1 has joined #silverstripe
908: [21:25:21] * nhorstmeier has joined #silverstripe
909: [21:27:48] <atmos> anyone every created a form that allows frontend creation of fields? For example: a parent fills out the form, they add a child's name, then can 'Add' more children (fields) up to a defined maximum? Or something equivalent?
910: [21:28:12] <simon_w> Yes
911: [21:29:30] <atmos> simon_w: standard userforms?
912: [21:29:33] <Pyromanik> atmos: javascript
913: [21:29:40] <Pyromanik> nope
914: [21:29:44] <simon_w> atmos, completely custom
915: [21:29:50] <simon_w> clone, change IDs, append
916: [21:29:53] <Pyromanik> ^
917: [21:30:17] <simon_w> Oh, and wipe values
918: [21:30:20] <simon_w> Name ends in []
919: [21:30:31] <simon_w> Try not to use file uploads like that though...
920: [21:30:45] <Pyromanik> lucky for us SS already does loose validation if a field submissions is an array too
921: [21:31:01] <Pyromanik> yeah, file fields are already arrays, it gets uber mess.
922: [21:31:09] <atmos> simon_w: any examples of this I could use?
923: [21:31:12] <Pyromanik> not as logical is you'd think
924: [21:31:20] * gelignite quit (Quit: http://bit.ly/nkczDT)
925: [21:34:46] <simon_w> atmos, sign up for PocketRent, add a property, make it a complex and change the number of units
926: [21:35:09] <simon_w> Or use demo@pocketrent.com/demo if you don't want to signup :p
927: [21:35:44] <atmos> simon_w: cheers, taking a look
928: [21:36:47] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/HTTPResponse.php#L45
929: [21:36:50] <Pyromanik> :<
930: [21:36:54] <Pyromanik> y4uno418!
931: [21:37:38] <simon_w> Because no HTCPCP for you!
932: [21:38:33] <Pyromanik> D:
933: [21:38:34] <Pyromanik> !
934: [21:38:49] <Pyromanik> I don't want coffee, I want tea!
935: [21:38:53] <Pyromanik> 418!
936: [21:40:50] <guzzlefry> What would be the proper way to add sorting links to the BlogHolder in the blog module?
937: [21:41:26] <Pyromanik> sorting links?
938: [21:41:27] <guzzlefry> and well, all of the logic to check the GET variable sort and apply it.
939: [21:41:33] <Pyromanik> sorting?
940: [21:41:37] <Pyromanik> blog?
941: [21:41:48] <guzzlefry> I'm confused more now. :P
942: [21:42:57] <Pyromanik> yeah
943: [21:43:06] <Pyromanik> what do you mean 'sorting the blag'?
944: [21:44:02] <guzzlefry> Pyromanik: The list of blog entries, I need to add some links above them by title or date.
945: [21:44:50] <guzzlefry> ..err
946: [21:44:52] <guzzlefry> let me try again
947: [21:45:04] <Pyromanik> ok
948: [21:45:11] <guzzlefry> Pyromanik: The list of blog entries, I need to add some links above them to sort by title or date.
949: [21:46:51] <guzzlefry> I was thinking I could just have them add a sort variable to the URL query string indicating what to sort by. I just don't know where to put the logic to handle that variable and reoder the posts accordingly.
950: [21:48:00] <Pyromanik> index
951: [21:48:21] <Pyromanik> well, actually... BlogEntries iirc
952: [21:48:26] <Pyromanik> the getter method
953: [21:49:39] * howardgrigg has joined #silverstripe
954: [21:52:23] * guzzlefry facepalms.
955: [21:54:17] <guzzlefry> // By specifying a callback, you can alter the SQL, or sort on something other than date.
956: [21:54:45] <guzzlefry> Apparently when I searched for "sort" in my IDE, it doesn't consider "sorting" a match. :P
957: [22:01:45] * Stomach has joined #silverstripe
958: [22:15:36] * nickspiel has joined #silverstripe
959: [22:16:39] * Stomach quit (Quit: Leaving.)
960: [22:17:26] * nickmolhoek has joined #silverstripe
961: [22:17:27] * nickmolhoek quit (Remote host closed the connection)
962: [22:17:41] * nickmolhoek has joined #silverstripe
963: [22:20:32] * howardgr_ has joined #silverstripe
964: [22:20:32] * howardgrigg quit (Read error: Connection reset by peer)
965: [22:24:54] * willr has joined #silverstripe
966: [22:25:30] <willr> simon_w why wouldn't I see checkboxes while using your GridFieldRelationHandler
967: [22:26:04] <simon_w> willr, have you clicked the button to edit the relationship?
968: [22:26:39] <willr> pst buttons. Should be there by default
969: [22:26:41] * Stomach has joined #silverstripe
970: [22:27:28] <simon_w> That's a constructor argument
971: [22:27:50] <simon_w> The boolean that isn't the default value
972: [22:31:14] * violetina quit (Remote host closed the connection)
973: [22:33:36] <ss23> So I went to contribute a fix to a project the other day, and they're refusing to fix it because "Having it broken reminds me I need to rewrite it"
974: [22:33:49] <ss23> So I went to contribute a fix to a project the other day, and they're refusing to merge it because "Having it broken reminds me I need to rewrite it"
975: [22:33:53] <ss23> I should say
976: [22:37:31] <micmania1> Wasn't WordPress was it?
977: [22:37:50] <ss23> haha, no, luckily :P
978: [22:39:38] <batbadger> how do i add a pdf download thing for example to my dataobject
979: [22:39:44] <batbadger> not sure what datatype to use in my has_one
980: [22:39:50] <batbadger> File?
981: [22:40:01] * SightUnseen has joined #silverstripe
982: [22:40:03] <micmania1> yeah, File
983: [22:40:07] * SightUnseen has left #silverstripe
984: [22:40:23] <batbadger> i need to be less shit at using silverstripes docs
985: [22:40:32] <batbadger> keep getting field types and datatypes confused like a clown
986: [22:40:49] <micmania1> ha! You'll pick it up.
987: [22:41:00] <batbadger> didn't see file listed here http://doc.silverstripe.org/framework/en/topics/data-types
988: [22:41:25] <batbadger> and Files is all TODO
989: [22:42:59] <Pyromanik> discovering how Injector works & the existence of RequestFilter... <3
990: [22:43:45] <Pyromanik> batbadger: the docs is all TODO
991: [22:43:50] <Pyromanik> even the ones that are done :<
992: [22:49:44] <Pyromanik> when someone Session::set(), Session is global right?
993: [22:49:52] * nickmolhoek quit (Quit: nickmolhoek)
994: [22:50:55] <Pyromanik> it doesn't need to be saved on the returning controller or something strange does it?
995: [22:51:14] * nickmolhoek has joined #silverstripe
996: [22:51:15] * nickmolhoek quit (Remote host closed the connection)
997: [22:51:29] * nickmolhoek has joined #silverstripe
998: [22:53:21] <micmania1> I don't think so
999: [22:56:29] <ss23> Anyone know how a site with mod_rewrite proplery, a user could somehow get to the URLs like site.com/index.php/stuff
1000: [22:56:54] <ss23> It's breaking the site completely because of course, site.com/index.php/assets/ etc doesn't work
1001: [22:58:17] <micmania1> In the vhost set AllowOverride to All. That's how i've fixed it in the past, but it could be a different problem.
1002: [22:58:35] <ss23> Doubtful it's that, as the site works just fine if you went to site.com/stuff
1003: [22:58:56] <ss23> I presume the fix to make index.php/assets is harder than the fix for making it impossible for users to get there in the first place
1004: [22:59:01] <ss23> I could always just redirect I guess
1005: [22:59:43] <micmania1> is .htaccess definitely setup to look at framework/main.php?
1006: [23:00:07] <micmania1> checked permissions are correct on .htaccess etc?
1007: [23:00:31] <micmania1> If htaccess is being skipped it would explain why its going to straight to index.php
1008: [23:00:32] * howardgr_ quit (Read error: Connection reset by peer)
1009: [23:00:33] <guzzlefry> ss23: Not sure if I'm understanding correctly, but I had to mv index.php to something else so it wouldn't load up to fix my odd index.php/themes/css/layout.css problems.
1010: [23:00:47] * howardgrigg has joined #silverstripe
1011: [23:01:09] <ss23> guzzlefry: Yep, someone else suggested that too
1012: [23:01:31] <ss23> micmania1: Not an issue with it being skipped, I suspect it might be some kind of issue with browsers someone defaulting orsomething
1013: [23:01:31] * howardgrigg quit (Read error: Connection reset by peer)
1014: [23:01:34] <ss23> idk
1015: [23:01:37] <ss23> but I think that moving index.php will work, yeah
1016: [23:01:45] <simon_w> ss23, just delete index.php
1017: [23:01:48] * howardgrigg has joined #silverstripe
1018: [23:02:07] <ss23> yeah
1019: [23:02:08] <ss23> did that
1020: [23:02:14] <ss23> Still confused as to how the hell users even got there..
1021: [23:02:22] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/security/Security.php#L259
1022: [23:02:23] <simon_w> It's weirdness due to Apache deciding that it'll look for an IndexFile first, then try rewriting
1023: [23:02:25] <Pyromanik> this isn't working for me :<
1024: [23:02:37] <Pyromanik> what is doing wrongs?
1025: [23:03:08] <batbadger> is there a general method for converting an arbitrary string into lowercase dash separated?
1026: [23:03:09] <ss23> Pyromanik: As in what? You're trying to trigger a permissionFailure manually and it's not giving the message?
1027: [23:03:21] <batbadger> i could just regex it up
1028: [23:03:27] <ss23> batbadger: Not general outside of SilverStripe, but it sounds like the URL thing from that description
1029: [23:03:38] <batbadger> just wondering about generating user friendly urls from product names
1030: [23:03:43] <simon_w> batbadger, Convert::raw2url
1031: [23:03:45] <Pyromanik> ss23: yeh
1032: [23:03:46] <ss23> batbadger: Yeah, SilverStripe has that
1033: [23:03:49] <Pyromanik> no content on output
1034: [23:03:55] <Pyromanik> reckons' there's no message set
1035: [23:04:04] <batbadger> thanks guys
1036: [23:05:09] <ss23> Pyromanik: Too hard for me desu
1037: [23:05:13] <batbadger> ahh that wont work
1038: [23:05:24] <Pyromanik> ss23: too hard for me too desu.
1039: [23:05:38] <Pyromanik> it's getting set in the session
1040: [23:05:44] <batbadger> can i get a base url in the silverstripe template, or do i need to make a function to do it on my controller
1041: [23:05:54] <simon_w> $BaseHref?
1042: [23:05:56] <Pyromanik> batbadger: $BaseHref
1043: [23:06:00] <batbadger> cheers
1044: [23:06:07] <Pyromanik> fuck you capslock, I had simon_w beat until you showed up :<
1045: [23:06:07] <simon_w> Not that you should need it
1046: [23:06:20] <batbadger> well i don't know how this is gonna be hosted
1047: [23:06:27] <simon_w> <% base_tag %>!
1048: [23:06:36] <batbadger> so i don't want ot just go /store/$Product or whatever
1049: [23:06:38] <batbadger> ok cool
1050: [23:07:05] <simon_w> No leading slashes on your links and everything works fine
1051: [23:07:14] <simon_w> No <% base_tag %> and all your forms break :p
1052: [23:07:23] <Pyromanik> is it a requirement to call Session::save() ?
1053: [23:07:31] <simon_w> Pyromanik, nope
1054: [23:07:31] <Pyromanik> does controller do this automagically and I just don't realise it?
1055: [23:07:36] <Pyromanik> simon_w: hmm
1056: [23:07:49] <Pyromanik> because my message is set when the page is output
1057: [23:07:59] <Pyromanik> and then unset on next load
1058: [23:08:33] <batbadger> so i could actually generate a nice url segment on write and store it in the do but remove the field from the UI so they can't manually set it eh
1059: [23:08:41] <batbadger> maybe i'm starting to think with portals
1060: [23:08:59] <Pyromanik> batbadger: yeh, but why?
1061: [23:09:11] <Pyromanik> $BaseHref, $AbsoluteLink
1062: [23:09:15] <simon_w> Mmm, lovely weather out there
1063: [23:09:18] <Pyromanik> <% base_tag %>
1064: [23:09:26] <batbadger> naah i mean just for the product url friendly name
1065: [23:09:26] <Pyromanik> Director::BaseURL()
1066: [23:09:36] <batbadger> so it's /store/great-product-item/
1067: [23:09:38] <Pyromanik> batbadger: but...
1068: [23:09:40] <Pyromanik> but
1069: [23:09:44] <Pyromanik> $Link
1070: [23:09:55] <Pyromanik> why wouldn't it be friendly?
1071: [23:10:08] <batbadger> let me look at link, sorry
1072: [23:10:50] <simon_w> Pyromanik, because it's not a Page
1073: [23:10:57] <simon_w> Need something to build $Link form
1074: [23:10:59] <simon_w> *from
1075: [23:11:53] <batbadger> yeah i think i need to store the result of raw2url
1076: [23:12:09] <batbadger> to do my compare later on on the DO to translate it into the right object
1077: [23:12:27] <batbadger> that way /great-product-item/ finds Great Product Item
1078: [23:13:19] * guci0 quit (Ping timeout: 250 seconds)
1079: [23:13:34] * Colin[pi] has joined #silverstripe
1080: [23:13:58] <atmos> n00b question, if I want to add a new jQuery validate method, where am I placing the method itself?
1081: [23:14:05] <Pyromanik> simon_w: I thought $Link was on Controller :<
1082: [23:14:18] <Pyromanik> simon_w: so why is my session message getting unset?
1083: [23:14:46] <simon_w> $Link still needs to know how to actually build the link (and it's on the DO)
1084: [23:14:54] <Pyromanik> simon_w: ah.
1085: [23:15:00] <Pyromanik> eyh
1086: [23:15:06] <simon_w> Because it gets unset after it gets displayed?
1087: [23:15:16] <Pyromanik> simon_w: but it hasn't been displayed?
1088: [23:15:37] <simon_w> [11:07:50] <Pyromanik> because my message is set when the page is output
1089: [23:15:37] <simon_w> That's not what you said!
1090: [23:15:52] <Pyromanik> I'm calling Security::permissionFailure($con = Controller::creat(), 'Awesome cool message')
1091: [23:16:27] <Pyromanik> then I'm transferring information from $con->getResponse() across to the actual $response that'll be output
1092: [23:16:45] <Pyromanik> and if I Session::get_all() and dump it, it's set at this point.
1093: [23:16:49] <Pyromanik> then the redirect happens
1094: [23:17:01] <Pyromanik> and Session::get_all() shows security message as null.
1095: [23:17:07] <Pyromanik> and I go "???"
1096: [23:17:18] <simon_w> Try calling Session::save() yourself then?
1097: [23:17:28] <Pyromanik> so it doesn't automatically save.
1098: [23:17:29] <Pyromanik> ?
1099: [23:18:06] <Pyromanik> I'm so confused.
1100: [23:18:14] <Pyromanik> 11:07 < Pyromanik> is it a requirement to call Session::save() ?
1101: [23:18:14] <Pyromanik> 11:07 < Pyromanik> does controller do this automagically and I just don't realise it?
1102: [23:18:17] <Pyromanik> 11:07 <@simon_w> Pyromanik, nope
1103: [23:18:18] <atmos> nevermind, got it :D
1104: [23:18:27] <Pyromanik> but doing it works. IDEK.
1105: [23:18:44] <simon_w> It's supposed to automatically save but there are flows that it doesn't on
1106: [23:19:54] <Pyromanik> right
1107: [23:19:58] <Pyromanik> random.
1108: [23:20:07] <Pyromanik> thanks though, works now.
1109: [23:20:10] <simon_w> Pretty much
1110: [23:20:33] * meow-- has joined #silverstripe
1111: [23:20:45] * simon_w wants his support bitch already
1112: [23:21:13] <ss23> What? AM I NOT GOOD ENOUGH? :<
1113: [23:21:22] <meow--> Has anyone got experience with getting silverstripe 2.4 running on hiphop vm?
1114: [23:21:33] <Colin[pi]> "am i not prettty enough"
1115: [23:21:40] <simon_w> ss23, you're not my support bitch!
1116: [23:21:52] <ss23> Do I cry too much?
1117: [23:21:54] <ss23> IS MY HEART TOO BROKEN?
1118: [23:22:02] <ss23> meow--: Hmmmmmmmmm
1119: [23:22:09] <simon_w> meow--, SilverStripe uses things that HHVM doesn't play nice with
1120: [23:22:14] <ss23> simon_w: How is hhvm with return pass by reference hacks?
1121: [23:22:25] <simon_w> No idea, we're not using hacks
1122: [23:22:29] <ss23> Because thats the biggest issue I can see with 2.4
1123: [23:22:42] <simon_w> Recursive magic methods.
1124: [23:22:51] <ss23> hhvm should handle them fine, right?
1125: [23:22:54] <ss23> Slow, but handle them?
1126: [23:23:10] <simon_w> Nope
1127: [23:23:12] <ss23> Lame
1128: [23:23:33] <simon_w> They decide not to do things like that so they can do better stuff with the compiler
1129: [23:23:51] <simon_w> Like not allowing eval unless you explicitly turn it on
1130: [23:24:47] <meow--> i think i saw a link to a forked version of hhvm i was just wondering if theres anyway to get it to run on stock hhvm
1131: [23:25:35] <simon_w> And then 3.0 is even more annoying to get going, since no ext/mysqli
1132: [23:25:46] <simon_w> And a broken crypt()
1133: [23:27:18] <ss23> What, HHVM has no mysqli?
1134: [23:27:24] <ss23> What does it have, just mysql_* and PDO?
1135: [23:27:45] <simon_w> Yup
1136: [23:28:48] <ss23> Eh, only noobies use mysqli anyway, so it's okay
1137: [23:28:49] <ss23> ^.^
1138: [23:31:36] <simon_w> FB use an internal-only version of ext/mysql and no one's bothered to port ext/mysqli
1139: [23:31:52] <atmos> If I've created an addMethod validation rule, how do I call it on a field? Like this? http://www.sspaste.com/paste/show/521fd8a97976f
1140: [23:33:17] * joelpittet quit (Remote host closed the connection)
1141: [23:37:30] <atmos> anyone?
1142: [23:40:44] <ss23> No idea :<
1143: [23:41:00] * priithansen quit (Quit: priithansen)
1144: [23:44:03] * chillu quit (Quit: chillu)
1145: [23:44:17] * travis-ci has joined #silverstripe
1146: [23:44:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#897 (3.1 - b2f207a : Ingo Schommer): The build passed.
1147: [23:44:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4ff7b43c441a...b2f207af3097
1148: [23:44:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10776790
1149: [23:44:18] * travis-ci has left #silverstripe
1150: [23:45:20] <nhorstmeier> has anyone experienced issues with editing a DO in model admin after using the search
1151: [23:45:23] <atmos> I would have thought you just add a new method to additonal-methods.js and call it on a field. Never that simple I suppose.
1152: [23:46:39] * meow--- has joined #silverstripe
1153: [23:47:53] <ss23> meow--: To reiterate, I doubt anyone has experience, and it'll be a significant undertaking, but if you do it, please share your results
1154: [23:48:28] * meow-- quit (Ping timeout: 264 seconds)
1155: [23:54:08] * mdowton has joined #silverstripe
1156: [23:57:06] * nickspiel quit (Ping timeout: 245 seconds)

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