#silverstripe IRC Log

IRC log for 6 February 2014

All timestamps are in UTC.

1: [00:25:19] * OxFF1 quit (Ping timeout: 260 seconds)
2: [00:28:06] * ObiWanShanobi has joined #silverstripe
3: [00:30:42] * ObiWanShanobi quit (Remote host closed the connection)
4: [00:34:55] * ObiWanSh_ has joined #silverstripe
5: [00:39:39] * ObiWanSh_ quit (Remote host closed the connection)
6: [01:08:05] * ObiWanShanobi has joined #silverstripe
7: [01:12:26] * UncleCheese quit (Quit: UncleCheese)
8: [01:12:35] * ObiWanShanobi quit (Remote host closed the connection)
9: [01:12:52] * willr quit (Quit: willr)
10: [01:44:46] * ObiWanShanobi has joined #silverstripe
11: [02:59:21] <Colin[pi]> quiet todat
12: [02:59:23] <Colin[pi]> today
13: [02:59:25] <Colin[pi]> wait
14: [02:59:29] <Colin[pi]> it's a holiday right?
15: [03:05:47] <irogue> yup
16: [03:05:55] <irogue> the mall was crazy
17: [03:29:10] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
18: [03:29:43] * Bollig|DesignCty has joined #silverstripe
19: [04:15:55] * Motoservo has joined #silverstripe
20: [04:24:17] * cloph quit (Ping timeout: 246 seconds)
21: [04:29:21] * cloph_away has joined #silverstripe
22: [04:42:13] * DesignerX has joined #silverstripe
23: [04:46:09] * ObiWanShanobi quit (Remote host closed the connection)
24: [04:52:04] * Error404NotFound has joined #silverstripe
25: [05:06:55] * ccb has joined #silverstripe
26: [05:07:56] <ccb> Hello, does anyone know if i can use a dataExtension to override a method in a class?
27: [05:08:29] * UncleCheese has joined #silverstripe
28: [05:09:43] <ccb> does anyone know if i can use a dataExtension to override a method in a class?
29: [05:11:04] <UncleCheese> ccb: no, that's not how the decorator pattern works
30: [05:11:30] <ccb> i can only add funcions and db fields right?
31: [05:11:53] <UncleCheese> some methods will offer hooks to their extensions, e.g. updateCMSFields(), but if the method is defined natively in the class, you need to create a subclass or find another way of doing it
32: [05:12:05] <UncleCheese> the native method will always be preferred to the extension method
33: [05:12:20] <UncleCheese> no, you can add methods and any static property
34: [05:13:31] <ccb> i am trying to override a method in blog module, and dont want to get the extra page types in the cms
35: [05:13:40] <ccb> and dont want to hack the blog module
36: [05:15:09] * ObiWanSh_ has joined #silverstripe
37: [05:16:26] <ccb> thank you uncle cheese, I'll try to figure out a different way to do this
38: [05:17:29] <Colin[pi]> you get the house UncleCheese?
39: [05:27:32] <ccb> if I extend the BlogHolder class and use Object:useCustomClass("BlogHolder","CustomBlogHolder") will i run into problems with that?
40: [05:32:54] * ccb quit (Quit: Page closed)
41: [05:39:21] * ObiWanSh_ quit (Quit: Leaving...)
42: [05:40:10] * DesignerX quit (Ping timeout: 265 seconds)
43: [05:54:10] * joelpittet has joined #silverstripe
44: [06:19:11] * SightUnseen has joined #silverstripe
45: [06:19:26] * DesignerX has joined #silverstripe
46: [06:19:32] * SightUnseen has left #silverstripe
47: [06:24:35] * Shrike_Finland has joined #silverstripe
48: [06:34:26] <UncleCheese> Colin[pi]: yes!
49: [06:34:34] <UncleCheese> move on 21 feb
50: [06:41:20] * Motoservo quit (Quit: Motoservo)
51: [06:45:42] * Motoservo has joined #silverstripe
52: [06:56:24] <Shrike_Finland> Uncle Cheese: Should this module work after adding ->render? https://github.com/bluehousegroup/silverstripe-contact-form
53: [06:57:08] <Shrike_Finland> offline for a while…
54: [06:57:14] * Shrike_Finland quit (Quit: Leaving.)
55: [06:59:11] * simon_w|air quit (Ping timeout: 252 seconds)
56: [07:08:10] * simon_w|air has joined #silverstripe
57: [07:12:27] * Shrike_Finland has joined #silverstripe
58: [07:24:22] * robert___ quit (Changing host)
59: [07:24:22] * robert___ has joined #silverstripe
60: [07:24:27] * robert___ is now known as robert_
61: [07:26:21] * SightUnseen has joined #silverstripe
62: [07:34:11] * SightUnseen quit (Quit: Leaving.)
63: [07:35:55] * Shrike_Finland quit (Quit: Leaving.)
64: [07:40:08] * Shrike_Finland has joined #silverstripe
65: [07:48:02] * Shrike_Finland quit (Quit: Leaving.)
66: [07:54:59] * joelpittet quit (Remote host closed the connection)
67: [07:59:29] <wmk> good morning
68: [08:09:57] * ARNHOE has joined #silverstripe
69: [08:12:10] * Bollig|DesignCty quit (Ping timeout: 260 seconds)
70: [08:37:36] * OzziNL has joined #silverstripe
71: [08:51:13] * azureknight has joined #silverstripe
72: [08:54:06] * Error404NotFound quit (Read error: Connection reset by peer)
73: [08:55:40] <azureknight> Hmm. Does Silverstripe have a sort of IsChild variable?
74: [08:56:09] <azureknight> Hmm. I guess I can just use if not parent.
75: [09:04:29] * kinglozzer has joined #silverstripe
76: [09:05:37] * micmania1 has joined #silverstripe
77: [09:06:16] <micmania1> I never trust it when it asks me to update flash :(
78: [09:06:28] * Shrike_Finland has joined #silverstripe
79: [09:07:36] <kinglozzer> micmania1: 0-day fix I read earlier
80: [09:07:49] <kinglozzer> I hate flash >:(
81: [09:07:57] <micmania1> I didn't even know I had it.
82: [09:09:32] <kinglozzer> I just hate the way they try to trick people into installing other software with patches now
83: [09:09:36] * Error404NotFound has joined #silverstripe
84: [09:10:50] <micmania1> Youu're not aware of a revolution slider module for ss are you?
85: [09:11:58] <kinglozzer> Nope, sorry
86: [09:12:32] <micmania1> Couldn't find one yesterday. Started to make one so might release it when its done
87: [09:12:49] <micmania1> We do a lot of HTML templates now which include it.
88: [09:12:58] <kinglozzer> Is that the one where you can do custom animations etc?
89: [09:13:40] <micmania1> yeah. everything is timed
90: [09:13:44] <micmania1> total bastard!
91: [09:13:54] <micmania1> each slide has a load of components to it
92: [09:14:05] <kinglozzer> Yeah I looked at that before and thought fuck that!
93: [09:14:41] <Zauberfisch> I just used foundation 5 on a project
94: [09:14:51] <Zauberfisch> and thought, cool. that comes with a slider
95: [09:14:53] <micmania1> http://themeforest.unitedthemes.com/themes/nevada/ - That's the theme
96: [09:15:02] <Zauberfisch> if they ship a slider with a framework like that it has to be good
97: [09:15:04] <Zauberfisch> ...
98: [09:15:05] <Zauberfisch> wrong
99: [09:15:29] <Zauberfisch> I don't know where the hype around foundation and bootstrap comes from
100: [09:15:45] <kinglozzer> micmania1: That looks like hell to teach a client how to use
101: [09:15:49] <micmania1> I made a nivo slider a while ago (on my Github) and i've never used it once!
102: [09:16:09] <micmania1> yeah, i've hidden everything in 'Advanced Options' with a toggle field
103: [09:19:34] <Shrike_Finland> hi, is there an easy way adding extra class for all images inserted with TinyMCE? Thinking of adding responsive images thru editor...
104: [09:24:29] <wmk> Shrike_Finland, that sounds interesting
105: [09:24:38] <wmk> Zauberfisch, you don't like bootstrap?
106: [09:25:01] <Zauberfisch> no
107: [09:25:08] <Shrike_Finland> Bootstrap makes things a bit faster :)
108: [09:25:16] <Zauberfisch> the oposite
109: [09:25:25] <Shrike_Finland> Depends on project
110: [09:25:35] <Zauberfisch> all css frameworks I have tried so far actually stand in my way
111: [09:25:41] <wmk> guess it's faster if you think the way you have to think
112: [09:25:53] <Shrike_Finland> wmk: excatly
113: [09:25:55] <wmk> if you don't think like it's intended it's slower
114: [09:26:13] <wmk> "It's not designed to be like this"... hmm, which company said this once?
115: [09:26:16] <Shrike_Finland> (exactly)
116: [09:26:23] <wmk> *duck*
117: [09:26:24] <Zauberfisch> yeah, sure, frameworks are super good if you do exactly what they do in their demo
118: [09:26:36] <Zauberfisch> but if you try anything else, you are not going to have a good time
119: [09:26:51] <wmk> how many times did i think this about silverstipe?
120: [09:27:03] <Zauberfisch> not that often actually
121: [09:27:04] <wmk> ok, not that often, but sometimes...
122: [09:27:14] <Shrike_Finland> We have customised Bootstrap so, that we can control things what we want and let bootstrap do it tricks on base.
123: [09:27:20] <wmk> Zauberfisch, but isn't this the definition of "framework"?
124: [09:27:30] * Shashitechno has joined #silverstripe
125: [09:27:58] <Shashitechno> kinglozzer: Hey !
126: [09:28:08] <Zauberfisch> because I know my way around
127: [09:28:33] <Zauberfisch> wmk: well, there is frameworks
128: [09:28:42] <Zauberfisch> and there is "well designed frameworks"
129: [09:28:50] <Zauberfisch> later does not exist that much
130: [09:28:52] <Shrike_Finland> true
131: [09:29:08] <Shashitechno> guys I am sending emails via SS, the issue is they wont appears to be properly formatted !
132: [09:29:16] <Zauberfisch> silverstripe is not perfect, but silverstripe is well designed in regards of not standing in my way
133: [09:29:28] <Zauberfisch> if I want to hack some crazy shit, I can
134: [09:29:29] <Shashitechno> with email content CRLF characters comes
135: [09:29:55] <wmk> Zauberfisch, full ack.
136: [09:30:01] <wmk> Sometimes you have to hack a bit
137: [09:30:08] <Shashitechno> with email content CRLF characters comes
138: [09:30:12] <Shashitechno> though I am using $EmailText.XML is my ss template !
139: [09:30:16] <Shashitechno> any idea ?
140: [09:31:17] <Shrike_Finland> simple and efficient usually does not come very easy on frameworks. There needs to be a lot knowledge of design, ease of implementation and efficient programming.
141: [09:31:42] <Shrike_Finland> In building "über framework", I mean.
142: [09:38:09] <Colin[pi]> I made my own framework once... never again
143: [09:38:45] <wmk> Colin[pi], when it comes to security i don't want to make my own framework.
144: [09:39:08] <Colin[pi]> yep because it doesn't matter how smart or careful you are, there are always holes
145: [09:44:52] <Shrike_Finland> back to my original question, any ideas how to put additional image class to all images added via TinyMCE?
146: [09:45:47] <wmk> regex onBeforeWrite?
147: [09:47:05] * Motoservo quit (Remote host closed the connection)
148: [09:47:16] <wmk> afaik there was a discussion on making the image css classes configurable some time ago on dev list
149: [09:51:02] <kinglozzer> Shrike_Finland: Do you mean CSS class or a different PHP class than Image?
150: [09:52:37] * DesignerX quit (Quit: Konversation terminated!)
151: [09:57:43] * Shashitechno quit (Ping timeout: 245 seconds)
152: [10:04:10] <Shrike_Finland> Basically, CSS-class would be enought to add automatic scaling for responsive, for shadows or any image "manipulation".
153: [10:04:47] <Shrike_Finland> PHP class might be useful for retina images: $image for basic images and $image-retina for hi dpi images :)
154: [10:10:26] <wmk> i don't like subclassing the image class. why not extend / decorate it?
155: [10:14:28] * speak__ has joined #silverstripe
156: [10:15:25] <Shrike_Finland> Hmm, what would be best way of doing it?
157: [10:23:14] <wmk> you want to add it automatically to all images in $Content
158: [10:24:08] <kinglozzer> Shrike_Finland: You could edit all the default image CSS classes for the 'insert media' form, keep the same names but add an extra class or something. This might help: https://github.com/kinglozzer/htmleditornoalignment/blob/master/code/HtmlEditorField_NoAlignmentExtension.php
159: [10:27:14] <wmk> kinglozzer, yup. sounds like a good way to go
160: [10:27:32] <kinglozzer> Well, that's the easiest way to go anyway :P
161: [10:27:59] <wmk> but you have to be aware of this hook
162: [10:32:45] * UncleCheese quit (Quit: UncleCheese)
163: [10:35:09] <wmk> Shrike_Finland, using $this->ImageTracking() in onAfterWrite you can autogenerate resized images
164: [10:42:46] * azureknight quit (Quit: Textual IRC Client: www.textualapp.com)
165: [10:43:20] <kinglozzer> Does composer only cache for tagged releases?
166: [10:47:46] * Error404NotFound quit (Ping timeout: 245 seconds)
167: [10:54:46] * Error404NotFound has joined #silverstripe
168: [11:09:29] * Shrike_Finland quit (Quit: Leaving.)
169: [11:18:40] <wmk> anyone got focuspoint field running?
170: [11:22:54] * Shrike_Finland has joined #silverstripe
171: [11:24:39] <Shrike_Finland> wmk & kinglozzer: thanx! got to check these out.
172: [11:25:14] <wmk> you're welcome
173: [11:33:09] * OzziNL quit (Read error: Operation timed out)
174: [11:33:49] * Error404NotFound quit (Disconnected by services)
175: [11:33:50] * Err404NotFound has joined #silverstripe
176: [12:13:43] * KiwiV has joined #silverstripe
177: [12:14:08] <KiwiV> so yeah, that holiday
178: [12:15:47] <KiwiV> so are we 'av'n a pint tomorrow night micmania1?
179: [12:21:38] * KiwiV quit (Quit: Page closed)
180: [12:22:30] * KiwiV has joined #silverstripe
181: [12:24:08] * KiwiV quit (Client Quit)
182: [12:25:00] * KiwiV has joined #silverstripe
183: [12:39:21] <micmania1> KiwiV where?
184: [12:42:26] <micmania1> same as last time?
185: [12:42:56] <KiwiV> micmania1: yeh, could do. It's on the way to the station... ish
186: [12:43:15] <KiwiV> It's a holiday today, I'm working because wrong country :<
187: [12:43:32] <KiwiV> Need beer to celebrate, and olympics, and stuff.
188: [12:43:35] * Colin[pi] quit (Ping timeout: 260 seconds)
189: [12:44:03] <micmania1> gutted. You using Silverstripe yet? :p
190: [12:46:31] <KiwiV> If I could tell SS to use an external DB and map fields to object properties, then yeh I might.
191: [12:46:34] <KiwiV> but otherwise nah.
192: [12:47:15] <KiwiV> code igniter isn't much more than a small init script and a wee wrapper of mysql_blah
193: [12:47:22] <KiwiV> this is what I've discovered
194: [12:47:41] <KiwiV> works well enough for extracting info from pre-existing db though
195: [12:47:51] <KiwiV> but otherwise not all that intuitive
196: [12:48:05] <KiwiV> just easy to make it do whatever you need, because there isn't much of it to prevent that.
197: [12:48:39] <KiwiV> oh, and those fuckers at Absolute 80's haven't played my request yet.
198: [12:49:04] <KiwiV> Demand Kiwi music for Waitangi day! :<
199: [13:13:48] * UndefinedOffset has joined #silverstripe
200: [13:17:49] <micmania1> hahaha
201: [13:21:57] * dangerdan has joined #silverstripe
202: [13:22:25] <dangerdan> is it possible to remove 'pages' from the CMS? or even just hide the button in the left hand menu
203: [13:23:55] <wmk> dangerdan, afaik yes
204: [13:24:55] <Shrike_Finland> is this a good practice to trigger javascript (based on jquery): http://pastebin.com/dByAxrJa
205: [13:25:23] <Shrike_Finland> There seems to be some kind of loading problem… Script does not start after loading.
206: [13:25:42] <Shrike_Finland> But when browser viewport is changed, it starts working
207: [13:26:20] <KiwiV> dangerdan: did you try the delete button?
208: [13:26:39] <wmk> dangerdan, if you've subclassed a page type you can hide it's ancestor with $hide_ancestor
209: [13:26:48] <KiwiV> or: explain better. Don't give us an x=>y issue.
210: [13:27:12] <dangerdan> i meant the pages section, the whole section. so /admin would just be used for managing users. I'm probably just going to do it via permissions tbh
211: [13:27:27] <KiwiV> wmk: I think he means he's made a page, and it's not supposed to be edited (ie, should be a controller, not a page)
212: [13:27:38] <KiwiV> dangerdan: see access rights.
213: [13:27:45] <KiwiV> 'security' section, iirc.
214: [13:27:48] <wmk> anyone knows an easy way to change the page type of many pages at once?
215: [13:27:52] <KiwiV> that's kinda what they're all about.
216: [13:28:26] <KiwiV> so yes, do it via permissions.
217: [13:28:34] <dangerdan> aye.
218: [13:31:50] <KiwiV> dangerdan: kinglozzer, micmania1, tweet absolute 80's and tell them to stop faffing about and play some Crowded House already :D
219: [13:38:28] <micmania1> Absolute 80's sounds like hell.
220: [13:38:51] <wmk> well, "neue deutsche welle" was funny
221: [13:39:55] <KiwiV> micmania1: It does /seem/ that way, yeh. I'd have thought the same. But apparently there were a lot more good songs made in the 80's than I thought.
222: [13:40:20] <micmania1> are you being forced to listen to it?
223: [13:40:25] <KiwiV> Yes and no.
224: [13:40:38] <KiwiV> It's on, I'm not about to change it, but I also don't mind it.
225: [13:41:01] <micmania1> you not allowed headphones?
226: [13:41:03] * dangerdan quit (Ping timeout: 245 seconds)
227: [13:42:06] <KiwiV> micmania1: probably am, don't have any.
228: [13:42:26] <KiwiV> Yesterday Absolute 70's played some Dragon.
229: [13:42:36] <KiwiV> y u no Crowded House 80's :<
230: [13:44:45] <KiwiV> hahahahaha Dragon: The band also had a disastrous 1978 tour of USA which ended when Marc Hunter accused his Texan audience of being "faggots" and the band were pelted off stage.
231: [13:47:25] <micmania1> yolo!
232: [13:53:19] <KiwiV> Not that I don't enjoy things like Bon Jovi and all, I don't even mind the Pretenders, Roxette and Bonnie Tyler... but still no Kiwi music :<
233: [13:54:10] <KiwiV> Made request, even gave a good reason! (as asked for). It's the day the British swindled the natives out of their homes, how could they not want to celebrate?
234: [14:01:43] <micmania1> haha
235: [14:02:09] <micmania1> ever tried to render an UploadField inside a FieldGroup... oh my...
236: [14:02:55] <micmania1> http://awesomescreenshot.com/0432bb6o16
237: [14:03:35] <Zauberfisch> :D
238: [14:07:06] <KiwiV> micmania1: looks legit
239: [14:10:51] * Azure quit (Ping timeout: 260 seconds)
240: [14:11:16] <KiwiV> who has used zend studio before?
241: [14:12:11] <Zauberfisch> I did
242: [14:12:17] <Zauberfisch> don't do it
243: [14:12:32] <KiwiV> too late
244: [14:12:34] <KiwiV> so like
245: [14:12:37] <KiwiV> I made a file
246: [14:12:43] <KiwiV> and now server is all 404 brah
247: [14:12:47] <KiwiV> so I'm all wtf
248: [14:12:49] <KiwiV> path is correct
249: [14:13:02] * Azure has joined #silverstripe
250: [14:13:09] <KiwiV> but I notice "RemoteSystemsTempFiles" in front
251: [14:13:19] <Zauberfisch> puh, no idea
252: [14:13:24] <KiwiV> don't like the look of the Temp part :<
253: [14:13:26] <Zauberfisch> can't remember
254: [14:13:29] <Zauberfisch> thats like years ago
255: [14:13:39] <KiwiV> y u no just make file zend :S
256: [14:14:24] <Zauberfisch> KiwiV: you should consider switiching to an IDE that is actually useful
257: [14:14:26] <Zauberfisch> https://www.jetbrains.com/phpstorm/
258: [14:14:56] <wmk> Zauberfisch, full ack. Need a phpstorm / idea fan shirt *G*
259: [14:15:08] <KiwiV> yeh, I know Zauberfisch.
260: [14:15:13] <Zauberfisch> wmk: yeah, I really have become a fan boy :S
261: [14:15:21] <KiwiV> but, I just started. Need a bit of time.
262: [14:15:22] <Zauberfisch> but phpstorm is just that good ...
263: [14:15:42] <wmk> KiwiV, try it, you'll become faster a lot
264: [14:15:48] <KiwiV> Zauberfisch: it does remote files?
265: [14:15:51] <KiwiV> ie, ssh?
266: [14:15:53] <Zauberfisch> yes
267: [14:15:57] <KiwiV> cool.
268: [14:16:09] <KiwiV> seems to be the main reason we're using zend here
269: [14:16:19] <kinglozzer> Zauberfisch: Never looked at it, what does it have over Sublime?
270: [14:16:33] <Zauberfisch> kinglozzer: sublime is basically a text editor
271: [14:16:38] <Zauberfisch> sure, you can install fancy plugins
272: [14:16:47] <KiwiV> ah shit, ate lunch, now I feel hungry :<
273: [14:16:49] <Zauberfisch> but IDE is designed to be an IDE, sublimetext a text editor
274: [14:17:28] <wmk> is there a way to resize an image in template either by with or height?
275: [14:17:36] <wmk> or a shortcut?
276: [14:17:38] <kinglozzer> Might give it a shot. Is it free?
277: [14:17:43] <wmk> without padding
278: [14:17:52] <wmk> kinglozzer, 30 day trial
279: [14:18:10] <Zauberfisch> wmk: what do you mean?
280: [14:18:12] <wmk> and private licence isn't that expensive.
281: [14:18:39] <wmk> i have some images, some landscape, some portrait and want to resize them either to 600 width or height
282: [14:19:00] <KiwiV> wmk: ratiorezise or resizeratio or something
283: [14:19:01] <Zauberfisch> $SetRatioSize(600,600) perhaps?
284: [14:19:03] <KiwiV> that one.
285: [14:19:05] <KiwiV> ^^
286: [14:19:14] <kinglozzer> SetRatioSize?
287: [14:19:15] <kinglozzer> Oh
288: [14:19:17] <wmk> yeah
289: [14:19:22] <kinglozzer> Slowpoke
290: [14:19:23] <wmk> *blind*
291: [14:19:32] <Zauberfisch> slowpoke?
292: [14:19:55] <wmk> kinglozzer, the shortcuts in phpstorm are cool either.
293: [14:20:24] <kinglozzer> Zauberfisch: http://i265.photobucket.com/albums/ii209/Michelle_Kayla/Pokemon/slowpoke.gif
294: [14:23:57] <KiwiV> gawd, why stomach troll :S
295: [14:24:05] <KiwiV> wasn't hungry, had lunch anyway, now hungry S
296: [14:32:53] * Shrike_Finland quit (Quit: Leaving.)
297: [14:35:33] <KiwiV> oic, so zend studio can read and save to files on a remote, but can't / won't create them
298: [14:35:36] <KiwiV> weird.
299: [14:38:44] * catcher has joined #silverstripe
300: [14:54:54] * Err404NotFound quit (Read error: Connection reset by peer)
301: [15:07:05] * guzzlefry has joined #silverstripe
302: [15:10:26] <guzzlefry> k, who wants to be my hero? :P
303: [15:11:00] * Err404NotFound has joined #silverstripe
304: [15:11:15] <guzzlefry> I basically need to flag dataobjects as they're exported via CSVExport.
305: [15:12:16] * svandragt has joined #silverstripe
306: [15:12:30] <svandragt> hello.
307: [15:12:32] <catcher> guzzlefry, permanently? Like setting a LastExported date on the object?
308: [15:13:13] <guzzlefry> catcher: yeah, well in this case a boolean
309: [15:13:20] <guzzlefry> svandragt: morning
310: [15:15:34] * ObiWanSh_ has joined #silverstripe
311: [15:15:36] <catcher> guzzlefry, you could use a custom class instead of GridFieldExportButton, and override handleAction
312: [15:15:57] <guzzlefry> ah
313: [15:16:03] <guzzlefry> I was afraid of that. :P
314: [15:16:13] <guzzlefry> I'm not familiar with CMS stuff other than making simple model admins.
315: [15:17:01] <catcher> guzzlefry, you *shouldn't* have to touch any of the CMS stuff, just override that one method, and do the writing you need.
316: [15:17:53] <svandragt> I'm working on a DataExtension that is applied to ContentControllers eg Page_Controller. I'd like to have the owner renderWith a different template so that it can take advantage of my dataextension. $this->owner->renderWith('template') comes up under showtemplate=1 but the template isn't used on the page because it's in the module folder rather than the theme folder I think?@
317: [15:18:05] <catcher> guzzlefry, if you're feeling generous, you could build an ->extend() into it to allow decorators to do that type of thing more easily in the future.
318: [15:18:35] <catcher> then submit to core, and then you'd just need an updateHandleAction (instead of using customClass)
319: [15:19:03] <catcher> guzzlefry, full disclosure, I'm not sure if handleAction() is the best choice, just the first one I saw that may work.
320: [15:19:53] <catcher> svandragt, have you flushed?
321: [15:20:02] <KiwiV> svandragt: flush.
322: [15:20:14] <svandragt> catcher: yup, if i misspel the template name i get an error but when the name is right it's not used
323: [15:20:32] <KiwiV> because you have a template of the same name in the theme?
324: [15:20:41] <KiwiV> or project drectory?
325: [15:20:54] <svandragt> it's used when I do showtemplate=1 but not on screen. No I don't
326: [15:22:07] <KiwiV> just going to throw this out there, but why not just edit the owner's template?
327: [15:22:37] <KiwiV> if the extension isn't applied the functions won't exist and it won't render them.
328: [15:23:42] <svandragt> KiwiV: I just put in a few words like TEST in the new template and FALLBACK in the owner's template and it shows fallback so that's not it hmm
329: [15:24:11] <KiwiV> I think you misunderstand.
330: [15:25:13] <KiwiV> having $ExtensionAppliedVariable in OwnerTemplate.ss will do nothing on a controller that doesn't have the extension applied, output whatever the extension function returns on controllers it is applied to.
331: [15:25:50] <svandragt> the extension is applied because I'm also setting a public property and getting that with a dynamic setter (getLightbox()) and if I use $Lightbox in the owner's template then it shows the correct value
332: [15:26:07] <KiwiV> exactly.
333: [15:26:16] <KiwiV> no extension, no $Lightbox.
334: [15:26:23] <KiwiV> so why not just do that?
335: [15:27:38] <KiwiV> that or you'll have to explain what you're up to better because there's no way to do what you're asking without there being a piece of the puzzle missing.
336: [15:27:41] <svandragt> KiwiV: I'm seperating the Fancybox implementation from the silverstripe-gallery module so that people can use other lightboxes. FancyboxDataExtension provides the template and the Requirements to render the lightbox. After this works, I will create the lightbox I want to use :)
337: [15:28:11] <guzzlefry> gah, GridFieldExportButton's code is gibberish to me.
338: [15:28:15] <svandragt> KiwiV: http://sspaste.com/paste/show/52f3a6f616b31
339: [15:29:06] <KiwiV> protip: don't use code.
340: [15:29:26] <KiwiV> just <% include RandomLightboxOfMyChoice %>
341: [15:29:47] <KiwiV> it's entirely view layer because it's all view concerns.
342: [15:29:55] <KiwiV> presentation*
343: [15:30:16] * KiwiV sighs.
344: [15:30:23] <KiwiV> just about all gallery modules are bad.
345: [15:31:31] <KiwiV> put all your lightbox relevant code into a template include.
346: [15:31:46] <svandragt> KiwiV: silverstripe-gallery comes with a GalleryPage model / controller which ofcourse loads GalleryPage.ss which is using Fancybox.
347: [15:32:08] <KiwiV> <% require javascript(framework/thirdparty/jquery/jquery.min.js) %>
348: [15:32:26] <KiwiV> <% require javascript(my/random/lightbox/preference.js) %>
349: [15:32:41] <svandragt> KiwiV: that's bad because that won't get combined with Requirements
350: [15:33:08] <KiwiV> svandragt: wtf, I just gave you almost exact code for using requirements.
351: [15:33:50] <svandragt> KiwiV: well I'll have a break and look over it again then, thanks
352: [15:33:55] <KiwiV> also <% require block(path/to/ssgallerymodulebad/lightbox.js) %>
353: [15:34:23] <guzzlefry> CSV Export exports all records and not just the current page..right? :P
354: [15:34:24] <KiwiV> svandragt: <% require blah() %>IS Requirements::blah(), just from the view layer
355: [15:34:42] <svandragt> guzzlefry: yup
356: [15:34:44] <KiwiV> guzzlefry: yeh
357: [15:34:48] <guzzlefry> okay
358: [15:34:58] <guzzlefry> just curious about this LIMIT of 30 on the query...
359: [15:35:09] <KiwiV> maybe you set that somewhere
360: [15:35:13] * KiwiV shrugs
361: [15:35:19] <guzzlefry> oh I see
362: [15:35:20] <guzzlefry> $items->limit(null)
363: [15:35:23] <guzzlefry> further down ^ :P
364: [15:35:55] <KiwiV> mmhmm
365: [15:37:48] <guzzlefry> hrm
366: [15:38:00] <guzzlefry> catcher: How do I actually override that method?
367: [15:38:15] <catcher> guzzlefry, create your custom class, copy & paste, hack.
368: [15:38:42] <catcher> guzzlefry, it needs to have the same name & args.
369: [15:39:04] <KiwiV> guzzlefry: class MyNewClassForThisStuff extends TheCurrentClassForThisStuff { function theMethodIwantToRedefine($params) { blah(); } }
370: [15:39:09] <guzzlefry> I see the perfect spot for an onExport() hook. :/
371: [15:39:26] <guzzlefry> How do I get the gridfield to actually load my class?
372: [15:39:28] <KiwiV> guzzlefry: do you have any idea how shit this code is already?
373: [15:39:35] <KiwiV> you want to add MORE complexity? :<
374: [15:39:49] <guzzlefry> hooks are simple...
375: [15:39:54] <KiwiV> rofl
376: [15:40:21] <KiwiV> WOOOOOSH (sound of point sailing over your head :P)
377: [15:40:44] <guzzlefry> I want flexibility damnit. :P
378: [15:41:35] <KiwiV> the code is extremely slow running.
379: [15:41:42] <KiwiV> you want to add more code to make it run slower.
380: [15:41:55] <KiwiV> or maybe I'm thinking of imports, but still the point stands.
381: [15:42:04] <guzzlefry> meh
382: [15:42:10] <guzzlefry> backend doesn't really need to be fast.
383: [15:42:17] <KiwiV> but yeh, there are many places a hook would be nice.
384: [15:42:31] <KiwiV> guzzlefry: tell that to your client when their export is hitting the PHP timeout and failing.
385: [15:42:45] <guzzlefry> It's already happened. :P
386: [15:42:47] <guzzlefry> and memory limit
387: [15:43:01] <KiwiV> This is the want for your boolean isn't it?
388: [15:43:05] <guzzlefry> exporting 8000+ members...no clue why they don't do it incrementally.
389: [15:43:09] <KiwiV> :>
390: [15:43:20] * speak__ quit (Quit: Leaving)
391: [15:43:27] <guzzlefry> KiwiV: it's actually to mark items as shipped.
392: [15:43:40] <guzzlefry> Which, again seems silly to me, but whatever. :P
393: [15:49:33] <KiwiV> Sounds like a client to me.
394: [15:50:05] <guzzlefry> yeah...I should really spend more time on my personal projects.
395: [15:50:17] <guzzlefry> Then I'd most likely not have to deal with clients. :P
396: [16:00:33] * ARNHOE quit ()
397: [16:01:59] <KiwiV> chances don't look good guzzlefry.
398: [16:02:39] <KiwiV> You'll be swapping derp request stress for insufficient funds stress.
399: [16:03:20] <guzzlefry> I already have the latter. :P
400: [16:04:44] <KiwiV> exactly :P
401: [16:04:59] <KiwiV> ffffff
402: [16:05:29] <KiwiV> Thursday. So of course the train that's been running at the same time all week isn't running tonight and I'll have to wait an extra 20 mins to get home.
403: [16:05:40] <KiwiV> Might just go have a pint ffs
404: [16:18:35] * Shrike_Finland has joined #silverstripe
405: [16:32:00] <guzzlefry> Should I be using the Object::create() syntax for everything?
406: [16:36:04] <catcher> guzzlefry, I use it a lot for chaining, some people find it messy though.
407: [16:36:51] <guzzlefry> I dislike it because it breaks type hints in my IDE. :P
408: [16:37:05] <speak_> I prefer it, makes chaining easier.
409: [16:37:11] <speak_> What IDE are you using...?
410: [16:37:15] <guzzlefry> PHPStorm
411: [16:37:22] <speak_> Weird, I have no issue.
412: [16:37:28] <guzzlefry> speak_: argument type hints?
413: [16:37:40] <guzzlefry> maybe I'm using the wrong term.
414: [16:38:08] <guzzlefry> It's not smart enough to alias create() to __construct(), so I don't get my parameter listing. :/
415: [16:40:20] <speak_> Ah, my fault. I thought you meant from chaining.
416: [16:40:36] <guzzlefry> well, that's part of it as well.
417: [16:40:51] <guzzlefry> PHPStorm has no clue what type of object is being returned when using create()
418: [16:41:19] <guzzlefry> actually, i Have a crazy idea. :P
419: [16:41:39] <Zauberfisch> guzzlefry: yeah, thats an issue
420: [16:41:58] <Zauberfisch> but the create of the silverstripe plugin has an idea for a solution
421: [16:42:02] * ObiWanSh_ quit (Remote host closed the connection)
422: [16:42:20] <guzzlefry> Zauberfisch: I thought the silverstripe plugin only handled template stuff?
423: [16:42:37] <svandragt> can't find this, but then I calll <% require javascript() %> in a template, what code decides to call Requirements::javascript? can't find it
424: [16:43:10] <guzzlefry> svandragt: why not do requirements in the controller's init() method?
425: [16:43:24] <svandragt> guzzlefry: then KiwiV gets angry
426: [16:43:29] <guzzlefry> pft
427: [16:43:36] <guzzlefry> it's more sane
428: [16:43:37] <Zauberfisch> guzzlefry: well, the ultimate goal is that it handles all the things
429: [16:44:12] * ObiWanShanobi has joined #silverstripe
430: [16:45:03] <UndefinedOffset> svandragt: in 3.x it's the SSTemplateParser that handles that
431: [16:45:13] <svandragt> UndefinedOffset: thanks
432: [16:45:43] <UndefinedOffset> it calls Requirements:: down around line 1759 in ss 3.1
433: [16:46:56] <guzzlefry> For GridFieldConfig_RecordEditor::addComponent(), how do I find the field's name for the insertBefore argument?
434: [16:47:09] <guzzlefry> err, I guess component's name is more accurate. :P
435: [16:47:42] <speak_> In PHPStorm does anyknow how to add custom methods to the CTRL + I list?
436: [16:48:00] <guzzlefry> hrm, nevermind: $insertBefore The class of the component to insert this one before
437: [16:48:50] <guzzlefry> speak_: Any methods in particular?
438: [16:49:09] <speak_> I'd like to set up generic SilverStripe methods
439: [16:49:18] <speak_> so I dont have to retype getCMSFields parent::getCMSFields all day
440: [16:49:24] <guzzlefry> oh
441: [16:49:28] <guzzlefry> speak_: CTRL+o
442: [16:49:29] <guzzlefry> ;)
443: [16:49:38] * OzziNL has joined #silverstripe
444: [16:51:00] <guzzlefry> You can also set up custom templates, although I haven't quite figured that out yet.
445: [16:51:17] <speak_> <3 Any way to get rid of the //TODO: Change the autogenerated stub
446: [16:51:28] <guzzlefry> I tried to create one for DataObject, but it's doing odd placeholder crap.
447: [16:51:42] <speak_> where in the options can you try to implement your own?
448: [16:53:49] <guzzlefry> speak_: CTRL+SHIFT+A, search for template, see "Save file as template"
449: [16:55:16] * joelpittet has joined #silverstripe
450: [16:56:30] <speak_> thanks!
451: [16:59:18] <guzzlefry> speak_: see also all of the SHIFT|CTRL|ALT+N shortcuts. Those are very handy.
452: [16:59:27] <guzzlefry> InteilliJ/PHPStorm needs some type of book. :P
453: [16:59:52] <speak_> yeah every day I find a new feature and think "wow this can't get better"
454: [17:00:01] <speak_> then the next day comes along! It's like a gift that keeps on giving
455: [17:01:18] <Zauberfisch> agreed
456: [17:01:30] <Zauberfisch> also the debugging features are great
457: [17:01:48] <guzzlefry> I keep forgetting to test out the new "Break on Exception" feature. :X
458: [17:01:56] <guzzlefry> And to install 7.1 so I can do that. :P
459: [17:02:13] <guzzlefry> okay, I'm stumped.
460: [17:02:27] <guzzlefry> $config->addComponent(new ShippableGridFieldExportButton(), "GridFieldPrintButton");
461: [17:02:32] <Zauberfisch> I don't understand how I could have worked with FirePHP and print_r() for so long
462: [17:02:51] <guzzlefry> It's adding that at the end of the gridfield table instead of before the Print button.
463: [17:03:07] <Zauberfisch> and why so many people still use print_r() for debugging
464: [17:03:30] <guzzlefry> I use var_dump() on production sometimes. :P
465: [17:03:47] <guzzlefry> Well, for SilverStripe I use the built-in debugger logging now.
466: [17:05:14] <kinglozzer> Debug::show() is the new var_dump() ;)
467: [17:07:38] <speak_> Debug::endshow() for the win!
468: [17:07:46] <guzzlefry> okay, seriously, $config->addComponent(new ShippableGridFieldExportButton(), "GridFieldPrintButton"); why no work? :P
469: [17:08:02] <Zauberfisch> the logging is ok, but still nothing compared to a propper debugger
470: [17:08:03] <guzzlefry> I don't seem to be doing my usual derpy thing where I mispell something.
471: [17:15:02] <KiwiV> guzzlefry: NO, NOT MORE SANE
472: [17:15:05] * KiwiV gets angry
473: [17:15:27] * guzzlefry hides.
474: [17:15:30] <guzzlefry> also
475: [17:16:08] <KiwiV> Good work svandragt, I almost missed that one!
476: [17:16:13] <guzzlefry> I think insertBefore stuff on GridFieldConfig::addComponent() is broken.
477: [17:16:20] <guzzlefry> Who do I bug about that? :P
478: [17:16:26] <KiwiV> guzzlefry: Zauberfisch
479: [17:16:39] <guzzlefry> Zauberfisch: help!
480: [17:17:00] * OzziNL quit (Ping timeout: 250 seconds)
481: [17:17:16] * ObiWanShanobi quit (Remote host closed the connection)
482: [17:17:45] * Shrike_Finland quit (Quit: Leaving.)
483: [17:17:59] * Shrike_Finland has joined #silverstripe
484: [17:18:38] <guzzlefry> if(!$inserted && $existingItem instanceof $insertBefore) {
485: [17:18:38] <guzzlefry> $this->components->push($component);
486: [17:18:45] <guzzlefry> I think that needs to be something...else.
487: [17:19:22] <Zauberfisch> guzzlefry: hmm?
488: [17:19:35] <guzzlefry> oh wait..no
489: [17:20:02] <guzzlefry> Zauberfisch: I'm trying to use addComponent to insert something before the Print button. It's putting it after the grid field table instead.
490: [17:20:55] <Zauberfisch> where is the print button?
491: [17:21:21] <Zauberfisch> there is a thing called "targetFrame" in gridfield, which is either before or after the grid
492: [17:21:29] <Zauberfisch> the ExportButton is after by default
493: [17:21:55] <Zauberfisch> if you want the ExportButton above the gridfield, then you just pass the string "before" to the contructor
494: [17:22:00] <FrozenFire> What would be the syntax for an exclude on a has_many, where I want to exclude anything has that something in that relation?
495: [17:22:06] <Zauberfisch> new GridFieldExportButton("before")
496: [17:22:49] <Zauberfisch> guzzlefry: but if the print button is after the grid, and you just want to switch position of the print and export button then I don't know
497: [17:23:38] <Zauberfisch> FrozenFire: I fail to interpret the later part of your question. please verify that you use correct english
498: [17:23:55] <FrozenFire> Whoops. Munged my wording
499: [17:23:57] <guzzlefry> yay, that worked, thanks Zauberfisch
500: [17:24:06] <FrozenFire> If there is anything in the has_many, exclude that relation
501: [17:24:24] <FrozenFire> Err, exclude that DataObject
502: [17:24:34] <Zauberfisch> ok, thats better
503: [17:24:52] <guzzlefry> So you want to find DataObjects that don't have any of "thing"?
504: [17:25:02] <FrozenFire> Indeed.
505: [17:25:09] <Zauberfisch> $list = $obj->MyHasManyRelation()->exclude('Name', 'Bob');
506: [17:25:51] <Zauberfisch> this would excluse poor Bob
507: [17:26:35] <FrozenFire> I'm thinking maybe ->exclude(array('Thing.ID:LessThan' => 1)) or somesuch
508: [17:26:53] <FrozenFire> I don't want to filter the relation itself
509: [17:26:54] <Zauberfisch> yes, that would work
510: [17:26:59] <FrozenFire> I want to filter *on* the relation
511: [17:27:00] <guzzlefry> ->exclude("Thing:not")?
512: [17:27:01] <Zauberfisch> (i think)
513: [17:27:11] <guzzlefry> err, probably not that. :P
514: [17:27:16] <Zauberfisch> however, the thing you are doing, you might just do:
515: [17:27:35] <Zauberfisch> guzzlefry: actually, you have to do ThingID
516: [17:27:47] <Zauberfisch> I am not sure if Thing.ID would work
517: [17:27:48] * kinglozzer quit ()
518: [17:28:09] <Zauberfisch> $obj->MyHasManyRelation()->filter('ThingID:GreaterThan', 0);
519: [17:29:37] <FrozenFire> It's a has_many
520: [17:29:46] <FrozenFire> Anything with a search filter can traverse relations, last I checked
521: [17:29:59] <FrozenFire> In fact, as of 3.1, I think even without one, it works
522: [17:30:15] <FrozenFire> In 3.0 it required a modifier like :Equals
523: [17:30:23] <Zauberfisch> ok, not, never used that, so I don't know
524: [17:30:50] <guzzlefry> wonder if I have any projects I can use to test this.
525: [17:30:52] <guzzlefry> I'm curious now. :P
526: [17:31:45] * ObiWanSh_ has joined #silverstripe
527: [17:31:46] <KiwiV> you still check FrozenFire?
528: [17:31:51] * KiwiV quit (Quit: Page closed)
529: [17:33:40] <FrozenFire> Are we still using the dumb Object::create() syntax for everything now?
530: [17:33:54] <FrozenFire> I remember just as I was stopping writing SS code, that was becoming a thing.
531: [17:35:46] <guzzlefry> FrozenFire: ObjectName::create("insert regular constructor parameters here");
532: [17:36:01] <guzzlefry> So TextField::create("FirstName"); and such
533: [17:36:15] <guzzlefry> s/ObjectName/ClassName
534: [17:36:41] <FrozenFire> Is that required at this point, or just something that the SS devs think is good?
535: [17:36:47] <guzzlefry> convention
536: [17:37:01] <FrozenFire> Do things break if I don't drink the koolaid? :P
537: [17:37:09] <guzzlefry> Supposed to use it for Injector to work, I think?
538: [17:37:27] <guzzlefry> I'd use it anyway.
539: [17:37:36] <guzzlefry> It's about the same amount of typing.
540: [17:37:54] * FrozenFire sighs
541: [17:38:00] <FrozenFire> It's really dumb.
542: [17:38:00] <guzzlefry> I know. :(
543: [17:38:20] <guzzlefry> I wouldn't care if it didn't break my IDE argument hinting. :P
544: [17:38:34] <guzzlefry> and return type hinting stuff
545: [17:38:39] <FrozenFire> And basic sanity.
546: [17:39:00] <Shrike_Finland> What would be the best practice to load needed javascripts per pagetype? Some pages need special libraries and init, but I would not like to load them in page.php. If they are required in yourspecialpage.ss, does it affect badly on onpageload or similar things?
547: [17:40:06] <FrozenFire> Shrike_Finland, Load them in the template that they're required by.
548: [17:40:16] <micmania1> Shrike_Finland, probably best to include them in your controller's init function
549: [17:40:25] <FrozenFire> Ignore anyone who says to load them in your controller.
550: [17:40:30] <guzzlefry> wat
551: [17:40:38] <guzzlefry> Template includes are all backwards. :/
552: [17:40:38] <FrozenFire> That's an opinion that exists only in the SS community. :P
553: [17:41:41] <Shrike_Finland> :D
554: [17:41:44] <micmania1> You're more likely to change a template which means you'd have to re-include them every time. And the location of the file you're including may need working out
555: [17:41:48] <guzzlefry> Layout template's requirements are added before the main page template's...
556: [17:42:04] <FrozenFire> micmania1, Exactly. You're more likely to change a template than a controller.
557: [17:42:13] <FrozenFire> And the Javascript dependencies relate to the contents of your template.
558: [17:42:15] <micmania1> but you'd still use the same libraries.
559: [17:42:28] <micmania1> that depends on what you're including I suppose.
560: [17:42:31] <FrozenFire> So if you're including the Javascript in the controller, then when you change your template, you also need to change your controller.
561: [17:42:43] <FrozenFire> Anyways
562: [17:42:51] * FrozenFire is on backup power with a power outage, trying to get work done :P
563: [17:42:58] <FrozenFire> Can't argue this silly, crazy point right now
564: [17:43:01] <Shrike_Finland> I have tried to organize things so, that I have js-library folder on site and I include them like: <% require javascript(js-library/gmap3.min.js) %> for example...
565: [17:43:16] <guzzlefry> So when you're thinking it would make sense to include jQuery in Page.ss, and then your scripts that require jQuery in Layout/*.ss, you get oopsies.
566: [17:43:19] <FrozenFire> Shrike_Finland, That's the right way
567: [17:43:27] <FrozenFire> Though, I prefer having them in the theme
568: [17:43:29] <guzzlefry> FrozenFire: You too? About a million without power in the northeast right now. :P
569: [17:44:28] <micmania1> I'm off. cyas
570: [17:44:37] <Shrike_Finland> guzzlefry: yep, jQuery things are a bit headache sometimes…
571: [17:45:02] <guzzlefry> Just include in init() and save yourself headaches. :P
572: [17:45:03] <Zauberfisch> FrozenFire: I have to disagree
573: [17:45:10] <Zauberfisch> ::create() is great
574: [17:45:28] <Zauberfisch> its a workaround for 2 php problems:
575: [17:45:42] <Zauberfisch> - you don't have a hook in __construct to return a diffrent object
576: [17:45:58] <Zauberfisch> - you can't chain when using new Foo()
577: [17:46:26] <guzzlefry> ...
578: [17:46:29] <Zauberfisch> so, take an example I had last week:
579: [17:46:45] <guzzlefry> That's why new DateTime()->format() isn't working for me. :P
580: [17:47:06] <Shrike_Finland> guzzlefry: You mean that it's better to load jQuery on .ss rather than in page.php?
581: [17:47:10] <Zauberfisch> a module uses its internal class to do things. most of it is good, but there is a part I need to modify to for this paticular project.
582: [17:47:21] <Zauberfisch> the module is not using any hooks at that point
583: [17:47:23] <Zauberfisch> so I did:
584: [17:47:26] <guzzlefry> Shrike_Finland: I'd load it in your controller.
585: [17:47:29] <Zauberfisch> class Bar extends Foo {}
586: [17:47:40] <Zauberfisch> Object::use_custom_class('Foo', 'Bar');
587: [17:47:51] <Zauberfisch> abd because the module used Foo::create();
588: [17:48:01] <Zauberfisch> the module now actually uses my Bar class to do things
589: [17:48:16] <guzzlefry> OH
590: [17:48:23] <guzzlefry> that's how you do custom injection stuff?
591: [17:48:35] <guzzlefry> use_custom_class?
592: [17:48:40] <guzzlefry> I was looking forever for that. :/
593: [17:49:57] * FrozenFire quit (Ping timeout: 276 seconds)
594: [17:50:19] <Zauberfisch> and for point 2)
595: [17:51:15] <Zauberfisch> $myField = TextField::create('Foo')->addExtraClass('my-foo')->someFancyThing();
596: [17:51:45] <guzzlefry> Chaining makes things hard to read. :/
597: [17:52:02] <Zauberfisch> not if you formatt it propper
598: [17:52:08] <guzzlefry> yeah
599: [17:52:17] <guzzlefry> new line per each method call looks pretty good
600: [17:52:24] <Zauberfisch> indeed
601: [17:52:25] <guzzlefry> all in a row is kind of nasty :P
602: [17:52:37] <Zauberfisch> just used in a row here because its IRC
603: [18:00:22] <Shrike_Finland> guzzlefry: and what, if site already needs jQuery for basic js-things and on some special pages I have to be able to affect on loading order… jquery loding on page.php, and requirements if need to load it AFTER the jquery and trigger it directly on template.ss if needed before jQuery?
604: [18:01:17] * ObiWanSh_ quit (Remote host closed the connection)
605: [18:02:39] <Zauberfisch> Shrike_Finland: so your Page.php uses Requirements::javascript() to include jquery
606: [18:02:52] <Zauberfisch> and in a subclass you need to include something before jquery?
607: [18:03:11] * ObiWanShanobi has joined #silverstripe
608: [18:05:24] * ObiWanShanobi quit (Remote host closed the connection)
609: [18:07:19] * ObiWanSh_ has joined #silverstripe
610: [18:11:00] * ObiWanSh_ quit (Remote host closed the connection)
611: [18:12:56] * ObiWanShanobi has joined #silverstripe
612: [18:28:36] <Shrike_Finland> Zauberfisch: yep, Page uses requirements for jquery and based on pagetype, I need to include some scripts before jquery and somecases after.
613: [18:32:30] * FrozenFire has joined #silverstripe
614: [18:32:56] * C10ne has joined #silverstripe
615: [18:35:17] * ObiWanShanobi quit (Ping timeout: 248 seconds)
616: [18:35:54] * ObiWanShanobi has joined #silverstripe
617: [18:38:37] * Shrike_Finland quit (Quit: Leaving.)
618: [18:48:39] * oddnoc has joined #silverstripe
619: [18:49:25] * chillu_23 has joined #silverstripe
620: [18:57:21] * Err404NotFound quit (Ping timeout: 245 seconds)
621: [19:04:35] * Shrike_Finland has joined #silverstripe
622: [19:04:54] <guzzlefry> hrm
623: [19:06:56] * chillu_23 quit (Quit: chillu_23)
624: [19:07:17] * chillu_23 has joined #silverstripe
625: [19:07:50] <C10ne> Is there any explanation/tutorial how to make a page accessible to single user only?
626: [19:09:49] <guzzlefry> C10ne: What do you mean?
627: [19:10:26] <simon_w> C10ne, create a group with just that person in it, change the view settings to only that group
628: [19:10:38] <C10ne> guzzlefry: I want a page in front end to be accessible only to one user, after he logs in.
629: [19:10:39] * Err404NotFound has joined #silverstripe
630: [19:10:52] * willr has joined #silverstripe
631: [19:11:06] <C10ne> simon_w: Yeah, that's the functionality I need, just without the groups
632: [19:12:22] <guzzlefry> What is the page?
633: [19:12:41] <simon_w> C10ne, so override canView() and stick the logic in there
634: [19:13:33] <C10ne> It's a page with downloads/project progress for each client.
635: [19:14:04] <C10ne> simon_w: I'll go with that. Thought there might be some resource to give me the starting points.
636: [19:14:07] <C10ne> Thanks.
637: [19:17:01] * gelignite has joined #silverstripe
638: [19:18:14] * SightUnseen has joined #silverstripe
639: [19:19:23] * SightUnseen has left #silverstripe
640: [19:36:52] * travis-ci has joined #silverstripe
641: [19:36:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1870 (3.1 - 5a34d19 : Ingo Schommer): The build passed.
642: [19:36:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bb9f84afd5f2...5a34d194d807
643: [19:36:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18364425
644: [19:36:52] * travis-ci has left #silverstripe
645: [19:38:59] * PapaBear has joined #silverstripe
646: [19:48:42] * willr quit (Quit: willr)
647: [19:50:01] <Ryan-Toast> Morning thodsse of you who didn't take Friday off.
648: [19:50:18] <guzzlefry> It's only Thursday!
649: [19:50:20] * guzzlefry panics.
650: [19:52:08] * simon_w|air didn't take Friday off!
651: [19:58:51] * chillu_23 quit (Quit: chillu_23)
652: [19:59:13] * Motoservo has joined #silverstripe
653: [20:00:01] <Ryan-Toast> simon_w: We should have, man. I got out of bed ten minutes late in protest.
654: [20:00:19] <simon_w|air> Ryan-Toast, I'm working from home, sunning myself on my couch
655: [20:00:20] * travis-ci has joined #silverstripe
656: [20:00:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1871 (3.1 - fe4ef54 : Ingo Schommer): The build passed.
657: [20:00:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5a34d194d807...fe4ef54c7c3a
658: [20:00:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18364439
659: [20:00:20] * travis-ci has left #silverstripe
660: [20:00:38] <Ryan-Toast> simon_w|air: Jelly.
661: [20:00:46] <simon_w|air> Mmm, jelly
662: [20:00:46] <Ryan-Toast> simon_w|air: Do you normally work from home?
663: [20:00:54] <simon_w|air> Nope
664: [20:01:03] * chillu_23 has joined #silverstripe
665: [20:01:33] <oddnoc> OK, what is the deal with "23"? :)
666: [20:01:50] <Ryan-Toast> 23?
667: [20:02:09] <oddnoc> ss23 chillu_23 -- it comes up a lot recently in SilverStripe culture!
668: [20:02:26] <Ryan-Toast> ss23?
669: [20:02:56] <oddnoc> Look at the list of ops in the channel :)
670: [20:03:02] <Ryan-Toast> Maybe they play the $5 tables at the casino and hope the dealer busts on push 22?
671: [20:03:10] * ObiWanShanobi quit (Quit: Leaving...)
672: [20:04:31] * chillu_23 quit (Client Quit)
673: [20:06:59] * terryapodaca has joined #silverstripe
674: [20:10:34] * chillu_23 has joined #silverstripe
675: [20:12:26] * mateuszsz has joined #silverstripe
676: [20:14:41] * UncleCheese has joined #silverstripe
677: [20:17:15] * ObiWanSh_ has joined #silverstripe
678: [20:18:09] * hfried has joined #silverstripe
679: [20:21:27] * mandrew has joined #silverstripe
680: [20:23:04] * chillu_23 quit (Quit: chillu_23)
681: [20:23:16] <wmk> is there a good way to make images in tinymce responsive?
682: [20:23:27] * chillu_23 has joined #silverstripe
683: [20:24:01] <Ryan-Toast> wmk: In the editor, or on the front-end?
684: [20:24:16] <wmk> in the frontend
685: [20:24:38] <Ryan-Toast> .typography img{max-width: 100%;height: auto;}
686: [20:25:11] * camfindlay has joined #silverstripe
687: [20:25:45] <Ryan-Toast> wmk: just chuck that in your CSS.
688: [20:25:50] <wmk> yup. missed height auto
689: [20:25:55] <wmk> 10x a lot
690: [20:26:43] <Ryan-Toast> Personally I like to have a media query that sets the max with of the floated left, and right images to 40% on desktop and tablet.
691: [20:26:53] <Ryan-Toast> But that's just me.
692: [20:28:41] <guzzlefry> Best way to add a button on a gridfield row?
693: [20:29:55] * willr has joined #silverstripe
694: [20:30:45] <guzzlefry> oh, gridfield actually has docs now :P
695: [20:32:23] * chillu_23 quit (Quit: chillu_23)
696: [20:34:42] * nickmolhoek has joined #silverstripe
697: [20:34:59] * r3v3rb has joined #silverstripe
698: [20:35:20] * nickmolhoek quit (Client Quit)
699: [20:35:26] <r3v3rb> hi all, is there a 'DISTINCT' in SS3 ORM?
700: [20:35:44] <r3v3rb> in a controller
701: [20:35:45] <mandrew> Has anyone played around with halkyon's silverstripe-reqchecker module? Found it useful? https://github.com/halkyon/silverstripe-reqchecker
702: [20:36:00] <r3v3rb> or is it better to just formulate an SQLQuery still
703: [20:36:10] <simon_w|air> r3v3rb, the ORM does a DISTINCT
704: [20:36:28] <r3v3rb> simon_w|air: great - whats the syntax?
705: [20:36:40] <simon_w|air> r3v3rb, ClassName::get()
706: [20:36:51] * chillu_23 has joined #silverstripe
707: [20:37:23] <guzzlefry> r3v3rb: it always uses DISTINCT
708: [20:37:57] <guzzlefry> Also, heads up, if you hit odd issues with that when using MySQL, install MariaDB. :P
709: [20:38:00] * xini has joined #silverstripe
710: [20:38:26] <r3v3rb> guzzlefry: simon_w|air: what? hang on one mo - I think I am not giving the full scenario ;)
711: [20:38:32] <Ryan-Toast> mandrew: That looks pretty handy.
712: [20:39:09] <camfindlay> simon_w a few comments on your blog post now... you should head over and reply to them ;)
713: [20:39:09] <guzzlefry> r3v3rb: append ?showqueries to your URL, you'll see...
714: [20:39:25] <guzzlefry> r3v3rb: assuming it's in dev mode
715: [20:39:28] <r3v3rb> I want to do this in the ORM - SELECT DISTINCT `County` FROM `Area`
716: [20:39:42] <guzzlefry> oh
717: [20:39:53] <r3v3rb> works in sql obviously and gives me a nice result of only one kind of each 'County'
718: [20:40:15] <guzzlefry> Country ougtha be a table
719: [20:40:20] * SightUnseen has joined #silverstripe
720: [20:40:22] * SightUnseen quit (Client Quit)
721: [20:40:22] <r3v3rb> so I have 1000's of records but only say ten counties
722: [20:40:30] <simon_w|air> r3v3rb, Area::get()->column('Country')
723: [20:40:32] <r3v3rb> i want to extract the ten counties
724: [20:40:49] <guzzlefry> simon_w|air: array_unique() after?
725: [20:40:49] <r3v3rb> simon_w|air: and that would be the DISTINCT query :)
726: [20:41:10] * SightUnseen has joined #silverstripe
727: [20:41:14] <simon_w|air> guzzlefry, no need. column() doesn't turn DISTINCT off
728: [20:41:15] * guzzlefry looks up array_unique...
729: [20:41:16] * SightUnseen quit (Client Quit)
730: [20:41:19] <guzzlefry> oh
731: [20:41:21] <r3v3rb> simon_w|air: so all ::get by default are DISTINCT
732: [20:41:32] <simon_w|air> r3v3rb, yes
733: [20:41:34] <r3v3rb> perfect and great to know
734: [20:41:48] <r3v3rb> did I miss that in the ORM doc's?
735: [20:41:53] <guzzlefry> probably not
736: [20:42:02] <r3v3rb> guzzlefry: ;)
737: [20:42:14] * SightUnseen has joined #silverstripe
738: [20:42:18] <mandrew> Ryan-Toast yep definitely handy, looking at getting the checks included as part of the ss installer
739: [20:42:22] <r3v3rb> thanks simon_w|air - now back to the sprite sheet - ughhhhh
740: [20:42:27] * SightUnseen quit (Client Quit)
741: [20:43:23] <Ryan-Toast> How do you remove the Silverstripe generator meta tag?
742: [20:44:00] * SightUnseen has joined #silverstripe
743: [20:44:11] <Ryan-Toast> I don't like script kiddies to know what cmd I'm using.
744: [20:44:19] <Ryan-Toast> cms
745: [20:45:27] * SightUnseen quit (Client Quit)
746: [20:49:31] * chillu_23 quit (Quit: chillu_23)
747: [20:49:32] <guzzlefry> Ryan-Toast: override MetaTags()
748: [20:49:38] <guzzlefry> on the DataObject
749: [20:49:45] <Ryan-Toast> guzzlefry: Thanks :)
750: [20:49:46] * SightUnseen has joined #silverstripe
751: [20:49:47] <guzzlefry> well, Page in this class
752: [20:49:50] <guzzlefry> case*
753: [20:49:50] <guzzlefry> rawr
754: [20:50:13] <guzzlefry> Ryan-Toast: I think it also sends a X-Powered-By header though. checking to confirm
755: [20:50:48] * chillu_23 has joined #silverstripe
756: [20:51:05] <guzzlefry> nevermind,it doesn't do that.
757: [20:54:30] * willr_ has joined #silverstripe
758: [20:54:51] * willr quit (Ping timeout: 245 seconds)
759: [20:54:52] * willr_ is now known as willr
760: [20:54:58] * SightUnseen has left #silverstripe
761: [21:01:00] * chillu_23 quit (Quit: chillu_23)
762: [21:01:26] * chillu_23 has joined #silverstripe
763: [21:04:27] * camfindlay quit (Quit: camfindlay)
764: [21:07:49] * camfindlay has joined #silverstripe
765: [21:12:49] * chillu_23 quit (Quit: chillu_23)
766: [21:14:03] * camfindlay quit (Quit: camfindlay)
767: [21:14:49] * camfindlay has joined #silverstripe
768: [21:16:47] * r3v3rb quit (Quit: r3v3rb)
769: [21:23:36] * ObiWanSh_ quit (Remote host closed the connection)
770: [21:24:59] <ss23> 09:02:09 < oddnoc> ss23 chillu_23 -- it comes up a lot recently in SilverStripe culture!
771: [21:25:03] <ss23> Coincidence!
772: [21:25:18] <oddnoc> Or… conspiracy?
773: [21:25:23] * hfried quit (Remote host closed the connection)
774: [21:25:57] <ss23> :O
775: [21:25:59] * ss23 looks around
776: [21:25:59] <ss23> NO
777: [21:26:00] <ss23> LIAR
778: [21:26:36] <simon_w|air> There's supposed to be a number of SS devs on today
779: [21:26:52] <Ryan-Toast> Thought that's from 9:30 - 10 or something
780: [21:27:03] * simon_w|air spies a mandrew
781: [21:27:03] <simon_w|air> That's more than normal!
782: [21:27:14] <simon_w|air> Ryan-Toast, nah, all day today. https://twitter.com/silverstripe/status/431291676515389440
783: [21:27:28] <Ryan-Toast> Oh cool.
784: [21:27:32] <Ryan-Toast> Wonder what they're making.
785: [21:28:15] * camfindlay quit (Quit: camfindlay)
786: [21:28:41] <simon_w|air> Ooh, there's a mateuszsz too
787: [21:28:54] <Ryan-Toast> wat
788: [21:29:00] * UndefinedOffset quit (Quit: Leaving.)
789: [21:29:24] <Ryan-Toast> Hmm, is there a addMetaTag method or something?
790: [21:29:37] <guzzlefry> Ryan-Toast: Still not working?
791: [21:29:39] <simon_w|air> Nope
792: [21:30:00] <Ryan-Toast> guzzlefry: This is for something different.
793: [21:30:14] <guzzlefry> oh
794: [21:30:20] <guzzlefry> Ryan-Toast: override MetaTags again. :P
795: [21:30:32] <Ryan-Toast> I want to generate og:thumbnail for individual blog posts.
796: [21:30:46] <Ryan-Toast> I don't like overriding core functions ><
797: [21:30:47] <guzzlefry> $tags = parent::MetaTags(); $tags .= "<meta yada yada>";
798: [21:30:49] * ObiWanShanobi has joined #silverstripe
799: [21:30:49] <guzzlefry> I think...
800: [21:31:14] <Ryan-Toast> guzzlefry: In the init()?
801: [21:31:16] <guzzlefry> Ryan-Toast: You're not. You're making a custom getter for a data field! \o/
802: [21:31:35] <guzzlefry> Ryan-Toast: in public function MetaTags()
803: [21:31:40] <guzzlefry> need to define it
804: [21:32:08] <Ryan-Toast> guzzlefry: Will give it a go :)
805: [21:33:35] <terryapodaca> is there a way to clean up the SS DB, a plugin or something?
806: [21:34:07] <terryapodaca> like...getting rid of some of the page version history
807: [21:34:31] <terryapodaca> or finding rogue data that is no longer useful?
808: [21:34:32] <ss23> bah, my eyes are sore
809: [21:34:48] <simon_w|air> ss23, You get to write docs today!
810: [21:35:31] <simon_w|air> Aha, there's the email that explains the noise my phone just made
811: [21:35:47] <guzzlefry> hrm
812: [21:36:09] <ss23> sif sif
813: [21:36:11] <ss23> "hack day"
814: [21:36:17] <ss23> aka "spend your time working"
815: [21:36:21] * chillu_23 has joined #silverstripe
816: [21:36:39] <guzzlefry> What's hack day?
817: [21:36:52] <simon_w|air> guzzlefry, SS staff are supposed to be spending today on open source stuff
818: [21:37:10] <guzzlefry> Isn't SS open source? :P
819: [21:37:14] <oddnoc> terryapodaca: https://github.com/oddnoc/silverstripe-artefactcleaner (which I stole from the DB plumber module)
820: [21:37:38] <simon_w> guzzlefry, SS Ltd isn't
821: [21:37:50] <terryapodaca> oddnoc: will that work on a 2.4 install?
822: [21:37:58] <simon_w> And IRC over VNC hurts
823: [21:37:59] <guzzlefry> ah
824: [21:38:04] <oddnoc> No, but you can use the original DB plumber for 2.4
825: [21:38:12] * camfindlay has joined #silverstripe
826: [21:38:48] <terryapodaca> I tried that...but i get an error that I can't create the temp DB when running the artifact cleaner
827: [21:39:39] <catcher> This is nice, thanks simon_w. Wish it had been around earlier. http://bit.ly/1gR5uIG
828: [21:41:02] * camfindlay quit (Client Quit)
829: [21:41:24] <terryapodaca> catcher: there was one earlier: http://www.silverstripe.org/how-to-improve-website-performance/
830: [21:42:48] <guzzlefry> What's the most appropriate GridField component to use for adding a column button to each gridfield row? It would have behavior similar to the Print button.
831: [21:42:54] <guzzlefry> Generating shipping labels.
832: [21:42:59] * camfindlay has joined #silverstripe
833: [21:44:39] * chillu_23 quit (Quit: chillu_23)
834: [21:47:45] <guzzlefry> hrm, I guess GridField_ColumnProvider?
835: [21:47:47] * camfindlay quit (Client Quit)
836: [21:48:00] <Shrike_Finland> Is there a way to limit filter on certain page with $this-> (examples here: http://pastebin.com/fehsz8Hs) I'd like to count FrontpageFeaturedItems only from this page.
837: [21:48:09] * phptek has joined #silverstripe
838: [21:48:17] * ObiWanShanobi quit (Remote host closed the connection)
839: [21:48:24] * camfindlay has joined #silverstripe
840: [21:49:29] <simon_w> guzzlefry, just copy the print button?
841: [21:49:56] * chillu_23 has joined #silverstripe
842: [21:51:31] <guzzlefry> simon_w: It needs to be on each dataobject in the gridfield, basically pulls shipping info from the order in a new tab/window for printing.
843: [21:51:32] <EasyCo> Hey guys, is there a quick and not so dirty way to add authentication to a page?
844: [21:51:46] <simon_w> Shrike_Finland, $this->FrontpageFeaturedItem()->filter(...)?
845: [21:52:01] <simon_w> EasyCo, Settings tab, Who can view, Logged in users only
846: [21:52:17] <phptek> EasyCo or were you referring to how to do it in logic?
847: [21:52:19] <simon_w> guzzlefry, so look at one of the per-row buttons?
848: [21:52:36] <wmk> hmm, just received a phishing mail that looks like it abuses a hacked wordpress site.
849: [21:52:54] <guzzlefry> simon_w: derp, thanks
850: [21:55:15] <Ryan-Toast> what a name for a theme: http://demo.codestag.com/meth/
851: [21:56:22] <Ryan-Toast> "Buy Meth for $40" wow. such deal.
852: [21:56:40] <PapaBear> possibly foolish question... Is a field's isChanged status still set in onAfterWrite or has it been cleared by this point? #lazyweb
853: [21:56:43] <Shrike_Finland> simon_w: thanx, I might be a blind…
854: [21:56:54] <EasyCo> Perfect, thanks simon_w
855: [21:57:33] * ObiWanShanobi has joined #silverstripe
856: [21:57:49] * camfindlay quit (Quit: camfindlay)
857: [21:58:26] * camfindlay has joined #silverstripe
858: [22:01:52] * camfindlay quit (Client Quit)
859: [22:02:19] * IainKay_ has joined #silverstripe
860: [22:03:39] <IainKay_> hey, I'm having trouble getting any kind of useful error from SS and wonder if anybody could help. I have display_errors enabled in php, xdebug installed and setup, apache error log all good and SS LogFileWriter setup to log to file, but all I'm seeing is a grey popup in admin area saying "Internal Server Error" and the error isn't logged anywhere. How do i figure it out?
861: [22:04:08] * camfindlay has joined #silverstripe
862: [22:05:01] <simon_w> PapaBear, IsChanged() gets reset after the call to onAfterWrite()
863: [22:05:23] <simon_w> IainKay_, enable dev mode and look at the response from the server
864: [22:05:32] * camfindlay quit (Client Quit)
865: [22:05:36] <IainKay_> @simon_w i have enabled dev mode by adding to _config.php :/
866: [22:05:39] <PapaBear> simon_w: Danke! Exactly the information I was looking for :)
867: [22:05:55] <IainKay_> i don't know what more i can do really I'm at such a loss been trying to get an error from this for 3 days across servers
868: [22:05:55] <phptek> IainKay_ ensure you set ErrorLog in Apache httpd.conf/http-vhosts.conf correctly. If this is OK, do you see _anything_ in the log file you've defined for ErrorLog?
869: [22:05:56] <oddnoc> IainKay_: You can see the XHR responses in the browser console
870: [22:06:17] <IainKay_> apache error log is not written at all, nor is file I've defined as SS LogFileWriter
871: [22:06:37] <IainKay_> how do i go about doing that oddnoc? i have IE, FFox and Chrome at my disposal on windows or any mac browser tooo
872: [22:07:08] <phptek> IainKay_ have you defined ErrorLOg absolutely or relatively in *.conf?
873: [22:07:21] <IainKay_> absolutely
874: [22:07:25] <phptek> ...it should be relative
875: [22:07:49] <phptek> e.g. ErrorLog "logs/my-site.co.nz-error.log
876: [22:07:51] <IainKay_> relative to the ghost?
877: [22:08:02] <oddnoc> IainKay_: in Chrome, it should be under View->developer -- similar stuff in most browsers
878: [22:08:02] <IainKay_> oh apaches is good
879: [22:08:05] <phptek> Relative to the apache insatll dir
880: [22:08:10] <IainKay_> i mean SS LogFileWriter is absolute phptek
881: [22:08:37] * camfindlay has joined #silverstripe
882: [22:08:43] <phptek> Regardless, you're not seeing anything in apache's error log right?
883: [22:08:51] <IainKay_> i do if i break code
884: [22:08:59] <EasyCo> Is there an exposed variable to the templates for checking if a user is logged in?
885: [22:09:12] <simon_w> EasyCo, $CurrentMember
886: [22:10:04] <phptek> Well if you're seeing "Internal Server Error" that's a server 500 error which should be being reported to your error log. What about pache's default error log?
887: [22:10:43] <IainKay_> its not in either master or vhost log files and regardless of how i setup the vhost or master apache2.conf
888: [22:10:54] <guzzlefry> ss23: Like your comment on Simon's blog post. :P
889: [22:10:55] <IainKay_> its loaded as a sapi module too so i would expect it to write out to error_log without any extra configuration
890: [22:11:04] <ss23> guzzlefry: tyty
891: [22:11:04] <ss23> ^.^
892: [22:11:12] <phptek> IainKay_ so would I...
893: [22:11:29] <IainKay_> chrome trick is finally telling me more!!
894: [22:11:37] * camfindlay quit (Client Quit)
895: [22:11:53] <IainKay_> thank you oddnoc!! I've been at that for 3 days!
896: [22:12:02] <oddnoc> :)
897: [22:12:36] <IainKay_> do u use bit coin? it not a lot but i'd chuck u 0.01 for your fix :)
898: [22:13:58] * joelpittet quit (Read error: Connection reset by peer)
899: [22:14:06] <EasyCo> simon_w: Thanks that's what I thought but it's not returning anything. Where is CurrentMember defined?
900: [22:14:31] * joelpittet has joined #silverstripe
901: [22:14:38] <simon_w> EasyCo, global template variable on Member that returns Member::currentUser()
902: [22:16:16] <oddnoc> This is 404? http://doc.silverstripe.org/framework/en/topics/templates
903: [22:16:18] <EasyCo> Ahh, I know why my changes aren't showing... Opcode cache...
904: [22:16:19] * simon_w quit (Quit: Leaving)
905: [22:16:40] <ss23> He left!
906: [22:16:40] <EasyCo> That ol' chestnut
907: [22:17:10] * simon_w has joined #silverstripe
908: [22:17:17] <guzzlefry> sshhh
909: [22:17:33] <ss23> :(
910: [22:17:35] <simon_w|air> It's not like this room is logged or anything
911: [22:17:48] <ss23> I was just like "OH GOD MY KEYBOARD IS TYPING E'S SOMEONE HACKED ME" then realised I was just holding the e button down...
912: [22:18:20] <guzzlefry> haha
913: [22:20:19] <oddnoc> Way to use up all the e's, ss23
914: [22:21:15] <phptek> ss23 could've happened, you are using Windows after all
915: [22:21:27] <simon_w|air> I was looking at one of my bit coin address and saw it had 9.01 in it. So was getting all excited about having some money, then realised it was in NZD, not BTC
916: [22:22:25] <simon_w|air> Someone want to send me the 9 BTC I thought I had?
917: [22:22:55] * Shrike_Finland quit (Quit: Leaving.)
918: [22:23:27] * chillu_23 quit (Quit: chillu_23)
919: [22:24:09] * chillu_23 has joined #silverstripe
920: [22:24:16] * camfindlay has joined #silverstripe
921: [22:25:45] * oddnoc has left #silverstripe
922: [22:25:57] * oddnoc has joined #silverstripe
923: [22:26:10] <ss23> ouch phptek :O
924: [22:26:13] <ss23> Don't make me hack your mac
925: [22:26:14] * xini quit (Quit: Page closed)
926: [22:26:22] <guzzlefry> 0.o
927: [22:27:07] <simon_w|air> ss23, COME AT ME BRO
928: [22:27:12] * Colin[pi] has joined #silverstripe
929: [22:27:32] <simon_w|air> Not even physical access can get you in :D
930: [22:28:08] * camfindlay quit (Client Quit)
931: [22:28:43] * camfindlay has joined #silverstripe
932: [22:28:55] <ss23> lol
933: [22:28:57] <ss23> simon_w|air: sif
934: [22:30:57] <Ryan-Toast> Why bis it that I can get a $croppedImage.Link, but not just an $Image?
935: [22:33:07] <simon_w|air> Oops, our Xero client-side cert expires on Sunday
936: [22:33:11] <simon_w|air> I should probably renew that
937: [22:33:17] <phptek> Ryan-Toast what happens when you use $croppedImage?
938: [22:33:29] <Ryan-Toast> phptek: The image displays.
939: [22:33:55] <Zauberfisch> Ryan-Toast: beacause the image is the scope i assume
940: [22:34:12] <Ryan-Toast> The image doesn't display using $Image though.
941: [22:34:13] <PapaBear> Weird. A csv file "has_one" attachment is not populated in onAfterWrite - at what point do file attachments get linked to the DO? Need to process the CSV on DO save to update a distribution list of users attached to the DO.
942: [22:34:16] <Ryan-Toast> only croppedImage
943: [22:34:28] * camfindlay quit (Quit: camfindlay)
944: [22:34:57] <Zauberfisch> Ryan-Toast: when you do croppedImage.URL you are actually doing $Image.CroppedImage.URL
945: [22:35:29] <Ryan-Toast> Zauberfisch: Just using $croppedImage($Top.ThumbnailWidth, $Top.ThumbnailHeight) works.
946: [22:35:39] <phptek> PapaBear when the DO with the $has_one is itself written
947: [22:35:41] <simon_w|air> Ryan-Toast, then you just want $Link
948: [22:35:45] <phptek> However that shou;dn
949: [22:35:45] <Colin[pi]> moin moin
950: [22:36:03] <Zauberfisch> so, that means, if you do $Image.URL it actuall does $Image.Image.URL
951: [22:36:09] <phptek> n't stop you from running logic in onAfterWrite for a DataExtension on File (for example)
952: [22:36:10] <Zauberfisch> which is nothing
953: [22:36:21] <Ryan-Toast> simon_w|air: I don't want a cropped image :(
954: [22:36:35] <Zauberfisch> Ryan-Toast: ?
955: [22:36:36] <simon_w|air> My cake hasn't arrived yet :(
956: [22:36:57] <Ryan-Toast> Zauberfisch: I just want to use $Image, but it won't display.
957: [22:37:02] <Ryan-Toast> only $croppedImage works.
958: [22:37:12] <Zauberfisch> Ryan-Toast: i was just explaining that $Link is the image
959: [22:37:22] <Zauberfisch> read again what i wrote
960: [22:37:35] <simon_w|air> Ryan-Toast, if you want it to display, use $Me
961: [22:37:57] <Ryan-Toast> simon_w|air: Woah,
962: [22:38:01] <Ryan-Toast> never seen that before.
963: [22:38:07] <Zauberfisch> (at least, thats what we are guessing, based on what you told us)
964: [22:38:15] <Ryan-Toast> $Me works.
965: [22:38:16] <Zauberfisch> Ryan-Toast: what?
966: [22:38:26] <Ryan-Toast> Zauberfisch: ^
967: [22:38:30] <Zauberfisch> ah, $Me
968: [22:38:46] <Zauberfisch> its basically like $this in php
969: [22:38:51] <simon_w|air> Ryan-Toast, so, it works because you've done something like <% with $Image %>
970: [22:38:54] <Zauberfisch> but its optional
971: [22:39:17] <Zauberfisch> or, more likely, because you are looping images
972: [22:39:28] <Ryan-Toast> Yes, I'm looping images
973: [22:39:41] <Zauberfisch> Ryan-Toast: what you need to understand is:
974: [22:39:45] <Ryan-Toast> so in that instance just use $Me, or $Link inside an ing tag?
975: [22:39:59] <PapaBear> phptek: So it SHOULD be available in the onAfterWrite function of the DO then?
976: [22:40:11] <Zauberfisch> a) the image is the scope. so anything you do will b called on the image
977: [22:40:26] <Ryan-Toast> Zauberfisch: Cool, thanks to you and simon_w
978: [22:40:31] <Ryan-Toast> appreciated.
979: [22:40:48] <Zauberfisch> that means if you call $Kink that translates to $Me.Link
980: [22:40:55] <PapaBear> then something is not working properly - cause I'm getting an empty object back from $this->AddressList() - id is zero and filepath is just the directory - no filename.
981: [22:40:56] <Ryan-Toast> heh, kink
982: [22:40:58] <Zauberfisch> and $Me is already the image
983: [22:40:59] <phptek> PapaBear yes
984: [22:41:03] <ss23> http://fasttracker-nz.tollgroup.com/ lol @ this
985: [22:41:04] <ss23> search for "A"
986: [22:41:28] <Zauberfisch> Ryan-Toast: and b)
987: [22:41:29] <phptek> ss23 do some work or I'll dock yer pay ;-)
988: [22:41:57] <ss23> I'M DOING HACK DAY
989: [22:41:59] <ss23> I just hacked them!
990: [22:42:06] <Zauberfisch> CroppedImage is not an image object. croppedImage is actually a method of class I age
991: [22:42:07] <ss23> :D
992: [22:42:16] <phptek> ss23 I'll let you off then
993: [22:42:25] <Ryan-Toast> Zauberfisch: which uses Link by default?
994: [22:42:50] <Zauberfisch> what do you mean by which?
995: [22:43:17] * camfindlay has joined #silverstripe
996: [22:43:18] <Ryan-Toast> In the english sense, not the method sense.
997: [22:43:38] <Ryan-Toast> lol, I read that again.
998: [22:43:51] <Ryan-Toast> So croppedImage uses link is what I was saying./
999: [22:45:10] <Zauberfisch> i have no idea what you are talking about
1000: [22:45:37] <Zauberfisch> Link and CroppedImage are both methods in the class image
1001: [22:46:06] <Zauberfisch> so is SetWidth, SetRatioSize, SetSize, ...
1002: [22:47:00] <Ryan-Toast> Zauberfisch: Ah, right. I get it now :)
1003: [22:47:23] <Zauberfisch> CroppedImage copies the image, resizes/cropps it, creates a new image object and returns that
1004: [22:48:03] * camfindlay quit (Client Quit)
1005: [22:48:14] * spronk has joined #silverstripe
1006: [22:48:23] <Zauberfisch> so then you have a new image object, on which you eiter can call Link, or any other Image mehtod
1007: [22:50:26] <Zauberfisch> for example, you could do $Me.CroppedImane(100,100).SetWidth(1000).Link to get you image in super bad quality
1008: [22:50:58] <Ryan-Toast> Zauberfisch: Yeah, that's what I've done :)
1009: [22:51:07] <Ryan-Toast> well, not the bad image quality part.
1010: [22:51:13] <Zauberfisch> not that a sane person would want to do that, but it serves as example of how it works
1011: [22:52:00] <Zauberfisch> alright, bed time. good night
1012: [22:52:24] <Ryan-Toast> Zauberfisch: Night :)
1013: [22:53:22] * camfindlay has joined #silverstripe
1014: [22:55:18] * camfindlay quit (Client Quit)
1015: [22:59:07] <PapaBear> Ok - this is odd behaviour. I'm in onAfterWrite for my DO. $this->AddressListID is populated correctly. AddressListFile::get()->byID($this->AddressListID) gets the child DO correctly but $this->AddressList() does not. I can't determine why. Any ideas from the more knowledgeable?
1016: [23:00:03] <phptek> PapaBear $this->AddressList will return a DataList
1017: [23:00:16] <simon_w> PapaBear, you call $this->AddressList() before the ID was set
1018: [23:00:20] <simon_w> phptek, nope
1019: [23:00:38] <phptek> Ah it's a has_one...
1020: [23:01:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1021: [23:02:33] <simon_w> PapaBear, this is how I get around that problem: http://pastebin.com/0NLh0uFR (change the name to (set)AddressList(ID) to match)
1022: [23:02:40] * SightUnseen has joined #silverstripe
1023: [23:03:24] <PapaBear> simon_w: no I'm not, because $this->AddressListID is populated with the correct child object ID in the imeediately preceding line of code. So I would expect $this->AddressList() to return the child object. only it's not. The immediately following line of code is AddressListFile::get()->byID($this->AddressListID) which DOES return the correct child DO. It has me confuzzled.
1024: [23:03:39] <PapaBear> simon_w: ok - I'll give that a go.
1025: [23:04:41] <Colin[pi]> stupid brain, be less Friday mode
1026: [23:05:48] <PapaBear> Colin[pi]: Increased Caffeine level required? Or perhaps a mug of Death Star Coffee?
1027: [23:06:06] <Colin[pi]> coffee is being digested as we speak
1028: [23:08:12] * camfindlay has joined #silverstripe
1029: [23:08:45] <PapaBear> Colin[pi]: *nods sagely* better living though Narcotics *grin*
1030: [23:08:57] * camfindlay quit (Client Quit)
1031: [23:09:11] <Colin[pi]> I get headaches if I miss my morning coffee ;(
1032: [23:10:31] <PapaBear> Coffee (n): A magical substance that converts "Begone vile demon of the underworld" into "Good morning, Honey!"
1033: [23:10:39] <mandrew> simon_w yip I'm here :)
1034: [23:18:47] * Nimle has joined #silverstripe
1035: [23:18:50] * chillu_23 quit (Quit: chillu_23)
1036: [23:19:38] <Nimle> Hi guys, what is the best way to set globally to use hash file names when an image is uploaded rather than using actual image name? It causes issues because the same name file exists, but they may not be the same file
1037: [23:19:57] <Nimle> so, overwriting may cause issues
1038: [23:23:34] * micmania1 has joined #silverstripe
1039: [23:28:35] * catcher quit (Quit: Leaving)
1040: [23:28:51] * chillu_23 has joined #silverstripe
1041: [23:29:40] <PapaBear> Nimle: I just had to do this on my current project. I set the replaceFile configuration parameter on Upload to false in the _config.yml (http://pastebin.com/L94B4i5H) and then set setOverwriteWarning(false) on the UploadField for the appropriate field
1042: [23:29:48] * IainKay_ quit (Ping timeout: 245 seconds)
1043: [23:29:50] * SightUnseen has left #silverstripe
1044: [23:30:04] * camfindlay has joined #silverstripe
1045: [23:31:28] * chillu_23 quit (Client Quit)
1046: [23:31:39] * travis-ci has joined #silverstripe
1047: [23:31:40] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1873 (3.1 - 620ee83 : Ingo Schommer): The build passed.
1048: [23:31:40] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/fe4ef54c7c3a...620ee834d03b
1049: [23:31:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18379433
1050: [23:31:40] * travis-ci has left #silverstripe
1051: [23:31:51] * chillu_23 has joined #silverstripe
1052: [23:33:25] * micmania1 quit (Ping timeout: 248 seconds)
1053: [23:35:06] <Nimle> @PapaBear, hmm I saw this solution in a forum. but I thought there is a way to set globally not to use setOverwriteWarning. Because I also want to show file names like dfhhj45jh454h4h5h4j5hj4h54.jpg rather than image4.jpg
1054: [23:39:49] * camfindlay quit (Quit: camfindlay)
1055: [23:39:51] <PapaBear> Nimle: Oh - ok - slightly different requirements.
1056: [23:40:21] * chillu_23 quit (Quit: chillu_23)
1057: [23:42:12] * camfindlay has joined #silverstripe
1058: [23:42:24] * chillu_23 has joined #silverstripe
1059: [23:45:44] * travis-ci has joined #silverstripe
1060: [23:45:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1874 (3.1 - 2a3b8a5 : Ingo Schommer): The build passed.
1061: [23:45:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/620ee834d03b...2a3b8a5a70a3
1062: [23:45:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18379591
1063: [23:45:45] * travis-ci has left #silverstripe
1064: [23:49:19] * camfindlay quit (Quit: camfindlay)
1065: [23:51:36] * chillu_23 quit (Quit: chillu_23)
1066: [23:55:49] <simon_w> ss23, BRING ME SOME LUNCH
1067: [23:55:56] <simon_w> CAN'T BE BOTHERED WALKING INTO KITCHEN
1068: [23:59:39] <Colin[pi]> "BERK! FEEED MEEEE."
1069: [23:59:55] * travis-ci has joined #silverstripe
1070: [23:59:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1875 (3.1 - 0366403 : Andrew Short): The build passed.
1071: [23:59:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2a3b8a5a70a3...0366403b0029
1072: [23:59:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18380825
1073: [23:59:56] * travis-ci has left #silverstripe

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