#silverstripe IRC Log

IRC log for 3 January 2013

All timestamps are in UTC.

1: [00:00:00] <C10ne> guess I'll have to use that approach... ExtraFields are pretty useless like this
2: [00:11:00] * SightUnseen quit (Ping timeout: 255 seconds)
3: [00:16:00] <catcher> hm. Child extends Parent. Parent::get()->byID(x); is returning a record of type Child.
4: [00:17:00] <catcher> belongs_many_many relationship is on Parent, so it fails when I Parent::get()->byID(x)->add($item);.
5: [00:18:00] <catcher> or perhaps the lazy loading will resolve properly, and I'm doing something else stupid.
6: [00:25:00] <FrozenFire> The Child is a Child, always.
7: [00:25:00] <FrozenFire> You cannot do it like that
8: [00:25:00] <FrozenFire> You can't get it as its parent type
9: [00:37:00] * SightUnseen has joined #silverstripe
10: [00:42:00] <catcher> yeah, that made sense shortly thereafter. Something else stupid indeed.
11: [00:43:00] <FrozenFire> Yes. Basic OOP inheritance
12: [00:43:00] <catcher> because even though instantiating the parent object doesn't work, it does still have the parents' relationships.
13: [00:44:00] <catcher> 'twas a red herring.
14: [00:51:00] * SightUnseen quit (Ping timeout: 240 seconds)
15: [00:52:00] <catcher> later skaters!
16: [00:52:00] * catcher quit (Quit: Leaving)
17: [00:52:00] <ss23> I... I'm not a skater :<
18: [00:57:00] <FrozenFire> Or is PaginatedList something that can only be added at the end?
19: [00:57:00] <FrozenFire> Do DataList calls on a PaginatedList pass through?
20: [01:18:00] * SightUnseen has joined #silverstripe
21: [01:26:00] * pex__ has joined #silverstripe
22: [01:27:00] <pex__> hi, how can i turn off ability to create new DataObject in Model Admin?
23: [01:28:00] <pex__> i have dataobject managed by modeladmin class, which functions canCreate, canView ...
24: [01:29:00] * SightUnseen quit (Ping timeout: 240 seconds)
25: [01:29:00] <pex__> but when i limit user permission in canCreate (even i give return false), button for creating new object is still avaible
26: [01:30:00] <pex__> this is SS3
27: [01:37:00] * Zauberfisch quit (Ping timeout: 246 seconds)
28: [01:39:00] * Zauberfisch has joined #silverstripe
29: [01:42:00] <FrozenFire> pex__, You'll need to overload getEditForm in the ModelAdmin
30: [01:43:00] <FrozenFire> Then you can get the GridField from the EditForm and remove the GridFieldAddNewButton component
31: [01:44:00] <pex__> ok, thanks :)
32: [01:45:00] <FrozenFire> Keep in mind that if your ModelAdmin is managing multiple models, you should have a switch...case in your overloaded getEditForm method that switches based on $this->modelClass
33: [01:45:00] <FrozenFire> E.g. switch($this->modelClass) { case "MyDataObject": ... break; }
34: [01:46:00] <FrozenFire> And make your modifications specific to each model
35: [01:47:00] <pex__> one more question?
36: [01:47:00] <FrozenFire> Of course
37: [01:47:00] <pex__> ok i belive i can handle this, thanks for a tip
38: [01:47:00] <pex__> front-end*
39: [01:47:00] <pex__> mabye stupid question but is there a possibility to use a gridfield in fronend?
40: [01:48:00] <FrozenFire> Possible? Yes. Feasible? Much lesser-so
41: [01:49:00] <pex__> hmm, i mean can i create something simillar to crud interface in front-end
42: [01:57:00] * SightUnseen has joined #silverstripe
43: [02:09:00] * SightUnseen quit (Ping timeout: 264 seconds)
44: [02:35:00] * SightUnseen has joined #silverstripe
45: [02:45:00] * SightUnseen quit (Ping timeout: 252 seconds)
46: [02:53:00] <pex__> how can I call function in Dataobject from other class?
47: [03:08:00] * xini quit (Quit: Page closed)
48: [03:12:00] * SightUnseen has joined #silverstripe
49: [03:23:00] * SightUnseen quit (Ping timeout: 272 seconds)
50: [03:26:00] * pex__ has left #silverstripe
51: [03:28:00] * DigNZ quit (Quit: DigNZ)
52: [03:36:00] * DigNZ has joined #silverstripe
53: [03:36:00] * DigNZ quit (Remote host closed the connection)
54: [03:37:00] * DigNZ has joined #silverstripe
55: [03:45:00] * DigNZ quit (Quit: DigNZ)
56: [03:49:00] * SightUnseen has joined #silverstripe
57: [03:55:00] * SticksM has joined #silverstripe
58: [03:55:00] * nickmolhoek quit (Quit: nickmolhoek)
59: [03:59:00] * SightUnseen quit (Ping timeout: 272 seconds)
60: [04:25:00] * SightUnseen has joined #silverstripe
61: [04:33:00] * cloph_away quit (Ping timeout: 255 seconds)
62: [04:36:00] * SightUnseen quit (Ping timeout: 255 seconds)
63: [04:37:00] * cloph_away has joined #silverstripe
64: [04:38:00] * dendeffe has joined #silverstripe
65: [05:01:00] * SightUnseen has joined #silverstripe
66: [05:10:00] * SightUnseen quit (Ping timeout: 265 seconds)
67: [05:22:00] * lpalmieri has joined #silverstripe
68: [05:37:00] * SightUnseen has joined #silverstripe
69: [05:46:00] * SightUnseen quit (Ping timeout: 264 seconds)
70: [06:02:00] * SightUnseen has joined #silverstripe
71: [06:02:00] * SightUnseen has left #silverstripe
72: [06:02:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
73: [06:15:00] * SticksM quit (Read error: Connection reset by peer)
74: [06:22:00] * Error404NotFound has joined #silverstripe
75: [06:35:00] * mrzero quit (Ping timeout: 240 seconds)
76: [06:36:00] * mrzero has joined #silverstripe
77: [06:36:00] * mrzero quit (Changing host)
78: [06:36:00] * mrzero has joined #silverstripe
79: [07:33:00] * dendeffe quit (Quit: dendeffe)
80: [07:35:00] * DigNZ has joined #silverstripe
81: [07:35:00] * DigNZ quit (Client Quit)
82: [07:35:00] * C10ne_ has joined #silverstripe
83: [07:36:00] <C10ne_> anybody tried new many_many_extraFields editing in SS3.1? I can't get it to work
84: [07:38:00] * chillu has joined #silverstripe
85: [07:40:00] * Ramon has joined #silverstripe
86: [07:44:00] * Bollig|DesignCty quit (Read error: Connection reset by peer)
87: [07:46:00] * zfmf has joined #silverstripe
88: [07:55:00] * Bollig|DesignCty has joined #silverstripe
89: [08:05:00] * dendeffe has joined #silverstripe
90: [08:09:00] * g4b0 has joined #silverstripe
91: [08:09:00] <g4b0> morning
92: [08:27:00] * Emil_Blume has joined #silverstripe
93: [08:30:00] * Motoservo has joined #silverstripe
94: [08:42:00] * travis-ci has left #silverstripe
95: [08:42:00] <travis-ci> [travis-ci] silverstripe/sapphire#1104 (post-2.4 - 3294738 : Sean Harvey): The build is still failing.
96: [08:42:00] * travis-ci has joined #silverstripe
97: [08:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3929282
98: [08:42:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/024ef6d11b1d...3294738f494e
99: [08:45:00] * guci0 has joined #silverstripe
100: [08:46:00] <C10ne_> hi
101: [08:46:00] <guci0> Hello world!
102: [08:50:00] * Motoservo quit (Quit: Motoservo)
103: [09:00:00] * popeshoe has joined #silverstripe
104: [09:05:00] * C10ne_ quit (Ping timeout: 245 seconds)
105: [09:32:00] * lpalmieri quit ()
106: [09:44:00] * Emil_Blume quit (Ping timeout: 248 seconds)
107: [09:54:00] * ratcat has joined #silverstripe
108: [09:57:00] * guci0 quit (Ping timeout: 245 seconds)
109: [10:00:00] * Shrike_Finland has joined #silverstripe
110: [10:17:00] * lx-berlin has joined #silverstripe
111: [10:40:00] <g4b0> I'm investigating into the tinymce beahviour
112: [10:41:00] <g4b0> it change <br/> in <br>
113: [10:41:00] <g4b0> I putted an alert in sapphiremce_cleanup function
114: [10:41:00] <g4b0> and my xhtml validation is broken :(
115: [10:44:00] <g4b0> and when I publish my page the function is called 3 times
116: [10:45:00] <g4b0> the second time is the textarea content with <br/> (correct)
117: [10:45:00] <g4b0> the first time the content of the 'value' var is [object HTMLBodyElement]
118: [10:46:00] <g4b0> the third time is the textarea content with <br> (wrong)
119: [10:47:00] <g4b0> does anybody know where the substituction is done?
120: [11:05:00] * Error404NotFound quit (Ping timeout: 255 seconds)
121: [11:05:00] * dendeffe quit (Quit: dendeffe)
122: [11:10:00] * hubertusanton has joined #silverstripe
123: [11:14:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
124: [11:17:00] * Error404NotFound has joined #silverstripe
125: [11:32:00] * instabil has joined #silverstripe
126: [11:42:00] * ARNHOE has joined #silverstripe
127: [12:17:00] * dendeffe has joined #silverstripe
128: [12:38:00] <ocm_> howdy!
129: [12:38:00] * ocm_ has joined #silverstripe
130: [13:00:00] * UndefinedOffset has joined #silverstripe
131: [13:02:00] <zfmf> how to use includeRelations in $this->scaffoldFormFields
132: [13:56:00] * Zauberfisch quit (Ping timeout: 246 seconds)
133: [13:59:00] * feejin has joined #silverstripe
134: [14:08:00] * Zauberfisch has joined #silverstripe
135: [14:17:00] * Shrike_Finland quit (Quit: Leaving.)
136: [14:24:00] * DesignerX has joined #silverstripe
137: [14:24:00] <DesignerX> hi guys, how can i get the $bseURl in the php ?
138: [14:25:00] <DesignerX> $baseURL *
139: [14:27:00] <feejin> Director::BaseURL()
140: [14:28:00] <DesignerX> ah, :) thanks
141: [14:29:00] * Emil_Blume has joined #silverstripe
142: [14:29:00] <DesignerX> I am trying to remove the http & www. from a given domain , here is my code
143: [14:29:00] <DesignerX> https://gist.github.com/4443854
144: [14:29:00] <DesignerX> any tips to why this doesnt work ?
145: [14:35:00] <ec8or_> DesignerX: i think you can use an array directly with str_replace instead of looping it
146: [14:36:00] <feejin> http://www.sspaste.com/paste/show/50e5977ca632d
147: [14:36:00] <ec8or_> str_replace($disallowed, '', $url)
148: [14:36:00] <DesignerX> ec8or_: so $d = array() ?
149: [14:37:00] <feejin> that doesn't check that the url begins with the disallowed item.
150: [14:37:00] <DesignerX> will try
151: [14:37:00] <ec8or_> :)
152: [14:37:00] <feejin> Or like what ec8or_ just said
153: [14:37:00] <DesignerX> sspaste is back :D
154: [14:38:00] <ec8or_> true
155: [14:38:00] <DesignerX> nope :D
156: [14:38:00] <DesignerX> if u have http:// in the middle of the domain then ... bad luck :D
157: [14:38:00] <ec8or_> but is that really necessary? :P
158: [14:40:00] <DesignerX> thanks , guys, will be on for few hours (till 4-5 am ) so hope u guys around for backup :D
159: [14:40:00] <feejin> depends how fussy you want to be. i'm going to submit urls with http:// in the middle from now on to mess with people :)
160: [14:41:00] <feejin> your function works but if it's http://www then it'll find the http:// first so return it
161: [14:41:00] <DesignerX> yep, i got that one, I changed the order :D
162: [14:41:00] <feejin> e.g. http://www.domain.com -> www.domain.com because it never gets as far as http://www
163: [14:41:00] <DesignerX> its a small thin lolz, I am making some code to auto pupulate data fro my demo websites
164: [14:41:00] <DesignerX> this is for auto creating a basic userDefinedForm ready to be used
165: [14:46:00] * Bollig|DesignCty has joined #silverstripe
166: [14:55:00] * hubertusanton quit (Ping timeout: 248 seconds)
167: [15:01:00] <zfmf> how i can get fields from the relations here http://sspaste.com/paste/show/50e59d36704aa so im getting only the fields from this DO
168: [15:07:00] <feejin> Why does this error (when used in content_controller)? SS_HTTPRequest->param('foo');
169: [15:13:00] <DesignerX> feejin: what error u get ? & if i can see more of the code so i can test it
170: [15:15:00] * Marvanni has joined #silverstripe
171: [15:15:00] <feejin> http://www.sspaste.com/paste/show/50e5a0a2ca7e6
172: [15:16:00] <feejin> I just want to retrieve a GET variable
173: [15:16:00] <feejin> Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /test/mysite/code/TestPage.php on line 13
174: [15:16:00] <feejin> If I use Director::URLParam('test') it tells me to use SS_HTTPRequest->param()
175: [15:17:00] <zfmf> feejin: try $this->request->param('test');
176: [15:17:00] <DesignerX> zfmf: request or request() ?
177: [15:18:00] <Marvanni> Question SS3 : I need a table without ID, ClassName, Created, LastEdited, just Date, Price, Status
178: [15:18:00] <DesignerX> Marvanni: hi, why would u need that ?
179: [15:18:00] <zfmf> request
180: [15:18:00] <Marvanni> is this posible?
181: [15:20:00] <Marvanni> For a bookingsystem where we decided to store each price exeption, booked period as single records for each day, so this table is gonna be big
182: [15:20:00] <DesignerX> Marvanni: it should be possible , but makes it harder to use make use of the table in ss
183: [15:21:00] <Marvanni> I don't need the complete SS ORM for this table
184: [15:21:00] <Marvanni> no has manies, has ones etc
185: [15:22:00] <Marvanni> I think i will create a custom class that don't extends dataobject, but has a few methods voor crud and creating ArryLists
186: [15:23:00] <Marvanni> ty
187: [15:23:00] <DesignerX> Marvanni: sounds about right , never done it but If i were you I would dig in the cource code & check the Object class / DataObject class & use that code
188: [15:25:00] <DesignerX> Marvanni: check line 204 in DataObject.php
189: [15:25:00] <feejin> zfmf: $this->request-getVar('test') did it. Thanks.
190: [15:26:00] <DesignerX> Marvanni: lines 187 -212 * its where ClassName , Created & LastEdited fields are created
191: [15:27:00] <Marvanni> yes i saw them, but the ORM requires and ID field on delete etc, so I will need to create a custom delete anyway
192: [15:28:00] <DesignerX> Marvanni: & makes it better to work with later on if u had to work with this data u have
193: [15:28:00] <DesignerX> Marvanni: I think having just the id is not soo bad
194: [15:29:00] <DesignerX> Marvanni: I think u can extend ViewableData & have only the ID available + alot more functionality then a brand new class
195: [15:30:00] <Marvanni> hm, well I need MySQL ON DUPLICATE KEY UPDATE as well
196: [15:30:00] <Marvanni> and just write the few methods for CRUD
197: [15:30:00] <Marvanni> thats what i thought as well
198: [16:23:00] * catcher has joined #silverstripe
199: [16:26:00] * gelignite has joined #silverstripe
200: [16:28:00] * PigeonFriend has joined #silverstripe
201: [16:37:00] <DesignerX> hi again, is ther like a db clean up methods to look for objects that have "NO longer available" ParentID then remove them ?
202: [16:38:00] * g4b0 quit (Remote host closed the connection)
203: [16:40:00] <catcher> DesignerX, nothing built in to SS that I'm aware of, but should be quick enough to write yourself.
204: [16:41:00] <DesignerX> catcher: gues so , this will be for basic 1-1 & *-1 .. just wanted to be sure :) thanks
205: [16:42:00] <catcher> DesignerX, np. I'd stick with the ORM rather than raw SQL too, for what it's worth.
206: [16:44:00] * Dynamic_Nic has joined #silverstripe
207: [16:44:00] <C10ne> hi guys, is there some kind of field that would let me add a record inline? Like, I have dataobject with only title, and I'd like to add dropdown with available+ add new...
208: [16:47:00] <DesignerX> catcher: kk thanks
209: [16:50:00] <catcher> C10ne, you're wanting to add a class property on the fly?
210: [16:51:00] <C10ne> No, just to add a record to the table. I don't want to make entire dataModel Admin just to add category that only has a title
211: [16:51:00] <catcher> C10ne, oh, I think I see. front-end or back-end?
212: [16:51:00] <C10ne> back-end
213: [16:53:00] <catcher> C10ne, I always use gridfield on the interface itself for that.
214: [16:54:00] <catcher> C10ne, not exactly what you're looking for, but you don't need a whole separate modeladmin at least.
215: [16:55:00] <C10ne> it's confusing for the users, and pretty bad for the workflow
216: [16:55:00] * ocm_ quit ()
217: [16:55:00] <C10ne> Yeah, that's the easiest way, but again, I'd like it to have at least a modal form for "verySimpleDataObject" :)
218: [16:57:00] <catcher> C10ne, I know what you mean. I'm not aware of anything out of the box for that, but please lmk if you find something.
219: [16:57:00] * ARNHOE1 has joined #silverstripe
220: [16:58:00] * dendeffe quit (Quit: dendeffe)
221: [16:58:00] * ARNHOE1 quit (Client Quit)
222: [16:58:00] <C10ne> catcher, guess I'll build it when I get some more time, gotta wrap up some preview pretty fast :)
223: [16:59:00] * ARNHOE quit (Ping timeout: 272 seconds)
224: [17:00:00] <C10ne> catcher, one more question, I followed some tutorial to filter SiteTree, and use $callback = create_function('$obj', 'return $obj->class == "RoomPage";'); for TreeDropDownField, but I only get RoomPages that are in top level of the menu, not if they are children of other page
225: [17:00:00] * ARNHOE has joined #silverstripe
226: [17:01:00] <catcher> brb
227: [17:01:00] * ARNHOE quit (Client Quit)
228: [17:01:00] <C10ne> do you know how could I get all of them?
229: [17:03:00] * ARNHOE has joined #silverstripe
230: [17:12:00] * ARNHOE has joined #silverstripe
231: [17:12:00] * ARNHOE has left #silverstripe
232: [17:13:00] * ARNHOE quit (Client Quit)
233: [17:14:00] * ARNHOE has joined #silverstripe
234: [17:16:00] * ARNHOE quit (Client Quit)
235: [17:16:00] * ARNHOE has joined #silverstripe
236: [17:17:00] * feejin quit (Remote host closed the connection)
237: [17:18:00] * ARNHOE quit (Client Quit)
238: [17:20:00] * ARNHOE has joined #silverstripe
239: [17:20:00] <catcher> C10ne, if you want all RoomPages and they're classes that extend page, why not just RoomPage::get() them?
240: [17:21:00] <catcher> oh, tree
241: [17:24:00] <C10ne> yeah :)
242: [17:26:00] <catcher> hm, I wonder if Children() is getting called instead of AllChildren
243: [17:29:00] <catcher> C10ne, why the equality test in the anon function?
244: [17:29:00] <catcher> C10ne, oh, must run through a filter.
245: [17:29:00] <catcher> sorry, doing 10 things at once :)
246: [17:30:00] <C10ne> just Googled it out... It seamed to work. I need to get my hands on those tree fields, but only SiteTree seems to work all the way
247: [17:31:00] <C10ne> np, same here
248: [17:32:00] * Ramon quit (Ping timeout: 245 seconds)
249: [17:34:00] * lx-berlin has left #silverstripe
250: [17:35:00] <catcher> C10ne, you could use the regular datalist, though then you'd lose hierarchy.
251: [17:37:00] <FrozenFire> A TreeDropdownField would not be appropriate when you have multiple parent trees that are not included in the dropdown.
252: [17:39:00] <catcher> FrozenFire, ah, 'cause the 1st-level pages don't share a Hierarchical parent.
253: [17:39:00] <C10ne> :)
254: [17:39:00] <C10ne> and I should use... ?
255: [17:40:00] <FrozenFire> What are you trying to do?
256: [17:40:00] <catcher> treedropdown showing only pages of a certain type
257: [17:40:00] <C10ne> set a page that is in a relation with another page from dropdown
258: [17:41:00] <catcher> But the parents get lost if they're not all of that type
259: [17:41:00] <catcher> FrozenFire, right :)
260: [17:41:00] <FrozenFire> catcher, That's how he thinks he should do it, not what he's trying to do. ;)
261: [17:41:00] <C10ne> in 2 different pages, that is
262: [17:41:00] <C10ne> also, set many categories for a single page
263: [17:41:00] * dendeffe has joined #silverstripe
264: [17:42:00] <FrozenFire> C10ne, I'd just go with a plain old DropdownField, then
265: [17:42:00] <C10ne> I'm using a data object as a middle man for extra fields in a relation
266: [17:42:00] <catcher> C10ne, for the first one, a normal dropdown
267: [17:42:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
268: [17:42:00] <FrozenFire> A TreeDropdownField is only really suitable when you're wanting to traverse the entirety of a tree
269: [17:43:00] <C10ne> I was trying to get a multiselect for that, so yeah, that's when I got lost
270: [17:44:00] <catcher> C10ne, for the multiple category selection, I'd go gridfield with a relationEditor component
271: [17:44:00] <C10ne> I mean, a tree dropdown
272: [17:44:00] <FrozenFire> But yeah, if you're editing a many relationship, use a GridField
273: [17:44:00] <C10ne> then figured I'd drop the multi relation, but continued with a dropdown
274: [17:44:00] <FrozenFire> ListboxField
275: [17:45:00] <C10ne> but, again, if I use grid, I'd have to have add for the data object, and that brings me back to having the select/dropdown
276: [17:46:00] <FrozenFire> If it's a has_one, you need to either use a DropdownField, or create your own selector field
277: [17:46:00] <catcher> C10ne, you don't need the add component. And it'd use autocomplete by default
278: [17:46:00] <FrozenFire> If it's a many relationship, then use a GridField
279: [17:47:00] <catcher> C10ne, Your source can be any DataList you like at that point, you just obviously won't have hierarchical selection.
280: [17:48:00] <FrozenFire> It's for storing metadata on the relationship
281: [17:48:00] <FrozenFire> many_many_extraFields is not for storing additional data
282: [17:48:00] <C10ne> autocomplete is fine, but it's a relation with many_many_extraFields, which can't be edited yet, so I have to use data object to store the extra data
283: [17:49:00] <FrozenFire> E.g. a Sort field
284: [17:49:00] <FrozenFire> That metadata should be automatically populated
285: [17:50:00] <C10ne> Thanks for the help, I'll be back later
286: [17:50:00] <C10ne> Ok, I'll strt to work with the info you provided, and see what I can pull out.
287: [17:56:00] * Motoservo has joined #silverstripe
288: [18:04:00] * Motoservo quit (Quit: Motoservo)
289: [18:09:00] * dendeffe quit (Quit: dendeffe)
290: [18:52:00] * Zauberfisch quit (Ping timeout: 246 seconds)
291: [18:56:00] * Zauberfisch has joined #silverstripe
292: [18:59:00] * zfmf has left #silverstripe
293: [19:03:00] <catcher> Can't default_sort on a property that exists on this class but not the one it extends. hrm.
294: [19:06:00] <FrozenFire> Of course
295: [19:06:00] <FrozenFire> Well, depending on what you're doing
296: [19:06:00] * zfmf has joined #silverstripe
297: [19:07:00] <FrozenFire> Okay
298: [19:07:00] <catcher> Article extends Publication, Article has a 'Date' property, default_sort = 'Date DESC'; breaks (no property 'Date' on Article)
299: [19:08:00] <catcher> default_sort may not have solved that anyway.
300: [19:08:00] <catcher> I thought overriding get() may work, but it doesn't seem to.
301: [19:08:00] <catcher> The real issue is trying to paginate a sorted DL.
302: [19:09:00] <FrozenFire> Overriding ::get() is almost always a bad idea
303: [19:09:00] <catcher> Still surprised it doesn't work though, looks like pagination calls get().
304: [19:14:00] <catcher> Or maybe the field I'm sorting by is giving me indeterminate results.
305: [19:15:00] * jcwacky has joined #silverstripe
306: [19:16:00] * jcwacky quit (Client Quit)
307: [19:17:00] <C10ne> Guys, thanks for your help again, I managed to fix most of the stuff.
308: [19:19:00] * xini has joined #silverstripe
309: [19:24:00] * C10ne quit (Ping timeout: 245 seconds)
310: [19:26:00] * knightmeer has joined #silverstripe
311: [19:26:00] * Shrike_Finland has joined #silverstripe
312: [19:27:00] <knightmeer> in onBeforeWrite i want to know if a value was changed since model was initially loaded. is there a way to get the original value of the field (the values returned in the Class::get_one())?
313: [19:31:00] * C10ne has joined #silverstripe
314: [19:32:00] <catcher> knightmeer, isChanged() is available
315: [19:33:00] <catcher> np
316: [19:33:00] <FrozenFire> Well, isChanged will tell you if *any* field has been changed
317: [19:33:00] <catcher> http://api.silverstripe.org/3.0/framework/model/DataObject.html#methodisChanged
318: [19:33:00] <knightmeer> catcher: thank you very much, i'll look that up
319: [19:33:00] * DigNZ has joined #silverstripe
320: [19:33:00] * DigNZ quit (Remote host closed the connection)
321: [19:33:00] * DigNZ has joined #silverstripe
322: [19:34:00] <FrozenFire> Ah
323: [19:34:00] <FrozenFire> This is true
324: [19:34:00] <catcher> not if you specify the fieldname
325: [19:34:00] <knightmeer> ah, so $this->isChanged('Newsletter') should basically be enough then
326: [19:34:00] <FrozenFire> Yeah
327: [19:35:00] <knightmeer> it's for sending api requests to remove someone from a newsletter contact list, so i want to add/remove when writing if they have changed subscription.
328: [19:35:00] <knightmeer> thank you very much
329: [19:35:00] <FrozenFire> Ermm
330: [19:35:00] <FrozenFire> You should handle that in a setter
331: [19:36:00] <FrozenFire> E.g. function setNewsletter($value) { $this->setField("Newsletter", $value);
332: [19:36:00] <FrozenFire> ...
333: [19:36:00] <FrozenFire> }
334: [19:36:00] <FrozenFire> Keep in mind that a has_one will be something like setNewsletterID
335: [19:36:00] <FrozenFire> I think
336: [19:41:00] * nickmolhoek quit (Remote host closed the connection)
337: [19:41:00] * nickmolhoek has joined #silverstripe
338: [19:41:00] * nickmolhoek has joined #silverstripe
339: [19:43:00] * Bollig|DesignCty has joined #silverstripe
340: [19:44:00] * Emil_Blume quit (Read error: Connection reset by peer)
341: [19:51:00] * wasabisan has joined #silverstripe
342: [19:52:00] <wasabisan> Hi, I tried installing silverstripe with composer, and followed the tutorial to the letter - however, when I try to install a module, it tells me "composer.json not found". What do I do?
343: [20:13:00] * travis-ci has left #silverstripe
344: [20:13:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f431b35b8809...d872202ae5fb
345: [20:13:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3938260
346: [20:13:00] <travis-ci> [travis-ci] silverstripe/sapphire#1105 (3.0 - d872202 : Ingo Schommer): The build passed.
347: [20:13:00] * travis-ci has joined #silverstripe
348: [20:17:00] * lpalmieri has joined #silverstripe
349: [20:24:00] * Guest37097 quit (Ping timeout: 246 seconds)
350: [20:25:00] * Gusto has joined #silverstripe
351: [20:26:00] * Gusto is now known as Guest88352
352: [20:51:00] * wasabisan quit (Quit: Leaving)
353: [21:01:00] * UndefinedOffset quit (Quit: Leaving.)
354: [21:08:00] * instabil quit (Read error: Connection reset by peer)
355: [21:08:00] * zfmf has left #silverstripe
356: [21:16:00] <FrozenFire> I'm thinking an Extension on SecurityAdmin that has an updateEditForm, but I'm not sure how that works in terms of modifying the export
357: [21:16:00] <FrozenFire> I need to augment the SecurityAdmin CSV export without modifying the Member::$summary_fields
358: [21:19:00] <FrozenFire> $export = $form->Fields()->dataFieldByName("Members")->getConfig()->getComponentByType("GridFieldExportButton");
359: [21:19:00] <FrozenFire> Aha
360: [21:33:00] * instabil has joined #silverstripe
361: [21:37:00] * Shrike_Finland quit (Quit: Leaving.)
362: [21:40:00] * ugly_duck quit (Changing host)
363: [21:40:00] * ugly_duck has joined #silverstripe
364: [21:40:00] * ugly_duck has joined #silverstripe
365: [21:50:00] * instabil quit (Read error: Connection reset by peer)
366: [21:52:00] * instabil has joined #silverstripe
367: [21:57:00] * knightmeer quit (Ping timeout: 245 seconds)
368: [22:07:00] * lpalmieri quit (Read error: Connection reset by peer)
369: [22:10:00] * Dynamic_Nic quit (Remote host closed the connection)
370: [22:31:00] * xini quit (Quit: Page closed)
371: [22:54:00] * ARNHOE quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
372: [22:56:00] <C10ne> Anyone tried adding translation on page/dataObject creation with Translatable?
373: [23:13:00] * pex__ has joined #silverstripe
374: [23:27:00] * chillu quit (Quit: chillu)
375: [23:35:00] * Emil_Blume has joined #silverstripe
376: [23:51:00] * gelignite quit (Quit: http://bit.ly/nkczDT)

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