#silverstripe IRC Log

IRC log for 6 May 2013

All timestamps are in UTC.

1: [00:06:00] * Zauberfisch-idle has joined #silverstripe
2: [00:09:00] <Pyromanik> name your templates in the fashion: PageName_action.ss
3: [00:09:00] <Pyromanik> EasyCo: if they're actions of a controller
4: [00:10:00] <Pyromanik> if they're all physical pages, then it's a bit harder, yeh.
5: [00:10:00] <EasyCo> Pyromanik: How will it know where to nest that page?
6: [00:10:00] <Pyromanik> EasyCo: well you used the word 'action'
7: [00:10:00] <Pyromanik> because templates operate from the controller name (by default, modified in contentcontroller to go by page name)
8: [00:11:00] <Pyromanik> more than used it, you if'd it.
9: [00:11:00] <Pyromanik> and just as I was explaining, and as you know, templates go by page/controller type.
10: [00:11:00] <Pyromanik> these urls
11: [00:11:00] <Pyromanik> so I'm assuming that the are actions.
12: [00:13:00] <simon_w> Woo, just going through sapphire, deleting random stuff
13: [00:13:00] <EasyCo> if I use the naming convention
14: [00:13:00] <EasyCo> So within the mechanics.ss template, would I just include with <% include Action %> ?
15: [00:15:00] * DesignerX has joined #silverstripe
16: [00:17:00] * UncleCheese has joined #silverstripe
17: [00:18:00] <Pyromanik> EasyCo: no
18: [00:19:00] <Pyromanik> tries to find a template for that
19: [00:19:00] <Pyromanik> falls back to controller
20: [00:19:00] <Pyromanik> default template finding code
21: [00:19:00] <Pyromanik> acutally no
22: [00:19:00] <Pyromanik> contentcontroller (the parent for all *Page_Controller P{
23: [00:19:00] <Pyromanik> falls back to parent class controller...
24: [00:19:00] <EasyCo> Haha yah, that didn't work. I've just been doing a lot of EmberJS work lately so I have to change the way I think about my templates here.
25: [00:19:00] <Pyromanik> goes by controller name
26: [00:19:00] <Pyromanik> looks at current action
27: [00:19:00] <Pyromanik> etc
28: [00:20:00] <EasyCo> of course, just sayin', thx for your help.
29: [00:20:00] <Pyromanik> yeah well JS apps are completely different in just about every aspect.
30: [00:20:00] <Pyromanik> you're welcome
31: [00:21:00] <Pyromanik> as you $Layout
32: [00:21:00] <Pyromanik> so if they are actually controller actions (eg class Mechanic_controller{ function diesel() {...}}), Mechanic_diesel.ss will work.
33: [00:22:00] <Pyromanik> otherwise (presumably) Page.ss
34: [00:22:00] <Pyromanik> etc
35: [00:22:00] <Pyromanik> as your*
36: [00:22:00] <Pyromanik> otherwise Mechanic.ss
37: [00:23:00] <EasyCo> I was just hoping you could nest $Layout or something like $Action. So the action template gets loaded within it's parent where the action comes from
38: [00:23:00] <EasyCo> Ok yah that's what I thought
39: [00:32:00] <irogue> ^ is what i'm yelling a lot to people on the phone right now
40: [00:32:00] <irogue> WHAT
41: [00:32:00] <irogue> I CAN'T HEAR YOU OVER THE RAIN
42: [00:46:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
43: [01:00:00] * travis-ci has left #silverstripe
44: [01:00:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fe2663a1404a...b5a83878dddc
45: [01:00:00] <travis-ci> [travis-ci] silverstripe/sapphire#2133 (3.1 - b5a8387 : Sam Minnee): The build passed.
46: [01:00:00] * travis-ci has joined #silverstripe
47: [01:00:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6909060
48: [01:06:00] <Pyromanik> I'm assuming that's where it went
49: [01:06:00] <Pyromanik> irogue: are they in Nelson?
50: [01:06:00] * spronk quit (Ping timeout: 264 seconds)
51: [01:06:00] <Pyromanik> just about had to swim to work, now it's barely raining
52: [01:07:00] * spronk2 quit (Ping timeout: 268 seconds)
53: [01:07:00] <simon_w> Pyromanik, it's been everywhere
54: [01:08:00] * spronk2 has joined #silverstripe
55: [01:09:00] <simon_w> The BNZ down the road had some water damage or something
56: [01:11:00] <irogue> auckland and wellington are both underwater
57: [01:11:00] <irogue> Pyromanik: everywhere
58: [01:11:00] <simon_w> glugg glugg
59: [01:11:00] * irogue checks the hamiltron webcam
60: [01:12:00] <Pyromanik> irogue: heh
61: [01:12:00] <Pyromanik> :<
62: [01:12:00] <Pyromanik> now drown
63: [01:12:00] <Pyromanik> no rain all summer
64: [01:12:00] <Pyromanik> good times
65: [01:13:00] <irogue> yeah
66: [01:13:00] <Pyromanik> irogue: hahaha, naturally
67: [01:13:00] * spronk has joined #silverstripe
68: [01:13:00] <simon_w> Someone needs to clean the lens on http://citylink.co.nz/citylink-experience/webcams/mount-victoria-tunnel
69: [01:13:00] <irogue> naturally, right above server room
70: [01:13:00] <irogue> building is leaking
71: [01:15:00] <simon_w> Ooh, I can watch trains! :D http://citylink.co.nz/citylink-experience/webcams/aotea-quay-ramps-motorway-overpass
72: [01:17:00] * SticksM has joined #silverstripe
73: [01:23:00] <irogue> i don't think i can watch trains
74: [01:23:00] <irogue> naww, lucky
75: [01:24:00] <irogue> ferries, yes, but not trains
76: [01:24:00] <irogue> need a britomart webcam
77: [01:24:00] * UncleCheese quit (Quit: UncleCheese)
78: [01:27:00] * spronk quit (Read error: Connection reset by peer)
79: [01:27:00] * spronk2_ has joined #silverstripe
80: [01:27:00] * spronk2 quit (Read error: Connection reset by peer)
81: [01:29:00] <Pyromanik> err, .co.nz maybe
82: [01:29:00] <Pyromanik> HIRARIUZ
83: [01:29:00] <Pyromanik> disable JS for britomart.com and refresh
84: [01:29:00] <Pyromanik> oh, chrome user
85: [01:29:00] <Pyromanik> irogue: use noscript?
86: [01:31:00] * eikonos has joined #silverstripe
87: [01:31:00] * eikonos quit (Read error: Connection reset by peer)
88: [01:31:00] * howardgrigg has joined #silverstripe
89: [01:31:00] <Pyromanik> oh wtf, it's a .org
90: [01:31:00] * eikonos has joined #silverstripe
91: [01:31:00] * eikonos quit (Changing host)
92: [01:32:00] * Zauberfisch-idle has joined #silverstripe
93: [01:32:00] * Zauberfisch-idle quit (Read error: Connection reset by peer)
94: [01:34:00] * Zauberfisch-idle quit (Read error: Connection reset by peer)
95: [01:34:00] * Zauberfisch-idle has joined #silverstripe
96: [01:36:00] * eikonos quit (Ping timeout: 256 seconds)
97: [01:38:00] * spronk2_ quit (Ping timeout: 256 seconds)
98: [01:40:00] * irogue tries this javascriptless britomart.org
99: [01:40:00] <irogue> Pyromanik: i meant britomart station not britomart precinct ;)
100: [01:41:00] <ss23> oh jesus
101: [01:41:00] <ss23> how can you make a site fail that bad with no JS on
102: [01:42:00] <ss23> I'm totally part of the "if you browse without JS you're dumb and we shouldn't go out of our way for you", but it's *hard* to make a site fail that bad
103: [01:42:00] <simon_w> You want to see almost any modern site fail bad?
104: [01:42:00] <simon_w> Turn CSS off.
105: [01:42:00] <irogue> wow
106: [01:42:00] <ss23> lol simon_w
107: [01:42:00] <simon_w> firetruck!
108: [01:42:00] <irogue> they failed at intertubes
109: [01:43:00] <ss23> simon_w: Whats this talk about firetruck you say about?
110: [01:43:00] <simon_w> I'm a block away from one of Wellington's major stations
111: [01:43:00] <ss23> I saw you mention firetruck on twitter too
112: [01:45:00] <ss23> Thats almost two blocks away, simon_w :O
113: [01:45:00] <ss23> irogue: Do I need to do anything for hackfest btw?
114: [01:45:00] <ss23> Also what about PC during hackfest?
115: [01:45:00] <simon_w> I'm almost two blocks away from another major one!
116: [01:45:00] <ss23> oic
117: [01:46:00] <ss23> :OOO
118: [01:46:00] <ss23> I've been to the Wellington CBD.
119: [01:46:00] <ss23> It's more good than Hamiltons one
120: [01:46:00] <simon_w> (Not really. Wellington CBD isn't that small)
121: [01:47:00] <simon_w> :D
122: [01:47:00] <ss23> lol
123: [01:47:00] <simon_w> Duh, it's not in Hamilton
124: [01:48:00] <simon_w> Also, 25th. Put it in your calendar
125: [01:48:00] <ss23> simon_w: Why? irogue will IRC me when he comes to get me
126: [01:49:00] <ss23> you may be right
127: [01:49:00] <ss23> :D
128: [01:49:00] <ss23> I'll be like "oh that was today" and go shower etc
129: [01:49:00] <simon_w> Because you're likely to be asleep?
130: [01:49:00] <ss23> hmm
131: [01:49:00] <ss23> damn,
132: [01:50:00] <simon_w> So maybe you should check with irogue for an approximate time to be awake for
133: [01:50:00] <ss23> yeah
134: [01:51:00] <Colin[pi]> who here freelances?
135: [01:51:00] <Colin[pi]> lol
136: [01:51:00] <simon_w> ss23 pretends to!
137: [01:51:00] * Motoservo quit (Ping timeout: 252 seconds)
138: [01:51:00] <ss23> I'll have to try make my sleeping schedule line up for it
139: [01:52:00] <simon_w> Yeah. Do you know how much work I end up doing for people? :p
140: [01:52:00] <simon_w> I think most people do?
141: [01:52:00] <ss23> I am a professional freelance pretender
142: [01:52:00] <Colin[pi]> most people pretend to freelance?
143: [01:52:00] <ss23> Though I actually have jobs for the next week or two (or more depending on how lazy I am)
144: [01:52:00] <ss23> lol
145: [01:53:00] <Colin[pi]> I've always said, my job would be PERFECT... without clients
146: [01:53:00] <ss23> one week and still hafven't got designs, what do people think..
147: [01:53:00] <ss23> idek
148: [01:53:00] <ss23> Got an email yesterday - "anything else you need for this site? they expect it done in a week from now", and I'm like "yeah, the designs might be nice"
149: [01:54:00] <ss23> lol Colin[pi]
150: [01:55:00] <irogue> idk about you but i'll have my laptop for me :P
151: [01:55:00] <irogue> [13:45] <ss23> Also what about PC during hackfest?
152: [01:57:00] * spronk2 has joined #silverstripe
153: [01:58:00] <Pyromanik> netbook like a boss
154: [01:59:00] <Colin[pi]> netbook, eeuw
155: [02:00:00] * Minizeka|Sleepin quit (Ping timeout: 245 seconds)
156: [02:08:00] <ss23> I need a PC?!
157: [02:08:00] <ss23> dammit
158: [02:08:00] <ss23> fff
159: [02:09:00] <ss23> simon_w: Can I borrow one of your machines? <3
160: [02:12:00] <simon_w> You want me to lend you a mac?
161: [02:18:00] <irogue> ss23 loves mac
162: [02:20:00] * spronk2 quit (Ping timeout: 276 seconds)
163: [02:27:00] * spronk2 has joined #silverstripe
164: [02:29:00] <ss23> simon_w: idc, as long as I can ssh on it :D
165: [02:29:00] <mobiusnz> what format do you put the $to in if you want to email multiple people? $email = new Email($from, $to, $subject, $body);
166: [02:30:00] <mobiusnz> right
167: [02:30:00] <DesignerX> hi, is there a built in feature to Make a list of fields readonly based on a dropdown selection or checkbox ?
168: [02:30:00] <simon_w> it's verbatim
169: [02:30:00] <simon_w> mobiusnz, whatever goes into the To: header
170: [02:31:00] <Pyromanik> otherwise it's up to JS
171: [02:31:00] <Pyromanik> DesignerX: not unless you submit and refresh the admin interface between setting the dropdown and moving to the rest of the form
172: [02:33:00] <DesignerX> Pyromanik: would be a good idea to create a function to pass in the Dropdownfield element id & a list of element to hid based on dropdown.onchange() ?
173: [02:34:00] <Pyromanik> yep?
174: [02:35:00] * eikonos has joined #silverstripe
175: [02:35:00] * eikonos quit (Changing host)
176: [02:35:00] * eikonos has joined #silverstripe
177: [02:36:00] <DesignerX> I am lost to what I should call this function & should I make it extend dropdownfield / check field so I cna do CheckboxField(...)->HideShow(array(List of fields)
178: [02:43:00] <DesignerX> public function getCMSValidator() {
179: [02:43:00] <DesignerX> }
180: [02:43:00] <DesignerX> return new RequiredFields('Title');
181: [02:43:00] <DesignerX> anopther question : why this doesnt make the field required ? I can still save the object without title
182: [03:00:00] * spronk has joined #silverstripe
183: [03:03:00] <mobiusnz> is there a fast way to delete all items in a has_many?
184: [03:04:00] <Pyromanik> nah, I dunno. I think I've asked the same question to simon_w before, but I can't remember the answer.
185: [03:04:00] <Pyromanik> $dos->obliterate() ?
186: [03:04:00] <simon_w> Delete or remove?
187: [03:04:00] <Pyromanik> I think you just gotta foreach()
188: [03:06:00] <simon_w> So, which one do you want?
189: [03:06:00] <mobiusnz> I want it gone from the db
190: [03:06:00] <mobiusnz> not sure what the diff between delete or remove is
191: [03:06:00] <mobiusnz> removed or deleted I don't car
192: [03:06:00] <simon_w> Delete deletes the object, remove removes the relationship
193: [03:06:00] <mobiusnz> ok
194: [03:07:00] <simon_w> Then you'll need to foreach() and ->delete()
195: [03:07:00] <mobiusnz> I want to delete all items in a relationship (they don't make sense if they're not attached to the parent object)
196: [03:07:00] <mobiusnz> k
197: [03:10:00] <mobiusnz> can I not use DataList::removeAll() ?
198: [03:10:00] <mobiusnz> looks like a delete to me
199: [03:10:00] <mobiusnz> if($item instanceof $this->dataClass) $item->delete();
200: [03:10:00] <simon_w> That's a remove, not a delete
201: [03:10:00] <mobiusnz> eg $this->relation()->removeAll()
202: [03:11:00] <mobiusnz> oh
203: [03:12:00] <mobiusnz> looks like HasManyList overrides that
204: [03:31:00] <mobiusnz> what's the best way in SS to have a form process input and then just display it on the same page, without saving objects to the database?
205: [03:38:00] <simon_w> In your form handler, return array('Key' => $whaterver)
206: [03:39:00] * cloph_away has joined #silverstripe
207: [03:40:00] * cloph_away1 quit (Ping timeout: 268 seconds)
208: [03:44:00] <EasyCo> The Files menu item on the left has a drop down functionality. I don't have this on my local copy, is it a plugging? http://multilingual.kbweb.se/admin/assets/ User: admin pass: password
209: [03:45:00] <simon_w> EasyCo, which version's your local copy?
210: [03:45:00] <EasyCo> 3.0
211: [03:47:00] <simon_w> Which one?
212: [03:47:00] <simon_w> Hover over the SS logo in the sidebar
213: [03:48:00] <EasyCo> 3.0.5
214: [03:49:00] <simon_w> Then I'd say that got removed in either 3.0.4 or 3.0.5
215: [03:49:00] <EasyCo> That's too bad. I like.
216: [03:49:00] <Pyromanik> the dropdown was pointless anyways
217: [03:50:00] <simon_w> Pretty much
218: [03:51:00] <EasyCo> I disagree. Although the same actions can be found in the main side, the drop down menu can be used to add emphasis on important/major actions.
219: [03:51:00] <EasyCo> But yah, no biggy.
220: [03:52:00] <DesignerX> How can I stop GF from auto loading the fields/tabs of the object in manages ?
221: [03:52:00] <simon_w> DesignerX, you can't. You specify the entire form in your getCMSFields(), and that's what gets rendered
222: [03:54:00] <DesignerX> getCMSFields() setting on the objects are getting ignored
223: [03:54:00] <DesignerX> I set the Tab name & order of fields using getCMSFields() on the object but nothing changes
224: [03:55:00] <simon_w> Are you on the correct object?
225: [03:59:00] <simon_w> So remove that tab?
226: [03:59:00] <DesignerX> yep. I have the following : ModelAdmin has GadgetsArea , GadgetsArea has_many Gadgets .. now on GadgtesArea , I can set the GF to go on MyTabName but ModelAdmin still creates an empty tab for GadgetsArea
227: [04:00:00] <simon_w> It's not ModelAdmin adding it
228: [04:01:00] <mobiusnz> any ideas why return $this->customise(array("Quote" => $quote)); would result in <% if Quote %> being false in the template? I can Debug::show($quote) and it comes up fine
229: [04:01:00] <DesignerX> ok,I can do that.. :) ty
230: [04:02:00] <mobiusnz> and $Quote.SomeProperty gives me a response
231: [04:04:00] <simon_w> Needs an ID to exist (by default)
232: [04:04:00] <simon_w> because it doesn't exist
233: [04:04:00] <mobiusnz> right
234: [04:04:00] <ss23> simon_w: Was that a yes by the way? If not I'll need to find another PC to use
235: [04:04:00] <simon_w> ss23, if you're fine using an Air
236: [04:04:00] <simon_w> And I may need to leave early
237: [04:05:00] <simon_w> Potentially, about 3.15
238: [04:05:00] <ss23> simon_w: How early? :O
239: [04:06:00] <ss23> ;_;
240: [04:06:00] <ss23> I forget you people sleep properly
241: [04:06:00] <ss23> AM?
242: [04:06:00] <ss23> No, PM I'm guessing
243: [04:07:00] <DesignerX> I have problem with RequiredFields(); this simple code doesnt work! http://www.sspaste.com/paste/show/51872c1d30357
244: [04:07:00] <ss23> simon_w: Okay, um, is it okay if I see if I can borrow on from a friend, and if not, could I use yours? (I'll let you know beforehand)
245: [04:07:00] <simon_w> yeah
246: [04:08:00] <simon_w> Probably because you're using something that doesn't use getCMSValidator
247: [04:10:00] * kerosene has joined #silverstripe
248: [04:20:00] <simon_w> Not in a GridField
249: [04:20:00] <DesignerX> simon_w: using The example above : GadgetsArea has_many Gadgets .. Gadgets must have the Title required .
250: [04:21:00] <DesignerX> I copied this code from a working PageType from 3.0.5 .. so how would I get it working with GF?\
251: [04:23:00] <DesignerX> so I have to work out something in onBeforeWrite() to heck if the title is empty ?
252: [04:23:00] <simon_w> with great difficulty
253: [04:26:00] * wmk has joined #silverstripe
254: [04:26:00] <DesignerX> if you know any module/code that does something similar, I can read the code 7 learn from it ..
255: [04:39:00] <Colin[pi]> every time I come back to IRC and see people talking about "GF" I think they mean their girlfriends
256: [04:40:00] <DesignerX> I wish
257: [04:40:00] <Colin[pi]> I was like "your GF is helping you code?"
258: [04:40:00] <DesignerX> haha
259: [04:40:00] <Colin[pi]> "I copied this code from a working PageType from 3.0.5 .. so how would I get it working with GF?"
260: [04:40:00] <DesignerX> my*
261: [04:40:00] <DesignerX> nope.. leave mg GF out of this :D
262: [04:42:00] <Colin[pi]> mine started playing Tomb Raider last night
263: [04:43:00] <Colin[pi]> I thought she'd hate it, she ended up playing for almost 2 hours
264: [04:43:00] <Colin[pi]> :\
265: [04:46:00] <DesignerX> 2 hours... only
266: [04:46:00] <DesignerX> I though that 2 missing a zero
267: [04:46:00] <Colin[pi]> she's not a gamer, so it's impressive hehe
268: [04:46:00] <Colin[pi]> nek minnut, she addicted :C
269: [04:56:00] * Shrike_Finland quit (Quit: Leaving.)
270: [04:58:00] * mobiusnz quit (Quit: Leaving.)
271: [05:00:00] * wmk quit (Ping timeout: 252 seconds)
272: [05:04:00] * nickmolhoek quit (Quit: nickmolhoek)
273: [05:06:00] <DesignerX> this doesnt seem to work, I have the files & did a flush .. it wonly work if I replace Gallery with Page .. any other file name doesnt work
274: [05:06:00] <DesignerX> anyone used SSViewer::getTemplateFileByType('Gallery', 'Layout');
275: [05:14:00] * willr_ quit (Quit: willr_)
276: [05:17:00] <FrozenFire> I've never called SSViewer directly like that
277: [05:17:00] <DesignerX> I need a way to get full path of a template , any another function to list all templates in a folder
278: [05:17:00] <FrozenFire> Any particular reason you're doing that?
279: [05:18:00] <irogue> i have a customer who always calls me "big boy"
280: [05:18:00] <FrozenFire> Just trying to get a sense of what you're doing
281: [05:18:00] <irogue> and another one who calls me "stud"
282: [05:18:00] <DesignerX> need an object to have a dropdown with possible templates to render with
283: [05:18:00] <FrozenFire> Any particular reason why?
284: [05:18:00] <FrozenFire> Better than sweetheart
285: [05:19:00] <irogue> i feel like this would not be normal in most industries
286: [05:19:00] <FrozenFire> DesignerX, I would figure you could just glob the Layout folder in the current theme?
287: [05:20:00] <DesignerX> FrozenFire: this si what I'm working on now.. I plan to extend SSViewer with these functions
288: [05:20:00] <FrozenFire> foreach(glob(SSViewer::get_theme_folder()."/templates/Layout/*.ss") as $file) { $name = basename($file, ".ss"); ... }
289: [05:25:00] <DesignerX> to add *
290: [05:25:00] <DesignerX> can I use DataExtention to ass Static functions to an existing class ?
291: [05:26:00] <FrozenFire> You'd do a __call passthrough.
292: [05:26:00] <FrozenFire> Kinda-sorta?
293: [05:27:00] <FrozenFire> Yeah.
294: [05:27:00] <FrozenFire> Just as normal
295: [05:27:00] <FrozenFire> You mean, simply adding functions through an Extension
296: [05:27:00] <DesignerX> yeh
297: [05:27:00] <FrozenFire> Oh wait
298: [05:28:00] * mobiusnz has joined #silverstripe
299: [05:29:00] <DesignerX> I get "Call to undefined method ..."
300: [05:30:00] <FrozenFire> Huh. Could've sworn that __callStatic was implemented
301: [05:30:00] * wmk has joined #silverstripe
302: [05:30:00] <FrozenFire> Apparently not.
303: [05:31:00] <DesignerX> so now , I have no make a new class ?
304: [05:31:00] <FrozenFire> Why are you using a static method?
305: [05:32:00] <DesignerX> I though this should be static
306: [05:32:00] <DesignerX> I just need the function to return a list of file names ..
307: [05:33:00] <FrozenFire> Ordinarily I'd agree
308: [05:34:00] <FrozenFire> But you're butting up against a limitation of the framework
309: [05:34:00] <FrozenFire> So it's okay.
310: [05:34:00] <DesignerX> so back to creating my own class ?
311: [05:35:00] <FrozenFire> And call it directly.
312: [05:35:00] <FrozenFire> Nah. Just make it non-static?
313: [05:35:00] <FrozenFire> Or just make it static
314: [05:35:00] <FrozenFire> Static means it doesn't actually relate to any particular instance
315: [05:36:00] <DesignerX> yeh i get that part.. that is why I thought it should be static .
316: [05:36:00] <DesignerX> call it directly?
317: [05:37:00] <FrozenFire> SomeClass::someMethod()
318: [05:38:00] <FrozenFire> If you're in the class's scope
319: [05:38:00] <FrozenFire> Or self::MyFunction()
320: [05:38:00] <FrozenFire> Yep
321: [05:38:00] <DesignerX> so ExtendSSViewer::MyFunction() ?
322: [05:38:00] <DesignerX> I have class ExtendSSViewer extends DataExtension {
323: [05:38:00] <FrozenFire> Which you almost certainly are
324: [05:45:00] <DesignerX> FrozenFire: glob(SSViewer::get_theme_folder() . "/templates/Layout/*") is returning null
325: [05:47:00] <FrozenFire> For instance, you might not need the leading /
326: [05:47:00] <FrozenFire> Well, check what the resulting path is
327: [05:48:00] <DesignerX> I hard coded the path in , still no results
328: [05:48:00] <DesignerX> empty array
329: [05:48:00] <FrozenFire> Maybe an empty array
330: [05:48:00] <FrozenFire> You might need to precede it with the absolute path of the project
331: [05:48:00] <FrozenFire> Though, it's definitely not returning null
332: [05:49:00] <FrozenFire> E.g. glob(BASE_PATH."/themes/".SSViewer::get_theme_folder()."/templates/Layout/*")
333: [05:50:00] <FrozenFire> THEMES_PATH is actually BASE_PATH + /themes/
334: [05:50:00] <DesignerX> FrozenFire: thats it
335: [05:51:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/core/Core.php#L13
336: [05:52:00] <DesignerX> :)
337: [06:12:00] * simon_w|air has joined #silverstripe
338: [06:18:00] <EasyCo> Is there a convenience function for converting strings with spaces and replacing them with dashes? I mean I can easily just write one, but if one already exists then sweet.
339: [06:20:00] <DesignerX> EasyCo: I know this feature is used in the URL when you add a page name with space, so maybe look around the SiteTree class for an example ..
340: [06:20:00] <EasyCo> lol
341: [06:20:00] <DesignerX> or that ^
342: [06:20:00] <simon_w|air> EasyCo, URLSegmentFilter::create()->filter($string) is probably the closest thing
343: [06:21:00] <EasyCo> Thanks, so nothing I can apply directly to a template value a-la $Title.Dasherize
344: [06:22:00] * eikonos quit (Read error: Connection reset by peer)
345: [06:22:00] <simon_w|air> Nope
346: [06:23:00] * eikonos quit (Changing host)
347: [06:23:00] * eikonos has joined #silverstripe
348: [06:23:00] * eikonos has joined #silverstripe
349: [06:23:00] <DesignerX> I dont think so, but you should be able to do function Dasherize($String) then in temaplte do $Dasherize($Title)
350: [06:24:00] <EasyCo> I'll just extend string field I think and add it there.
351: [06:29:00] * chillu has joined #silverstripe
352: [06:33:00] * zfmf has joined #silverstripe
353: [06:33:00] * Shrike_Finland has joined #silverstripe
354: [06:34:00] * willr_ quit (Changing host)
355: [06:34:00] * willr_ has joined #silverstripe
356: [06:34:00] * willr_ has joined #silverstripe
357: [06:42:00] * lx-berlin_ has joined #silverstripe
358: [06:42:00] * kerosene is now known as OldTomBarman
359: [06:43:00] * OldTomBarman is now known as kerosene
360: [06:46:00] <DesignerX> FrozenFire: how can I use onBeforeWrite() to stop "saving" the object ? (trying to do RequiredFields() on an object but it doesnt work with GF)
361: [06:54:00] * lx-berlin_ quit (Ping timeout: 256 seconds)
362: [07:06:00] <EasyCo> That data extension thing is pretty cool
363: [07:22:00] * priithansen has joined #silverstripe
364: [07:23:00] <DesignerX> it doesnt seem to work .
365: [07:23:00] <DesignerX> can I do <loop MyList> $count ... ? $count should return 1,2,3...
366: [07:25:00] <willr_> $Pos
367: [07:27:00] * SticksM quit (Read error: Connection reset by peer)
368: [07:31:00] <DesignerX> willr_: ty
369: [07:54:00] * EasyCo quit (Quit: EasyCo)
370: [08:08:00] * Liquide quit ()
371: [08:29:00] * neerom has joined #silverstripe
372: [08:32:00] * neerom quit (Client Quit)
373: [08:36:00] * willr_ quit (Ping timeout: 264 seconds)
374: [08:44:00] * Zauberfisch has joined #silverstripe
375: [08:56:00] * mobiusnz quit (Read error: Connection reset by peer)
376: [08:56:00] * Bollig|DesignCty has joined #silverstripe
377: [08:56:00] * Bollig|DesignCty quit (Read error: Connection reset by peer)
378: [08:56:00] * mobiusnz has joined #silverstripe
379: [09:02:00] * SightUnseen has left #silverstripe
380: [09:02:00] * SightUnseen has joined #silverstripe
381: [09:13:00] * Zauberfisch quit (Ping timeout: 252 seconds)
382: [09:19:00] * lx-berlin_ has joined #silverstripe
383: [09:25:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
384: [09:33:00] * kerosene quit (Quit: Lost terminal)
385: [09:44:00] * Zauberfisch-idle has joined #silverstripe
386: [09:53:00] * gelignite has joined #silverstripe
387: [09:55:00] <lx-berlin_> is anyone using PhpStorm on linux ? yesterday java was updated to 1.8.0-ea . Now phpstorm doesnt start anymore. Has anyone the same problems. Maybe someone tried the EAP version instead
388: [09:58:00] * r3v3rb has joined #silverstripe
389: [10:05:00] * g4b0 has joined #silverstripe
390: [10:08:00] * r3v3rb quit (Quit: r3v3rb)
391: [10:09:00] <g4b0> hi all
392: [10:20:00] * kerosene has joined #silverstripe
393: [10:35:00] <lx-berlin_> hi all, has anyone ever check the cookie lifetime of the _utmv cookie from google analytics ? according to google it has a lifetime of 2 years https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage
394: [10:36:00] <lx-berlin_> but if you change your browser to confirm every single cookie, it looks as if the cookie has a lifetime of 0 seconds
395: [10:49:00] <lx-berlin_> nevermind. I think the cookie will always be set. But if you dont use userdefined reports in GA, the cookie has a lifetime of 0 seconds
396: [10:52:00] <Colin[pi]> it's only populated when the DO is created, right? and never touched again?
397: [10:52:00] <Colin[pi]> anyone see a problem using DO's Created date with a field? i.e. instead of having a second CreatedDate field (i.e. for a news article)
398: [11:11:00] * cloph_away is now known as cloph
399: [11:19:00] * gumble quit (Ping timeout: 255 seconds)
400: [11:38:00] * osterlaus has joined #silverstripe
401: [12:11:00] * Colin[pi] quit (Ping timeout: 256 seconds)
402: [12:12:00] * UncleCheese has joined #silverstripe
403: [12:19:00] * UndefinedOffset has joined #silverstripe
404: [12:20:00] * jrthomer quit (Remote host closed the connection)
405: [12:25:00] * kerosene quit (Ping timeout: 256 seconds)
406: [12:25:00] <UncleCheese> chillu: how realistic is an i18nTextCollector that merges in new translations, instead of creating a new file every time?
407: [12:27:00] <chillu> UncleCheese: Its a necessity for any further 3.1 pushes of master files to getlocalization, actually. Because we'd otherwise remove existing master strings for CTF etc, which means we can no longer backport new translations to 3.0 (and there's no way for users to contribute translations to 3.0 via getlocalization)
408: [12:27:00] * kerosene has joined #silverstripe
409: [12:27:00] * jrthomer has joined #silverstripe
410: [12:28:00] <UncleCheese> right! hadn't thought of that. so is this something that's in the works?
411: [12:29:00] <chillu> https://github.com/silverstripe/sapphire/issues/1838
412: [12:29:00] <chillu> I'd love to get help on it, if you have time - but it'll likely have to be resolved before 3.1 final
413: [12:30:00] <chillu> When's the big move btw? :)
414: [12:32:00] <UncleCheese> we fly on 2 July
415: [12:32:00] <UncleCheese> arrive 4 July :)
416: [12:33:00] <UncleCheese> it's crazy here.. lots of packing, selling, and getting rid of stuff
417: [12:34:00] <chillu> Its liberating, isn't it?
418: [12:34:00] <chillu> And crazy, yes??? when I moved over, I just had a backpack, so was a liiiittle bit easier
419: [12:44:00] * DesignerX quit (Ping timeout: 256 seconds)
420: [12:49:00] * Shrike_Finland quit (Quit: Leaving.)
421: [12:50:00] <UncleCheese> yeah, i have to admit.. it's super stressful, but there's something really nice about downsizing
422: [12:50:00] <UncleCheese> we want to be more mobile in NZ because we don't know how often we'll be moving
423: [12:50:00] <UncleCheese> where did you live while in NZ? Have any suggestions on places to look? We're having a hard time finding nice places to live on TradeMe.
424: [12:56:00] <chillu> (moving this to skype)
425: [13:03:00] * lx-berlin_ has left #silverstripe
426: [13:05:00] <zfmf> some used treedropdown on frontend?
427: [13:15:00] * osterlaus quit (Quit: Leaving.)
428: [13:19:00] * k2h has joined #silverstripe
429: [13:19:00] <k2h> hey
430: [13:19:00] <k2h> i need help to generate sepia image on silverstripe
431: [13:19:00] * osterlaus has joined #silverstripe
432: [13:20:00] <k2h> i have no problem to generate greyscale, but how to do with sepia?
433: [13:21:00] <osterlaus> using a dataextension to image, it can be added to the usual images
434: [13:21:00] <osterlaus> k2h: if you have a function to generate sepia, just integrate it the same way
435: [13:23:00] <k2h> for now i have DataExtension with my function generateCustomImage(GD $gd)
436: [13:23:00] <k2h> thats the thing i cant find function for sepia
437: [13:24:00] <k2h> return $gd->greyscale(); // greyscale
438: [13:24:00] <osterlaus> soooo.... you should write one :)
439: [13:24:00] <osterlaus> but thats no silverstripe problem
440: [13:24:00] <k2h> mhm
441: [13:25:00] <osterlaus> see, for example, http://snipplr.com/view/19068/
442: [13:25:00] <k2h> =]
443: [13:26:00] <k2h> tnx
444: [13:26:00] <k2h> il try
445: [13:45:00] * Zauberfisch has joined #silverstripe
446: [13:55:00] * k2h quit (Ping timeout: 264 seconds)
447: [13:59:00] * Zauberfisch quit (Read error: Connection reset by peer)
448: [13:59:00] * Zauberfisch has joined #silverstripe
449: [14:03:00] * osterlaus has left #silverstripe
450: [14:05:00] * Zauberfisch has joined #silverstripe
451: [14:05:00] * Zauberfisch quit (Remote host closed the connection)
452: [14:09:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
453: [14:18:00] * Zauberfisch-idle has joined #silverstripe
454: [14:28:00] <zfmf> can versioned extension also be used to log all delete and update operations from all users in frontend?
455: [14:29:00] * willmorgan has joined #silverstripe
456: [14:30:00] * Nivery has joined #silverstripe
457: [15:29:00] <FrozenFire> zfmf, It could, but I'd recommend against it.
458: [15:36:00] <zfmf> FrozenFire: ok now im writing a new dataextension for it.
459: [15:37:00] <zfmf> another question can i add more then one dataextensions for a dataobject?
460: [15:37:00] <FrozenFire> You can add an infinite number of DataExtensions
461: [15:39:00] <zfmf> ok thanks ;)
462: [15:43:00] * DesignerX has joined #silverstripe
463: [15:47:00] * mobiusnz quit (Quit: Leaving.)
464: [16:01:00] * spronk quit (Ping timeout: 264 seconds)
465: [16:01:00] * gumble has joined #silverstripe
466: [16:02:00] * spronk2 quit (Ping timeout: 256 seconds)
467: [16:02:00] <DesignerX> hi guys.. using FG, how can I make many_many relation provide a box to link/search exisitng objects ?
468: [16:02:00] <DesignerX> GF *
469: [16:03:00] * spronk2 has joined #silverstripe
470: [16:03:00] * jrthomer quit (Remote host closed the connection)
471: [16:04:00] * g4b0 quit (Quit: Sto andando via)
472: [16:04:00] <FrozenFire> DesignerX, GridFieldConfig_RelationEditor should do that for you...
473: [16:04:00] <FrozenFire> But ultimately it's GridFieldAddExistingAutocompleter
474: [16:05:00] <DesignerX> FrozenFire: RelationEditor gives me error when using the GF component "GridFieldCopyButton"
475: [16:06:00] <FrozenFire> Since the copy button component provides its own
476: [16:06:00] <FrozenFire> Are you adding in the copy button component?
477: [16:06:00] <DesignerX> yeh
478: [16:06:00] <FrozenFire> You would need to remove the existing GridFieldDetailForm
479: [16:07:00] <DesignerX> ah..kk
480: [16:14:00] * Zauberfisch quit (Remote host closed the connection)
481: [16:17:00] <DesignerX> FrozenFire: GridFieldAddExistingAutocompleter doesnt seem listed in 'GridFieldConfig_RealtionEditor' and no AutoComplete show us.. but then I dont set the gfCOnfig, the default setting provided by GF provdes the autoCompleter !
482: [16:17:00] * spronk2 quit (Ping timeout: 248 seconds)
483: [16:18:00] * mobiusnz has joined #silverstripe
484: [16:18:00] <FrozenFire> http://api.silverstripe.org/master/class-GridFieldAddExistingAutocompleter.html
485: [16:19:00] <FrozenFire> The default config for a ManyManyList is a GridFieldConfig_RelationEditor, and that config definitely includes a GridFieldAddExistingAutocomplter
486: [16:19:00] * spronk2 has joined #silverstripe
487: [16:20:00] <DesignerX> maybe a change in 3.1 ?
488: [16:20:00] <FrozenFire> Nope
489: [16:20:00] <DesignerX> strange ...
490: [16:20:00] <FrozenFire> http://api.silverstripe.org/master/source-class-GridFieldConfig_RelationEditor.html#220
491: [16:20:00] <FrozenFire> http://api.silverstripe.org/3.0/source-class-GridFieldConfig_RelationEditor.html#220
492: [16:26:00] * mobiusnz quit (Ping timeout: 264 seconds)
493: [16:31:00] <DesignerX> FrozenFire: thanks
494: [16:31:00] <DesignerX> I thought i was using RelationEditor , but the autoComplete added recordEditor lol :(
495: [16:36:00] * UncleCheese quit (Quit: UncleCheese)
496: [16:37:00] * Guest46770 has joined #silverstripe
497: [16:37:00] * irogue quit (Ping timeout: 252 seconds)
498: [16:39:00] * zfmf has left #silverstripe
499: [16:46:00] * Guest46770 quit (Ping timeout: 248 seconds)
500: [16:46:00] * irogue has joined #silverstripe
501: [16:48:00] * jrthomer has joined #silverstripe
502: [16:50:00] * SphereSilver has joined #silverstripe
503: [16:50:00] * mobiusnz has joined #silverstripe
504: [16:53:00] <DesignerX> any tips if "performReadonlyTransformation()" works in model admin ?
505: [16:53:00] <SphereSilver> Anyone here willing to come to Amsterdam for a Silverstripe meetup somewhere june?
506: [16:53:00] <SphereSilver> Upside: FREE BEER!
507: [16:53:00] <SphereSilver> Downside: You have to make a presentation about something useful
508: [16:54:00] <DesignerX> lol .. the upside & downside seem fun lol
509: [16:54:00] <DesignerX> but I'm all the way in australia
510: [16:59:00] * Nivery quit (Quit: Nivery)
511: [17:00:00] * Colin[pi] has joined #silverstripe
512: [17:06:00] * laserpix has joined #silverstripe
513: [17:14:00] * Motoservo has joined #silverstripe
514: [17:15:00] * mobiusnz1 has joined #silverstripe
515: [17:17:00] * mobiusnz quit (Ping timeout: 248 seconds)
516: [17:29:00] * mobiusnz1 quit (Ping timeout: 245 seconds)
517: [17:30:00] * mobiusnz has joined #silverstripe
518: [17:33:00] * spronk2 quit (Ping timeout: 245 seconds)
519: [17:34:00] * spronk2 has joined #silverstripe
520: [17:35:00] <SphereSilver> I just ordered 64G of RAM... just because I can, not because I need it...
521: [17:35:00] <SphereSilver> I'm not a geek :'D
522: [17:39:00] <FrozenFire> Would've been smarter to get a couple of SSDs
523: [17:39:00] <FrozenFire> And RAID them
524: [17:39:00] <FrozenFire> Meh
525: [17:40:00] <FrozenFire> Anyone used SilverStripe on a read-only database?
526: [17:40:00] <FrozenFire> If so, how prone to self-shitting is it?
527: [17:45:00] * laserpix quit (Ping timeout: 245 seconds)
528: [17:49:00] * guci0 has joined #silverstripe
529: [17:49:00] <SphereSilver> FrozenFire: Guess, I have 4 SSD's in RAID 0+1 ;)
530: [17:50:00] <SphereSilver> 4x Crucial M4 256G
531: [17:51:00] <DesignerX> 3 - 2 - 1- ---> Click, I am on GitHub now :D
532: [17:51:00] <DesignerX> yep.. few sec away .. collection of what I have so far
533: [17:51:00] <SphereSilver> Good boy, any releases?
534: [17:52:00] <guci0> Hello Moto!??
535: [17:52:00] <DesignerX> working on a new "Gadgets" modules + other page types & Core classes extentions
536: [17:54:00] <DesignerX> wait... commit failed !
537: [18:01:00] <SphereSilver> that did not entirely go as planned, did it? :P
538: [18:01:00] <SphereSilver> :/
539: [18:04:00] <DesignerX> lol
540: [18:04:00] * mobiusnz has left #silverstripe
541: [18:15:00] <SphereSilver> I got time :)
542: [18:15:00] <DesignerX> SphereSilver: I have GItHub question for you if you have time
543: [18:16:00] <DesignerX> Should GitHub be directed to my Local install of SS & commit the code I work on, or do I need to copy what ever files I need updated to anothr folder then publish that ?
544: [18:17:00] <SphereSilver> You should have at least two branches.
545: [18:17:00] <SphereSilver> Master (that's your live version)
546: [18:17:00] <SphereSilver> and a Dev (or whatever you like)
547: [18:17:00] <SphereSilver> And get Sourcetree ;)
548: [18:17:00] <SphereSilver> Sourcetree helps a lot.
549: [18:17:00] <SphereSilver> Ehm, I work with branches.
550: [18:17:00] <SphereSilver> Development branch is directly my working copy
551: [18:18:00] <SphereSilver> That's way easier, also because all main IDE's support versioning, you can easily see what you are doing.
552: [18:18:00] <SphereSilver> But you should just have your local checkout be directly what you are working on in your IDE.
553: [18:18:00] <SphereSilver> Don't make copies from folder A to folder B, "so I don't screw up a live version"
554: [18:18:00] <SphereSilver> That's what branching is for.
555: [18:19:00] <SphereSilver> For everything about Git, this is a must-read: http://git-scm.com/book
556: [18:19:00] <DesignerX> I use Netbeans but I dont like the way it handle projects .. I cant set the "main Project"
557: [18:20:00] <SphereSilver> It looks better, better interface, better workflow
558: [18:20:00] <SphereSilver> No, that's where Sourcetree comes in ;)
559: [18:20:00] <DesignerX> i'm using GitHub Gui..
560: [18:20:00] <SphereSilver> Get sourcetree
561: [18:20:00] <SphereSilver> really, you'll love it.
562: [18:21:00] <SphereSilver> http://casa-laguna.net/all-the-news/show/im-in-love
563: [18:21:00] <DesignerX> it look better already (from screen shot)
564: [18:22:00] <SphereSilver> Hmmm, my website bugging out?
565: [18:22:00] <DesignerX> also, the problem with GitHub didnt work was my code folder was outside of MyDocuments/GitHub/ !!!
566: [18:23:00] <SphereSilver> No, I was being stupid, forgot to enable my shortcodes :/
567: [18:28:00] <DesignerX> good night/ morning what ever you wanna call it now :D
568: [18:28:00] <SphereSilver> that's usually a problem :P
569: [18:28:00] <SphereSilver> hahaha
570: [18:28:00] <DesignerX> ohh. no wonder I cant get Git to work.. its 4:30 am
571: [18:28:00] <SphereSilver> My website is loading SLOOOOOW :(
572: [18:29:00] <SphereSilver> check
573: [18:29:00] <SphereSilver> exactly that.
574: [18:29:00] <SphereSilver> But seriously, make a branch "development" and a branch master.
575: [18:29:00] <SphereSilver> Master is your release, development is bleeding edge unstable, and start there. And get sourcetree ;)
576: [18:29:00] <DesignerX> yeh.. then merg dev to master (Ithink) when dev is at a good stage or somthing
577: [18:29:00] <SphereSilver> Ehhhm, it's 8.30PM for me, so.... good evening
578: [18:30:00] <DesignerX> yeh.. that the reason I start to use git lol .. to get this feature :D
579: [18:30:00] <DesignerX> & have my code published at the same time
580: [18:31:00] <SphereSilver> this is my first official release. After that, they're gonna be incremental.
581: [18:31:00] <DesignerX> hope you back here in 12-14 hours.. I may need your help again :D GN for now
582: [18:31:00] <SphereSilver> If you install Git Flow, you can even use Sourcetree to make "releases"
583: [18:31:00] <SphereSilver> like my newsmodule has a "release/1.0"
584: [18:32:00] <SphereSilver> So, I have "release/{version}", these are always stable. Then there's master, that's stable, but might have features that are incomplete, and finally, development, if you want to live on the bleeding edge
585: [18:32:00] <DesignerX> wouldnt a release be just a commit ?
586: [18:32:00] <SphereSilver> Release is a branch you don't edit. It's a stable release, more stable than master
587: [18:33:00] <DesignerX> I'm still not using the corret terms .. I was thinking branch but I typed commit lol
588: [18:33:00] <SphereSilver> Branching, releases, hotfixes, etc. It all works very easily
589: [18:33:00] <DesignerX> ah ok ..
590: [18:34:00] <SphereSilver> It's easy, just install it ;)
591: [18:34:00] <SphereSilver> unless you're on Linux :/
592: [18:34:00] <SphereSilver> what program?
593: [18:34:00] <DesignerX> sounds fun.. after I can get this program to work
594: [18:34:00] <DesignerX> yeh..
595: [18:34:00] <SphereSilver> Sourcetree?
596: [18:36:00] <DesignerX> windows ... gtg now .. c ya tomorow :D
597: [18:37:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
598: [18:38:00] <SphereSilver> Sleep tight :D
599: [18:39:00] * chillu quit (Quit: chillu)
600: [18:59:00] * UncleCheese has joined #silverstripe
601: [19:20:00] * chillu has joined #silverstripe
602: [19:26:00] * SightUnseen has joined #silverstripe
603: [19:30:00] * boss_ has joined #silverstripe
604: [19:33:00] * boss_ quit (Client Quit)
605: [19:42:00] * FireMe has joined #silverstripe
606: [19:43:00] <FireMe> Hi can anyone help me out with this error? Warning at line 673 of /framework/forms/gridfield/GridField.php
607: [19:43:00] * wmk quit (Ping timeout: 264 seconds)
608: [19:45:00] * MiniZeka has joined #silverstripe
609: [19:46:00] <MiniZeka> ahoy!
610: [19:47:00] <MiniZeka> is it possible to easily add "Cancel" action when editing DataObject?
611: [19:51:00] <FireMe> I have created a post with my issue at http://www.silverstripe.org/general-questions/show/23660
612: [19:54:00] <FireMe> not sure how would i find out, but dont think so
613: [19:54:00] <MiniZeka> FireMe: are you using locale other than english?
614: [19:55:00] <MiniZeka> in a nutshell - is CMS in english or other language?
615: [19:55:00] * omgsharks has joined #silverstripe
616: [19:55:00] <FireMe> english
617: [19:56:00] <MiniZeka> because I had similar issue when used Dutch locale
618: [19:57:00] <FireMe> did you find out what the problem was?
619: [19:58:00] <simon_w> And which version are you running?
620: [19:58:00] <simon_w> FireMe, can you look at the response from the server in your browser's dev tools and see what the actual error message is?
621: [19:59:00] <FireMe> 3.1.0
622: [19:59:00] <simon_w> Which one?
623: [20:00:00] <FireMe> beta 3
624: [20:00:00] <FrozenFire> Is the master branch even used nowadays?
625: [20:01:00] <simon_w> FrozenFire, 3.2 dev
626: [20:01:00] <FrozenFire> Shouldn't that be a 3.2 branch, then?
627: [20:02:00] <simon_w> Once the alpha process starts
628: [20:02:00] <FrozenFire> I've found that using the master branch paradigm is really confusing and generally just muddles things
629: [20:02:00] <FrozenFire> I'm definitely liking things now that I use a drifting HEAD on version numbers
630: [20:03:00] <FrozenFire> Since using a "master" tends to make merging changes from other versions really hard
631: [20:03:00] <simon_w> FireMe, look at the actual response
632: [20:03:00] <FrozenFire> Each version branch coming off the prior
633: [20:03:00] <FrozenFire> And then development happens on version branches
634: [20:03:00] <FrozenFire> Since it drifts so far astern
635: [20:03:00] <FireMe> ItemEditForm
636: [20:03:00] <FireMe> "NetworkError: 500 Warning at line 673...gridfield/GridField.php - http://localhost:8888/site/admin/pages/edit/EditForm/field/Testimonial/item/new/ItemEditForm"
637: [20:03:00] <FrozenFire> That is, the symbolic-ref for HEAD is the current stable branch
638: [20:08:00] <FireMe> Line 673 in /Applications/MAMP/htdocs/site/framework/forms/gridfield/GridField.php
639: [20:08:00] <FireMe> ERROR [Warning]: Illegal string offset 'GridState'
640: [20:08:00] <FireMe> ok its a long one
641: [20:08:00] <FireMe> ======
642: [20:08:00] <FireMe> 664: public function handleRequest(SS_HTTPRequest $request, DataModel $model) {
643: [20:08:00] <FireMe> 665: if($this->brokenOnConstruct) {
644: [20:08:00] <FireMe> 666: user_error("parent::__construct() needs to be called on {$handlerClass}::__construct()",
645: [20:08:00] <simon_w> Gah, seriously?
646: [20:08:00] <FireMe> E_USER_WARNING);
647: [20:08:00] <FireMe> 667: }
648: [20:08:00] <FireMe> IN POST /site/admin/pages/edit/EditForm/field/Testimonial/item/new/ItemEditForm
649: [20:08:00] <simon_w> sspaste.com
650: [20:08:00] <FireMe> Source
651: [20:09:00] <FireMe> $this->getState(false)->setValue($fieldData['GridState']);
652: [20:09:00] <FireMe> 674:
653: [20:09:00] <FireMe> 675: foreach($this->getComponents() as $component) {
654: [20:09:00] <FireMe> 676: if(!($component instanceof GridField_URLHandler)) {
655: [20:09:00] <simon_w> It's like UncleCheese's first time all over again
656: [20:09:00] <FireMe> 668:
657: [20:09:00] <FireMe> 670: $this->setDataModel($model);
658: [20:09:00] <FireMe> 669: $this->request = $request;
659: [20:09:00] <FireMe> 671:
660: [20:09:00] <FireMe> 672: $fieldData = $this->request->requestVar($this->getName());
661: [20:09:00] <FireMe> * 673: if($fieldData && $fieldData['GridState'])
662: [20:10:00] <FrozenFire> :P
663: [20:10:00] * FireMe has joined #silverstripe
664: [20:11:00] <FireMe> sorry about that http://sspaste.com/paste/show/51880e3c10ab9
665: [20:12:00] <simon_w> screw peer-review, fixing this live!
666: [20:15:00] <simon_w> FireMe, https://github.com/silverstripe/sapphire/commit/8930304dfc78b2edcf75733909a5f7a50440c0e5
667: [20:17:00] <MiniZeka> is it possible to easily add "Cancel" action when editing DataObject?
668: [20:19:00] <MiniZeka> yes, I'm aware of that
669: [20:19:00] <simon_w> MiniZeka, that back button does it.
670: [20:20:00] <MiniZeka> with label "Cancel" on it :)
671: [20:20:00] <MiniZeka> but I was talking about adding it next to Save and Delete
672: [20:20:00] <FireMe> thanks simon works
673: [20:21:00] * SightUnseen has left #silverstripe
674: [20:21:00] * lx-berlin_ has joined #silverstripe
675: [20:21:00] <simon_w> You could add an Extension subclass to GridFieldDetailForm_ItemRequest and add it to the actiosn in updateItemEditForm($form)
676: [20:22:00] <priithansen> MiniZeka: https://github.com/unclecheese/silverstripe-gridfield-betterbuttons
677: [20:22:00] <simon_w> FireMe, that's usually what beta means
678: [20:22:00] <FireMe> i guess the version of ss i downloaded still has some bugs in it
679: [20:23:00] <MiniZeka> priithansen: splendid
680: [20:24:00] <FireMe> yes i guess, when will the be a stable release for 3.1.0 any idea?
681: [20:25:00] <simon_w> When it's ready
682: [20:25:00] <simon_w> I know we're hoping for the first RC by the end of the month
683: [20:27:00] <FireMe> ok thanks
684: [20:34:00] * nickmolhoek has joined #silverstripe
685: [20:34:00] * nickmolhoek quit (Remote host closed the connection)
686: [20:35:00] * nickmolhoek has joined #silverstripe
687: [20:36:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6934676
688: [20:36:00] * travis-ci has left #silverstripe
689: [20:36:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b5a83878dddc...8930304dfc78
690: [20:36:00] <travis-ci> [travis-ci] silverstripe/sapphire#2135 (3.1 - 8930304 : Simon Welsh): The build passed.
691: [20:36:00] * travis-ci has joined #silverstripe
692: [20:37:00] <simon_w> Woo, I didn't break it
693: [20:48:00] * FireMe quit (Quit: ChatZilla 0.9.90 [Firefox 20.0/20130326150557])
694: [20:54:00] * lx-berlin_ quit (Ping timeout: 264 seconds)
695: [20:54:00] * eikonos quit (Ping timeout: 252 seconds)
696: [20:56:00] <MiniZeka> I have one question regarding betterbuttos
697: [20:56:00] <MiniZeka> *buttons
698: [20:57:00] * FrozenFire has one question regarding burritos
699: [20:57:00] <MiniZeka> why isn't there any notification that you actually clicked on button?
700: [20:57:00] <FrozenFire> There is
701: [20:57:00] <MiniZeka> "normal" button has that spinning arrows thing until response is back
702: [20:58:00] * eikonos quit (Changing host)
703: [20:58:00] * eikonos has joined #silverstripe
704: [20:58:00] * eikonos has joined #silverstripe
705: [20:59:00] <MiniZeka> FrozenFire if there is - I don't see it
706: [21:00:00] <FrozenFire> Because you haven't applied the style
707: [21:02:00] <MiniZeka> gridfield_betterbuttons.css?
708: [21:04:00] <Pyromanik> the / is dir obv
709: [21:04:00] <FrozenFire> I've used this in the past: FormAction::create('doRegister', _t('LiabilityFormSubmission.REGISTER', 'Register'))->setUseButtonTag(true)->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'drive-upload')
710: [21:04:00] <FrozenFire> ymmv
711: [21:04:00] <Pyromanik> FrozenFire: what does ls -F mean when it's a * suffix?
712: [21:05:00] <Pyromanik> I'm asking what each little indicator means.
713: [21:05:00] <Pyromanik> FrozenFire: I know what -F does
714: [21:05:00] <FrozenFire> -F, --classify append indicator (one of */=>@|) to entries
715: [21:05:00] <FrozenFire> :P
716: [21:05:00] <FrozenFire> Pyromanik, This is literally a case where I can say RTFM
717: [21:05:00] <omgsharks> we have a dataobject (news item) that the client want to be able to attach an unknown number of photos to.. i'm thinking i want to extend the image object with a NewsPhoto has_one NewsItem and in NewsItem has_many Photos=>NewsPhoto, but how do i put a widget in the cms (modeladmin) for it?
718: [21:06:00] * eikonos quit (Ping timeout: 255 seconds)
719: [21:06:00] <Pyromanik> which, the manual does not list
720: [21:06:00] <Pyromanik> (at least in that section)
721: [21:06:00] <Pyromanik> it's been f'n ages since I worked without colourised output
722: [21:06:00] <Pyromanik> memory fade.
723: [21:06:00] * UndefinedOffset quit (Quit: Leaving.)
724: [21:06:00] <simon_w> -F Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable, an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar
725: [21:06:00] <simon_w> (`|') after each that is a FIFO.
726: [21:06:00] <FrozenFire> http://ubuntuforums.org/showthread.php?t=1556277&p=9738921#post9738921
727: [21:07:00] <MiniZeka> FrozenFire I have ss-ui-action-constructive on a button
728: [21:07:00] <simon_w> Pyromanik, get better man pages :p
729: [21:07:00] <MiniZeka> but icon went missing after I installed better buttons
730: [21:13:00] * eikonos quit (Changing host)
731: [21:13:00] * eikonos has joined #silverstripe
732: [21:13:00] * eikonos has joined #silverstripe
733: [21:13:00] * UncleCheese quit (Quit: UncleCheese)
734: [21:14:00] <MiniZeka> FrozenFire I fixed it: ->setAttribute('data-icon', 'accept') was commented out in GridFieldBetterButtonsItemRequest.php
735: [21:18:00] * kerosene is now known as columbo
736: [21:21:00] * willmorgan quit (Read error: Connection reset by peer)
737: [21:21:00] * willr_ has joined #silverstripe
738: [21:27:00] <irogue> hmm, so i'm not too sure if i want to go to Wellington now... after all, it's a dying city
739: [21:32:00] <omgsharks> practice your apocalypse skills
740: [21:39:00] * guci0 quit (Ping timeout: 245 seconds)
741: [21:55:00] <simon_w> Bring us survivors rations and stuff
742: [21:57:00] <ss23> lol
743: [22:03:00] <FrozenFire> Dawn of the Dead: Wellington
744: [22:06:00] * FrozenFire just pulled up Street View in Wellington, and was confused as hell why he was driving the wrong way
745: [22:08:00] <simon_w> Because you're Canadian. It's what you do.
746: [22:30:00] * spronk has joined #silverstripe
747: [22:33:00] * EasyCo has joined #silverstripe
748: [22:39:00] <ss23> spronk: "Oh man we priced this product at $10k and no one buys it! Must be no demand :)"
749: [22:39:00] <spronk> so adobe's killing fireworks, and going cloud-in
750: [22:39:00] <spronk> god damn i hope someone comes along and takes >half their market share
751: [22:39:00] * howardgrigg never used fireworks
752: [22:39:00] * chillu quit (Quit: chillu)
753: [22:40:00] <spronk> don't forget: 'and never fix any of its bugs or give it modern features'
754: [22:40:00] * nickmolhoek quit (Ping timeout: 245 seconds)
755: [22:42:00] <Colin[pi]> more than MS or EA?
756: [22:42:00] <spronk> yes.
757: [22:42:00] <spronk> I think Adobe might actually be my most hated software company
758: [22:43:00] <spronk> MS, IMO, are a bit misunderstood
759: [22:43:00] <spronk> but Adobe..
760: [22:44:00] <EasyCo> EA is the epitome of evil
761: [22:44:00] <Colin[pi]> you don't think EA are evil?
762: [22:44:00] <ss23> What about EA?
763: [22:45:00] <spronk> the reason was for low demand
764: [22:45:00] <Colin[pi]> yeah I would agree on most of those points re: adobe
765: [22:45:00] <spronk> difference being that EA occasionally release stuff that isn't shit
766: [22:45:00] <spronk> EA are definitely up there
767: [22:45:00] <spronk> this is adobe's mantra: 1) price things so high noone can afford them. 2) complain about piracy. 3) never fix bugs, and massive performance issues, while simultaneously adding USELESS features. 4) rebrand the entire suite each release. 5) completely redo the user interface each release. 6) ignore OS conventions and break shit like Expose. 7) buy the only viable competition, then slowly kill off their products by not updating them. 6) c
768: [22:46:00] <spronk> even autodesk are less dickish
769: [22:49:00] * MiniZeka quit (Ping timeout: 245 seconds)
770: [22:49:00] <simon_w> Richard Stallman, amirite? :p
771: [22:50:00] <spronk> hippee fucker is half the problem
772: [22:51:00] <Colin[pi]> doesn't ss have an inbuilt method to make sure a URL (text field) is correctly formatted? canne find it cap'n
773: [22:54:00] <Colin[pi]> ah found it, Varchar->URL()
774: [23:03:00] * spronk quit (Ping timeout: 248 seconds)
775: [23:03:00] * spronk2 quit (Read error: Connection reset by peer)
776: [23:07:00] <Pyromanik> thanks simon_w
777: [23:12:00] * spronk2 has joined #silverstripe
778: [23:12:00] * spronk has joined #silverstripe
779: [23:13:00] <Pyromanik> but the rest of the points are still valid
780: [23:13:00] <Pyromanik> plus 'rolling' updaets.
781: [23:13:00] <Pyromanik> spronk2: why does point 6 only consist of a c?
782: [23:13:00] <Pyromanik> and the cloud licence isn't all that pricey any more.
783: [23:16:00] <spronk> the cloud licence is fucking masses if you use certain apps infrequently
784: [23:16:00] <spronk> eh?
785: [23:21:00] * spronk2 quit (Ping timeout: 276 seconds)
786: [23:21:00] * spronk quit (Ping timeout: 272 seconds)
787: [23:23:00] * folibis has joined #silverstripe
788: [23:23:00] <folibis> hi all!
789: [23:24:00] <Pyromanik> ?
790: [23:24:00] <irogue> warehouse guy just cut himself with a boxcutter
791: [23:24:00] <Pyromanik> hi folibis
792: [23:24:00] <irogue> oh god
793: [23:24:00] <folibis> Why $BaseURL in template returns / instead of real URL?
794: [23:25:00] <Pyromanik> <% base_tag %> produces an actual <base href="ss/site/base/" /> for the <head>
795: [23:25:00] <irogue> left it laying around blade-out, and then picked it up blade-end
796: [23:25:00] <irogue> how dumb can one be?
797: [23:25:00] <Pyromanik> folibis: you're probably looking for $Link
798: [23:25:00] <Pyromanik> or $BaseHref
799: [23:26:00] * nickmolhoek has joined #silverstripe
800: [23:26:00] * nickmolhoek has joined #silverstripe
801: [23:26:00] * nickmolhoek quit (Remote host closed the connection)
802: [23:26:00] * nickmolhoek quit (Remote host closed the connection)
803: [23:26:00] <Pyromanik> folibis: if you wan an absolute link instead of a relative one, use $AbsoluteLink
804: [23:26:00] <folibis> ah yes $BaseHref works fine!
805: [23:27:00] * nickmolhoek has joined #silverstripe
806: [23:28:00] * spronk2 has joined #silverstripe
807: [23:29:00] <folibis> I am trying to make my own search form so I need something like <form action="$BaseHref/results" method="post">
808: [23:30:00] <simon_w> folibis, ewww, no.
809: [23:30:00] <simon_w> http://doc.silverstripe.org/framework/en/tutorials/3-forms
810: [23:30:00] <Colin[pi]> irogue: as I've come to learn, people can be pretty damn dumb
811: [23:32:00] <folibis> yes thanks simon_w i read this page but i cannot customize the search form with it
812: [23:32:00] <ss23> "Reticulate splines 60% faster with this one weird algorithm discovered by a mom"
813: [23:33:00] <folibis> and btw it is good way to learn the framework
814: [23:36:00] <simon_w> You build your own Form, you don't need to customise SearchForm
815: [23:36:00] <simon_w> Using the framework is a good way to learn the framework. Building your own form in a template isn't
816: [23:36:00] * omgsharks quit (Quit: Page closed)
817: [23:40:00] <Pyromanik> folibis: use searchform, or make your own form with the framework and customise the action.
818: [23:40:00] <Pyromanik> or, SearchContext
819: [23:41:00] <Pyromanik> just from the top of my head.
820: [23:41:00] <Pyromanik> $form = new Form(); $form->setFormMethod('GET'); $form->disableSecurityToken();
821: [23:43:00] <folibis> I guess I need SearchContext. just found it
822: [23:46:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
823: [23:46:00] * SticksM has joined #silverstripe
824: [23:48:00] * folibis quit (Quit: Page closed)

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