#silverstripe IRC Log

IRC log for 12 January 2017

All timestamps are in UTC.

1: [00:01:25] * DimiStripe_alt has joined #silverstripe
2: [00:03:31] * DimiStripe quit (Ping timeout: 260 seconds)
3: [00:03:32] * DimiStripe_alt is now known as DimiStripe
4: [00:10:08] * DanaeNZ quit (Remote host closed the connection)
5: [00:28:21] * zippy has joined #silverstripe
6: [00:31:28] * micmania1 quit (Quit: micmania1)
7: [00:40:23] * DanaeNZ has joined #silverstripe
8: [00:52:18] * micmania1 has joined #silverstripe
9: [01:09:46] * DarjusIT quit (Read error: Connection reset by peer)
10: [01:15:45] * filisko quit (Remote host closed the connection)
11: [01:42:10] * keksters quit (Quit: Page closed)
12: [02:49:50] * samsamek quit (Quit: samsamek)
13: [03:06:45] * cheddam quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14: [03:07:41] * cheddam has joined #silverstripe
15: [03:15:05] * Tron has joined #silverstripe
16: [03:21:41] * cheddam quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17: [03:22:23] * cheddam has joined #silverstripe
18: [03:32:39] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19: [04:06:14] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
20: [04:06:35] * adrexia has joined #silverstripe
21: [04:06:43] * adrexia quit (Client Quit)
22: [04:46:50] * micmania1 quit (Quit: micmania1)
23: [04:52:50] * Tron quit (Ping timeout: 260 seconds)
24: [05:27:55] * cheddam quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
25: [06:28:00] * micmania1 has joined #silverstripe
26: [06:30:10] <ss-helper> SilverStripe CreditCardField bad html and submission error - http://stackoverflow.com/questions/41606343/silverstripe-creditcardfield-bad-html-and-submission-error
27: [06:42:03] * micmania1 quit (Ping timeout: 240 seconds)
28: [06:43:20] * micmania1 has joined #silverstripe
29: [06:51:08] * cheddam has joined #silverstripe
30: [06:51:12] * zippy has joined #silverstripe
31: [06:53:10] * cheddam quit (Read error: Connection reset by peer)
32: [06:53:31] * cheddam has joined #silverstripe
33: [06:55:33] * cheddam quit (Client Quit)
34: [07:08:49] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
35: [07:10:07] * zippy has joined #silverstripe
36: [07:18:56] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
37: [07:28:30] * nontgor has joined #silverstripe
38: [07:29:42] * zippy has joined #silverstripe
39: [07:29:49] * zippy quit (Client Quit)
40: [07:34:13] * Eliseth has joined #silverstripe
41: [08:09:15] * pweh has joined #silverstripe
42: [08:32:07] * terryapodaca has joined #silverstripe
43: [08:32:51] <terryapodaca> UserForm: how do I get the correct requiredField class added to checkbox or checkboxgroup?
44: [08:33:30] <terryapodaca> I have the "required" option selected and I have CSS to highlight all required fields, but it does not do so on checkboxes or radiobuttons
45: [08:45:13] <ss-helper> Silverstripe: link to correct I18N URL from footer template - http://stackoverflow.com/questions/41608336/silverstripe-link-to-correct-i18n-url-from-footer-template
46: [08:49:41] * samsamek has joined #silverstripe
47: [08:58:33] * micmania1 quit (Quit: micmania1)
48: [09:02:59] * kinglozzer has joined #silverstripe
49: [09:03:45] * pweh quit (Read error: Connection reset by peer)
50: [09:14:40] * janneklouman-- has joined #silverstripe
51: [09:18:33] * filisko has joined #silverstripe
52: [09:18:51] * janneklouman-- quit (Read error: No route to host)
53: [09:19:37] * janneklouman-- has joined #silverstripe
54: [09:20:52] * samsamek quit (Quit: samsamek)
55: [09:48:43] * micmania1 has joined #silverstripe
56: [10:07:35] * wmk has joined #silverstripe
57: [10:55:15] * wmk quit (Read error: Connection reset by peer)
58: [10:57:11] * micmania1 quit (Quit: micmania1)
59: [11:44:35] * nontgor quit (Ping timeout: 240 seconds)
60: [11:51:40] * filisko quit (Ping timeout: 240 seconds)
61: [12:04:37] * filisko has joined #silverstripe
62: [12:14:13] <janneklouman--> Any downside to doing `if (!$this->isInDB()) { $this->write(); }` inside getCMSFields() for dataobjects?
63: [12:14:47] <janneklouman--> in order to avoid asking user to save before adding relations to that object
64: [12:29:17] * samsamek has joined #silverstripe
65: [12:31:58] * wmk has joined #silverstripe
66: [12:37:32] * cupcake has joined #silverstripe
67: [12:43:05] * filisko quit (Ping timeout: 240 seconds)
68: [12:47:45] <wmk> cupcake, ☺/
69: [12:51:04] <cupcake> hey hey wmk
70: [12:51:08] <cupcake> happy new year :)
71: [12:51:17] <wmk> thanks
72: [12:51:27] <cupcake> all good?
73: [12:52:18] <wmk> with good music on the earphones, yes
74: [12:53:24] <cupcake> haha
75: [12:54:43] <wmk> how's winter in malta?
76: [12:55:39] <cupcake> not bad colder than usual
77: [12:55:47] * filisko has joined #silverstripe
78: [12:55:51] <cupcake> 14 degrees
79: [12:56:20] <cupcake> no snow :D
80: [12:56:33] <wmk> of course.
81: [12:56:45] <cupcake> and there? ure in the swiss cheese? remind me
82: [12:57:05] <wmk> this year we have some snow... kinda pain to leave the parking slot in the morning
83: [12:57:20] <wmk> well, beneath switzerland, in austria
84: [12:57:29] <cupcake> aa yes was close haha
85: [12:58:11] <cupcake> i only experienced snow in my holiday last week
86: [12:58:28] <cupcake> now pack to dry and humid malta
87: [12:59:29] <wmk> cupcake, https://twitter.com/wernermkrauss/status/819529086016114688
88: [12:59:59] <cupcake> :O
89: [13:00:01] <cupcake> niceee
90: [13:19:12] <cupcake> wmk
91: [13:19:18] <wmk> ?
92: [13:19:35] <cupcake> i am trying to validate a value before saving the DO using validate function
93: [13:19:52] <cupcake> but it is not taking the latest value from the form but the stored value
94: [13:19:59] <cupcake> any ideas what to do?
95: [13:20:19] <wmk> !paste cupcake
96: [13:20:19] <ss-helper> cupcake: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
97: [13:21:17] * filisko quit (Ping timeout: 258 seconds)
98: [13:21:36] <cupcake> http://www.sspaste.com/paste/show/587782dc53207
99: [13:23:02] <wmk> tbh, i'd switch on xdebug and see what's happening
100: [13:26:09] * UndefinedOffset has joined #silverstripe
101: [13:26:23] <wmk> but if it doesn't take the value from the form, then maybe the form is bogus?
102: [13:26:27] <wmk> cupcake, ^^
103: [13:27:16] <cupcake> ok wmk
104: [13:36:41] * filisko has joined #silverstripe
105: [13:37:21] * filisko quit (Remote host closed the connection)
106: [13:40:36] * filisko has joined #silverstripe
107: [13:47:42] <cupcake> wmk how do u debug in admin? in front end works
108: [13:48:01] <wmk> basically the same.
109: [13:48:16] <wmk> as it's the same server
110: [13:48:30] * filisko quit (Ping timeout: 258 seconds)
111: [13:48:35] <wmk> so set a breakpoint in your dataobject class, see e.g. if validation is called
112: [13:49:00] <wmk> or at dataobject's validateWrite() method
113: [13:49:05] <cupcake> i did
114: [13:49:30] <wmk> so it might not be called for some reason. Then where the form is processed.
115: [13:49:59] <cupcake> but this is removed from the url ?XDEBUG_SESSION_START=sublime.xdebug
116: [13:50:19] <wmk> well, the session should be still valid.
117: [13:50:24] <wmk> it saves to a cookie afaik.
118: [13:50:43] <wmk> but i always use the bookmarkets for that
119: [13:52:03] <wmk> depends on your xdebug setup i guess, cupcake
120: [14:00:22] <samsamek> Does anyone know of a module that enables you to add records to a gridfield with a javascript pop-up modal
121: [14:00:36] <samsamek> Would be a great UI enhancement, to add records without leaving the page
122: [14:01:13] * filisko has joined #silverstripe
123: [14:03:35] <cupcake> https://github.com/silverstripe-australia/silverstripe-gridfieldextensions not a popup but u can add a record in same page
124: [14:03:58] <samsamek> yes I’m using this mod already for the sorting feature
125: [14:04:28] <samsamek> cupcake: do you mean the inline editing feature?
126: [14:04:32] <cupcake> GridFieldAddNewInlineButton
127: [14:04:38] <samsamek> hmm, let’s give it a try
128: [14:10:33] <wmk> samsamek, modal? why...? you can add new DOs clicking the "add new" button.
129: [14:10:49] <wmk> depending on your grid settings
130: [14:11:08] <wmk> and of course if your user has canCreate() permission
131: [14:11:16] <samsamek> wmk: true, but when you have nested gridfields, it can be confusing for end users
132: [14:11:42] <wmk> well, then a modeladmin with a tab for each DO is a good solution
133: [14:12:20] <samsamek> Hmm, I can’t wrap my head around that
134: [14:12:30] <wmk> modeladmin?
135: [14:12:31] <samsamek> imagine these objects
136: [14:13:03] <samsamek> UserForm (not the original mod, my own) which has_many FormFields
137: [14:13:49] <samsamek> user goes to modeladmin Forms, creates a new form (UserForm) [user is in UserForm edit page]
138: [14:14:05] <samsamek> user now adds a new field to this form [user is in FormField edit page]
139: [14:14:17] <samsamek> now he’s in a tunnel of gridfield edit pages, it can be confusing
140: [14:14:29] <wmk> well...
141: [14:14:41] <samsamek> I think the inline editing feature could be a solution
142: [14:14:42] <wmk> maybe the structure in general is confusing ;)
143: [14:14:49] <samsamek> wmk: exactly my point!
144: [14:15:05] <wmk> inlineedit is a good solution for simple stuff, where everything is in summary_fields alreday
145: [14:15:12] <wmk> e.g. param->value for a dropdown
146: [14:15:21] <samsamek> yup, which is the case for these objects
147: [14:15:41] <wmk> go for inline addnew
148: [14:15:57] <samsamek> Indeed, going to test it in a few minutes
149: [14:15:57] <wmk> cause modal is also confusing and has some drawbacks
150: [14:16:09] <samsamek> true.. there is already enough ajax in the back-end
151: [14:16:23] <samsamek> I read an interesting comment on AJAX: AJAX is for ACTION not for CONTENT
152: [14:16:31] <wmk> could be a clean backend...
153: [14:16:43] <samsamek> meaning, it shouldn’t be used to browse pages, but to perform actions
154: [14:45:40] <samsamek> Inline editing is pretty good
155: [14:56:03] * wmk quit (Ping timeout: 240 seconds)
156: [15:06:07] * cupcake quit (Quit: Page closed)
157: [15:06:20] * cupcake has joined #silverstripe
158: [15:17:08] * UndefinedOffset quit (Quit: Leaving.)
159: [15:23:43] * vanny has joined #silverstripe
160: [15:24:08] <vanny> morning all
161: [15:29:04] * muskie9 has joined #silverstripe
162: [15:29:42] * slievr1 has joined #silverstripe
163: [15:30:34] <slievr1> Hello, would anybody happen to know how I can call an objects parent class from a dataextension?
164: [15:30:59] * slievr1 is now known as slievr
165: [15:33:47] * filisko quit (Ping timeout: 255 seconds)
166: [15:33:55] <muskie9> slievr something like $this->owner->parent or something
167: [15:35:44] <vanny> hey muskie, Happy New YEar
168: [15:35:57] <muskie9> happy new year vanny
169: [15:36:15] <muskie9> everybody keeping up w/the snow storms ;P
170: [15:36:37] <vanny> got to 20F here overnight for 2 days, now back in the 70's
171: [15:37:41] <muskie9> damn! we've been on a cold snap for a while... just sitting here waiting for spring
172: [15:39:29] <cupcake> come to malta muskie9... sunny and 15 degrees.. good for a swim :D
173: [15:39:50] <vanny> cupcake, is that C or F
174: [15:39:57] * muskie9 quit (Read error: No route to host)
175: [15:40:22] * muskie9 has joined #silverstripe
176: [15:41:27] <slievr> muskie9: would that not return the parent object?
177: [15:42:21] <slievr> $data = $this->owner [some code here] parent::handleCustomFields($data); is what I was trying to do
178: [15:42:51] <slievr> I've realised I don't need to do that now, but I'd still like to know if it's possible
179: [15:42:57] <muskie9> ah, like that
180: [15:43:22] <muskie9> that's a good question actually
181: [15:48:47] * UndefinedOffset has joined #silverstripe
182: [15:49:23] * filisko has joined #silverstripe
183: [15:51:59] * terryapodaca quit (Quit: Leaving.)
184: [15:52:57] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
185: [15:55:47] <cupcake> 15 C
186: [15:55:50] <cupcake> vanny
187: [15:58:06] * Sentro has joined #silverstripe
188: [15:59:41] <vanny> ok, nice :)
189: [15:59:55] <vanny> i thought you were crazy extreme swimmer
190: [16:11:30] <vanny> has anyone just deleted the _resample folder to clean up all the thumbnails, resize that have been made?
191: [16:22:43] * Sentro quit (Quit: Sentro)
192: [16:28:45] * cupcake quit (Ping timeout: 260 seconds)
193: [16:31:47] * filisko quit (Ping timeout: 252 seconds)
194: [16:44:19] * filisko has joined #silverstripe
195: [16:47:39] <muskie9> vanny not explicitly... I think there's a task that clears generated images from the system
196: [16:48:07] <vanny> i tried that but didn't work. Im busy trying to clean up 13000 images a client went crazy with
197: [16:48:52] <vanny> they link to data objects, so they would upload one, didnt like it, upload another one, rotate upload again.
198: [17:00:37] * muskie9 quit (Ping timeout: 245 seconds)
199: [17:28:11] * janneklouman-- quit (Ping timeout: 240 seconds)
200: [17:30:45] * kinglozzer quit ()
201: [17:43:57] * filisko quit (Ping timeout: 245 seconds)
202: [17:59:29] * filisko has joined #silverstripe
203: [18:24:08] * samsamek quit (Quit: samsamek)
204: [18:24:58] * samsamek has joined #silverstripe
205: [18:40:07] * gelignite has joined #silverstripe
206: [18:42:48] * trash_ has joined #silverstripe
207: [19:03:01] * frustrated has joined #silverstripe
208: [19:03:52] <frustrated> Has anyone here worked with the textextraction module?
209: [19:04:35] <frustrated> I am having some trouble with this.
210: [19:04:37] <frustrated> $myFileObj = File::get()->First();
211: [19:04:37] <frustrated> $content = $myFileObj->getFileContent();
212: [19:10:28] * samsamek quit (Quit: samsamek)
213: [19:35:24] * UndefinedOffset quit (Quit: Leaving.)
214: [20:28:53] * vitaly_ has joined #silverstripe
215: [20:47:58] * samsamek has joined #silverstripe
216: [20:48:37] * UndefinedOffset has joined #silverstripe
217: [20:53:07] * micmania1 has joined #silverstripe
218: [20:55:30] * cheddam has joined #silverstripe
219: [21:11:48] * micmania1 quit (Quit: micmania1)
220: [21:23:41] * micmania1 has joined #silverstripe
221: [21:24:07] * samsamek quit (Quit: samsamek)
222: [21:26:27] * UndefinedOffset quit (Quit: Leaving.)
223: [21:43:48] * muskie9 has joined #silverstripe
224: [22:16:35] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
225: [22:17:31] * vanny quit (Quit: Page closed)
226: [22:31:19] * Nightjar has joined #silverstripe
227: [22:34:48] * samsamek has joined #silverstripe
228: [22:48:11] * muskie9 quit (Ping timeout: 240 seconds)
229: [23:00:01] * ss-helper quit (Remote host closed the connection)
230: [23:00:17] * ss-helper has joined #silverstripe
231: [23:52:44] * Phlunk3 quit (Remote host closed the connection)

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