#silverstripe IRC Log

IRC log for 2 April 2013

All timestamps are in UTC.

1: [00:03:00] <travis-ci> [travis-ci] silverstripe/sapphire#1841 (3.0 - f5754c1 : Ingo Schommer): The build passed.
2: [00:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1b83e489ef3b...f5754c11aa22
3: [00:03:00] * travis-ci has left #silverstripe
4: [00:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5972735
5: [00:03:00] * travis-ci has joined #silverstripe
6: [00:04:00] * ajshort has joined #silverstripe
7: [00:04:00] * EasyCo has joined #silverstripe
8: [00:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5972752
9: [00:05:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#311 (3.0 - b872714 : Ingo Schommer): The build passed.
10: [00:05:00] * travis-ci has joined #silverstripe
11: [00:05:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/babdcc9eea64...b8727140822a
12: [00:05:00] * travis-ci has left #silverstripe
13: [00:12:00] <travis-ci> [travis-ci] silverstripe/sapphire#1842 (3.1 - c08ab18 : Ingo Schommer): The build passed.
14: [00:12:00] * travis-ci has left #silverstripe
15: [00:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5972923
16: [00:12:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/cc5cfed1e50c...c08ab18c03c5
17: [00:12:00] * travis-ci has joined #silverstripe
18: [00:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/88b6d60353b4...32af5336c341
19: [00:16:00] * travis-ci has left #silverstripe
20: [00:16:00] * travis-ci has joined #silverstripe
21: [00:16:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#312 (3.1 - 32af533 : Ingo Schommer): The build was broken.
22: [00:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5972929
23: [00:20:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5972962
24: [00:20:00] * travis-ci has left #silverstripe
25: [00:20:00] * travis-ci has joined #silverstripe
26: [00:20:00] <travis-ci> [travis-ci] silverstripe/sapphire#1843 (master - ef3d974 : Ingo Schommer): The build passed.
27: [00:20:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/afb8465d05e7...ef3d974821e8
28: [00:24:00] <ajshort> chillu: are you doing the github issues migration now?
29: [00:25:00] <ajshort> coolio
30: [00:25:00] <chillu> Zauberfisch is doing a test run, I've disabled trac and enabled GH issues already, so yep
31: [00:25:00] <Zauberfisch> almost done
32: [00:26:00] <Zauberfisch> nope
33: [00:26:00] <ajshort> :(
34: [00:26:00] <Zauberfisch> if we are lucky, this is the final test run
35: [00:26:00] <Zauberfisch> just started running
36: [00:26:00] <ajshort> Zauberfisch: are attachments being moved across as well?
37: [00:27:00] <ajshort> yes
38: [00:27:00] <ss23> Can you attach things on github issues?
39: [00:27:00] <Zauberfisch> but a link to the trac issue is placed
40: [00:27:00] <ajshort> yep, cool
41: [00:34:00] * bunyip-oz quit (Ping timeout: 245 seconds)
42: [00:37:00] <Zauberfisch> oh, looking really good
43: [00:37:00] * terryapodaca quit (Quit: Leaving.)
44: [00:58:00] * chillu quit (Quit: chillu)
45: [01:00:00] <Zauberfisch> yay
46: [01:00:00] <Zauberfisch> and we are done
47: [01:17:00] * Kay2 quit (Ping timeout: 245 seconds)
48: [01:32:00] * priithansen quit (Quit: priithansen)
49: [01:35:00] * brondanino has joined #silverstripe
50: [01:39:00] * brondanino quit (Ping timeout: 240 seconds)
51: [01:56:00] <Pyromanik> Zauberfisch, what have you done?
52: [01:57:00] <Pyromanik> well, back in the day it was CIA
53: [01:57:00] <Pyromanik> <ss23> Yeah, I agree, but I figure if it is posted, 1 line is better than 5
54: [01:57:00] * ss23 cries
55: [01:57:00] <ss23> WHAT HAVE YOU DONE
56: [01:57:00] <ss23> ^
57: [01:58:00] <Pyromanik> no join/part
58: [01:58:00] <ss23> lol
59: [01:58:00] <Pyromanik> doesn't actually say what was done at all. Nothing to get excited about.
60: [01:58:00] <Pyromanik> which actually gave commit information, not just whether or not the build passed/failed.
61: [01:58:00] <Pyromanik> and CIA sat in permenantly
62: [01:59:00] <Pyromanik> and everyone would be all "YUS"
63: [01:59:00] <Pyromanik> actually had exciting things to say, like "merged 3.1 with master, released sexy new version"
64: [02:00:00] <ss23> :D
65: [02:00:00] <ss23> XD
66: [02:00:00] <Pyromanik> LOL BAI
67: [02:00:00] <Pyromanik> travis just comes in and goes YO BROS, HAVE A LINK
68: [02:00:00] <Pyromanik> LINK
69: [02:00:00] <Pyromanik> LINK
70: [02:00:00] <Pyromanik> LINKY LINK!
71: [02:00:00] <Pyromanik> 3pm!
72: [02:00:00] <ss23> YAY!
73: [02:01:00] <ss23> Considering I've been playing games all morning and only just started working, that means nothign to me!
74: [02:01:00] <ss23> DELICIOUS noms
75: [02:01:00] <ss23> Bring me noms
76: [02:01:00] * ss23 bites Pyromanik
77: [02:18:00] <Pyromanik> NOPE
78: [02:23:00] * bobdobbs quit (Remote host closed the connection)
79: [02:44:00] <Zauberfisch> Pyromanik I migrated trac to github issues
80: [02:45:00] <Zauberfisch> test repos:
81: [02:45:00] <Zauberfisch> https://github.com/silverstripe-issues-test/cms/issues
82: [02:45:00] <Zauberfisch> https://github.com/silverstripe-issues-test/framework/issues
83: [02:46:00] <ss23> I like making webpages with really messed up ordering of DOM elements, then highlight text and watching the browser struggle and have random highlighting colors show up all over the page in weird places
84: [02:46:00] <Zauberfisch> the actual migration will happen within the next 48 hours
85: [02:48:00] <Zauberfisch> haha, ss23 its weird, but I do that as well
86: [02:49:00] <ss23> :D
87: [02:59:00] <ss23> http://ss23.geek.nz/silverstripe/SilverStripe-cms-v3.0.5-deals/SilverStripe-cms-v3.0.5/
88: [02:59:00] <Pyromanik> float all the things?
89: [02:59:00] <ss23> That "deals remaining" thing on the right, couldn't think of a good way to do it
90: [02:59:00] <ss23> position: fuck-you;
91: [02:59:00] <ss23> :D
92: [02:59:00] <Pyromanik> quite
93: [02:59:00] <ss23> Some designs just need a lot of stupid positioning though
94: [03:00:00] <ss23> Ends up being like 3 different <divs> to make it work
95: [03:10:00] <ss23> Reasoning was so stupid
96: [03:10:00] <ss23> And that's the result
97: [03:10:00] <Pyromanik> WHARRRRGARBLBLE
98: [03:10:00] <Pyromanik> client herpaderp
99: [03:10:00] <ss23> lol ya
100: [03:10:00] <Pyromanik> wow terrible design
101: [03:10:00] <Pyromanik> but yeh, 3 divs sounds about right.
102: [03:10:00] <ss23> oh ya, our designer quit half way through making that cause the client wanted it to look shitty.
103: [03:10:00] <Pyromanik> excellent. That's a good designer.
104: [03:10:00] <ss23> so account manager person opens fireworks and finishes it / makes it look how client wants
105: [03:11:00] <Pyromanik> retard
106: [03:11:00] <ss23> Get bad designers to make stupid crap, *then* get the webdev done
107: [03:11:00] <ss23> ya
108: [03:11:00] <Pyromanik> that's backwards thinking for ya!
109: [03:11:00] <ss23> Still, I get paid whether it's shitty design or not :D
110: [03:11:00] <ss23> Then force webdev to use shitty design stuff, idek
111: [03:11:00] <Pyromanik> oh, do share
112: [03:11:00] <ss23> "But we already branded our cars / business cards / marketting info!"
113: [03:11:00] <Pyromanik> lolwut
114: [03:11:00] <Pyromanik> a
115: [03:12:00] <Pyromanik> true
116: [03:13:00] <ss23> lol
117: [03:13:00] <Pyromanik> makes sense I guess
118: [03:13:00] <Pyromanik> info-rotorua.com lol picture of Tauranga on main page.
119: [03:13:00] <Pyromanik> err, /day-away
120: [03:14:00] <Pyromanik> more sense than sending an email newsletter via ajax
121: [03:14:00] <ss23> You can tell whether the client had too much say in a design by checking for a "Website made by". can't find it? company who made it was like "lol fuck no"
122: [03:14:00] <Pyromanik> ss23, yeh, we have a few of them
123: [03:15:00] <ss23> Anyway, time to do this DPS intergration, since after 2 weeks, finally got our dev account set up.
124: [03:22:00] <WarHotDog> hi
125: [03:22:00] * WarHotDog has joined #silverstripe
126: [03:23:00] <WarHotDog> anyone awake?
127: [03:24:00] <ss23> WarHotDog: Proibably not
128: [03:24:00] * ss23 hides
129: [03:25:00] <WarHotDog> oks
130: [03:26:00] <WarHotDog> Anyone know how to make Multiple grouping levels?
131: [03:27:00] <ajshort> group your grouped list's lists?
132: [03:28:00] <ajshort> then loop through each sub-list and group that as well
133: [03:28:00] <WarHotDog> yes
134: [03:28:00] <ajshort> that was the answer :)
135: [03:28:00] <ajshort> group the top level
136: [03:29:00] <ajshort> so group by year
137: [03:29:00] <WarHotDog> haa so to say I want to group Year -> Month like a blog
138: [03:29:00] * cloph_away quit (Ping timeout: 257 seconds)
139: [03:30:00] <WarHotDog> in SS2.4 had no trouble doing in SS3 I can not create a control for children
140: [03:30:00] <ajshort> then loop through each year and group by month
141: [03:32:00] * cloph_away has joined #silverstripe
142: [03:32:00] <WarHotDog> when I try to reorder the orders .. or just get an error I can not do
143: [03:33:00] <ajshort> can you paste your code somewhere?
144: [03:33:00] * joelpittet has joined #silverstripe
145: [03:34:00] * joelpittet has joined #silverstripe
146: [03:34:00] * joelpittet quit (Remote host closed the connection)
147: [03:36:00] <WarHotDog> one moment
148: [03:40:00] <WarHotDog> http://www.sspaste.com/paste/show/515a53160bf3b
149: [03:40:00] <WarHotDog> not exactly the same code that I have but basically is doing that in the template
150: [04:03:00] * DigNZ1 quit (Quit: DigNZ1)
151: [04:06:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
152: [04:07:00] * nickmolhoek quit (Quit: nickmolhoek)
153: [04:17:00] <Pyromanik> ss23, tell me how access log works?
154: [04:17:00] * Shrike_Finland quit (Quit: Leaving.)
155: [04:19:00] <Pyromanik> I'm boggled so.
156: [04:19:00] <Pyromanik> it vexes me so.
157: [04:19:00] <Pyromanik> however in access log, the curl call appears before the UA call to the script.
158: [04:19:00] <Pyromanik> I have a script that has a curl call in it
159: [04:20:00] <Pyromanik> wait wtf
160: [04:20:00] <Pyromanik> access log
161: [04:20:00] <Pyromanik> grep wut u do
162: [04:21:00] <Pyromanik> not chronological order
163: [04:21:00] <Pyromanik> log*
164: [04:21:00] <Pyromanik> what
165: [04:21:00] <Pyromanik> time stamp a few micro seconds later
166: [04:21:00] <Pyromanik> I'm just
167: [04:21:00] <Pyromanik> appears FIRST in lot
168: [04:24:00] * joelpittet has joined #silverstripe
169: [04:24:00] * joelpittet quit (Read error: Connection reset by peer)
170: [04:31:00] * DigNZ has joined #silverstripe
171: [04:34:00] <ss23> Pyromanik: o.o
172: [04:34:00] <ss23> It's in chronological order, the first lines of the file are the oldest
173: [04:35:00] <Pyromanik> but
174: [04:35:00] <Pyromanik> why is my curl call registered before the script that calls the curl call?
175: [04:35:00] <Pyromanik> >.>
176: [04:36:00] <ss23> So, the curl is the middle of the request, so it finishes first?
177: [04:36:00] <ss23> Might log it at the end of the request
178: [04:36:00] * DigNZ quit (Client Quit)
179: [04:38:00] <Pyromanik> must do
180: [04:47:00] <WarHotDog> so ajshort?
181: [04:47:00] <EasyCo> Does SS have a maximum directory depth for files under themes/theme_name/javascript
182: [04:50:00] <Pyromanik> I shouldn't think so EasyCo
183: [04:51:00] <EasyCo> Yah just ran another test
184: [04:51:00] <Pyromanik> because composer
185: [04:51:00] <Pyromanik> yeah
186: [04:51:00] <EasyCo> ?
187: [04:51:00] <EasyCo> If the folder is any other name then vendor it's fine
188: [04:51:00] <Pyromanik> oh, well that's because it's named vendor
189: [04:51:00] <EasyCo> so weird, anything under themes/theme_name/javascript/vendor get a 403
190: [04:52:00] <EasyCo> I see it
191: [04:52:00] <EasyCo> Ah it's a composer thing is it?
192: [04:52:00] <Pyromanik> edit your .htaccess
193: [04:52:00] <Pyromanik> you'll see the rule there
194: [04:52:00] <Pyromanik> (the SS root htaccess)
195: [04:52:00] <EasyCo> Ahhh
196: [04:53:00] <WarHotDog> yes
197: [04:53:00] <EasyCo> What's the deal with that?
198: [04:53:00] <Pyromanik> EasyCo, because composer?
199: [04:53:00] <WarHotDog> by the .htaccess
200: [04:53:00] <Pyromanik> dumps all it's configs and things in a vendor folder
201: [04:53:00] <Pyromanik> in the project root
202: [04:53:00] <EasyCo> Yah I guess it wouldn't be too good to have that exposed
203: [04:54:00] <WarHotDog> why not ?
204: [04:54:00] <Pyromanik> no
205: [04:54:00] <Pyromanik> mm
206: [04:54:00] <WarHotDog> <IfModule mod_alias.c>
207: [04:54:00] <WarHotDog> RedirectMatch 403 /silverstripe-cache(/|$)
208: [04:54:00] <WarHotDog> RedirectMatch 403 /vendor(/|$) # Comment This
209: [04:54:00] <WarHotDog> RedirectMatch 403 /composer\.(json|lock)
210: [04:54:00] <WarHotDog> </IfModule>
211: [04:54:00] <Pyromanik> don't comment it
212: [04:54:00] <Pyromanik> :<
213: [04:54:00] <Pyromanik> edit it
214: [04:54:00] <Pyromanik> because it's there for a reason
215: [04:54:00] <EasyCo> If you comment it out you expose that directory
216: [04:55:00] <Pyromanik> but that only works if SS is in the webroot
217: [04:55:00] <WarHotDog> haa really sorry I'm not reading hahaha
218: [04:55:00] <Pyromanik> RedirectMatch 403 ^/vendor(/|$)
219: [04:55:00] <Pyromanik> the easier thing to do would be to simply place a ^ at the beginning of the rule.
220: [04:55:00] <EasyCo> I have to add an exception for my specific directory
221: [04:56:00] <EasyCo> Which is is, all good. Thanks Pyromanik.
222: [04:56:00] <Pyromanik> well you could comment that and use mod_rewrite to deny users
223: [04:56:00] <Pyromanik> I guess
224: [04:56:00] <Pyromanik> an easier thing would be to rename your js vendor folder to 'lib' or something equally descriptive
225: [04:56:00] <WarHotDog> sorry sorry I remembered that I had a problem with CSS framework and the most feasible solution for this was comment out that line and pass the vendor's SS elsewhere .. sorry
226: [04:57:00] <EasyCo> I'm reluctant to change the folder name since it's a standard naming with Zurb Foundation and Compass.
227: [04:57:00] <Pyromanik> but
228: [04:57:00] <Pyromanik> ... yeah.
229: [04:57:00] <Pyromanik> bit OTT
230: [05:01:00] <Pyromanik> did that work in 2.4?
231: [05:01:00] <WarHotDog> Pyromanik do you know how Multiple grouping levels?
232: [05:01:00] <WarHotDog> in SS3
233: [05:01:00] <Pyromanik> WarHotDog, what?
234: [05:01:00] <Pyromanik> <% blah.groupedby() %> <% control blah.groupedBy() %>
235: [05:01:00] <Pyromanik> ?
236: [05:02:00] <Pyromanik> well start off with you want loop not control
237: [05:02:00] <WarHotDog> yep in 2.4
238: [05:02:00] <Pyromanik> secondly, you'll want to look at Children. IIRC it's not a DataList, which you'll need.
239: [05:02:00] * Shrike_Finland has joined #silverstripe
240: [05:03:00] <Pyromanik> so you'll need to inspect the code
241: [05:03:00] <Pyromanik> which it's probably not
242: [05:03:00] <Pyromanik> but that's presuming that it's the same as Children provided by hierarchy
243: [05:03:00] <WarHotDog> Actually my problem is in trying to engrupar SS3 Year -> Month -> Day
244: [05:03:00] <Pyromanik> to see what kind of object Children is
245: [05:03:00] <Pyromanik> and then see if that provides the GroupedBy method
246: [05:04:00] <WarHotDog> Actually my problem is in trying to group SS3 Year -> Month -> Day
247: [05:05:00] <Pyromanik> I think you'd have to do that in PHP
248: [05:05:00] <Pyromanik> hmm
249: [05:05:00] <Pyromanik> use ArrayLists
250: [05:05:00] <Pyromanik> etc
251: [05:06:00] <WarHotDog> mmm why I believed .. was good just to see if anyone had the shortest solution with Obj grouplist
252: [05:07:00] * SightUnseen has joined #silverstripe
253: [05:07:00] <Pyromanik> it all depends on what kind of object Children is
254: [05:07:00] <EasyCo> Anybody know why this JS doesn't work within Silverstripe: <script>document.write('<script src=$ThemeDir/js/vendor/' + ('__proto__' in {} ? 'zepto' : 'jquery') + '.js><\/script>');</script>
255: [05:07:00] <Pyromanik> when you're looping your <% blah.GroupedBy() %>
256: [05:07:00] * SightUnseen has left #silverstripe
257: [05:08:00] <Pyromanik> nah, it's not.
258: [05:08:00] <Pyromanik> because document.write isn't a method.
259: [05:08:00] <Pyromanik> rather
260: [05:08:00] <EasyCo> It works fine outside of SS but not within
261: [05:08:00] <Pyromanik> isn't valid
262: [05:08:00] <Pyromanik> probably
263: [05:08:00] <EasyCo> It's a valid JS method
264: [05:09:00] <EasyCo> https://developer.mozilla.org/en-US/docs/DOM/document.write ??
265: [05:09:00] <WarHotDog> in dataobject no longer calling me this method for some reason even though I make a double parsing to children is also very strange that a migration of SS2 to SS3
266: [05:10:00] <Pyromanik> dom level 2
267: [05:10:00] <Pyromanik> not xhtml valid
268: [05:11:00] <Pyromanik> defined
269: [05:11:00] * brondanino has joined #silverstripe
270: [05:11:00] <Pyromanik> but it caused huge issues with recaptcha because it relies on it
271: [05:11:00] <Pyromanik> can't remember where off the top of my head
272: [05:11:00] <WarHotDog> This focusing possibly bad the problem but I have a bit tired this migration a big place and you did many things...
273: [05:11:00] <Pyromanik> I read somewhere it's an issue.
274: [05:12:00] <Pyromanik> eg no pagination on DataList
275: [05:12:00] <Pyromanik> WarHotDog, it's a pretty simple migration to get your head around, it's just when you were doing some tricky things that 2.4 let you get away with (there aren't many things like this) that 3.0 won't.
276: [05:12:00] <Pyromanik> most of it is to do with the differences between DataObjectSet and DataList
277: [05:13:00] <EasyCo> Turns out the SS template engine is converting the characters
278: [05:13:00] <EasyCo> http://www.silverstripe.org/template-questions/show/17127
279: [05:13:00] <Pyromanik> EasyCo, I imagine it was to do with $ThemeDIr
280: [05:13:00] <EasyCo> Solved
281: [05:13:00] <Pyromanik> you must wrap in PaginatedList first
282: [05:14:00] <Pyromanik> urgh, that sounds horrible
283: [05:14:00] <Pyromanik> :<
284: [05:15:00] <Pyromanik> rule of thumb is to use Requirements class rather than inlining it anyways
285: [05:15:00] <EasyCo> Yep
286: [05:16:00] * brondanino quit (Ping timeout: 248 seconds)
287: [05:16:00] * Pyromanik quit (Quit: Leaving)
288: [05:16:00] <EasyCo> Unfortunately you can't always do that though
289: [05:16:00] <WarHotDog> Right ... but such is the silly PaginatedList ago obj enters and reads .. when I think I should not have to do it in places with a lot of information is simply impossible to do a paged with a decent timeout ... I for example I do is truquearlo with empty data as consumption is incredibly large memory
290: [05:16:00] <Pyromanik> home time
291: [05:17:00] <WarHotDog> truquearlo = pass on the other hand
292: [05:18:00] <WarHotDog> I apologize I write things and then I do not translate
293: [05:22:00] <guci0> Hello moto!
294: [05:22:00] * guci0 has joined #silverstripe
295: [05:38:00] * WarHotDog quit ()
296: [05:40:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
297: [05:45:00] * ajshort has joined #silverstripe
298: [06:08:00] * EasyCo quit (Quit: EasyCo)
299: [06:10:00] * SticksM quit (Read error: Connection reset by peer)
300: [06:19:00] * hubertusanton has joined #silverstripe
301: [06:51:00] * Bollig|DesignCty has left #silverstripe
302: [06:52:00] * Bollig|DesignCty quit (Client Quit)
303: [06:52:00] * Bollig|DesignCty has joined #silverstripe
304: [06:53:00] * Bollig|DesignCty has joined #silverstripe
305: [06:55:00] * g4b0 has joined #silverstripe
306: [06:59:00] * brondanino has joined #silverstripe
307: [07:02:00] * spronk has joined #silverstripe
308: [07:05:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
309: [07:06:00] * brondanino quit (Ping timeout: 240 seconds)
310: [07:21:00] * Zauberfisch-idle has joined #silverstripe
311: [07:26:00] <ss23> I hate whoever decided that adding text-shadow to a bunch of text in Silverstripe 3 CMS was a good thing.
312: [07:26:00] * SightUnseen1 has joined #silverstripe
313: [07:26:00] * zfmf has joined #silverstripe
314: [07:27:00] <lewellyn> heh
315: [07:28:00] * SightUnseen1 has left #silverstripe
316: [07:33:00] <g4b0> hi all
317: [07:34:00] <ss23> heya
318: [07:38:00] <Shrike_Finland> Is it possible to <% loop %> inside javascript?
319: [07:39:00] <ss23> But in a .js file, probably not
320: [07:39:00] <ss23> Javascript inside a template it sohuld be
321: [07:39:00] <ss23> Since .js files aren't rendered as templates
322: [07:40:00] <Shrike_Finland> Ok, let's put it on test :)
323: [07:51:00] * Mento has joined #silverstripe
324: [07:57:00] * ivoba has joined #silverstripe
325: [08:06:00] * kinglozzer has joined #silverstripe
326: [08:13:00] <Zauberfisch> Shrike_Finland no template in JS files
327: [08:14:00] <Zauberfisch> but that is not good, because it will effect Requirements output
328: [08:14:00] <Zauberfisch> you have to do <script>...</script> in .ss template
329: [08:15:00] <Zauberfisch> if you put a <script> block somewhere in your html, Requirements will place all script blocks at the first <script> block you have in template
330: [08:27:00] <ocm> howdy!
331: [08:27:00] * ocm has joined #silverstripe
332: [08:27:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
333: [08:28:00] <ss23> Heya!
334: [08:29:00] <ocm> wzup?
335: [08:32:00] <ss23> Tired, but promised I would get this done tonight :<
336: [08:33:00] <ss23> So, I have a question1
337: [08:35:00] <ss23> I'm confused about allowed_actions etc
338: [08:35:00] <ss23> So I need a URL that users can navigate to by clicking a link, and when they click the link and go there, it does some PHP then redirects them to an external site. Then, they need to be able to return from that external site and access a different action, where I run more PHP code
339: [08:35:00] <ss23> What do
340: [08:36:00] <ss23> Because at the moment, I had a form that had an action that goes to homepage/doBuy, which got executed fine, evne though there's no doBuy in my $allowed_actions
341: [08:42:00] <Shrike_Finland> Zauberfisch: got loop running in ss-file and everything works, even with multiple scripts loaded at the same time
342: [08:43:00] <Zauberfisch> but it causes the other scripts to be placed somewhere they should not be
343: [08:43:00] <Zauberfisch> Shrike_Finland sure, it works
344: [08:44:00] <Zauberfisch> (unless you placed your script tags at the bottom right before </body>
345: [08:49:00] <Zauberfisch> )
346: [08:49:00] <Zauberfisch> afk
347: [08:49:00] * Zauberfisch quit (Remote host closed the connection)
348: [08:50:00] * lx-berlin_ has joined #silverstripe
349: [08:50:00] <ivoba> hi, anyone knows how i can replace Director::redirect in a non controller, f.e. extension
350: [08:52:00] * Error404NotFound has joined #silverstripe
351: [08:52:00] * waveydave has joined #silverstripe
352: [08:53:00] * priithansen has joined #silverstripe
353: [08:57:00] <webgeust> using json_decode: $Latitude = $json->results[0]->geometry->location->lat;
354: [08:57:00] <webgeust> getting error [Notice] Undefined offset: 0
355: [08:57:00] <kinglozzer> Shrike_Finland: I didn't see what you were asking, but as Zauber mentioned 'no template in JS files' - did you mean you wanted to pass a variable from your controller to a JS file?
356: [08:57:00] * webgeust has joined #silverstripe
357: [08:57:00] * svandragt has joined #silverstripe
358: [08:57:00] <webgeust> hello
359: [08:57:00] <svandragt> hey
360: [08:58:00] <webgeust> but it does exist, see url :s
361: [08:58:00] <kinglozzer> webgeust: Because $json->results[0] doesn't exist
362: [08:58:00] <webgeust> on this url http://maps.googleapis.com/maps/api/geocode/json?address=Otto+Veniusstraat+29+Antwerpen++Belgi%C3%AB&sensor=false
363: [08:58:00] <kinglozzer> PHP says otherwise ;)
364: [08:59:00] <kinglozzer> json_decode() creates an array, not an object
365: [08:59:00] <webgeust> could you please look with me, any clues?
366: [08:59:00] <kinglozzer> webgeust: Shouldn't it be $json['results'][0]['geometry']['location']['lat']; ?
367: [08:59:00] <webgeust> the google maps url does have the vriables
368: [09:00:00] * chillu has joined #silverstripe
369: [09:01:00] <webgeust> the complete code: http://paste2.org/UUIKhXKc
370: [09:10:00] <webgeust> now trying as array...
371: [09:11:00] <svandragt> 'ning
372: [09:15:00] <ss23> A simple way to do it would be a function thats only called when a new object is created, rather than one being loaded
373: [09:15:00] <ss23> Does something like that exist?
374: [09:15:00] <ss23> Is there a way to have a datamodel have a default value be a function? That is, if you're creating a new datamodel, populate the value of $this->foo with the result of a function, but if you're not creating it for the first time, keep the saved value.
375: [09:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c08ab18c03c5...5143c8149a19
376: [09:16:00] <travis-ci> [travis-ci] silverstripe/sapphire#1845 (3.1 - 5143c81 : Nik Rolls): The build passed.
377: [09:16:00] * travis-ci has joined #silverstripe
378: [09:16:00] * Zauberfisch has joined #silverstripe
379: [09:16:00] * travis-ci has left #silverstripe
380: [09:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5980942
381: [09:17:00] <g4b0> which is the correct way to include a JS or a CSS for some kind of pages? (SS 3.1 dev)
382: [09:18:00] <webgeust> kinglozzer: written in the array way (instead of object) the problem also occurs, is there a check if the results exist, like 'isset'
383: [09:20:00] <kinglozzer> webgeust: if ($json['status'] == 'OK')
384: [09:22:00] <webgeust> thx, this is better, it looks like the belgium addresses dont get results :(
385: [09:22:00] <kinglozzer> webgeust: Or if you need more info than just 'OK' or not, you can do a switch statement for things like 'NO_RESULTS' etc. The different statuses should be listed in the Google Maps API docs
386: [09:24:00] <svandragt> g4b0: public function getCMSFields() { Requirements::javascript(CMS_DIR . '/javascript/RedirectorPage.js'); }
387: [09:24:00] <svandragt> g4b0: See RedirectorPage.php for example
388: [09:24:00] * joelpittet quit (Remote host closed the connection)
389: [09:25:00] <g4b0> I used <% require javascript(themes/mytheme/js/bootstrap.js) %>
390: [09:25:00] <g4b0> directly into template
391: [09:26:00] <g4b0> is it a deprecated way to do it?
392: [09:27:00] <g4b0> yep :)
393: [09:27:00] <g4b0> thanks
394: [09:27:00] <svandragt> the example I showed was for cms so not any good
395: [09:27:00] <svandragt> g4b0: not sure. But I use either put it in the content_controller's init actually for front end pages
396: [09:28:00] <kinglozzer> g4b0: Yeah put it inside the init() function. I don't think <% require %> is deprecated but it's frowned upon :P
397: [09:28:00] <svandragt> g4b0: public function init() { parent::init(); Requirements::CSS(styles.css''); Requirements::javascript('js.js'); }
398: [09:29:00] <svandragt> g4b0: most likely you'll want to combine the scripts or conditionally include them later so it's easier to manage that way have them all in the same place.
399: [09:30:00] <g4b0> what about <script src="http://code.jquery.com/jquery.js"></script>
400: [09:30:00] <g4b0> you're right
401: [09:31:00] <g4b0> ?
402: [09:31:00] <g4b0> can I include it from controller?
403: [09:32:00] <g4b0> I can try...
404: [09:32:00] <Zauberfisch> g4b0 Requirements::javascript('http://code.jquery.com/jquery.js'); ?
405: [09:33:00] <g4b0> it works
406: [09:33:00] <g4b0> but Requirements::javascript('bootstrap.js');
407: [09:34:00] <ss23> Another question. renderWith() seems to overide the entire template, but what if you want to do like what happens when you subclass Page, so say "Use templtes/Page.ss, but templtes/Layout/Foo.ss for content"?
408: [09:34:00] <g4b0> where do I have to put bootstrap.js?
409: [09:34:00] <g4b0> template or mysite?
410: [09:34:00] <g4b0> doesn't work
411: [09:34:00] <elgrodo> gb40: In your theme makes sense
412: [09:34:00] <g4b0> ok
413: [09:35:00] <g4b0> so I have to use Requirements::javascript('/themes/mytheme/je/bootstrap.js'); ?
414: [09:36:00] <g4b0> it works
415: [09:36:00] <elgrodo> cool
416: [09:36:00] <g4b0> thanks all :)
417: [09:36:00] <Shrike_Finland> g4b0: I put required js on mysite
418: [09:37:00] <Shrike_Finland> is order of loading important or not
419: [09:37:00] <g4b0> in that case they're template-related
420: [09:37:00] * travis-ci has left #silverstripe
421: [09:37:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5981396
422: [09:37:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/32af5336c341...4d3e19958ed8
423: [09:37:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#313 (3.1 - 4d3e199 : Ingo Schommer): The build is still failing.
424: [09:37:00] * travis-ci has joined #silverstripe
425: [09:37:00] <Shrike_Finland> but it depends, how do you want to load the scripts
426: [09:37:00] <g4b0> yes
427: [09:38:00] <Shrike_Finland> that way I only load additional scripts when needed
428: [09:38:00] <g4b0> is there a way to iterate through integer during a <% loop %>?
429: [09:38:00] <Shrike_Finland> I load bootstrap js-files on page.php and pagetype specific js-files on that pagetype from mysite
430: [09:39:00] <elgrodo> I just went a bit old school http://pastie.org/7277216 :)
431: [09:39:00] <g4b0> Shrike_Finland: yep, it's a good way
432: [09:39:00] <elgrodo> and scrunch it using a modified version of the rails smart_asset gem
433: [09:41:00] <g4b0> nice :)
434: [09:41:00] <Shrike_Finland> Kinglozzer: you asked about what we talked with Zauber: I needed to loop inside javascript with dataobjects: http://www.sspaste.com/paste/show/515aa77faf114
435: [09:41:00] <elgrodo> (I prefer to have control over the order)
436: [09:43:00] <ivoba> is overriding populateDefaults() still the way to translate defaults in 3
437: [09:43:00] <ivoba> ?
438: [09:43:00] <kinglozzer> Shrike_Finland: Did you work out how to do it? There's Requirements::javascriptTemplate() that should do it: http://api.silverstripe.org/3.0/class-Requirements.html#_javascriptTemplate
439: [09:44:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/296e387b47d6...f1de3a70a193
440: [09:44:00] * travis-ci has joined #silverstripe
441: [09:44:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5981645
442: [09:44:00] * travis-ci has left #silverstripe
443: [09:44:00] <travis-ci> [travis-ci] chillu/sapphire#116 (pulls/i18n-common-languages - f1de3a7 : Ingo Schommer): The build has errored.
444: [09:46:00] <travis-ci> [travis-ci] chillu/sapphire#117 (pulls/i18n-common-languages - 0b54b28 : Ingo Schommer): The build is still failing.
445: [09:46:00] <Shrike_Finland> javascriptTemplate, to be correct
446: [09:46:00] * travis-ci has left #silverstripe
447: [09:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5981662
448: [09:46:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/f1de3a70a193...0b54b284bc13
449: [09:46:00] * travis-ci has joined #silverstripe
450: [09:46:00] * travis-ci has left #silverstripe
451: [09:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5981547
452: [09:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/4d3e19958ed8...6457ab243385
453: [09:46:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#314 (3.1 - 6457ab2 : Ingo Schommer): The build was fixed.
454: [09:46:00] * travis-ci has joined #silverstripe
455: [09:46:00] <Shrike_Finland> kinglozzer: whoa, that's a new one, I think? so you can use <% require javascriptTemaplte(yourtheme/javascript/yourscript.js) %>?
456: [09:48:00] <kinglozzer> Shrike_Finland: Not sure about using it in a template, I've only ever used it in a controller. I don't know if you can pass an ArrayList to use <% loop %> either, you might need to create an array of addresses before you pass them into the JS template
457: [10:10:00] <travis-ci> [travis-ci] silverstripe/sapphire#1847 (3.1 - 47e0221 : Ingo Schommer): The build passed.
458: [10:10:00] * travis-ci has left #silverstripe
459: [10:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5981672
460: [10:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5143c8149a19...47e02216fa11
461: [10:10:00] * travis-ci has joined #silverstripe
462: [10:14:00] * travis-ci has joined #silverstripe
463: [10:14:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5981699
464: [10:14:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/47e02216fa11...ebca1a64ede6
465: [10:14:00] * travis-ci has left #silverstripe
466: [10:14:00] <travis-ci> [travis-ci] silverstripe/sapphire#1848 (3.1 - ebca1a6 : Ingo Schommer): The build passed.
467: [10:18:00] * Imran_ has joined #silverstripe
468: [10:21:00] * travis-ci has left #silverstripe
469: [10:21:00] * travis-ci has joined #silverstripe
470: [10:21:00] <travis-ci> [travis-ci] silverstripe/sapphire#1849 (3.1 - f0d92f7 : Ingo Schommer): The build passed.
471: [10:21:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5981885
472: [10:21:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/ebca1a64ede6...f0d92f7bcc67
473: [10:22:00] <Imran_> can any one tell me how i create Twitter Style Load More newslist with jQuery and Ajax in silverstripe
474: [10:24:00] <webgeust> why does: $zoekAdres3 = cleanForShortURL($zoekAdres2); results in: Call to undefined function cleanForShortURL()
475: [10:25:00] <webgeust> i created function cleanForShortURL($toClean) {} inside class Dealer extends DataObject {}
476: [10:25:00] <webgeust> inside function writeLatLng(){} i have $zoekAdres3 = cleanForShortURL($zoekAdres2);
477: [10:26:00] * Imran_ quit (Quit: Page closed)
478: [10:29:00] * lx-berlin_ quit (Ping timeout: 248 seconds)
479: [10:29:00] * travis-ci has joined #silverstripe
480: [10:29:00] <travis-ci> [travis-ci] silverstripe/sapphire#1850 (3.0 - df4d742 : Joseph Madden): The build passed.
481: [10:29:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f5754c11aa22...df4d7428fa65
482: [10:29:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5982250
483: [10:29:00] * travis-ci has left #silverstripe
484: [10:31:00] * imran_ has joined #silverstripe
485: [10:36:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
486: [10:36:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
487: [10:37:00] <imran_> I have little question
488: [10:52:00] * Zauberfisch-idle has joined #silverstripe
489: [11:00:00] * qlex has joined #silverstripe
490: [11:01:00] * qlex says hi
491: [11:01:00] <qlex> i was looking into the FAQ modules for SS3, but all seem to be suitable only for 2.4.x ?
492: [11:01:00] <qlex> is that correct ?
493: [11:02:00] * DigNZ has joined #silverstripe
494: [11:02:00] * DigNZ quit (Client Quit)
495: [11:03:00] <webgeust> does any one know how to make SS 2.4.10 model Admin understand UTF-8 special characters?
496: [11:04:00] <webgeust> Sant�
497: [11:04:00] <webgeust> when i look in modelAdmin, i see question mark symbol at the é
498: [11:04:00] <webgeust> i imported a csv, if i check phpMyAdmin i see example name: Santé
499: [11:05:00] <webgeust> whats the cure??
500: [11:05:00] <ss23> More cowbell.
501: [11:05:00] <ss23> qlex: Lots of modules only work for 2.4.X rather than 3.X, thats right. However, if the module is on github, there's often a trunk/master branch that has fixes for 3
502: [11:05:00] <webgeust> my php file is UTF8 encoded
503: [11:06:00] <webgeust> db columns are utf8_general_ci
504: [11:06:00] * imran_ quit (Ping timeout: 245 seconds)
505: [11:08:00] * lx-berlin_ has joined #silverstripe
506: [11:09:00] <qlex> ss23: will look around. perhaps it'd be easier to use the jquery scripting that solves the FAQ requirement of an "accordion" style expand/collapse effect of questions and answers...
507: [11:09:00] <ss23> qlex: Indeed. Some modules just aren't worth the effort. On the other hand, if you do find out and even take the time to fix it, you might be making someone elses day
508: [11:10:00] <qlex> i havent seen any of those FAQ modules on github. most are still on ss.org
509: [11:10:00] <qlex> that's our first plan.to use one of the existing ones, track back bugs and provide fixes
510: [11:11:00] <qlex> correcetion, they are on github. havent search correctly
511: [11:19:00] <webgeust> solved, added config line
512: [11:25:00] <ss23> webgeust: What was the line you added?
513: [11:26:00] <webgeust> when i import my csv, and call my onbeforewrite function which should replace specials chars for a URL json request.. they dont get replaced
514: [11:26:00] <webgeust> but still having another problem
515: [11:26:00] <webgeust> MySQLDatabase::set_connection_charset('utf8');
516: [11:27:00] * ivoba quit (Quit: Leaving)
517: [11:27:00] <webgeust> as if they are not recognized
518: [11:29:00] * lx-berlin_ has left #silverstripe
519: [11:31:00] <qlex> webguest: i think i have a similar problem as you do. i have a website in utf-8 on ss that displays the characters correctly, but when im exporting the db dump and importing it to a development server with the same ss installed, my polish characters get missing
520: [11:37:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/f7cd316d1f6e^...439ae98431c3
521: [11:37:00] * travis-ci has left #silverstripe
522: [11:37:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5983528
523: [11:37:00] <travis-ci> [travis-ci] chillu/sapphire#118 (pulls/postgres-fixes - 439ae98 : Ingo Schommer): The build failed.
524: [11:37:00] * travis-ci has joined #silverstripe
525: [11:47:00] * lx-berlin_ has joined #silverstripe
526: [12:07:00] <ss23> Doubtful it's onbeforewrite, but PHP can often have time limits
527: [12:07:00] <webgeust> is there a max onbeforewrite actions can handle? if i import my CSV with 510 records, all latitude/longtitude get searched via json google maps.. but after 236 records, the important just stops, any idea's?
528: [12:07:00] <ss23> webgeust: http://php.net/manual/en/function.set-time-limit.php
529: [12:15:00] * LoveDuckie has joined #silverstripe
530: [12:16:00] * UndefinedOffset has joined #silverstripe
531: [12:31:00] <webgeust> thx ss23
532: [12:33:00] * surfdad has joined #silverstripe
533: [12:33:00] <elgrodo> e.g. ampersands in the place name
534: [12:33:00] <elgrodo> webgeust: Maybe some encoding issue with the name in the 236th row?
535: [12:37:00] <webgeust> i will look into it, thx
536: [12:45:00] <g4b0> How can I translate template's strings?
537: [12:46:00] <g4b0> translate module
538: [12:46:00] <g4b0> SS 3.1 dev
539: [12:47:00] <UndefinedOffset> shouldn't it be the same as http://doc.silverstripe.org/framework/en/3.1/topics/i18n#usage-in-template-files
540: [12:48:00] <UndefinedOffset> likely what happend is the old <% _t(... is now actually gone instead of just deprecated
541: [12:50:00] <g4b0> a lot of changes in this 3.1 :)
542: [12:51:00] <svandragt> It does link tracking and everything and a lot of behavour that would be useful without the redirection aspect.
543: [12:51:00] <svandragt> Has anyone took the Internal/External link combo field from the RedirectorPage and isolated that code for reuse? If not would anyone else be interested in it. Makes sense to reuse this as it's a better solution anytime than a regular textfield for a url.
544: [12:53:00] <UndefinedOffset> g4b0 ya that one was expected though, they deprecated the old syntax in 3.0 and flagged as to be removed in 3.1
545: [12:53:00] <g4b0> yep
546: [12:54:00] <g4b0> thw problem is that we started working on SS from 3.0
547: [12:54:00] <g4b0> searching on internet there's a lot of info about 2.x
548: [12:54:00] <g4b0> a lot of deprecation, but no documentation
549: [12:55:00] <UndefinedOffset> ya 3.0 is still new itself 2.x has been around for a long long time :)
550: [12:56:00] <UndefinedOffset> when I did/do module and site migrations to 3.0 if they have the 2.x translation syntax i replace it with the updated syntax as much as i can
551: [12:56:00] <UndefinedOffset> most of it was mentioned in the release change logs for 3.0, there is away to turn on the deprecation notices. I think if the site is in dev mode they're on by default but i could be wrong
552: [12:57:00] <g4b0> I'm migrating modules from 3.0 to 3.1
553: [12:57:00] <g4b0> eheh
554: [12:57:00] <UndefinedOffset> can and spot :P
555: [12:57:00] <g4b0> and it's not always so easy
556: [12:59:00] * surfdad has left #silverstripe
557: [12:59:00] * ajshort quit (Ping timeout: 264 seconds)
558: [12:59:00] <UndefinedOffset> ya neither is going from 2.4 to 3.0 that was fun lol
559: [12:59:00] * howardgrigg has joined #silverstripe
560: [13:02:00] * ajshort has joined #silverstripe
561: [13:04:00] * howardgrigg quit (Remote host closed the connection)
562: [13:09:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
563: [13:10:00] * dospuntocero quit (Remote host closed the connection)
564: [13:10:00] * dospuntocero has joined #silverstripe
565: [13:10:00] * dospuntocero has joined #silverstripe
566: [13:11:00] <dospuntocero> hey guys, question, how can i do something like <% with Children[2] %> <% with Children[3] %> etc??? is it possible?
567: [13:20:00] <UndefinedOffset> not 100% sure though
568: [13:20:00] <UndefinedOffset> dospuntocero i believe it'd be Children.offsetGet(#) http://api.silverstripe.org/3.0/class-DataList.html#_offsetGet
569: [13:22:00] <elgrodo> qlex: A very simplistic FAQ module I did a while ago, just upgraded it to ss3 https://github.com/gordonbanderson/wot-faq/tree/master
570: [13:25:00] <qlex> thanx
571: [13:25:00] <qlex> i will give it a spin
572: [13:25:00] <qlex> you got me just before disconnecting !
573: [13:25:00] <qlex> thanx
574: [13:26:00] * qlex has left #silverstripe
575: [13:29:00] * Shrike_Finland quit (Quit: Leaving.)
576: [13:34:00] * lx-berlin_ has left #silverstripe
577: [13:37:00] * lx-berlin_ has joined #silverstripe
578: [13:41:00] * lx-berlin_ quit (Ping timeout: 264 seconds)
579: [13:41:00] * lx-berlin has joined #silverstripe
580: [13:42:00] <g4b0> I've got a problem translating the template]
581: [13:43:00] <dospuntocero> hehe
582: [13:43:00] <dospuntocero> i did something pretty lame, but worked
583: [13:43:00] <g4b0> and SS create a lang/en.yml
584: [13:43:00] <g4b0> I added <%t mySimple.testTranslation "translation test" %>
585: [13:44:00] <dospuntocero> like loop children if pos = 2, 3 etc.
586: [13:44:00] <dospuntocero> it wored
587: [13:44:00] <dospuntocero> hehe
588: [13:44:00] <g4b0> I created a it.yml
589: [13:44:00] <g4b0> like this: http://pastebin.com/WS0KiHEc
590: [13:45:00] <g4b0> like this: http://pastebin.com/04MZTLe7
591: [13:45:00] <g4b0> what I'm missing?
592: [13:45:00] <g4b0> but the italian string is never displayed...
593: [13:56:00] * hubertusanton quit (Ping timeout: 260 seconds)
594: [13:57:00] <dospuntocero> so your translation must look like this
595: [13:57:00] <dospuntocero> the .ss is not necesary, and the part before the : must be in CAPITALS
596: [13:58:00] <dospuntocero> then your translation
597: [13:58:00] <dospuntocero> :
598: [13:58:00] <dospuntocero> NewsElem
599: [13:58:00] <dospuntocero> it:
600: [13:58:00] <dospuntocero> _t(NewsElem.READ,read)
601: [13:59:00] <dospuntocero> ough... in the same line, sorry NewsElem:
602: [13:59:00] <travis-ci> [travis-ci] chillu/sapphire#118 (pulls/postgres-fixes - 439ae98 : Ingo Schommer): The build failed.
603: [13:59:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/f7cd316d1f6e^...439ae98431c3
604: [13:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5983528
605: [13:59:00] * travis-ci has left #silverstripe
606: [13:59:00] <dospuntocero> READ: leggere
607: [13:59:00] * travis-ci has joined #silverstripe
608: [14:00:00] <g4b0> let's try
609: [14:00:00] <g4b0> mmm
610: [14:02:00] <g4b0> I also have a _manifest_exclude void file
611: [14:02:00] <g4b0> do I have to remove it?
612: [14:04:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
613: [14:04:00] <dospuntocero> UndefinedOffset: it worked great! thank you so much! my template now looks decent again hehe... the only difference was the offsetting starts in 0 not 1, but i fixed it in a second!
614: [14:07:00] <svandragt> Bonus tip: if you're adding relations to tabs or creating fields for them, make sure you check that $this->ID > 0 before showing them otherwise people will enter information into the void. :(
615: [14:11:00] * webgeust quit (Ping timeout: 245 seconds)
616: [14:12:00] * guci0 quit (Ping timeout: 245 seconds)
617: [14:20:00] <kinglozzer> svandragt: Yeah I've found that. CheckboxsetField doesn't seem to check whether the item exists yet :/
618: [14:20:00] <dospuntocero> g4b0: no, its not needed. remember to flush=all
619: [14:21:00] <kinglozzer> Cba to find out :D
620: [14:21:00] <kinglozzer> I usually do: if ( ! $this->ID) $myRelationalField->setDisabled(true);
621: [14:21:00] <kinglozzer> I wonder if it'll be fixed in 3.1
622: [14:25:00] <g4b0> dospuntocero: nothing :(
623: [14:25:00] <dospuntocero> mmm... do you have a repo to look at?
624: [14:25:00] <dospuntocero> i can help you
625: [14:26:00] <dospuntocero> im like the translation wiz... LOL.. i do almost all module spanish translations out there.
626: [14:27:00] <dospuntocero> https://github.com/dospuntocero/langbuilder
627: [14:27:00] <g4b0> no repo, but I can summarize what I did:
628: [14:27:00] <dospuntocero> use pastie.org
629: [14:27:00] <dospuntocero> you can paste your class there and your yml
630: [14:27:00] <dospuntocero> also you can use my get translations class...
631: [14:28:00] <g4b0> http://pastie.org/7279911
632: [14:28:00] <g4b0> (footer)
633: [14:28:00] <dospuntocero> ok i see whats wrong there.
634: [14:29:00] <g4b0> :)
635: [14:30:00] <dospuntocero> http://pastie.org/7279941
636: [14:30:00] <g4b0> what's wrong?
637: [14:30:00] <dospuntocero> and mySimple must be MySimple
638: [14:31:00] <g4b0> I was reading here: http://doc.silverstripe.org/framework/en/3.1/topics/i18n
639: [14:31:00] <g4b0> Usage in Template Files
640: [14:31:00] <g4b0> In .ss template files, instead of _t(params) the syntax <%t params %> is used.
641: [14:31:00] <dospuntocero> well probably its wrong.
642: [14:31:00] <g4b0> nice :)
643: [14:31:00] <g4b0> ahah
644: [14:31:00] <dospuntocero> haha
645: [14:32:00] <g4b0> chillu: what do you think about that?
646: [14:32:00] <dospuntocero> or probably it will change on 3.1, but for now i think my version works.
647: [14:33:00] <dospuntocero> but did it work?
648: [14:33:00] <g4b0> dospuntocero: you're right, but I'm building a 3.1 site, I don't want to have some deprecation in the near future...
649: [14:34:00] <chillu> Not sure what you mean
650: [14:34:00] <dospuntocero> i dont think they plan to change the translation system... or will they? chillu?
651: [14:35:00] <g4b0> chillu: I'm trying to translate a template string
652: [14:35:00] <dospuntocero> <% _t('Page.uppercased word to translate','english sentence') %>
653: [14:35:00] <g4b0> following what stated in http://doc.silverstripe.org/framework/en/3.1/topics/i18n
654: [14:35:00] <dospuntocero> http://doc.silverstripe.org/framework/en/3.1/topics/i18n it shows a different way of putting translations on the templates
655: [14:35:00] <g4b0> Usage in Template Files
656: [14:36:00] <dospuntocero> in the docs say: <%t Namespace.Entity "String to translate" %>
657: [14:36:00] <g4b0> but it doesn't work...
658: [14:37:00] <chillu> Its tested by i18nTextCollectorTest->testCollectFromNewTemplateSyntaxUsingParserSubclass()
659: [14:38:00] <dospuntocero> oh... but im not using 3.1 at the moment..
660: [14:38:00] <g4b0> dospuntocero: also your code doesn't work
661: [14:38:00] <dospuntocero> so developer focused answer... i think i must say thats untranslatable chinese for g4b0 and myself
662: [14:38:00] <dospuntocero> it works in mine tempaltes...
663: [14:38:00] <g4b0> ah, ok :0
664: [14:39:00] <g4b0> I'm trying with this: http://pastie.org/7280012
665: [14:39:00] <g4b0> maybe is a 3.1 issue?
666: [14:39:00] <dospuntocero> well... that will be a pain to upgrade...
667: [14:40:00] <g4b0> Running Task i18n Textcollector Task
668: [14:40:00] <g4b0> # sake /dev/tasks/i18nTextCollectorTask
669: [14:40:00] <g4b0> then I do
670: [14:40:00] <g4b0> http://pastie.org/7280023
671: [14:40:00] <g4b0> themes/mySimple/lang/en.yml is updated
672: [14:40:00] <g4b0> (no more output)
673: [14:41:00] <g4b0> but it's not working...
674: [14:41:00] <g4b0> flush=all
675: [14:41:00] <g4b0> http://pastie.org/7280032
676: [14:41:00] <g4b0> I copied it into it.yml
677: [14:41:00] <dospuntocero> it looks like fine to me...
678: [14:44:00] <g4b0> maybe I miss something into _config.php?
679: [14:48:00] <g4b0> chillu: I tryed #sake dev/tests/i18nTextCollectorTest "flush=1"
680: [14:48:00] <g4b0> all tests passed
681: [14:48:00] <g4b0> but my template isn't translate...
682: [14:49:00] <g4b0> it looks like yml files are not processed
683: [14:50:00] * chucknoise has joined #silverstripe
684: [14:51:00] <chucknoise> I came upon userforms, but that only looks like its for users on the public side of the site to submit, I want to create a custom form for admin users to input data, for a team member page. With fields for: first, last name, age, weight, height, position, image upload, bio. Would userforms be able to do that or is that another module?
685: [14:52:00] * ARNHOE has joined #silverstripe
686: [14:55:00] * lx-berlin has left #silverstripe
687: [14:55:00] * joelpittet has joined #silverstripe
688: [14:57:00] * catcher has joined #silverstripe
689: [15:06:00] <chucknoise> this is how you would create a custom form on the admin end of SS? http://pastie.org/522439
690: [15:08:00] <svandragt> Why does TreeDropdownField not have a FieldHolder? Or is that a silly question?
691: [15:21:00] <g4b0> How can I submit a issue? Trac or github?
692: [15:23:00] * Error404NotFound quit (Max SendQ exceeded)
693: [15:23:00] * Error404NotFound has joined #silverstripe
694: [15:24:00] * Error404NotFound has joined #silverstripe
695: [15:24:00] * webguest has joined #silverstripe
696: [15:25:00] <webguest> how do i do this?
697: [15:25:00] <webguest> i would like to make an extra button inside ModelAdmin, it should just call a function, thats it
698: [15:25:00] <webguest> above import CSV from file would be nice to have this extra button
699: [15:26:00] * Error404NotFound has joined #silverstripe
700: [15:26:00] * chillu quit (Quit: chillu)
701: [15:26:00] * Error404NotFound quit (Max SendQ exceeded)
702: [15:37:00] * chucknoise quit (Ping timeout: 245 seconds)
703: [15:38:00] <kinglozzer> webguest: If you are using a DataExtension, you can use updateImportForm()
704: [15:38:00] <webguest> 2.4?
705: [15:39:00] <webguest> using 2.4
706: [15:40:00] <kinglozzer> Never used 2.4, but I don't think a DataExtension would work. In your 'MyAdmin extends ModelAdmin {' you'll probably need to create a ImportForm() function that overwrites ModelAdmin->ImportForm()
707: [15:42:00] <kinglozzer> webguest: If you copy and paste ModelAdmin->ImportForm() into your ModelAdmin class, then add an extra form field for the button you want, that should do it
708: [15:43:00] * Mento quit ()
709: [15:43:00] <kinglozzer> Actually, it's probably better to do $form = parent::ImportForm(); if that works
710: [15:47:00] <kinglozzer> webguest: http://pastie.org/7280723
711: [15:48:00] <ARNHOE> Is it impossible to get a thumbnail in modeladmin or? I have bene having this bug for almost months now, Uncaught Exception: Unable to traverse to related object field [Thumbnail] on [Partner]. But using it in SiteTree etc then it works perfectly
712: [15:49:00] <kinglozzer> ARNHOE: It's a bug. You need to have a public static $summary_fields I think
713: [15:50:00] <webguest> does this replace the CSV import?
714: [15:50:00] <webguest> cause i would just like to position it above it
715: [15:50:00] <kinglozzer> webguest: No, it will add your button to the same form.
716: [15:50:00] <webguest> kinglozzer, i dont understand, why use importForm?
717: [15:51:00] <kinglozzer> ARNHOE: Maybe it's not $summary_fields, are you on 3.1?
718: [15:51:00] <ARNHOE> nah, public didnt fix it
719: [15:51:00] <kinglozzer> My example would add it below
720: [15:52:00] <kinglozzer> I think it's searchable_fields that fixes it
721: [15:52:00] * feejin has joined #silverstripe
722: [15:52:00] <webguest> kinglozzer: when i add your code, no buttons are added just yet
723: [15:52:00] <webguest> ?
724: [15:52:00] <ARNHOE> I am in 3.1, but everything else works. Only thumbnail is giving this problem, and it is only giving this problem in ModelAdmin. When I use my dataobject on a sitetree page then it works like it should
725: [15:52:00] <kinglozzer> ARNHOE: Try adding static $searchable_fields
726: [15:52:00] <webguest> any ideaS/
727: [15:53:00] <ARNHOE> that didn't do it either kinglozzer :(
728: [15:54:00] <ARNHOE> static $searchable_fields = array("Title","Thumbnail");
729: [15:54:00] <kinglozzer> ARNHOE: Are you sure? I could swear it was $searchable_fields :/
730: [15:55:00] * joelpittet quit (Remote host closed the connection)
731: [15:55:00] <kinglozzer> It was $searchable_fields for me, I just had array("Title");
732: [15:55:00] <kinglozzer> Then $summary_fields = array("FunctionName" => "Some title");
733: [15:56:00] <kinglozzer> ARNHOE: Cool, how about Image.CMSThumbnail?
734: [15:56:00] <UndefinedOffset> webguest kinglozzer in 2.4 there was a ModelAdmin_CollectionController, I believe import form is defined in there so webguest you will need to subclass the collection controller and put the method that kinglozzer is talking about in there. Also I think you need to define a public static $collection_controller_class set to the name of your collection controller
735: [15:56:00] <kinglozzer> I think that's the function to be used in the CMS
736: [15:56:00] <ARNHOE> kinglozzer: "Image.ImageThumbnail", seems to fix it for some reason
737: [15:56:00] <ARNHOE> without using a function
738: [15:57:00] * g4b0 quit (Quit: Sto andando via)
739: [15:57:00] <ARNHOE> haha wtf is this
740: [15:57:00] <ARNHOE> It works with both CMSThumbnail and ImageThumbnail, but when I remove the normal function getThumbnail. Then it doesn't work anymore
741: [15:58:00] <ARNHOE> "Image.CMSThumbnail", is what I am calling
742: [15:58:00] <ARNHOE> ofc, that would make sense
743: [15:58:00] <kinglozzer> ARNHOE: If you have in your $summary_fields array the key "Thumbnail", it will look for a function called getThumbnail IIRC
744: [15:58:00] <ocm> has anyone has been using the mobile-module with SS2.4?
745: [15:58:00] <ARNHOE> but I am not calling Thumbnail
746: [15:59:00] <ocm> it doesnt seem to do anything
747: [15:59:00] <kinglozzer> Strange
748: [15:59:00] <ocm> if I set the option, use this theme
749: [15:59:00] <UndefinedOffset> did you set your mobile theme?
750: [15:59:00] <ocm> yes
751: [15:59:00] <ARNHOE> Also, i got another question. When using the i18ntextcollector, it doesn't seem to "translate" my dataobject items. But it does on the ModelAdmin MenuTitle
752: [15:59:00] <UndefinedOffset> ocm i have in the past... been along time though :P
753: [16:00:00] <ocm> Mobile users see mobile theme, but no redirection occurs is selected, inculding a theme
754: [16:00:00] <webguest> UndefinedOffset, thx, now i do get a button :) now i need to figure out how to make the function call. thx
755: [16:00:00] * feejin has joined #silverstripe
756: [16:00:00] * feejin quit (Remote host closed the connection)
757: [16:01:00] <ocm> any suggestions?
758: [16:01:00] <UndefinedOffset> webguest you would just need to add a method to your collectioncontroller to handle it
759: [16:04:00] * ARNHOE quit (Remote host closed the connection)
760: [16:16:00] * kinglozzer quit (Remote host closed the connection)
761: [16:20:00] * Zauberfisch-idle quit (Ping timeout: 246 seconds)
762: [16:24:00] * joelpittet has joined #silverstripe
763: [16:27:00] * Zauberfisch-idle has joined #silverstripe
764: [16:31:00] <catcher> what's the best way to customize a yml lang string without editing it directly?
765: [16:32:00] <catcher> is this still the best way? http://www.ssbits.com/snippets/2009/overriding-silverstripes-language-files-with-your-own/
766: [16:35:00] <feejin> Ok as in the only real way to do it.
767: [16:35:00] <feejin> That's what I did, someone in here told me it was ok.
768: [16:36:00] <catcher> cool, ty
769: [16:38:00] * Ian_Harris quit (Quit: Leaving)
770: [16:41:00] * chillu has joined #silverstripe
771: [16:47:00] * feejin quit (Remote host closed the connection)
772: [16:48:00] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <- *I* use it, so it must be good!)
773: [16:59:00] * waveydave has left #silverstripe
774: [17:11:00] * Zauberfisch quit (Ping timeout: 240 seconds)
775: [17:13:00] * webguest quit (Ping timeout: 245 seconds)
776: [17:18:00] * webguest has joined #silverstripe
777: [17:30:00] * dospuntocero quit (Remote host closed the connection)
778: [17:35:00] * dospuntocero has joined #silverstripe
779: [17:36:00] * webguest quit (Ping timeout: 245 seconds)
780: [17:45:00] * cloph_away is now known as cloph
781: [17:59:00] * jkaunisv has joined #silverstripe
782: [18:02:00] <jkaunisv> eg. I try adding new Author "Jon" to Article "B" without knowing "Jon" already wrote Article "A"
783: [18:02:00] <jkaunisv> anyone have tips on making a GridField check for existing records when adding a relation to a model?
784: [18:03:00] <jkaunisv> currently it creates a duplicate Author entry
785: [18:10:00] * Zauberfisch-idle quit (Read error: Connection reset by peer)
786: [18:21:00] * azureKnight has joined #silverstripe
787: [18:21:00] <jkaunisv> Resolved my problem with validations, but I'm still curious about a more streamlined solution that automatically links a relation if you try to add one that already exists
788: [18:21:00] <azureKnight> Yo.
789: [18:22:00] <azureKnight> Quick question for anybody who's willing. I'm using the PaginatedList in my controller, and I've noticed that my Object::get doesn't link to the self. How would I get it to do that?
790: [18:23:00] <azureKnight> I'm trying to limit the returned items to be only returning the Objects that are added via it's page, not all the objects.
791: [18:27:00] * dospuntocero quit (Remote host closed the connection)
792: [18:30:00] * chillu quit (Quit: chillu)
793: [18:30:00] <azureKnight> Hmm. I think I'm butchering what I'm asking. Essentially, my Page is grabbing ALL the paginated items since I'm doing new PaginatedList(Object::get()), and I want it to only return a paginated list of the Objects for that page.
794: [18:32:00] <jkaunisv> azureKnight: I'm new to SS, but would doing something like Object::get()->filter(array('Page' => $this->ID) work?
795: [18:32:00] * ARNHOE_ has joined #silverstripe
796: [18:32:00] <jkaunisv> I may have missed a ) there
797: [18:32:00] <azureKnight> I'll give that a shot. I was thinking of testing something like that, but wasn't sure if SS had it's special statement for it.
798: [18:33:00] <UndefinedOffset> because it would be $this->MyRelationship()
799: [18:33:00] <UndefinedOffset> :)
800: [18:33:00] <azureKnight> ?
801: [18:33:00] <azureKnight> $this->HasMany?
802: [18:33:00] <UndefinedOffset> azureKnight, what is the relationship named?
803: [18:34:00] <jkaunisv> if your Page has many Authors, it would be $this->Authors() I believe is what he's getting at
804: [18:34:00] <UndefinedOffset> ya what is the name of the has many relationship? because SilverStripe will have a virtual method of sorts defined for that relationship
805: [18:34:00] <UndefinedOffset> exactly :)
806: [18:34:00] <azureKnight> Yeah.
807: [18:34:00] * dospuntocero has joined #silverstripe
808: [18:34:00] <azureKnight> That's what I was doing originally. Let me see if I butchered it.
809: [18:35:00] <azureKnight> I tried that, and Silverstripe gave me an error saying it couldn't run query select distinct.
810: [18:36:00] <UndefinedOffset> do you have the full error? could be a simple sql issue duplicate column name or something of the like
811: [18:36:00] <azureKnight> Public function PaginatedAudios() {return new PaginatedList($this->Audios(), $this->request);}
812: [18:37:00] <azureKnight> Yeah, here.
813: [18:37:00] <azureKnight> http://dec.re/ebVV
814: [18:38:00] <catcher> azureKnight, have you set the reverse relationship?
815: [18:39:00] <azureKnight> It wanted it as a $has_one not $belongs_to
816: [18:39:00] <azureKnight> Originally the Audio $has_one MediaPage, but I changed that to $belongs_to
817: [18:39:00] <UndefinedOffset> azureKnight what is the name of the relationship to the parent in your Audio class? If it's not Parent then you have tell the orm what it is, so say your parent relationship is called Page. You would need to change your has many to Audios.Page that would remove that error
818: [18:39:00] <azureKnight> Which, looks like the error.
819: [18:39:00] <catcher> azureKnight, has_one indeed
820: [18:40:00] <azureKnight> Actually, if I were to use $belongs_to, would that be with a $has_one?
821: [18:40:00] <UndefinedOffset> lol
822: [18:40:00] * azureKnight constantly making a fool of self.
823: [18:40:00] <azureKnight> Yeah, I just changed it to, to test it, then forgot to change it back.
824: [18:40:00] <UndefinedOffset> ya has_one so long as Audios is a has_many :)
825: [18:41:00] * chillu has joined #silverstripe
826: [18:41:00] <azureKnight> Curious because I don't normally use $belongs_to and am hoping that was the right decision.
827: [18:41:00] <catcher> azureKnight, I've never come across a need for it
828: [18:42:00] <azureKnight> Lol. I think I did one time, I was talking to Pyromanik, and he helped me figure out a good spot for it, but I haven't used it since.
829: [18:43:00] <jkaunisv> woops, didn't scroll. this web irc is crap
830: [18:43:00] <azureKnight> Thanks for the hep, catcher , jkaunisv , and UndefinedOffset
831: [18:43:00] <catcher> np
832: [18:43:00] <jkaunisv> azureKnight: has_one and belongs_to go together, yes
833: [18:47:00] * Invader_Zim has joined #silverstripe
834: [18:47:00] <azureKnight> Yeah... Wish I didn't have to use the web irc... I miss colloquy. :'(
835: [18:51:00] <catcher> xchat!
836: [19:04:00] * Invader_Zim has left #silverstripe
837: [19:09:00] * Motoservo has joined #silverstripe
838: [19:11:00] * chillu quit (Quit: chillu)
839: [19:11:00] * Nivery has joined #silverstripe
840: [19:20:00] * DigNZ has joined #silverstripe
841: [19:20:00] * DigNZ has joined #silverstripe
842: [19:20:00] * DigNZ quit (Remote host closed the connection)
843: [19:32:00] * DigNZ quit (Ping timeout: 258 seconds)
844: [19:32:00] * DigNZ1 has joined #silverstripe
845: [19:36:00] * chillu has joined #silverstripe
846: [19:40:00] * chillu23 quit (Changing host)
847: [19:40:00] * chillu23 has joined #silverstripe
848: [19:40:00] * chillu quit (Read error: Connection reset by peer)
849: [19:40:00] * chillu23 has joined #silverstripe
850: [19:42:00] * Pyromanik has joined #silverstripe
851: [19:50:00] * tankr has joined #silverstripe
852: [20:24:00] * ARNHOE_ quit (Remote host closed the connection)
853: [20:33:00] * nestab has joined #silverstripe
854: [20:34:00] <nestab> Does anyone know if it's possible to use GridField on the front-end in SilverStripe3? I've converted a site from SS 2.4 and refactored my models to use GridField for management (previously used the DataObjectManager). Now that everything works; I can't seem to get the GridField working on the front end. I've copied all the CSS + JS from LeftAndMain and still gridfield displays strangely.
855: [20:35:00] <catcher> nestab, you're better off building your own front-end interface for now.
856: [20:35:00] <catcher> there may or may not be plans to front-endify GF.
857: [20:36:00] <nestab> ouch -- that is very painful. Wish I would have known this before working out all the back-end stuff
858: [20:36:00] <nestab> just assumed it'd be working ;)
859: [20:37:00] <catcher> nestab, I look forward to it too, hope it happens soon/at all
860: [20:38:00] <nestab> catcher: do you know of any issues/pull requests/etc. that involve the front-endifying of GF?
861: [20:39:00] <nestab> I'd like to check the status and/or get involved in fixing this
862: [20:39:00] <catcher> nestab, not sure, I think it's just a low priority for the core devs
863: [20:40:00] * nestab has joined #silverstripe
864: [20:40:00] <nestab> roger that. thanks for letting me know
865: [20:40:00] * nestab quit (Read error: Connection reset by peer)
866: [20:42:00] * Invader_Zim has joined #silverstripe
867: [20:43:00] <Invader_Zim> hi @all
868: [20:45:00] * nestab quit (Read error: Connection reset by peer)
869: [20:46:00] * nestab has joined #silverstripe
870: [20:49:00] * UndefinedOffset quit (Quit: Leaving.)
871: [20:50:00] <catcher> hello
872: [20:57:00] * Nivery quit (Quit: Nivery)
873: [21:04:00] * zfmf has left #silverstripe
874: [21:05:00] * jkaunisv quit (Ping timeout: 245 seconds)
875: [21:16:00] * nickmolhoek has joined #silverstripe
876: [21:16:00] * nickmolhoek quit (Remote host closed the connection)
877: [21:16:00] * nickmolhoek has joined #silverstripe
878: [21:19:00] * simon_w has joined #silverstripe
879: [21:19:00] * simon_w has left #silverstripe
880: [21:19:00] * simon_w has joined #silverstripe
881: [21:19:00] * tankr quit (Quit: Leaving.)
882: [21:22:00] * nestab quit (Read error: Connection reset by peer)
883: [21:22:00] * Invader_Zim quit (Quit: Quit ! Bye @all)
884: [21:23:00] * nestab has joined #silverstripe
885: [21:25:00] * SightUnseen1 has joined #silverstripe
886: [21:26:00] * SightUnseen1 has left #silverstripe
887: [21:41:00] <Pyromanik> or
888: [21:41:00] <Pyromanik> they cause issues at least
889: [21:41:00] <Pyromanik> catcher, it's possible to use gridfield on front end, just can't complete any actions from components that provide them.
890: [21:42:00] <Pyromanik> nestab, ^'
891: [21:42:00] <Pyromanik> but generally yes, making own interface is easier.
892: [21:43:00] <Pyromanik> it's to do with the routing and actions
893: [21:43:00] <simon_w> Looks like it
894: [21:43:00] <ss23> Pyromanik: Dude, don't you go on Twitter?
895: [21:43:00] <Pyromanik> why would you be stuck in Sydney?
896: [21:43:00] <Pyromanik> simon_w, back?
897: [21:43:00] <ss23> simon_w: Good work
898: [21:43:00] <ss23> :D
899: [21:43:00] <simon_w> Yay, not stuck in Sydney :)
900: [21:43:00] <Pyromanik> it does that fine.
901: [21:43:00] <Pyromanik> gridfield itself just lists objects in an SS_List
902: [21:44:00] <Pyromanik> nup
903: [21:44:00] <ss23> Pyromanik: Becuase his flights from canbera were delayed!
904: [21:44:00] <Pyromanik> oic
905: [21:44:00] <ss23> Luckily, AirNZ held the flight for him (and someone else) though
906: [21:44:00] <Pyromanik> they'd rebook him anyway
907: [21:44:00] <simon_w> Yeah, for about now
908: [21:44:00] <simon_w> Screw that
909: [21:44:00] <ss23> Pyromanik: And he would spend the night in an airport with no chargers.
910: [21:44:00] <ss23> Would suck
911: [21:44:00] <ss23> Hence, "10:43:51 <@simon_w> Yay, not stuck in Sydney :)"
912: [21:44:00] <Pyromanik> always carryon chargers.
913: [21:44:00] <ss23> Always Pyromanik is a noob
914: [21:44:00] <ss23> BOOYA.
915: [21:45:00] <ss23> hmm
916: [21:45:00] <Pyromanik> sif
917: [21:45:00] <ss23> $this->redirect('home/failed?result=' . $data->getVar('result'));
918: [21:45:00] <Pyromanik> I aeroplane like a boss.
919: [21:45:00] <ss23> Do I needa worry about escaping here?
920: [21:45:00] <Pyromanik> ss23, it goes straight into the header
921: [21:45:00] <Pyromanik> so yeh.
922: [21:45:00] <simon_w> Yes
923: [21:46:00] <Pyromanik> well
924: [21:46:00] <simon_w> ?result=\r\nLocation: http://myleetphisingsite.com
925: [21:46:00] <ss23> At least? Is there *more*? :P
926: [21:46:00] <Pyromanik> at least.
927: [21:46:00] <ss23> So, urlencode it?
928: [21:46:00] <ss23> (At least, not after 5.1)
929: [21:46:00] <ss23> simon_w: header() doesn't allow multiline injections
930: [21:46:00] <ss23> I went out of my way to check when I was auditing a bunch of Silverstripe code
931: [21:46:00] <Pyromanik> what simon_w just said.
932: [21:46:00] <ss23> simon_w: ERROR won't work
933: [21:46:00] <Pyromanik> yep
934: [21:47:00] <ss23> Then I was like "oh no :<"
935: [21:47:00] <simon_w> ss23, that's what they want you to think!
936: [21:47:00] <Pyromanik> yeah well
937: [21:47:00] <ss23> I was like "YAY HEADER INJECTION"
938: [21:47:00] <ss23> lol simon_w
939: [21:47:00] <Pyromanik> doesn't mean some derp dev won't introduce some xss or something in there
940: [21:47:00] <ss23> In any case, urlencode is the perfect amount of escaping, right?
941: [21:47:00] <simon_w> There's been a few bug fixes around that since then
942: [21:47:00] <simon_w> yeah
943: [21:47:00] * nestab quit (Read error: Connection reset by peer)
944: [21:47:00] <ss23> Pyromanik: There is XSS there, I went and reported it already though
945: [21:48:00] <ss23> Pyromanik: They just output a <a href="$url"> if output is sent
946: [21:48:00] <ss23> I assume it'll be fixed in later versions of silverstripe though *shrug*
947: [21:48:00] * nestab has joined #silverstripe
948: [21:50:00] * simon_w fixes it in the YOUR MUM version of SS
949: [21:51:00] <ss23> simon_w: AW SNAP
950: [21:52:00] * nestab quit (Read error: Connection reset by peer)
951: [21:53:00] * nestab has joined #silverstripe
952: [21:55:00] <Pyromanik> booyah
953: [21:55:00] * Pyromanik highfives simon_w
954: [21:56:00] <ss23> Hmm
955: [21:56:00] <ss23> return $this->renderWith("Page", "Failed");
956: [21:57:00] <ss23> Is meant to render with templates/Page.ss and templates/Layout/Failed.ss, right?
957: [21:58:00] <simon_w> (first argument is array of templates in order of priority, second behaves like ->customise())
958: [21:58:00] <simon_w> ss23, nope, that'd be renderWith(['Failed', 'Page'])
959: [21:59:00] <simon_w> like returning an array from an action method
960: [21:59:00] <simon_w> Associative array of things to give the template
961: [21:59:00] <ss23> I don't know what customize() means
962: [22:00:00] <ss23> And how would one do that? :S
963: [22:00:00] <simon_w> Usually
964: [22:00:00] <simon_w> [10:58:05] <simon_w> ss23, nope, that'd be renderWith(['Failed', 'Page'])
965: [22:00:00] <ss23> I see. So is it possible to render a template how I would like?
966: [22:01:00] <simon_w> First argument: array of template names
967: [22:01:00] <simon_w> Will look for Failed.ss, then fallback to Page.ss for both main and layout
968: [22:01:00] <ss23> Yes, so I understand that what I'm using to do what I want won't work at all
969: [22:01:00] <simon_w> (and content, but that's seldom used)
970: [22:01:00] <ss23> I do not understand
971: [22:02:00] <ss23> simon_w: Do you mean that I literally do renderwith(array('failed', 'page'))?
972: [22:02:00] <nestab> Pyromanik: sorry went AFK. Re: GridField on the frontend; is there an example of this? I never could get the styling to work while experimenting
973: [22:02:00] <ss23> wait
974: [22:02:00] <simon_w> yes
975: [22:02:00] <ss23> I thought you were saying "That would be" as in what I'm doing would be
976: [22:02:00] <ss23> ;_;
977: [22:02:00] <ss23> Sorry, misunderstanding, your language was so ambigious!
978: [22:03:00] <simon_w> Duh, it's English
979: [22:03:00] <ss23> XD
980: [22:03:00] <simon_w> Caffeine run!
981: [22:03:00] <ss23> Have fun!
982: [22:07:00] * nestab quit (Read error: Connection reset by peer)
983: [22:08:00] * nestab has joined #silverstripe
984: [22:12:00] * spronk quit (Read error: Connection reset by peer)
985: [22:15:00] <Pyromanik> nestab, make your own template for it
986: [22:17:00] * nestab quit (Read error: Connection reset by peer)
987: [22:17:00] <Pyromanik> ss23, such a noob.
988: [22:18:00] * nestab has joined #silverstripe
989: [22:18:00] <ss23> Pyromanik: ouch.
990: [22:18:00] <ss23> Pyromanik: The one that says others are noobs is the noob.
991: [22:19:00] * nestab has joined #silverstripe
992: [22:19:00] * nestab quit (Read error: Connection reset by peer)
993: [22:20:00] <simon_w> Oh, I did
994: [22:20:00] <simon_w> <ss23> Have fun!
995: [22:21:00] * spronk has joined #silverstripe
996: [22:25:00] * zlincoln has joined #silverstripe
997: [22:25:00] * nestab quit (Read error: Connection reset by peer)
998: [22:26:00] * nestab has joined #silverstripe
999: [22:31:00] * nestab quit (Read error: Connection reset by peer)
1000: [22:32:00] * nestab has joined #silverstripe
1001: [22:36:00] <ss23> simon_w: :D
1002: [22:36:00] <ss23> It sounds dodgy when you say it, simon_w
1003: [22:41:00] * nestab quit (Read error: Connection reset by peer)
1004: [22:42:00] <ss23> I'm hungry, I might walk down to a bakery I recently realised was near my house
1005: [22:43:00] * nestab has joined #silverstripe
1006: [22:43:00] <simon_w> I got a roll and some sushi when I went to get my caffeine
1007: [22:43:00] <simon_w> Forward thinking and all that
1008: [22:44:00] <ss23> Good idea
1009: [22:44:00] <ss23> :O
1010: [22:51:00] <simon_w> Having a New World just behind work is rather useful
1011: [22:58:00] * Jakx has joined #silverstripe
1012: [23:00:00] <Jakx> Getting some weird shit going on when dealing with DataObjects in 3.1 framework only
1013: [23:00:00] <Jakx> [User Warning] DBField::setName() shouldn't be called once a DBField already has a name.
1014: [23:01:00] <Jakx> more specificaly instantiating a SS_DateTime object
1015: [23:04:00] * spronk quit (Ping timeout: 264 seconds)
1016: [23:05:00] <Pyromanik> what do?
1017: [23:05:00] <Pyromanik> Jakx, nfi sorry :<
1018: [23:05:00] <Pyromanik> console.log() doesn't even error in my console
1019: [23:05:00] <Pyromanik> what does it mean when I have logs not logging?
1020: [23:06:00] <Jakx> Pyromanik, is your console bugged out?
1021: [23:06:00] <Jakx> e.g is it timing out or some such
1022: [23:07:00] <Jakx> ?
1023: [23:07:00] * nestab quit (Read error: Connection reset by peer)
1024: [23:07:00] <Jakx> should I be using SS_DateTime in 3.1
1025: [23:07:00] <Pyromanik> ah ffs
1026: [23:07:00] <Pyromanik> i bet it's a cache
1027: [23:07:00] * spronk has joined #silverstripe
1028: [23:09:00] <simon_w> Jakx, what are you doing?
1029: [23:10:00] <Jakx> simon_w, just saving DateTimes against a DO. In this instance it's a checkout system so it has a CheckoutDateTime and a DueDateTime
1030: [23:10:00] <Jakx> and if I try to set them with DateTime object values, they give me errors
1031: [23:10:00] <Jakx> Both are data type SS_DateTime
1032: [23:11:00] <simon_w> yeah, use a string instead
1033: [23:12:00] <Jakx> simon_w, will do. Is there any reason against using PHP's DateTime?
1034: [23:13:00] <simon_w> Because they're not handled?
1035: [23:14:00] <simon_w> Though that error you're getting means you're passing in a SS_DateTime
1036: [23:14:00] <Jakx> simon_w, yeah I was passing an SS_DateTime
1037: [23:14:00] <Jakx> but it's so much more convenient that SS_DateTime :(
1038: [23:20:00] * Error404NotFound quit (Ping timeout: 260 seconds)
1039: [23:21:00] <Pyromanik> what does it mean if there is no response header?
1040: [23:21:00] <Pyromanik> request was cancelled from user's end?
1041: [23:21:00] * azureKnight quit (Ping timeout: 245 seconds)
1042: [23:22:00] <Pyromanik> simon_w, what does a cancelled request look like in the console?
1043: [23:22:00] <simon_w> Depends on the browser
1044: [23:22:00] <Pyromanik> chrome & firefox (firebug)
1045: [23:22:00] <Pyromanik> or something like that
1046: [23:22:00] <Pyromanik> maybe
1047: [23:22:00] <Pyromanik> not the object
1048: [23:22:00] <Pyromanik> Jakx, you need to pass the value of the SS_DateTime
1049: [23:23:00] <Pyromanik> balls
1050: [23:23:00] <simon_w> Yeah, I don't use either of those
1051: [23:23:00] <Pyromanik> what does it look like in safari?
1052: [23:23:00] <Pyromanik> or
1053: [23:23:00] <Pyromanik> will there be some log of it being cancelled server side?
1054: [23:23:00] <Pyromanik> or is it more that the browser simply ignores the return?
1055: [23:23:00] <simon_w> I get it with 'cancelled' in the network tab
1056: [23:24:00] <Pyromanik> I get a ""
1057: [23:24:00] <Pyromanik> hmm
1058: [23:24:00] <simon_w> Yeah, the browser just starts ignoring it
1059: [23:24:00] <Pyromanik> (without quotes)
1060: [23:24:00] <Pyromanik> the former in normal black text, the latter in light grey
1061: [23:24:00] <Pyromanik> ie most return 200 OK or 304 Not modified
1062: [23:25:00] <Pyromanik> this request is light grey with no status at all
1063: [23:25:00] <Pyromanik> in chrome's network tab
1064: [23:25:00] <Pyromanik> same deal firebug
1065: [23:25:00] <simon_w> could be cancelled, could be in progress
1066: [23:25:00] * catcher quit (Quit: Leaving)
1067: [23:26:00] <Pyromanik> chrome's acutally does say cancelled
1068: [23:26:00] <Pyromanik> looks like cancelled
1069: [23:27:00] <Pyromanik> how does one make one of those 'click ok to navigate away cancel to stay' things?
1070: [23:27:00] <Pyromanik> just got lost because it wasn't preserving
1071: [23:28:00] <Pyromanik> and would that halt background async activity?
1072: [23:28:00] <simon_w> On a link? Or just any sort of leaving?
1073: [23:31:00] <simon_w> You're after a confirm() on either on click, or onunload
1074: [23:31:00] <simon_w> and leaving stops async
1075: [23:32:00] <Pyromanik> so
1076: [23:32:00] <Pyromanik> because chappy has not left
1077: [23:32:00] <Pyromanik> yeah I get leaving stops async, I think that may be my issue here.
1078: [23:32:00] <Pyromanik> although probably not
1079: [23:32:00] <Pyromanik> shit
1080: [23:34:00] <Pyromanik> frames everywhere!
1081: [23:34:00] <Pyromanik> :<

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