#silverstripe IRC Log

IRC log for 2 August 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:08] <Nightjar> I got it running without too much issue, thankfully. Thanks to fresh VM for this explicit purpose.
3: [00:00:14] * adrexia nods
4: [00:00:16] * ss-helper has joined #silverstripe
5: [00:00:21] <adrexia> We also wrote heaps of docs
6: [00:00:22] <adrexia> :P
7: [00:00:22] <Nightjar> just took more time to make sense of the docs tbh.
8: [00:00:32] <adrexia> haha
9: [00:00:41] <Nightjar> yep, thankfully. They're quite good for the small part that I read (how to set up env)
10: [00:01:08] <adrexia> yeah, we had people working on linux and mac, so that may have helped a little
11: [00:01:16] * Stomach quit (Quit: zzz)
12: [00:01:35] <Nightjar> yeh, cos docs are all 'brew this' 'n stuff.
13: [00:02:13] <Nightjar> welp, this offending line was added just 2 months ago. Time to bug the author as to why.
14: [00:03:57] <adrexia> oh good, it wasn't me
15: [00:03:58] <adrexia> :P
16: [00:04:19] <adrexia> they may have forgotten to commit the dependencies?
17: [00:05:24] * zippy has joined #silverstripe
18: [00:06:57] * Stomach has joined #silverstripe
19: [00:08:39] <Nightjar> Maybe. Or there's some magic proxy type object thing doing magic stuff somewhere and urgh.
20: [00:09:25] <Nightjar> datObj[stringvar] = function(){return 'disclosure'} //or something, idk, urgh.
21: [00:11:45] * pweh quit (Read error: Connection reset by peer)
22: [00:12:02] <adrexia> yep
23: [00:12:11] <adrexia> that project is pretty complex
24: [00:12:16] <Hailwood> Blegh, anyone here any good an interpreting mail logs?
25: [00:12:16] <adrexia> good luck ;)
26: [00:21:57] <spronk> maybe
27: [00:21:59] <spronk> whats the problem, Hailwood
28: [00:22:35] <Hailwood> Basically, trying to send the email, but getting dsn=5.0.0, stat=Service unavailable
29: [00:23:27] <spronk> what's the recipient domain?
30: [00:24:25] <Hailwood> custom domain, through google.
31: [00:35:41] <spronk> hmm
32: [00:35:49] <spronk> check DNS from the sending machine
33: [00:35:55] <spronk> make sure it's actually resolving
34: [00:39:51] <DanaeNZ> fml this task works fine from browser but doesn't appear to work from crontab
35: [00:40:14] <DanaeNZ> I think it doesn't help that there's like symlinks and htaccess shit
36: [00:40:34] <DanaeNZ> ugh I have no idea what I'm doing
37: [00:41:31] <DanaeNZ> the email report I get shows the response as "302 Found" and possibly might be redirecting to the login page
38: [00:42:48] <DanaeNZ> system shouldn't prompt login for the crontab
39: [00:42:50] <DanaeNZ> wtfff
40: [00:47:35] * micmania1 quit (Quit: micmania1)
41: [00:47:43] <adrexia> DanaeNZ it might if you hit permission issues?
42: [00:48:20] <adrexia> I had that a little while ago
43: [00:48:20] <DanaeNZ> adrexia: SS related or file related? I've checked file permissions and it looks fine. I wonder if we're hijacking the auth somewhere
44: [00:48:42] <adrexia> oh, just writing files, not objects?
45: [00:48:49] <adrexia> Mine was dataobject related
46: [00:48:54] <DanaeNZ> yeah, just a few chars to a file
47: [00:49:00] <adrexia> O_o
48: [00:49:14] <DanaeNZ> the cron output is literally a list of HTTP response headers
49: [00:49:30] <adrexia> does it work from the terminal run manually?
50: [00:50:01] <DanaeNZ> Yup
51: [00:50:18] <DanaeNZ> exact same command that's in the crontab
52: [00:50:32] <DanaeNZ> hoooold on
53: [00:50:38] <DanaeNZ> let me run it as that use
54: [00:50:39] <DanaeNZ> user
55: [00:50:44] <DanaeNZ> why didn't I think of that already
56: [00:51:13] <DanaeNZ> omfg
57: [00:51:31] <DanaeNZ> I believe that none of these fucking tasks are running
58: [00:51:34] <adrexia> its user related?
59: [00:51:38] <DanaeNZ> I believe so
60: [00:52:36] <DanaeNZ> so the server we're running is WHM/cpanel with apache userdirs
61: [00:52:52] <DanaeNZ> so the http user apparently doesn't have permissions in this instance to run the task
62: [00:53:13] <DanaeNZ> I should check the root crontab
63: [00:54:01] <DanaeNZ> ok it's scary in there. The other cronjobs I've set up on different sites on the same server work fine
64: [00:55:53] <ss23> drinking beer at lunch is always a good choice
65: [00:57:23] <DanaeNZ> ok maybe it is file permissions
66: [00:57:30] <ss23> DanaeNZ: you should fix it
67: [00:57:39] <Hailwood> By drinking beer
68: [00:57:50] <DanaeNZ> ss23: nah
69: [00:57:54] <ss23> :(I
70: [00:57:57] <DanaeNZ> haha
71: [00:58:19] <DanaeNZ> What are the default file perms? 644? I always forget this shit
72: [00:58:27] <ss23> depends on the system
73: [00:58:34] <ss23> you can check by running `touch file && ls -lah file`
74: [00:58:37] <ss23> but like
75: [00:58:45] <ss23> it's different for the web user to the person you're SSHd as
76: [00:59:39] <DanaeNZ> yeah, the only one I know for certain is the files should all be under cpaneluser:cpaneluser
77: [01:00:37] <ss23> have you considered crying and/or not runnign shared hosting?
78: [01:01:20] <DanaeNZ> I've even tried to not take on the role of server admin
79: [01:01:23] <DanaeNZ> yet somehow it happened
80: [01:01:26] <ss23> lol
81: [01:02:14] <adrexia> DanaeNZ you just have to practice being bad at things
82: [01:02:30] <ss23> Only if you're planning on being bad again in future
83: [01:02:32] <adrexia> people stop giving you stuff when you can prove incompetence ;)
84: [01:02:35] <ss23> if you just be perfect from the get-go it's fine
85: [01:03:23] <adrexia> ss23 - you just get more stuff to do if you are good at stuff
86: [01:03:28] <DanaeNZ> unfortunately I'm in that awkward limbo of being competent enough that I'm asked to do things yet not experienced enough to tell people to fuck off
87: [01:03:48] * adrexia laughs
88: [01:04:03] <DanaeNZ> I'm also wondering why this http response reckons the PHP session cookie should expire in 1981
89: [01:04:15] <adrexia> O_o
90: [01:04:22] <LokiNZ> Would I still need to build a relationship between a data object and a page that hosts form page if the data is not going to be re-displayed? - eg a feedback form.
91: [01:04:29] * Stomach quit (Quit: zzz)
92: [01:05:00] <DanaeNZ> LokiNZ: nah, I assume it's just going to an email?
93: [01:05:08] <LokiNZ> yup
94: [01:05:41] <DanaeNZ> yeah you don't need to write it to db. I like having a message object though just in case email fucks out
95: [01:06:32] * Stomach has joined #silverstripe
96: [01:06:51] <DanaeNZ> ooh I found a forum post
97: [01:06:55] <LokiNZ> I want to retain the data in a db to look at, search on later, it's not feedback but required info from customers etc
98: [01:07:49] <DanaeNZ> ok so you probably don't need a relationship set up, just make a new object and write it
99: [01:08:19] <DanaeNZ> ok the plot thickens - so the sake wrapper, does that handle user permissions? These cron tasks are running through cli-script
100: [01:08:26] <DanaeNZ> file to url mapping is set up correctly
101: [01:08:57] <DanaeNZ> maybe it needs to be php-cli
102: [01:10:05] <DanaeNZ> omg that's it
103: [01:10:43] <DanaeNZ> I was just copying the other cronjob commands
104: [01:10:51] <DanaeNZ> turns out those ones are probably wrong too
105: [01:11:30] <adrexia> ...and no one has noticed?
106: [01:12:06] <DanaeNZ> Nope
107: [01:13:01] <DanaeNZ> probably because a lot of stuff is handled with webhooks, so the cronjobs kind of just sit there anyway
108: [01:13:12] <adrexia> ahh
109: [01:16:37] * micmania1 has joined #silverstripe
110: [01:22:21] <adrexia> anyone needed to use a js drawing library recently?
111: [01:22:59] * UncleCheese has joined #silverstripe
112: [01:23:13] <adrexia> so many of them seem hopelessly out of date. And then there's D3 (which would mean a lot of custom dev in this instance).
113: [01:30:29] * micmania1 quit (Quit: micmania1)
114: [01:32:31] * Nightjar quit (Ping timeout: 265 seconds)
115: [01:36:08] <spronk> drawing library
116: [01:36:09] <spronk> heh
117: [01:36:13] <spronk> adrexia for what exactly?
118: [01:37:00] <adrexia> well, almost for creating a web-based drawing programme. But really basic (limited shapes, colours, etc)
119: [01:37:12] <adrexia> not charts
120: [01:37:24] <adrexia> ...which have an abundance of options
121: [01:38:05] <adrexia> these seem like the top contenders so far, which worries mes a little:
122: [01:38:07] <adrexia> https://github.com/clientIO/joint
123: [01:38:07] <adrexia> https://github.com/uxebu/bonsai
124: [01:38:08] <adrexia> http://interactjs.io/
125: [01:38:09] <adrexia> http://paperjs.org/
126: [01:38:36] <spronk> hmm
127: [01:39:19] <adrexia> bonsai looks good, but its now 2 years since its been touched
128: [01:39:36] <spronk> hmm
129: [01:39:37] <adrexia> which in the browser world, means its probably dead
130: [01:39:38] <spronk> thats a long time
131: [01:39:41] <adrexia> yep
132: [01:40:03] <adrexia> paperjs is promising, but no examples close to what I need...
133: [01:40:19] <spronk> hmm
134: [01:40:37] <adrexia> interact has a website that makes my eyes bleed.
135: [01:40:54] <adrexia> ... which may or may not be a factor in my indifference towards it
136: [01:41:36] <adrexia> 7 months is a pretty long time without a chnage too though
137: [01:42:20] <adrexia> ok, 6
138: [01:43:16] <spronk> mm...
139: [01:43:25] <spronk> ##javascript ?>
140: [01:43:41] <adrexia> heh
141: [01:43:49] <spronk> i mean, it's a fucking minefield in there but yknow
142: [01:43:57] <adrexia> I think paperjs might be the best option
143: [01:43:58] * DanaeNZ quit (Remote host closed the connection)
144: [01:44:11] <adrexia> but uses canvas
145: [01:45:55] <LokiNZ> Anyone here handle the documentation?
146: [01:46:14] <adrexia> I hear its broken
147: [01:46:20] <adrexia> 3.4 redirecting or something
148: [01:46:39] <LokiNZ> yeah I'm getting 404s to http://api.silverstripe.org/3.4/ bassed links
149: [01:49:26] * micmania1 has joined #silverstripe
150: [01:57:39] <LokiNZ> what's everyone's fav editor?
151: [01:57:49] <ss23> vim
152: [01:57:51] <adrexia> What's yours?
153: [01:58:09] <LokiNZ> no it's not
154: [01:58:19] * Nightjar has joined #silverstripe
155: [01:58:20] <LokiNZ> I use Notepad++
156: [01:59:37] <adrexia> I use Atom
157: [02:02:08] * muskie9 has joined #silverstripe
158: [02:07:18] * DanaeNZ has joined #silverstripe
159: [02:12:03] * muskie9__ has joined #silverstripe
160: [02:15:03] * muskie9 quit (Ping timeout: 240 seconds)
161: [02:16:20] * Stomach quit (Quit: zzz)
162: [02:20:24] <Hailwood> Hey folks, is there a "field" that's a fieldset with a legend?
163: [02:22:33] <muskie9__> Hailwood http://api.silverstripe.org/3.3/class-Form.html#_setLegend ?
164: [02:23:06] <muskie9__> could be a start... never tried to include a legend
165: [02:24:09] * muskie9__ is now known as muskie9
166: [02:27:19] <Hailwood> Hmm, not quite what I'm after, basically I'm looking to do a logical grouping of Shipping vs Billing address in a form.
167: [02:28:02] <Hailwood> I could do it with a FieldGroup and specifically target .fieldgroup > div I guess
168: [02:28:10] * Hailwood has left #silverstripe
169: [02:28:23] * Hailwood has joined #silverstripe
170: [02:28:40] <muskie9> composite field maybe... can't remember if you can addExtraClass to FieldGroup
171: [02:28:52] <muskie9> the extra classes are always helpful
172: [02:32:11] <Hailwood> UX is important. I keep quitting my irc channels because... http://i.imgur.com/eFcZWCZ.png
173: [02:35:08] <spronk> lul
174: [02:35:09] <spronk> hexchat
175: [02:35:10] <spronk> so fail
176: [02:35:36] <Hailwood> Got a better (linux) client?
177: [02:39:14] <Hailwood> http://caniuse.com/#feat=classlist what the heck is the deal for IE 9 and 10?
178: [02:52:12] <adrexia> yeah, HexChat is one of the reasons I'm happy to be back on mac
179: [02:52:37] <adrexia> Hailwood - click 'show all'
180: [02:53:29] <Hailwood> Cheers
181: [02:54:08] <adrexia> I like the relative usage view
182: [02:54:17] <adrexia> it makes me feel hopeful
183: [02:54:55] <Hailwood> I've never played around with those views
184: [02:56:01] <zippy> lol funny
185: [02:56:13] <zippy> I never care about Opera Mini.. but it's almost up there with ALL of IE for that item
186: [02:56:54] <adrexia> its histroically been relaly popular with mobile
187: [02:56:59] <adrexia> *really
188: [02:57:13] <adrexia> I used to use it when I had a device too slow to properly internet
189: [02:57:18] <Hailwood> Does ecommerce *really* need the ability to have multiple shipping and billing addresses?
190: [02:57:30] <adrexia> yep]
191: [02:57:44] <adrexia> or at least 2 - home and work
192: [03:02:06] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
193: [03:07:53] <Hailwood> Hmm, so I've never been able to get this right, Member "has_many" Address, Address "has_one" Member, but on one or both relationships - "BillingAddresses" or "ShippingAddresses" can someone please give me a hand setting them up? SS always seems to get confused as to which relationship it should link.
194: [03:12:04] <Hailwood> I know it's something like this http://i.imgur.com/9pVFzVE.png but I don't believe that's quite right./
195: [03:16:11] <Hailwood> Actually, that's overcomplicating it, I don't need to separate them. but I am still curious as to how this would be setup relationship wise
196: [03:20:50] * Stomach has joined #silverstripe
197: [03:23:19] <zippy> Well
198: [03:23:23] <zippy> it would just have 1 member
199: [03:23:24] <zippy> and thats all
200: [03:23:33] <zippy> Member => Member
201: [03:24:23] <Hailwood> So Member would have the two relationships, but Address would only have one to represent both?
202: [03:24:46] <zippy> why would address have more than one
203: [03:24:50] <zippy> An address just has 1 member
204: [03:25:47] <zippy> hang on :P
205: [03:26:30] <Hailwood> Lol as I said above, I realized I was overcomplicating it, so let's change it to a more generic example, 'Car' has many 'Wheel'. That works right?
206: [03:26:32] <zippy> how do you tell if it's a shipping or billing address.. that is what your trying to do with that odly named relation eh
207: [03:27:05] <zippy> I wonder cosider doing this
208: [03:27:19] <zippy> 1 to 1 Member => Member on the address
209: [03:27:26] <zippy> Member has one to many. Addresses => Address
210: [03:27:41] <zippy> then on the Address object add a [ shipping | billing ] flag
211: [03:27:47] <zippy> then on the member you can do
212: [03:28:14] <zippy> public function shippingAddresses() { return $this->Addresses()->filter('Shipping', 1); }
213: [03:29:15] <Hailwood> It becomes more difficult though if you then want to split those into two gridfields
214: [03:30:24] <adrexia> you can pre-filter the gridfields though, right?
215: [03:30:45] <Hailwood> adrexia, Yeah, but you can't pre-populate data from the add new button.,
216: [03:30:49] <adrexia> I guess auto setting it when adding could be more problematic
217: [03:30:52] <adrexia> yeah ;)
218: [03:31:15] <adrexia> actually, I';m pretty sure you can
219: [03:31:19] <Hailwood> And some of our clients would seriously bug that, even though they would just have to change the field when creating it lol.
220: [03:31:19] <adrexia> its just tricky
221: [03:32:16] * Nightjar quit (Ping timeout: 264 seconds)
222: [03:32:52] <Hailwood> I'd be interesting in seeing an example, or even being point in the right direction of the code, I've looked quite a bit at the different gridfield components
223: [03:32:59] <adrexia> https://docs.silverstripe.org/en/4.0/developer_guides/forms/field_types/gridfield#gridfielddetailform
224: [03:33:27] <adrexia> I think you can use that bit of code to set a boolean value
225: [03:33:33] <adrexia> from the gridfield
226: [03:33:50] <adrexia> oh, that's for 4.0
227: [03:34:03] <adrexia> but I think its still exists ?
228: [03:34:20] <adrexia> https://docs.silverstripe.org/en/4.0/developer_guides/forms/field_types/gridfield#gridfielddetailform
229: [03:34:21] <adrexia> ahh yep :)
230: [03:34:29] <adrexia> https://docs.silverstripe.org/en/3.3/developer_guides/forms/field_types/gridfield#gridfielddetailform
231: [03:34:33] <adrexia> wrong link
232: [03:35:44] <Hailwood> I din't think the add new button pays attention to that component though does it? I always thought that just affected what fields were displayed in the gridfield since it runs a "performatReadOnlyTransformation" over them
233: [03:39:16] <adrexia> the add button doesn't
234: [03:39:21] <adrexia> but the gridfield does
235: [03:40:16] <adrexia> so, if you have two gridfields you should be able to add like, a checkbox or something with its value preset to true
236: [03:42:41] <Hailwood> About to test
237: [03:46:02] * Nightjar has joined #silverstripe
238: [03:48:48] <Hailwood> Ha interesting, You can do it, but you need to grab the current CMS fields for the object too i.e. http://kopy.io/hz3Bw
239: [03:49:48] <adrexia> ahh yep. :)
240: [03:50:09] <adrexia> so it replaces, ratehr than augmenting
241: [03:50:09] <Hailwood> That's really useful to know, thanks :) I had been looking in the wrong place :)
242: [03:50:14] <Hailwood> Correct
243: [03:50:32] <adrexia> np - glad it works :D
244: [03:52:01] <adrexia> oh, you could probably use getFeilds, then set fields
245: [03:52:14] <adrexia> if you didn't want to rely on the singleton
246: [03:52:39] <Hailwood> Yeah, but that would need to be done by grabbing the config from the gridfield after it was instantiated I believe
247: [03:52:53] <adrexia> ahh ok :)
248: [03:53:01] <Hailwood> I prefer setting up my config, and then finally passing it to the gridfield heh.
249: [03:53:03] <Hailwood> Now onto the next pet peeve :D If you have a relationship (in this case "Addresses" on the member) and you add the gridfield manually to e.g. Root.Main you end up with an empty tab named after the relationship. I'm sure that's new in 3.3-3.4?
250: [03:54:02] <adrexia> nash, that's been around forever :-/
251: [03:54:22] <adrexia> it only removes the one field (the one you've moved)
252: [03:54:59] <Hailwood> I wonder how difficult an update it would be to loop over all tabs and if they're empty remove them just before rendering...
253: [03:55:06] <adrexia> unless you manually remove - then it removed both
254: [03:57:22] <adrexia> I don't know. It could be a template change, or it could be extremely complicated
255: [03:57:39] <adrexia> knowing the CMS code, I'd put my money on the latter
256: [04:00:06] <ss-helper> Translating a Databobject using the _t() method? - http://stackoverflow.com/questions/38711516/translating-a-databobject-using-the-t-method
257: [04:02:45] <Hailwood> When when you're in Security -> A Member -> Some Dataobject | when you click "Save and close" does it take you right back to Security. Sigh.
258: [04:07:23] * micmania1 quit (Quit: micmania1)
259: [04:15:06] <ss-helper> Translating a Dataobject using the _t() method? - http://stackoverflow.com/questions/38711516/translating-a-dataobject-using-the-t-method
260: [04:31:50] <Audlex> how could i do something like this inside a DO?
261: [04:31:51] <Audlex> $uploadField = ($this->Parent->ClassName == 'SchoolPage' ? UploadField::create('BackgroundImage') : LiteralField::create('spacer', '&nbsp;'));
262: [04:36:01] * Liquide quit ()
263: [04:38:33] * micmania1 has joined #silverstripe
264: [04:39:43] <adrexia> it depends, but much like that ^
265: [04:39:56] <adrexia> but $this->Parent()->ClassName
266: [04:40:55] <adrexia> oh, but for dataobjects?
267: [04:41:13] <adrexia> yeah, there is no parent when you are creating the record.
268: [04:41:20] <adrexia> good times :D
269: [04:42:43] <adrexia> probably you could pass the parentID as a hiddenfield using much that same tactic as was discussed above
270: [04:43:36] <adrexia> actually no. But you could do that logic on the getCMSFields of the class itself
271: [04:43:53] <adrexia> (parent class)
272: [04:45:28] <Audlex> crating an onject, would it not know its relation to the parent page generating the new object?
273: [04:46:55] <Audlex> i just wanted to recycle the DO on another page where i add another field to
274: [04:46:59] <Audlex> is there an easier way for this?
275: [04:49:02] <Audlex> or should i not be so anal about how many files are in my models folder?
276: [04:52:26] <Hailwood> adrexia, something doesn't seem quite right here... http://i.imgur.com/gV2ZBXh.png
277: [04:54:42] <adrexia> the required bit?
278: [04:55:25] <adrexia> Audlex it doesn't have a real parent until the relation exists, but the gridfield is passed the parentID
279: [04:56:44] <Nightjar> environmental issues mean tests fail. But they fail with NO info, so can't be fixed.
280: [04:56:49] <Nightjar> no helpful* info
281: [04:57:11] <Nightjar> 1 line code change, removed call to undefined function.
282: [04:57:25] <Nightjar> a little frustrating indeed.
283: [04:57:30] <Hailwood> adrexia, the "required" attribute that is added onto a UL if you mark an OptionsetField as required ha
284: [04:57:36] <Nightjar> I've had a 'fun' day.
285: [04:58:17] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
286: [04:58:19] <adrexia> hahah, yeah thats pretty funny :D
287: [04:58:35] <adrexia> (sorry, my brain is halfway fried)
288: [04:58:38] <Nightjar> yeh, tests bail out on master also :<
289: [04:59:06] <adrexia> Hailwood, is it just a templatebug?
290: [04:59:09] <Nightjar> lol Hailwood wtf
291: [04:59:25] <Hailwood> yeah seems like it
292: [04:59:26] <Nightjar> addAttribute on OptionSetField?
293: [04:59:28] <adrexia> "It is required that this thing be a list"
294: [04:59:34] <adrexia> sweet deal
295: [05:00:21] <Hailwood> Nightjar, won't work, because the reason the required flag is added to the ul is because that's what has $AttributesHTML
296: [05:00:37] <Nightjar> huh, I've never thought about that before, but what _is_ the proper way to set required on a radio list?
297: [05:00:50] <Hailwood> each option gets marked as required
298: [05:01:08] <Nightjar> Hailwood, yeah, I should have been clearer... are YOU using addAttribute, or is that the default output?
299: [05:01:33] <Hailwood> Ah, na, form RequiredFields()
300: [05:01:42] <Nightjar> so default output
301: [05:01:43] <Nightjar> lol
302: [05:01:44] <adrexia> Nighjar - the require html is eventually set using add/atributes
303: [05:01:50] <adrexia> so it doesn't really matter
304: [05:01:52] <adrexia> :D
305: [05:01:54] <Nightjar> raise an issue on the githubs
306: [05:02:19] <adrexia> its actually one of those hard problems
307: [05:02:20] <Audlex> cheers adrexia, i will get it working just on curiosity now.
308: [05:02:31] <Hailwood> I'll fix the issue first, then raise the bug
309: [05:03:29] <adrexia> Audlex - you can always use this on the parent class https://docs.silverstripe.org/en/3.3/developer_guides/forms/field_types/gridfield#gridfielddetailform cf http://kopy.io/hz3Bw
310: [05:03:39] <Nightjar> Hailwood, that's just a PR then :P
311: [05:04:13] <adrexia> the problem wirth fixing it is that I bet somet hings rely on the wrapper getting the attricutes
312: [05:04:31] <adrexia> c.f css classes
313: [05:05:15] <Hailwood> adrexia, I'm not "fixing" fixing. I'm just adding onto the option <% if $Up.Required> required<% end_if %>
314: [05:05:16] <Hailwood> lol
315: [05:05:30] <Hailwood> so the ul still has it's lovely invalid attributes :D
316: [05:06:21] <Hailwood> Nightjar, that's also why this is just a bug report :D SS can figure out how they actually *want* to fix the issue
317: [05:06:28] <Hailwood> since that will require some deeper thought.
318: [05:06:49] <adrexia> yeah, probably seperating attributes from classes would be a goo start
319: [05:06:55] <adrexia> *good
320: [05:08:20] <Hailwood> The annoying thing is the patch will also need to be made in display logic (you listening UncleCheese ?) because that package overrides the template with a copy of the original
321: [05:09:07] <Nightjar> anyway, it's bed time. Goodnight.
322: [05:09:13] * Nightjar quit (Quit: Leaving)
323: [05:09:44] <Hailwood> Oh aye, the 3.4 branch has my patch anyway ha
324: [05:09:51] <Hailwood> this must be outdated... composer update..
325: [05:17:32] * micmania1 quit (Quit: micmania1)
326: [05:19:46] <Hailwood> Hmm... checkout page... do it with SS forms to allow manipulation through PHP, or rip it out into the template (with vue) for more control... such a decision.
327: [05:23:32] * Stomach quit (Ping timeout: 244 seconds)
328: [05:54:03] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
329: [05:56:12] * micmania1 has joined #silverstripe
330: [06:20:57] * Anh_Le has joined #silverstripe
331: [06:22:02] * DanaeNZ quit (Quit: TIME TO FEED)
332: [06:29:50] * Anh_Le quit (Ping timeout: 250 seconds)
333: [06:51:22] * micmania1 quit (Quit: micmania1)
334: [06:52:54] * micmania1 has joined #silverstripe
335: [06:53:30] * arnhoe has joined #silverstripe
336: [06:58:18] * veb quit (Ping timeout: 258 seconds)
337: [06:59:35] * veb has joined #silverstripe
338: [06:59:35] * veb quit (Changing host)
339: [06:59:35] * veb has joined #silverstripe
340: [07:28:51] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
341: [07:31:34] * pweh has joined #silverstripe
342: [07:34:27] * Stomach has joined #silverstripe
343: [07:35:16] * darianno has joined #silverstripe
344: [07:36:38] * hewp has joined #silverstripe
345: [07:38:05] * UncleCheese has joined #silverstripe
346: [07:39:10] * pweh quit (Ping timeout: 252 seconds)
347: [07:40:55] * jeremy379 has joined #silverstripe
348: [07:40:55] <ss-helper> jeremy379: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
349: [07:42:13] <jeremy379> Hi guys :) Some of you use silverstripe/userforms ? I'm looking on how I could add some custom code on the form submitting :s (need to send the data through a webservice )
350: [07:49:49] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
351: [07:49:52] * Mike123 has joined #silverstripe
352: [08:04:08] * zippy has joined #silverstripe
353: [08:04:11] * slievr has joined #silverstripe
354: [08:07:40] <jeremy379> Hi guys :) Some of you are using silverstripe/userforms ? I'm looking on how I could add some custom code on the form submitting :s (need to send the data through a webservice ). I can't make some extension works, I don't even know if I should use Extension, just extend the class or something else ...
355: [08:12:46] * janneklouman-- has joined #silverstripe
356: [08:16:17] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
357: [08:16:30] * terryapodaca1 has joined #silverstripe
358: [08:20:57] * DimiStripe quit (Ping timeout: 250 seconds)
359: [08:21:09] * terryapodaca quit (Ping timeout: 250 seconds)
360: [08:21:10] * TRB143 quit (Remote host closed the connection)
361: [08:21:10] * DimiStripe_alt has joined #silverstripe
362: [08:21:10] * TRB143 has joined #silverstripe
363: [08:21:11] * DimiStripe_alt is now known as DimiStripe
364: [08:25:06] * jeremy379 quit (Ping timeout: 250 seconds)
365: [08:28:40] * hewp quit (Ping timeout: 252 seconds)
366: [08:28:59] * kinglozzer has joined #silverstripe
367: [08:31:00] * kinglozzer quit (Client Quit)
368: [08:33:20] * micmania1 quit (Quit: micmania1)
369: [08:35:27] * kinglozzer has joined #silverstripe
370: [08:39:43] * hewp has joined #silverstripe
371: [08:57:10] * Mike123 quit (Ping timeout: 250 seconds)
372: [08:58:04] * swaiba has joined #silverstripe
373: [08:58:59] * zippy has joined #silverstripe
374: [09:10:10] * UncleCheese has joined #silverstripe
375: [09:12:19] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
376: [09:16:18] * micmania1 has joined #silverstripe
377: [09:37:46] * WebDevB has joined #silverstripe
378: [09:38:24] <WebDevB> hey guys, I need to join a table to a search query... Basically I want it to filter on another table is the Type2 = Registration No.
379: [09:38:30] <WebDevB> is this possible?
380: [09:39:04] <swaiba> WebDevB $list->leftJoin(..)
381: [09:40:16] <WebDevB> swaiba yea i've tried this: ->leftJoin("AuctionSale", "\"AuctionSale\".\"Type2\" = \"Registration No.\"");
382: [09:40:40] <WebDevB> but I get an error of nUnknown column 'Registration No.' in 'on clause'
383: [09:41:02] <WebDevB> Am i missing something?
384: [09:43:31] * deschebbs has joined #silverstripe
385: [09:46:09] <WebDevB> swaiba: are you there?
386: [09:46:43] <swaiba> WebDevB - standup... - something like this is what I have $list = $list->leftJoin('OrderItem', 'Order.ID = oi.OrderID', 'oi')
387: [09:47:18] <WebDevB> swaiba the trouble is i don't need to bring any information from the first table I just need it to check what type it is on the query
388: [09:48:53] <swaiba> WebDevB I don't see the difference...
389: [10:38:46] * micmania1 quit (Quit: micmania1)
390: [10:52:33] * WebDevB quit ()
391: [10:56:46] * loki__ quit (Ping timeout: 250 seconds)
392: [11:12:17] * Stomach quit (Quit: zzz)
393: [11:33:11] * flowsn has joined #silverstripe
394: [11:33:14] * flowsn quit (Client Quit)
395: [11:52:45] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
396: [12:03:04] * LokiNZ quit (Ping timeout: 250 seconds)
397: [12:04:49] * hewp quit (Read error: Connection reset by peer)
398: [12:34:10] * agent44 has joined #silverstripe
399: [12:52:53] * muskie9 has joined #silverstripe
400: [12:53:20] * UndefinedOffset has joined #silverstripe
401: [13:19:07] * agent44 quit (Ping timeout: 250 seconds)
402: [13:20:40] * agent44 has joined #silverstripe
403: [13:54:45] * deschebbs quit (Ping timeout: 276 seconds)
404: [14:01:18] * agent44 quit (Quit: zzz)
405: [14:01:39] * agent44 has joined #silverstripe
406: [14:04:06] * lucinderella has joined #silverstripe
407: [14:06:47] * agent44 quit (Ping timeout: 250 seconds)
408: [14:06:47] * lucinderella is now known as agent44
409: [14:11:26] <slievr> Has anyone encountered a problem like this before? Call to undefined method Email::setTemplate()
410: [14:30:17] <ss-helper> SilverStripe template statement returns false positive - http://stackoverflow.com/questions/38588128/silverstripe-template-statement-returns-false-positive
411: [14:56:17] * Smashcat has joined #silverstripe
412: [14:59:35] <Smashcat> Hi, anyone know if php 5.6 is supposed to work with Silverstripe? I'm getting 500 errors all over the place. I'm in dev mode, but there are no error logs. The rest of the server is working fine. It's only Silverstripe that's crashing
413: [15:00:12] * WebDevB has joined #silverstripe
414: [15:00:41] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
415: [15:00:49] <swaiba> Smashcat I *think* it's up to php 5.4... but SS4 is going to PHP7
416: [15:01:12] <Smashcat> Ah ok, I'll see if I can install an old version of PHP on the server.
417: [15:01:27] <WebDevB> got a real strange one...
418: [15:01:34] <muskie9> Smashcat 5.6 works fine with SS 3+... if you're running SS 2.x there's a hack to get it working
419: [15:02:12] <Smashcat> muskie9: Pretty sure this is a recent version of SS. No way to tell though - I didn't install it, but it was only set up a few months ago
420: [15:02:19] <WebDevB> using the $email->setToCC('email@.com') they never receive it... only the person who the $email->setTo(''); set
421: [15:03:02] <swaiba> Smashcat does it have a composer json in the root?
422: [15:03:06] <muskie9> ^
423: [15:03:08] <WebDevB> anyone else ever had this issue before?
424: [15:03:10] <muskie9> was just typing that
425: [15:03:10] <muskie9> lol
426: [15:03:30] <Smashcat> swaiba: Yep
427: [15:03:35] <muskie9> WebDevB ->setCc()
428: [15:03:40] <swaiba> I suppose "email@.com" is replaced with a email that might work?
429: [15:03:44] <muskie9> http://api.silverstripe.org/3.3/class-Email.html#_setCc
430: [15:03:46] <WebDevB> Yea
431: [15:03:49] <swaiba> :)
432: [15:03:50] <kinglozzer> My dev env is 5.6 and I've never had any problems, even with 2.4 sites O.o
433: [15:03:54] <muskie9> not setToCC
434: [15:03:59] <WebDevB> Yea, i can see them cc'd into the email but they never actually get it.
435: [15:04:04] <swaiba> Smashcat and what does it say for a version in there?
436: [15:04:08] <WebDevB> yea sorry muskie9 that was a typo.
437: [15:04:11] <muskie9> gotcha
438: [15:04:18] <muskie9> maybe it's in their spam folder?
439: [15:04:34] <Smashcat> swaiba: 3.2
440: [15:04:40] <swaiba> bingo
441: [15:04:42] <muskie9> we use sendgrid to send emails from sites... helps track down if the email sent
442: [15:04:45] <WebDevB> I though't that but i've swapped it round and when i'm cc'd in i don't get it yet they do.
443: [15:04:58] <WebDevB> Yea, that's what i'm trying to use SendGrid.
444: [15:05:05] <swaiba> we are moving to mailgun, I'd advise that one
445: [15:05:06] <WebDevB> i didn't know if it was an issue with SendGrid
446: [15:05:15] <swaiba> but sendgrid is good and does have a nice sub-account thing for clients
447: [15:05:21] <swaiba> but they _never_ login
448: [15:05:24] <Smashcat> swaiba: Ok cool, I'll try an older version of PHP on there to see if it'll work with that.
449: [15:05:25] <WebDevB> not liking multiple email addresses
450: [15:05:27] <kinglozzer> *cough* https://github.com/kinglozzer/silverstripe-mailgunner
451: [15:05:30] <muskie9> you should be able to see email activity in sendgrid
452: [15:05:33] <kinglozzer> ;D
453: [15:05:37] <swaiba> so mailgun allows easier tracking per message via their api
454: [15:05:48] * swaiba nods at kinglozzer
455: [15:06:17] <kinglozzer> Smashcat: Got access to error logs? 3.2 definitely works with PHP 5.6
456: [15:06:23] <swaiba> muskie9 "but they _never_ login" clients are as clients do I suppose
457: [15:06:26] * muskie9 researching mailgun
458: [15:06:31] <WebDevB> muskie9: yea it doesn't appear there but you can see it within the email body.
459: [15:06:35] <muskie9> true swaiba
460: [15:06:36] <Smashcat> kinglozzer: It's not logging anything. It's in dev mode
461: [15:06:49] <swaiba> also they give a nice "check is valid email" field to use which is nice
462: [15:07:01] <WebDevB> kinglozzer: easy to install without composer as it's a live site already setup.
463: [15:07:25] <kinglozzer> Smashcat: Not even in apache logs? :S
464: [15:07:37] <Smashcat> kinglozzer: Nope.
465: [15:08:24] * agent44 quit (Ping timeout: 260 seconds)
466: [15:08:34] <kinglozzer> WebDevB: I don't think so, it requires mailgun's PHP library and that might pull in other libs too
467: [15:08:47] <muskie9> WebDevB do you need the CC, or could you send a second email with the other address set as the To?
468: [15:09:01] <muskie9> as a temp fix while debugging further
469: [15:09:05] <WebDevB> muskie9: i suppose i could just perform 2 sends.
470: [15:09:10] <kinglozzer> Smashcat: Just checking the simple things - you've run "composer install", yeah?
471: [15:09:17] <Smashcat> kinglozzer: If I go to a page on the site that bypasses silverstripe, then that is loaded ok. As soon as I go to a page that Silverstripe handles, it just crashes
472: [15:09:19] * agent44 has joined #silverstripe
473: [15:09:30] <muskie9> we tend to manage recips in a model admin then loop over the list and send a new email to each recip
474: [15:10:01] <kinglozzer> Hmm
475: [15:10:11] * deschebbs has joined #silverstripe
476: [15:10:18] <Smashcat> kinglozzer: This was a working site, taken from another server, along with its database. I deleted the silverstripe_cache, tried a flush=all etc. The only difference on this server is a newer version of php.
477: [15:10:28] <kinglozzer> I'd definitely expect something in the server logs to explain why..
478: [15:11:10] <Smashcat> It's probably crashing so catastrophically that it doesn't get a chance to log I guess.
479: [15:11:37] <swaiba> if you're ss is logging the error it might be in another file
480: [15:11:54] <swaiba> I get a little frustrated with that when it doesn't show on screen or int he error_log...
481: [15:12:08] <Smashcat> I don't think it's logging anywhere else. There are no other log files that I can find.
482: [15:12:09] <swaiba> but there it is int he silverstripe log... almost makes me want to ditch it...
483: [15:12:20] <swaiba> which I will when we do the elk stack soon
484: [15:12:37] <kinglozzer> Smashcat: Assuming apache, is mod_rewrite enabled?
485: [15:12:46] <Smashcat> Yep
486: [15:13:10] <kinglozzer> Smashcat: And you're looking at /var/log/apache2/error.log or whatever?
487: [15:13:18] <Smashcat> It's a 500 server error, so it's trying to process something and crashing I think
488: [15:13:33] <Smashcat> Yep, I set up logs for that vhost
489: [15:13:55] <kinglozzer> Smashcat: Okay, first thing I'd try is putting a die('hello'); in framework/main.php and see if it's hitting that
490: [15:14:39] <Smashcat> kinglozzer: Yep that outputs fine
491: [15:15:46] <kinglozzer> Smashcat: In that case, I'd probably work through that (and framework/core/Core.php) and see if you can find a point where it's getting stuck
492: [15:16:09] <kinglozzer> Is display_errors on in PHP?
493: [15:16:27] <Smashcat> Yep, but I guess SS overrides that?
494: [15:16:44] <kinglozzer> I think it does once it hits a certain point in the startup process, yeah
495: [15:16:49] * swaiba quit (Remote host closed the connection)
496: [15:18:16] * terryapodaca1 quit (Read error: Network is unreachable)
497: [15:19:00] * terryapodaca has joined #silverstripe
498: [15:22:09] <Smashcat> kinglozzer: I can log into the admin, but then I get the "Internal server error" popup on the top right when I try to use any link from the admin panel.
499: [15:22:42] <Smashcat> I've even tried chmod -R 777 * to ensure there's no permission issues. Makes no difference.
500: [15:22:47] * arnhoe quit ()
501: [15:22:52] <WebDevB> Ok, gave up and wrote 2 email statements... seems to have fixed the issue.
502: [15:22:56] <kinglozzer> Smashcat: If you open network inspector, do you see any error in the HTTP response?
503: [15:23:23] <kinglozzer> If you can open the admin it sounds like you've got a bit further, does it log anything in apache logs now?
504: [15:24:02] <Smashcat> kinglozzer: Yep "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
505: [15:28:42] <kinglozzer> Smashcat: Is that the response body? If you open dev tools in Chrome, then the "Network" tab, hit refresh, click the request that's errorring and then click the "Response" tab?
506: [15:29:43] <Smashcat> I just need to change the php.ini settings again. I'm not getting the error 500 popup any more. It's working for a couple of pages in the admin now, but not all.
507: [15:30:46] <kinglozzer> Smashcat: If you're seeing admin pages, it sounds like the bootstrap process etc is working okay, so I'd check the apache error logs again now
508: [15:32:05] <Smashcat> Kinglozzer: I'm not seeing the admin pages now that I've turned off display_errors in php.ini . I just get the 500 internal error popup again. There's nothing int he body for the network request, only the header
509: [15:33:31] <kinglozzer> Smashcat: Still nothing in apache logs?
510: [15:33:43] <Smashcat> Nope
511: [15:34:19] <Smashcat> Must be some sort of conflict between SS and the version of PHP I have installed I think.
512: [15:39:50] <kinglozzer> Smashcat: If you add user_error('testing', E_USER_ERROR); to the start of main.php before SilverStripe touches error handling, does that show up in apache error logs? If not, perhaps it's logging errors somewhere else?
513: [15:40:46] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
514: [15:42:01] <Smashcat> kinglozzer: Once I added that, all i got were blank pages.
515: [15:42:26] <kinglozzer> Yep, that's expected if display_errors is off, but it should show up in your error logs
516: [15:42:32] <Smashcat> I did get the "testing" log in the ssl-error log though
517: [15:43:26] * muskie9 has joined #silverstripe
518: [15:45:43] <kinglozzer> Smashcat: Try setting display_errors=1, then commenting out the line "if (!$reloadToken) $chain->setSuppression(false);" in framework/main.php
519: [15:45:50] <kinglozzer> I think that line is what turns display_errors off
520: [15:48:24] <Smashcat> Yeah if I enable display_errors in php.ini I just get blank pages from SS
521: [15:48:38] <Smashcat> Nothing in error log (after making the change to main.php as well)
522: [15:51:25] * deschebbs quit (Ping timeout: 252 seconds)
523: [15:51:32] <kinglozzer> Smashcat: Try adding ini_set("log_errors", "On"); ini_set("error_log", "../silverstripe.log");
524: [15:51:45] <kinglozzer> Should then hopefully log to that file in docroot
525: [15:51:59] <kinglozzer> I'm running out of ideas :P
526: [15:54:01] * UndefinedOffset quit (Quit: Leaving.)
527: [15:55:20] <Smashcat> Yeah, nothing in the log :) I think this is a lost cause. This SS site is only maintaining images for a WebGL app (which I wrote). I think I'll remove the SS code, and just make a small bespoke CMS to manage the images. It'll be quicker than trying to work out why SS is crashing. Thanks for the help though :)
528: [15:56:07] <kinglozzer> No problem, still got the M3 Smashcat? ;)
529: [15:56:25] <Smashcat> Yup - when did I mention that? :)
530: [15:56:37] <Smashcat> Ah, Bigfork?
531: [15:56:39] <kinglozzer> Smashcat: Colin told me once (I'm Loz @ Bigfork)
532: [15:56:41] <kinglozzer> Yeah :P
533: [15:56:45] <Smashcat> hahaha
534: [15:57:09] <kinglozzer> I'm a car guy so I remember these things haha
535: [15:57:38] <Smashcat> Yeah, haven't been allowed to drive it for 10 months. Going a bit too quick :)
536: [15:58:18] <kinglozzer> Ouch! I've got an E60 M5, I have to be careful to avoid that too :P
537: [15:58:52] <Smashcat> Nice :)
538: [15:59:13] <Smashcat> Actually got used to not having a car though, it'll be weird when I can drive again!
539: [15:59:50] <kinglozzer> I can't imagine life without a car! Have you got long left?
540: [16:00:18] <Smashcat> About 6 weeks. I'm sure my insurance quote will be "great"!
541: [16:00:48] <kinglozzer> God yeah that's gonna be extortionate!
542: [16:01:21] <Smashcat> Luckily I don't need a car really, walk to work, or get the train when I'm in London. Might go for limited milage insurance - think I only did 2k miles in the year before.
543: [16:02:37] <kinglozzer> That should help then, I bet it'll still be a huge bill!
544: [16:02:55] <Smashcat> Heh, yeah. I'm sure the M5 isn't cheap either?
545: [16:03:48] <kinglozzer> Nope, £650 for 7 months additional premium (upgrading from a 350z), so I think it'll probably be around £1200 next year
546: [16:03:58] <kinglozzer> Perhaps a bit more
547: [16:04:42] <kinglozzer> But I'm 23, so I have to expect the young drivers premium still
548: [16:04:48] <Smashcat> Yeah, that's about what my M3 was a year ago. Apparently "one of the most stolen cars in the country" according to the insurance!
549: [16:04:57] <kinglozzer> It's the servicing that'll get me...
550: [16:04:59] <Smashcat> That's a good price at 23 though
551: [16:05:58] <Smashcat> Yeah, BMW servicing and parts are extortionate. This is my 4th BMW - I love them, but they're not cheap to run!
552: [16:06:14] * muskie9__ has joined #silverstripe
553: [16:06:27] <kinglozzer> I'm desperate to do another track day at Snetterton, I just don't dare in case the worst happens!
554: [16:06:51] <kinglozzer> Yeah I'm keeping the warranty running too, which means main dealer for pretty much everything :(
555: [16:07:08] * muskie9 quit (Read error: No route to host)
556: [16:07:20] <Smashcat> Heh, I used to live next door to Snetterton - I keep saying I'll build a kit car for track days (or buy a part-completed one). A Lotus 7 style.
557: [16:08:03] <kinglozzer> I'd love to do that!
558: [16:08:27] <Smashcat> Don't think I'd take my road car to one - it's the other drivers bumping into me I'm worried about!
559: [16:09:40] <kinglozzer> Yeah exactly, I took my 350z before and when I was there one car smashed into the back of, coincidentally, another 350z!
560: [16:10:46] <kinglozzer> I plan to do Nurburgring and Spa in rented cars in the future (I'd never dream of taking one of my own to the ring!)
561: [16:11:03] <kinglozzer> (rented track cars of course, not airport rentals :P)
562: [16:12:08] <Smashcat> Yeah - plus unless you arrange a premium beforehand, you're not insured on a racetrack... You can get a fun kitcar for a few grand as a runner. That's my plan - just a motorbike engined one. I've never looked into renting track cars - like to do the Nurburgring one day. Used to do drag racing at Santapod in my GTO.
563: [16:14:11] * janneklouman-- quit (Ping timeout: 250 seconds)
564: [16:15:17] <kinglozzer> I had insurance for my 350z on that trackday, it was ~£120 iirc. Nice, I've only been to Santapod once for a drifting experience day, never done any drag racing at all
565: [16:17:00] <Smashcat> That's not a bad price for the insurance considering the massively increased possibility of a crash :)
566: [16:17:29] <darjusIT> Hi all
567: [16:18:05] <darjusIT> is in 3.4 ListboxField working? because I made ListboxField and cannot make multiple selections
568: [16:19:22] <kinglozzer> It was through a trackday insurance company rather than my usual insurer, they took the details of the day I was doing (I was in the novice group as I'd done less than 5 track days before), so I imagine they considered that lower risk
569: [16:19:39] <Smashcat> Ah right
570: [16:22:17] * UndefinedOffset has joined #silverstripe
571: [16:22:54] <darjusIT> solverd ->setMultiple(true) forgot this
572: [16:25:03] * WebDevB quit ()
573: [16:29:09] <kinglozzer> Right, gotta run
574: [16:29:16] <kinglozzer> bb all
575: [16:29:44] * kinglozzer quit ()
576: [17:08:59] * slievr quit (Quit: Leaving.)
577: [17:14:40] * agent44 quit (Quit: zzz)
578: [18:07:21] * UndefinedOffset quit (Quit: Leaving.)
579: [18:28:46] * UndefinedOffset has joined #silverstripe
580: [18:51:48] * muskie9__ quit (Ping timeout: 276 seconds)
581: [19:24:57] * Stomach has joined #silverstripe
582: [20:14:17] * UncleCheese has joined #silverstripe
583: [20:14:32] * Stomach quit (Quit: zzz)
584: [20:18:14] * muskie9 has joined #silverstripe
585: [20:51:23] * Stomach has joined #silverstripe
586: [20:53:58] * UndefinedOffset quit (Quit: Leaving.)
587: [20:54:35] * UndefinedOffset has joined #silverstripe
588: [20:55:55] * UndefinedOffset quit (Client Quit)
589: [20:55:59] * adrexia has joined #silverstripe
590: [20:58:54] * neomang has joined #silverstripe
591: [21:11:00] * Stomach quit (Quit: zzz)
592: [21:11:50] * Stomach has joined #silverstripe
593: [21:21:31] * Stomach quit (Quit: zzz)
594: [21:28:45] * Stomach has joined #silverstripe
595: [21:34:08] * micmania1 has joined #silverstripe
596: [21:45:37] * muskie9 quit (Ping timeout: 252 seconds)
597: [21:47:21] * darjusIT quit (Read error: Connection reset by peer)
598: [22:06:40] * DanaeNZ has joined #silverstripe
599: [22:25:17] * Stomach quit (Quit: zzz)
600: [22:29:01] * Stomach has joined #silverstripe
601: [22:35:02] * Stomach quit (Quit: zzz)
602: [22:36:42] * Stomach has joined #silverstripe
603: [22:40:15] * muskie9 has joined #silverstripe
604: [22:56:16] * Admonish has joined #silverstripe
605: [22:59:15] <Admonish> Hey there guys, does anyone know how to add HTML tags to Gridfields Summery_fields output? I have tried to edit the Nice() function on the dataType to get it to return HTML but when I do the html tags just show up as is and dont actually render as HTML
606: [23:05:05] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
607: [23:18:03] <adrexia> yeah, you need to translate it into a dbfield object. eg: DBField::create_field('HTMLVarchar', '<img />');
608: [23:18:48] <adrexia> so, you need a function that returns the html you want as a DBField
609: [23:21:05] <Admonish> So just to clarify are you saying that I would use something like DBField::create_field('HTMLVarchar', '<img />'); directly in the Nice() function (seen in boolean,currency,and time dataTypes)?
610: [23:21:57] <adrexia> If you wanted to use the nice function, yeah. I'd probably just make a custom function
611: [23:22:43] <Admonish> Thank you for the advice. I will try it right away
612: [23:22:45] <adrexia> and do :
613: [23:22:46] <adrexia> private static $summary_fields = array(
614: [23:22:47] <adrexia> 'MyCustomFunction' => 'Field Title'
615: [23:22:48] <adrexia> );
616: [23:23:28] <Admonish> right gotcha
617: [23:31:21] <Admonish> K im not quite sure what im doing in my particular case. Basically I am creating a color display box for the gridfields summer_fields. This way I can show a color representation of the hex color directly in the grid. Heres the code Im trying to output in my Nice() function (in the color.php added by color picker addon). Code: <div style="background-color:'.$rgbaString.')">#'.$this->value.'</div>
618: [23:32:19] <adrexia> can you post the full snippet somewhere?
619: [23:32:45] <Admonish> for sure
620: [23:33:03] <Admonish> Gist ok for you?
621: [23:33:19] <adrexia> yep :)
622: [23:38:23] <Admonish> here you go https://gist.github.com/mooror/6ab74f6c80f4f921df22f2c7d49a174d
623: [23:43:54] <adrexia> how is mycolorfunction.php called?
624: [23:44:16] <adrexia> can you just move that into Usecvae.php and rename it?
625: [23:44:22] <adrexia> *UseCase
626: [23:44:48] <adrexia> oh
627: [23:44:59] <Admonish> oh sorry i tried to make it clear in the description. The Nice function in that mycolorfunction.php file is actually already in the the color.php file
628: [23:45:01] <adrexia> it that just an example to highlight the lines?
629: [23:45:07] <adrexia> ahh rigth :D
630: [23:45:19] <Admonish> I just seperated it into its own file for you to make it easier XD
631: [23:45:27] <adrexia> return DBField::create_field('HTMLVarchar', '<div style="background-color:'.$rgbaString.')">#'.$this->value.'</div>');
632: [23:45:40] <adrexia> shoudl end with something like that ^
633: [23:45:58] <Admonish> ill try it :D thanks for the help btw
634: [23:46:04] <adrexia> no problem
635: [23:49:09] <Admonish> It worked :D thank you so much. You most likely saved me about a half hour of rooting through the API docs.
636: [23:49:14] <Admonish> Awesome :D
637: [23:49:26] <adrexia> no problem. Glad it worked. :)
638: [23:52:14] <spronk> ugh timezones
639: [23:52:15] <spronk> do your head in

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