#silverstripe IRC Log

IRC log for 24 February 2013

All timestamps are in UTC.

1: [00:01:00] * willr quit (Quit: willr)
2: [00:11:00] * SightUnseen has left #silverstripe
3: [00:12:00] * ajshort quit (Quit: Leaving)
4: [00:13:00] * guci0 quit (Ping timeout: 245 seconds)
5: [00:14:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
6: [00:25:00] <theoldlr> im having some difficulty with the template modulus logic...
7: [00:26:00] <theoldlr> I want to include a tag at the beginning of each row with 4 items in each row, so at position 1 5 9 13 etc
8: [00:29:00] * Motoservo_ has joined #silverstripe
9: [00:32:00] <theoldlr> nm
10: [00:33:00] * Motoservo quit (Ping timeout: 252 seconds)
11: [00:33:00] * Motoservo_ is now known as Motoservo
12: [00:40:00] * ARNHOE quit (Remote host closed the connection)
13: [00:47:00] * LoveDuckie quit (Ping timeout: 255 seconds)
14: [00:56:00] * Andi_de has joined #silverstripe
15: [01:23:00] * cloph is now known as cloph_away
16: [01:39:00] * UncleCheese has joined #silverstripe
17: [01:41:00] * theoldlr quit (Quit: Page closed)
18: [01:47:00] * Liquide quit (Ping timeout: 252 seconds)
19: [01:48:00] * Motoservo quit (Quit: Motoservo)
20: [01:51:00] * Motoservo has joined #silverstripe
21: [01:53:00] * Liquide has joined #silverstripe
22: [02:06:00] * howardgrigg has joined #silverstripe
23: [02:29:00] * Bollig|DesignCty has joined #silverstripe
24: [03:06:00] * SphereSilver has joined #silverstripe
25: [03:21:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
26: [03:25:00] * DigNZ quit (Client Quit)
27: [03:25:00] * DigNZ has joined #silverstripe
28: [04:22:00] * UncleCheese quit (Quit: UncleCheese)
29: [04:56:00] * SightUnseen has joined #silverstripe
30: [04:59:00] * SightUnseen has left #silverstripe
31: [05:00:00] * cloph_away1 has joined #silverstripe
32: [05:01:00] * cloph_away quit (Ping timeout: 252 seconds)
33: [05:03:00] * ^pH- has joined #silverstripe
34: [05:07:00] * ^pH quit (Ping timeout: 276 seconds)
35: [05:07:00] * howardgrigg quit (Remote host closed the connection)
36: [05:08:00] * howardgrigg has joined #silverstripe
37: [05:34:00] * howardgrigg quit (Remote host closed the connection)
38: [05:40:00] * Liquide quit (Ping timeout: 255 seconds)
39: [05:44:00] * SightUnseen has joined #silverstripe
40: [05:44:00] * SightUnseen has left #silverstripe
41: [05:50:00] * Liquide has joined #silverstripe
42: [06:00:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
43: [06:49:00] * DrCuriosity has joined #silverstripe
44: [07:04:00] * jerry_ has joined #silverstripe
45: [07:06:00] <jerry_> Hi
46: [07:06:00] <jerry_> I'm reading the tutorial #2 ... and need help to understand this particular line
47: [07:06:00] <jerry_> ArticlePage::get()->filter('ParentID', $holder->ID)->sort('Date DESC')->limit($num) : false;
48: [07:07:00] <jerry_> anyone knows where is the documentation for ::get() ?
49: [07:07:00] <jerry_> it's a loaded statement :-)
50: [07:08:00] <jerry_> what class is it?
51: [07:22:00] <pippy> it's in DataObject
52: [07:22:00] <pippy> the easiest way is to look at either the API online or inspect the source code
53: [07:23:00] <pippy> depending on your IDE you can ctrl + click the function you're calling
54: [07:23:00] <DrCuriosity> *nod* framework\model\DataObject.php is where I found it.
55: [07:24:00] <pippy> I think it also inherits the filter() and other SQL functions from another class
56: [07:25:00] * jerry_ quit (Ping timeout: 245 seconds)
57: [08:35:00] * LoveDuckie has joined #silverstripe
58: [08:54:00] * DigNZ has joined #silverstripe
59: [08:54:00] * DigNZ quit (Client Quit)
60: [08:55:00] * ratcat quit (Client Quit)
61: [08:55:00] * ratcat has joined #silverstripe
62: [08:55:00] * ratcat has joined #silverstripe
63: [09:00:00] * SightUnseen1 has joined #silverstripe
64: [09:03:00] * SightUnseen has joined #silverstripe
65: [09:03:00] * SightUnseen has left #silverstripe
66: [09:14:00] * Andi_de has left #silverstripe
67: [09:23:00] * Andi_de has joined #silverstripe
68: [09:23:00] * SightUnseen1 quit (Quit: Leaving.)
69: [09:33:00] * lx-berlin has joined #silverstripe
70: [09:35:00] * ^pH- quit (Ping timeout: 276 seconds)
71: [10:01:00] * Motoservo quit (Remote host closed the connection)
72: [10:01:00] * Motoservo has joined #silverstripe
73: [10:10:00] * lx-berlin has left #silverstripe
74: [10:30:00] * zfmf has joined #silverstripe
75: [10:41:00] * ratcat has left #silverstripe
76: [11:31:00] * toebu quit (Remote host closed the connection)
77: [11:38:00] * howardgrigg has joined #silverstripe
78: [11:51:00] * priithansen quit (Client Quit)
79: [11:51:00] * priithansen has joined #silverstripe
80: [11:52:00] * priithansen has joined #silverstripe
81: [11:58:00] * void__ has joined #silverstripe
82: [12:06:00] * ARNHOE has joined #silverstripe
83: [12:24:00] * irogue quit (Ping timeout: 252 seconds)
84: [12:31:00] * UncleCheese has joined #silverstripe
85: [12:54:00] * LoveDuckie quit (Ping timeout: 260 seconds)
86: [13:04:00] * UncleCheese quit (Quit: UncleCheese)
87: [13:05:00] * void__ quit (Quit: Page closed)
88: [13:11:00] * Jenia has joined #silverstripe
89: [13:12:00] <Jenia> I can't add new user groups or edit existing ones, nor can I edit existing users in the CMS (but I can create new ones) - what could be wrong?
90: [13:40:00] * UncleCheese has joined #silverstripe
91: [14:06:00] * howardgrigg quit (Remote host closed the connection)
92: [14:19:00] * priithansen quit (Quit: priithansen)
93: [14:26:00] * Andi_de has left #silverstripe
94: [14:33:00] * UncleCheese quit (Quit: UncleCheese)
95: [14:38:00] * gelignite quit (Read error: Operation timed out)
96: [14:44:00] * priithansen has joined #silverstripe
97: [14:51:00] * UncleCheese has joined #silverstripe
98: [14:56:00] * gelignite has joined #silverstripe
99: [15:12:00] * lx-berlin has joined #silverstripe
100: [15:13:00] * UncleCheese quit (Quit: UncleCheese)
101: [15:18:00] * lx-berlin quit (Quit: lx-berlin)
102: [15:35:00] * LoveDuckie has joined #silverstripe
103: [16:02:00] * Bollig|DesignCty has joined #silverstripe
104: [16:44:00] * UncleCheese has joined #silverstripe
105: [16:59:00] * ARNHOE quit (Read error: Connection reset by peer)
106: [16:59:00] * zfmf has left #silverstripe
107: [16:59:00] * Jenia quit (Ping timeout: 245 seconds)
108: [17:00:00] * ARNHOE has joined #silverstripe
109: [17:35:00] * novaweb has joined #silverstripe
110: [17:37:00] * novaweb quit (Client Quit)
111: [18:50:00] * SightUnseen has left #silverstripe
112: [18:50:00] * SightUnseen has joined #silverstripe
113: [18:52:00] * void__ has joined #silverstripe
114: [19:02:00] * ARNHOE quit (Remote host closed the connection)
115: [19:04:00] * void__ quit (Remote host closed the connection)
116: [19:05:00] * void__ has joined #silverstripe
117: [19:10:00] * UncleCheese quit (Quit: UncleCheese)
118: [19:15:00] * UncleCheese has joined #silverstripe
119: [19:41:00] * Pyromanik has joined #silverstripe
120: [19:45:00] * Pyromaniik_ has joined #silverstripe
121: [19:45:00] * irogue has joined #silverstripe
122: [19:46:00] <priithansen> if the dataobject does not have a title field what is the best way to make the modeladmin show the records title instead of id like #1 ?
123: [19:47:00] <priithansen> I can make a getTitle function but is that the correct way to handle this
124: [19:47:00] <Pyromanik> yes.
125: [19:47:00] <Pyromanik> public function Title() { return "string" }
126: [19:48:00] <Pyromanik> priithansen: https://github.com/silverstripe/sapphire/blob/3.0/model/DataObject.php#L706
127: [19:48:00] <priithansen> nice thanks for the confirmation
128: [19:49:00] <Pyromanik> or more specifically, line 696
129: [19:51:00] <priithansen> splendid. Decided to use my native tongue for field names on this project will see what comes of it
130: [19:57:00] * DigNZ has joined #silverstripe
131: [19:57:00] * DigNZ has joined #silverstripe
132: [19:57:00] * DigNZ quit (Remote host closed the connection)
133: [19:59:00] <Pyromanik> priithansen: please let me know if you can get the homepage to work when it's not urlsegmented 'home'
134: [19:59:00] <Pyromanik> priithansen: cool.
135: [20:01:00] <Pyromanik> Because I can't, even just in English :<
136: [20:03:00] <priithansen> For this project I'm planning to just use the cms for handling some data and then exporting reports in pdf based on that data. No frontend pages at all. But will remember to ping you if I ever crack that thing.
137: [20:04:00] <Pyromanik> cool
138: [20:04:00] <Pyromanik> :)
139: [20:05:00] <Pyromanik> sounds like a fun project priithansen
140: [20:06:00] <priithansen> Holding my fingers crossed that I don't hit some modeladmin (my coding) limitations and won't have to make all the forms for fronted.
141: [20:07:00] <Pyromanik> if you do you could extend LeftAndMain directly and make a different interface rather than do it all on the front end
142: [20:08:00] <Pyromanik> that's probably 6 one and 1/2 dozen the other.
143: [20:08:00] <Pyromanik> althoug
144: [20:11:00] <priithansen> Time will tell. Making cost estimates for things like that sure is fun :)
145: [20:11:00] <priithansen> Pyromanik: This looks promising https://github.com/silverstripe/silverstripe-cms/blob/3.0/code/controllers/RootURLController.php#L61
146: [20:12:00] <Pyromanik> urgh :<
147: [20:12:00] <Pyromanik> still, seems a bit hackish to me.
148: [20:12:00] <Pyromanik> huh, how about that.
149: [20:13:00] <priithansen> I'm not that OOP competent to judge the hackishness but the description matches the problem
150: [20:15:00] <Pyromanik> yeah, what I mean is that you'd have to set it and dev/build every time someone renamed the homepage
151: [20:15:00] <Pyromanik> (and updated the urlsegment to go with it)
152: [20:17:00] <priithansen> ah that does sound hackish
153: [20:20:00] * ARNHOE has joined #silverstripe
154: [20:26:00] * Andi_de has joined #silverstripe
155: [20:26:00] * Andi_de has left #silverstripe
156: [20:30:00] * DigNZ quit (Quit: DigNZ)
157: [20:47:00] * Zauberfisch quit (Ping timeout: 256 seconds)
158: [20:48:00] * Zauberfisch has joined #silverstripe
159: [20:51:00] * DigNZ has joined #silverstripe
160: [20:52:00] * instabil has joined #silverstripe
161: [21:09:00] * Colin[pi] has joined #silverstripe
162: [21:23:00] <Marvanni> I don't see the value in the url and POST data
163: [21:23:00] <Marvanni> Can somebody tell me how the ID is submitted when deleting a record in a GridField?
164: [21:37:00] * markeaston has joined #silverstripe
165: [21:44:00] * instabil quit (Read error: Connection reset by peer)
166: [21:45:00] * howardgrigg has joined #silverstripe
167: [21:53:00] * cloph_away1 is now known as cloph
168: [21:53:00] * howardgrigg quit (Remote host closed the connection)
169: [22:07:00] * void__ quit (Remote host closed the connection)
170: [22:09:00] * ARNHOE quit (Remote host closed the connection)
171: [22:10:00] * ARNHOE has joined #silverstripe
172: [22:14:00] * ARNHOE quit (Ping timeout: 255 seconds)
173: [22:19:00] * SightUnseen has joined #silverstripe
174: [22:19:00] * SightUnseen has left #silverstripe
175: [22:21:00] * UncleCheese quit (Quit: UncleCheese)
176: [22:21:00] * markeaston has left #silverstripe
177: [22:24:00] * fpereira1 quit (Quit: Leaving)
178: [22:27:00] * howardgrigg has joined #silverstripe
179: [22:29:00] <irogue> ooo
180: [22:29:00] <irogue> i'm pretty regularly mocking pedestrians for getting hit by trains, but this one just sucks
181: [22:30:00] <irogue> A female in an electric wheel chair was struck by a freight train at a crossing in the Auckland suburb of Morningside this morning. Police say the accident happened just after 9am. Initial reports suggest her wheel chair got stuck crossing the tracks.
182: [22:30:00] <Colin[pi]> now that is a terrible way to go
183: [22:30:00] <Colin[pi]> oh shit :C
184: [22:31:00] * UncleCheese has joined #silverstripe
185: [22:31:00] <irogue> Several people came to the aid of the person in the wheel chair, attempting to get her clear of an approaching train. The female has been taken to Auckland Hospital with serious injuries. One of those trying to help received minor injuries, and has also been hospitalised.
186: [22:31:00] <irogue> not dead (yet?)
187: [22:31:00] <Colin[pi]> damn she survived that??
188: [22:31:00] * howardgrigg quit (Remote host closed the connection)
189: [22:32:00] <irogue> i can see the wheelchair there still in one piece - so i'm guessing clipped it and sent it flying, rather than full-on impact
190: [22:32:00] <irogue> http://wa1.cdn.3news.co.nz/3news/AM/2013/2/25/288008/morningside-crossing-accide.jpg
191: [22:34:00] <Colin[pi]> damn :\
192: [22:36:00] <spronk> hmm
193: [22:36:00] <Colin[pi]> why am I reminded of this? http://www.southparkstudios.com/clips/154613/beep-once-for-yes-twice-for-no
194: [22:39:00] <Pyromanik> that sucks
195: [22:39:00] <Pyromanik> wow
196: [22:40:00] <irogue> http://media.nzherald.co.nz/webcontent/image/jpg/20139/SCCZEN_250213NZHBPACCIDENT1_620x413.jpg
197: [22:44:00] <Colin[pi]> :\
198: [22:48:00] * ajshort has joined #silverstripe
199: [22:49:00] * UncleCheese quit (Quit: UncleCheese)
200: [23:15:00] * DigNZ quit (Quit: DigNZ)
201: [23:17:00] * ccburns has joined #silverstripe
202: [23:18:00] <priithansen> I would like to populate dataobjects has_many relation with some records in onAfterWrite() when the dataobject is created. How could I make sure that it's a Create not Save operation?
203: [23:19:00] <Pyromanik> see if ID was assigned from null or -
204: [23:19:00] <Pyromanik> check the changed array
205: [23:20:00] <Pyromanik> 0 *
206: [23:20:00] <Pyromanik> $changed = $this->getChangedFields();
207: [23:20:00] <Pyromanik> //get our values
208: [23:20:00] <Pyromanik> parent::onAfterWrite();
209: [23:20:00] <Pyromanik> protected function onAfterWrite() {
210: [23:22:00] <Pyromanik> You're welcome :)
211: [23:22:00] <priithansen> how good is that, there is even a isChanged function that uses getChangeFields() thank You again Pyromanik
212: [23:25:00] * howardgrigg has joined #silverstripe
213: [23:28:00] <Colin[pi]> what would be a good place to add a Requirements::customScript($js) so that it only gets loaded for the CMS?
214: [23:30:00] <ccburns> Quick question??? A client wants me to change "Remember me next time" to "Save my details" or something like that??? Trying to work out where I change it so that I am not changing any of the core files??? Any ideas?
215: [23:31:00] <ccburns> I see a language file in the framework but I don't know where I would put this to override it so not to change the core files
216: [23:33:00] * DigNZ quit (Remote host closed the connection)
217: [23:33:00] * DigNZ has joined #silverstripe
218: [23:33:00] * DigNZ quit (Remote host closed the connection)
219: [23:33:00] * DigNZ has joined #silverstripe
220: [23:33:00] * DigNZ has joined #silverstripe
221: [23:42:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
222: [23:46:00] <Colin[pi]> anyone?
223: [23:57:00] <Marvanni> LeftAndMain::require_javascript();
224: [23:58:00] <Marvanni> but that requires a filepath
225: [23:58:00] <Colin[pi]> for now I've stuck it in an overridden CMSTreeClasses() function, seems to work
226: [23:58:00] <Colin[pi]> no I need customScript() - i.e. generated from php

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