#silverstripe IRC Log

IRC log for 6 September 2013

All timestamps are in UTC.

1: [00:00:52] * chillu quit (Quit: chillu)
2: [00:02:41] <simon_w> ss23, lunch?
3: [00:02:45] * zippy__ has joined #silverstripe
4: [00:08:45] <ss23> simon_w: Sure, what time?
5: [00:08:58] <simon_w> Well, I'm hungry now
6: [00:09:03] * nicolaas has joined #silverstripe
7: [00:09:10] * priithansen quit (Quit: priithansen)
8: [00:09:30] <ss23> simon_w: Hmm, kk
9: [00:09:36] <ss23> I was just about to start something, so now is fine ^.^
10: [00:09:48] <simon_w> Okay, 5 minutes then
11: [00:09:54] <ss23> sweet
12: [00:13:00] <nicolaas> Hi
13: [00:13:02] <nicolaas> Does anyone know why the following does not seem to work:
14: [00:13:03] <nicolaas> I am trying to use a custom class....
15: [00:13:05] <nicolaas> --- yml file ---
16: [00:13:06] <nicolaas> Object:
17: [00:13:08] <nicolaas> strong_classes:
18: [00:13:09] <nicolaas> OrderFormAddress: MyOrderFormAddress
19: [00:13:11] <nicolaas> ---------------------
20: [00:13:12] <nicolaas> But this works:
21: [00:13:14] <nicolaas> Object::useCustomClass('OrderFormAddress', 'MyOrderFormAddress', true);
22: [00:13:15] <nicolaas> What am I doing wrong?
23: [00:13:17] <nicolaas> sorry for the long post....
24: [00:18:58] * Dedra quit (Quit: Bye guys, have to go!)
25: [00:23:09] * spronk has joined #silverstripe
26: [00:33:57] * Bollig|DesignCty has joined #silverstripe
27: [00:40:40] * howardgrigg quit (Remote host closed the connection)
28: [00:48:44] * Dedra has joined #silverstripe
29: [00:49:19] <Dedra> ahm, i did the upgrade from 2.4.5 to 2.4.11 now, and i was be able to dev flush without Director::set_environment_type('dev'); is this wanted like this?
30: [00:49:23] <Dedra> or still a bug?
31: [00:49:32] <Dedra> i was logged in admin
32: [00:50:23] <ss23> Dedra: You can flush as long as you're logged in as admin
33: [00:50:33] <ss23> Dedra: The critical issue was sqli btw, not the flush thing :P
34: [00:51:18] <Dedra> yeah i knew that but i thought you need both
35: [00:51:28] <Dedra> that was what i understood on reading it :)
36: [00:51:33] <Dedra> then its fine :)
37: [00:51:51] <ss23> Sweet :)
38: [00:51:59] * nicolaas quit (Remote host closed the connection)
39: [00:52:04] <Dedra> im happy ^^
40: [00:52:08] <ss23> Dedra: It's an OR, you can flush if oyu're in dev mode, or you're an admin
41: [00:52:10] <ss23> I think that's best
42: [00:52:13] <Dedra> that i done something with it again lol even when it was simply update :P
43: [00:52:21] <ss23> :D
44: [00:52:29] <Dedra> thats best for sure, makes the most sense :D
45: [00:52:46] <Dedra> because i wont upload the file (overwrite do dev flush then edit it again) ^^
46: [00:52:55] <Dedra> its just fine now :)
47: [00:53:09] <Dedra> http://www.dedra-sc.com/ should be ok ^^
48: [00:56:17] * zippy__ quit (Ping timeout: 246 seconds)
49: [00:57:30] * joelpittet|food quit (Remote host closed the connection)
50: [01:13:19] * howardgrigg has joined #silverstripe
51: [01:19:22] * Colin[pi] has joined #silverstripe
52: [01:19:31] <Colin[pi]> belated good moin
53: [01:24:16] * Colin[pi] coughs
54: [01:25:23] <spronk> YO DAWG 'SUP
55: [01:25:58] <Colin[pi]> YO DAWG NUTTIN U?
56: [01:26:37] <spronk> CHILLIN WITH MY HOME DAWGS PEEPS GANGSTA BRUTHA
57: [01:26:42] <spronk> hmm
58: [01:26:47] * spronk doesn't think he makes a convincing gangster
59: [01:26:53] <Colin[pi]> hehe
60: [01:27:00] <simon_w> Aww, you should've kept going
61: [01:27:50] <simon_w> I was just about to start abusing my power!
62: [01:28:32] <spronk> lulz
63: [01:28:50] <spronk> ./kick spronkey for being too white ?
64: [01:28:56] <spronk> -ey
65: [01:29:56] <simon_w> something like that
66: [01:30:47] <spronk> :D
67: [01:31:05] <spronk> anyone here played with Play?
68: [01:31:08] <spronk> (the framework)
69: [01:31:49] <Colin[pi]> another one?
70: [01:31:59] <spronk> it's a java/scala framework
71: [01:32:12] * Colin[pi] shudders
72: [01:32:31] <spronk> yeah
73: [01:32:35] <spronk> but JVM is SOOOO FASST these days
74: [01:32:51] <spronk> it's like... multiple orders of magnitude faster than python/ruby/vanilla php
75: [01:33:04] <Colin[pi]> yes but.. java
76: [01:33:12] <Colin[pi]> 513 classes to do "hello world"
77: [01:33:27] <spronk> scala is a lot nicer
78: [01:33:31] <ss23> The biggest problem with the JVM is Java
79: [01:33:45] <spronk> mm, but you can use scala
80: [01:33:47] <spronk> or jruby
81: [01:33:50] <ss23> Jython
82: [01:33:53] <spronk> mm
83: [01:33:55] <ss23> or JGP
84: [01:33:57] <ss23> JHP*
85: [01:33:59] <spronk> realistically you want to use java or scala though
86: [01:34:05] <spronk> the really dynamic ones are slow
87: [01:34:16] <Colin[pi]> everyone should just use Smalltalk
88: [01:34:17] <spronk> other thing is
89: [01:34:21] <Colin[pi]> the only REAL oo language
90: [01:34:24] <Colin[pi]> ;D
91: [01:34:28] <spronk> quality of java libraries is soooooo much better than msot php liubs
92: [01:35:13] <Colin[pi]> the problem with PHP is PHP programmers
93: [01:36:00] <spronk> and php's language designers
94: [01:36:01] <spronk> or should i say
95: [01:36:11] <spronk> language makers, because there is nothing worthy of the word design in PHP
96: [01:36:19] <Colin[pi]> well
97: [01:36:20] <Colin[pi]> yes
98: [01:36:37] <Colin[pi]> also Rasmus is a funny character who doesn't really like what it's become it seems
99: [01:36:49] <spronk> mm
100: [01:37:00] <spronk> he's no Guido
101: [01:37:05] <Colin[pi]> I think I read once that he said if you use more than 5 classes per page refresh you're doing PHP wrong lol
102: [01:37:33] <ss23> Objects in PHP are expensive
103: [01:37:44] <spronk> yeah
104: [01:37:46] <spronk> :(
105: [01:37:49] <spronk> well
106: [01:37:51] <spronk> everything in php is expensive
107: [01:37:56] <spronk> even arrays are backed by massive fucking datastructures
108: [01:37:57] <Colin[pi]> well yes, but it's more the non-resident nature of PHP
109: [01:38:01] <ss23> lol
110: [01:38:07] <spronk> so
111: [01:38:13] <spronk> rewriting silverstripe on Play, guys?
112: [01:38:14] <ss23> Kind of required, due to how arrays *are* massive datastructures
113: [01:38:14] <spronk> yeah?
114: [01:38:23] <Colin[pi]> BUILD UP ALL THE THINGS. DESTROY ALL THE THING. every request.
115: [01:38:51] <spronk> ss23: yeah, but they're so ubiquitous in PHP, and you need stdlib to get any other data structures
116: [01:39:25] <spronk> like SplDoublyLInkedList and shit
117: [01:40:01] <Colin[pi]> oh the SPL is just silly
118: [01:40:17] <Colin[pi]> well
119: [01:40:21] <Colin[pi]> not entirely
120: [01:40:23] <Colin[pi]> but some things: RecursiveIteratorIterator, LOL
121: [01:40:31] <spronk> mmlol
122: [01:40:44] <spronk> its the only way to get shit that isn't a fucking hashtable though
123: [01:41:05] <spronk> and then lots of frameworks build their own data structures on top of php arrays
124: [01:41:08] <spronk> which just compounds the problem
125: [01:41:31] <Colin[pi]> but are arrays that expensive to use?
126: [01:41:40] <Colin[pi]> i guess depends on the scale
127: [01:41:50] <spronk> php arrays? they're pretty expensive
128: [01:42:01] <Colin[pi]> yeah but what's the alternative?
129: [01:42:15] <spronk> spl
130: [01:42:40] <Colin[pi]> well can't say I use it much for data structures
131: [01:42:51] <Colin[pi]> is it a noticeable difference?
132: [01:42:51] <spronk> http://blog.shay.co/phps-native-array-vs-splfixedarray-performance/
133: [01:42:52] <spronk> for example
134: [01:44:02] <Colin[pi]> hmmm bit of an improvement
135: [01:44:17] <spronk> consider how much you use arrays
136: [01:44:42] <spronk> less than half the memory use for fixedarray vs standard arrays
137: [01:44:46] <spronk> can make a big diff
138: [01:45:19] <Colin[pi]> would make a big diff for monolithic frameworks
139: [01:45:58] <spronk> but it's not perfect either, because objects are expensive in PHP too, and SPL datastructures are implemented via objects
140: [01:46:11] <spronk> so it's expensive to create the structure in the first place
141: [01:46:25] <spronk> so creating 1000 empty arrays is way faster than 1000 empty SplFixedArrays
142: [01:46:28] * spronk sighs
143: [01:46:46] <Colin[pi]> yeah but the SPL objects are like 'special' objects compared to those you create in user land code, right?
144: [01:46:53] <spronk> yeah
145: [01:47:02] <ss23> They're like an extension
146: [01:47:04] <spronk> they're backed by C code
147: [01:47:07] <ss23> Well, they *are* an extension
148: [01:47:16] <Colin[pi]> like when you do a print_r() on them and they are like FU bitch you aint seeing whats inside me mofo
149: [01:47:18] <spronk> so the impl of them is pretty fast and efficient
150: [01:47:19] <ss23> You can actually disable/enable the SPL array
151: [01:47:22] <ss23> SPL extension
152: [01:48:15] <Colin[pi]> php is still so... messy and kludged though
153: [01:48:23] <Colin[pi]> just nuke it from orbit and start fresh
154: [01:48:26] <simon_w> No you can't. SPL is pretty much core.
155: [01:48:32] <spronk> mm
156: [01:48:40] <spronk> i'm quite enjoying scala
157: [01:48:48] <spronk> its soo fast
158: [01:49:02] <Colin[pi]> in terms of what sort of operations?
159: [01:49:09] <spronk> anything code
160: [01:49:17] <spronk> even shit like looping through a set of objects
161: [01:49:20] <ss23> http://www.php.net/manual/en/spl.installation.php
162: [01:49:39] <ss23> simon_w: Sorry I'm not a hipster and I'm not all up to date on PHP!
163: [01:49:43] <ss23> Back in *my* day, you could disable SPL
164: [01:50:18] <Colin[pi]> yeah I guess though with java/scala being "object first", OO stuff would be highly optimised by now
165: [01:50:43] <Colin[pi]> php oo still feels like "oh btw we can be like java too, amirite guise?"
166: [01:50:55] * Dedra quit (Quit: Bye guys, have to go!)
167: [01:51:09] <simon_w> object creation (and gc) in the JVM is still really slow
168: [01:51:25] <spronk> yeah, but it's still faster than php
169: [01:51:32] <Colin[pi]> thats surprising since it's so fundamental
170: [01:51:45] <spronk> garbage collection is a bitch
171: [01:51:52] <spronk> apple has this shit right
172: [01:51:57] <Colin[pi]> could be worse, could be C++
173: [01:52:01] <spronk> manual memory management = good
174: [01:52:17] <spronk> well, semiautomatic = good.
175: [01:52:57] <simon_w> Plus the null pattern and auto-null weak references
176: [01:53:15] <spronk> glorious null pattern
177: [01:53:42] * spronk built in NullObjects into framework for School-links
178: [01:53:55] <spronk> just makes things so much easier
179: [01:55:35] <simon_w> And, done properly, is so much nicer than the way SS half does i
180: [01:55:36] <simon_w> it
181: [01:55:56] <Colin[pi]> yeah null objects make life a lot easier
182: [01:56:00] <Colin[pi]> just makes sense
183: [01:57:06] <spronk> mm
184: [01:57:24] * simon_w misses Objective-C
185: [01:58:27] <Colin[pi]> dammit iOS 7 better be pretty sweet
186: [01:58:33] <Colin[pi]> getting impatient for it now
187: [01:58:39] <spronk> i wish there were some nice objc stuff for webapps
188: [01:58:39] <spronk> or..
189: [01:58:41] <spronk> things outside ios
190: [01:58:44] <spronk> and mac dev
191: [01:59:06] <simon_w> Ooh, there's a Cocoa-server
192: [01:59:13] <Colin[pi]> spronk: i think a lot of projects start with good intentions for webapps, then HNNNNNNGGGGGGG occurs
193: [01:59:30] <simon_w> https://github.com/stevestreza/Barista
194: [01:59:32] <Colin[pi]> look at Zend for example
195: [01:59:38] <spronk> lul
196: [01:59:39] <spronk> zend
197: [01:59:55] <Colin[pi]> started with good intentions, and then the most epic of HNNNNGGGGGGGs I've ever seen
198: [02:00:08] <spronk> quick
199: [02:00:10] <spronk> where's FrozenFire
200: [02:00:13] <spronk> :P
201: [02:00:15] <Colin[pi]> hehehe
202: [02:02:33] <Colin[pi]> I know SS is not perfect, nothing is, but even the hacky parts imho are not toooooo bad compared to some others...
203: [02:02:49] <Colin[pi]> I looked through the source of a WordPress event calendar module the other day
204: [02:02:52] <Colin[pi]> my god
205: [02:02:57] <Colin[pi]> I had forgotten how horribly shit it is
206: [02:03:00] <simon_w> Now look through UC's one!
207: [02:03:50] <Colin[pi]> UC's is pretty solid
208: [02:04:51] <simon_w> The one that SS didn't commission?
209: [02:05:02] * travis-ci has joined #silverstripe
210: [02:05:02] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#918 (3.1 - e43ca93 : Sean Harvey): The build passed.
211: [02:05:02] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ef2fc46eb26c...e43ca931d61b
212: [02:05:02] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11042276
213: [02:05:02] * travis-ci has left #silverstripe
214: [02:05:13] <Colin[pi]> just the one I've seen on his github, not sure if it's the same one
215: [02:05:38] <simon_w> Look at the 2.4 branch
216: [02:05:55] <Colin[pi]> lemme see
217: [02:06:25] <Colin[pi]> the silverstripe- one?
218: [02:06:36] <simon_w> probably
219: [02:06:50] <simon_w> It got entirely redone for 3.0
220: [02:07:11] <Colin[pi]> well makes sense to revisit it for the framework upgrade
221: [02:07:56] <simon_w> Ooh, you should ask pyro all about event_calendar
222: [02:08:08] <Colin[pi]> what happened?
223: [02:08:13] <simon_w> He had to use it
224: [02:08:16] <simon_w> Was hilarious
225: [02:08:29] <Colin[pi]> didnt go so well?
226: [02:08:55] <spronk> wtf is pyro
227: [02:09:03] <simon_w> Slightly different use case meant it blew up
228: [02:09:12] <simon_w> spronk, Dylan. No idea how to spell his handle :p
229: [02:09:47] <spronk> wtf as in where
230: [02:09:47] <spronk> :p
231: [02:09:57] <simon_w> Getting pissed?
232: [02:10:02] <simon_w> Is Friday
233: [02:10:04] <spronk> at 2:10 on friday?
234: [02:10:05] <spronk> hmm
235: [02:10:07] <spronk> yeah, sounds about right ;D
236: [02:10:25] <spronk> actually i heard something about plato at some auckland awards thing
237: [02:10:27] <spronk> so might be up therre
238: [02:12:14] <spronk> http://accessories.ap.dell.com/sna/productdetail.aspx?c=nz&cs=nzdhs1&l=en&s=dhs&sku=210-41287&redirect=1
239: [02:12:18] <spronk> convince me why i don't need this
240: [02:14:13] * mdowton has joined #silverstripe
241: [02:15:22] <simon_w> Dell.
242: [02:15:31] <spronk> all my monitors are dells
243: [02:15:33] <spronk> they're good :P
244: [02:15:36] <spronk> well
245: [02:15:43] <spronk> once you send them back a couple of times and get good ones
246: [02:16:48] <mdowton> anyone how to set CountryDropdownField default option to Australia it selects the default from site Interface Language? not the i18n::set_locale('en_AU')
247: [02:16:50] <spronk> U2410x2, 2007WFP
248: [02:43:17] <simon_w> Yay, it's the time of day when I'm completely out of fucks to give
249: [02:46:42] * tankr1 has joined #silverstripe
250: [02:46:53] * tankr1 quit (Client Quit)
251: [02:46:58] <spronk> that's 9am for me
252: [02:47:07] <simon_w> screw it, home time
253: [02:50:23] * tankr quit (Ping timeout: 246 seconds)
254: [02:51:02] <simon_w> Bah, 12 minutes until the bus
255: [02:51:07] * guzzlefry has left #silverstripe
256: [02:52:48] * howardgrigg quit (Read error: Connection reset by peer)
257: [02:53:23] * howardgrigg has joined #silverstripe
258: [03:03:07] * simon_w quit (Quit: This computer has gone to sleep)
259: [03:31:54] * howardgrigg quit (Read error: Connection reset by peer)
260: [03:32:06] * howardgrigg has joined #silverstripe
261: [03:32:54] * cloph_away has joined #silverstripe
262: [03:33:45] * cloph quit (Ping timeout: 245 seconds)
263: [03:35:24] <wmk> anyone knows if there is a kind of "recommend this page" module available?
264: [03:36:01] <spronk> hmm
265: [03:36:03] <spronk> recommend as in share socially>?
266: [03:36:43] <wmk> this could also be useful, but more like "send email to a friend"
267: [03:38:04] <spronk> there used to be a module called share this
268: [03:38:32] <spronk> hmm
269: [03:38:38] <spronk> ss23: i broke addons.silverstripe.com
270: [03:38:44] <spronk> search for social, WHITE SCREEN OF DEATH
271: [03:39:29] <spronk> it wouldn't be too hard to add though
272: [03:39:56] <ss23> .org, not .com!
273: [03:39:59] <spronk> public function ShareForm() { ... set up form.. } public function sendShareEmail() { // send email here }
274: [03:40:02] <ss23> hmm
275: [03:40:02] <spronk> yeah org
276: [03:40:03] <spronk> whatever
277: [03:40:06] <ss23> You can search for anything and break it
278: [03:40:10] <spronk> o_O
279: [03:40:14] <ss23> hmm, nope
280: [03:40:18] <ss23> simon doesn't break
281: [03:40:22] <ss23> test does
282: [03:40:24] <ss23> TO DEV MODE!
283: [03:40:25] <spronk> lol.
284: [03:40:47] <spronk> i'm going to guess searching for anything that has actual results is the issue
285: [03:40:55] <ss23> oh yay, I already have sudo access
286: [03:40:56] <ss23> :D
287: [03:41:20] <ss23> [Fri Sep 06 15:40:34 2013] [error] [client 118.93.23.248] PHP Fatal error: Call to a member function obj() on a non-object in /sites/addons/releases/20130905234036/framework/view/SSViewer.php on line 90, referer: http://addons.silverstripe.org/add-ons?search=simon
288: [03:41:45] <ss23> Did one of you opensource guys wanna fix it?
289: [03:41:59] <spronk> oo
290: [03:42:02] <spronk> whats this /releases/date thing
291: [03:42:05] <spronk> how you guys do this?
292: [03:42:06] <ss23> ignore
293: [03:42:09] <ss23> IGNORe
294: [03:42:10] <ss23> TRADE SECRET
295: [03:42:13] <spronk> NO
296: [03:42:13] <spronk> I WANT TO KNOW
297: [03:42:15] <ss23> OMG
298: [03:42:16] <spronk> LOOKS LIKE GOOD FOR ME
299: [03:42:16] <ss23> OMG
300: [03:42:18] <ss23> /clear
301: [03:42:21] <ss23> /clear
302: [03:42:26] <spronk> :(
303: [03:42:29] * spronk throws tantrum
304: [03:42:45] <ss23> Peavers wants the software that does it too
305: [03:42:45] <ss23> :3
306: [03:43:24] <ss23> wtf
307: [03:43:26] <ss23> my isDev=1 isn't working
308: [03:44:31] <spronk> what does it do?
309: [03:44:39] <spronk> i'm assuming some kinda of awesome pushbutton deploy?
310: [03:44:48] <ss23> wtf
311: [03:44:50] <ss23> yeah, spronk
312: [03:44:51] <ss23> :D
313: [03:44:57] <spronk> yeah
314: [03:44:58] <ss23> set to dev mode, STILL DOESN'T GIVE ME A STACKTRADE
315: [03:44:58] <spronk> fuck you then :P
316: [03:44:59] <ss23> rage.
317: [03:45:02] <ss23> haha
318: [03:45:10] <ss23> I've talked to Sam about making it opensource...
319: [03:45:13] <ss23> I'm all for it, personally
320: [03:45:13] * spronk currently deploys with svn up.
321: [03:45:21] <ss23> He is like... it's too much effort to maintain it
322: [03:45:27] <spronk> o_O
323: [03:45:31] <ss23> We'll see if he comes around
324: [03:45:31] <ss23> :P
325: [03:45:46] <spronk> it's not like you guys maintain half the silverstripe modules that are out there anyway
326: [03:45:47] <spronk> like subsites.
327: [03:45:48] <spronk> FFS.
328: [03:45:57] <ss23> haha
329: [03:46:06] <ss23> CWP is meant to maintain that!
330: [03:46:33] <spronk> well it';s still a piece ofshit, so :P
331: [03:46:36] <ss23> oic
332: [03:46:40] <ss23> This uses elasticsearch
333: [03:47:47] <ss23> Stopping elasticsearch: stopped.
334: [03:47:48] <ss23> Starting elasticsearch: process already running.
335: [03:47:48] <ss23> ...
336: [03:47:50] <ss23> WAT.
337: [03:48:27] <ss23> urgh
338: [03:48:29] <ss23> one of our guys broke it
339: [03:48:34] <simon_w|air> Haha!
340: [03:48:36] <spronk> of course they did
341: [03:48:47] * simon_w|air breaks it some more!
342: [03:48:49] <spronk> label them as an incompetent fool
343: [03:49:42] <ss23> wEll
344: [03:49:44] <ss23> I should clarify
345: [03:49:48] <ss23> He changed something, now it's broken
346: [03:50:30] <simon_w|air> I should be home this early more often
347: [03:50:44] <ss23> okay
348: [03:50:45] <ss23> I think it's working now
349: [03:50:46] * ss23 tries
350: [03:51:03] <ss23> elastic is running at least
351: [03:52:37] <ss23> DEBUG
352: [03:52:38] <ss23> ON
353: [03:52:39] <ss23> LIVE
354: [03:52:44] <ss23> I hope no one is using addons.silverstripe atm
355: [03:52:45] * willr has joined #silverstripe
356: [03:52:50] <ss23> Especially not willr
357: [03:52:51] <ss23> :D
358: [03:53:01] <willr> I missed you too ss23
359: [03:53:20] <willr> wondered why I was getting so much work done for a friday
360: [03:53:34] <simon_w|air> Not enough partying, partying, yeh
361: [03:54:04] <spronk> lul
362: [03:54:33] * simon_w|air quit (Quit: Leaving)
363: [03:55:44] <ss23> if ($_SERVER['REMOTE_ADDR'] == '202.160.48.160') {
364: [03:55:50] <ss23> // debug like fuck yo
365: [03:56:09] <spronk> lool
366: [03:56:25] * simon_w has joined #silverstripe
367: [03:56:46] <ss23> Totally an issue with the template
368: [03:56:50] <ss23> That's what calls SSViewer.php right?
369: [03:57:34] <spronk> mm
370: [03:58:28] <ss23> $this->renderWith(array('Addons', 'Page'));
371: [03:58:29] <ss23> that causes error
372: [03:59:00] <spronk> fdail
373: [03:59:02] <ss23> hmm
374: [03:59:08] <ss23> How to figure out which line in the template cauess the issue though?
375: [03:59:13] <ss23> There's no stacktrace
376: [03:59:17] <ss23> And even in dev mode, it won't give me one
377: [03:59:25] <ss23> I might just vim the SSViewer.php
378: [04:00:31] <spronk> log fiel?
379: [04:00:51] <ss23> log file doesn't give trace
380: [04:00:55] <ss23> not sure why
381: [04:01:01] <ss23> tried both in dev mode and not
382: [04:03:47] <ss23> binary search in the template!
383: [04:05:04] <ss23> <% loop $Addons %>
384: [04:05:07] <ss23> It's this line!
385: [04:05:16] <ss23> Must be trying to loop over $Addons, when $Addons isn't an object
386: [04:07:10] * simon_w|air has joined #silverstripe
387: [04:07:23] <simon_w> simon_w|air still has a giant cancel button...
388: [04:07:26] <simon_w> There it goes!
389: [04:07:34] <ss23> simon_w: Help
390: [04:07:40] * henly has joined #silverstripe
391: [04:08:07] * Error404NotFound has joined #silverstripe
392: [04:08:11] <ss23> simon_w: https://github.com/silverstripe/addons.silverstripe.org/blob/master/themes/addons/templates/Layout/Addons.ss#L44
393: [04:08:28] <ss23> simon_w: Somewhere around there (between that line and 57)
394: [04:08:30] <ss23> simon_w: How2fix?
395: [04:09:56] <simon_w> ss23, where's it called from?
396: [04:10:30] <henly> hi need help in creating a dropdown of subemployye name and when addin them their sub employeeid should be entered to databse
397: [04:10:39] <ss23> simon_w: routes.yml says it's on /add-ons/, where in AddonsController.php, index() { return $this->renderWith('Page', 'Addons') } or something
398: [04:11:10] <henly> in cms
399: [04:11:13] <ss23> simon_w: The function itself seems to return fine, it seems like there's an issue... with the template looping over what it returns
400: [04:11:54] <spronk> henly: what do you have so far
401: [04:12:29] <simon_w> ss23, my guess is that https://github.com/silverstripe/addons.silverstripe.org/blob/master/mysite/code/controllers/AddonsController.php#L119 has something that doesn't behave properly
402: [04:12:29] <ss23> simon_w: I cna just create issue on github if you want
403: [04:12:45] <ss23> simon_w: I wouldn't be surprised, but I know that it's not causing an error
404: [04:13:11] <ss23> simon_w: I did a die() on line 142, so I know the actual fatal happens after there
405: [04:13:19] <ss23> simon_w: Want me to var_dump($list) just before the return?
406: [04:13:42] <simon_w> Gosh, learn to debug :p
407: [04:13:55] <ss23> simon_w: The only site I can debug on is the live one, so I'm being cautious!
408: [04:14:08] <ss23> simon_w: I guessed something was going wrong there too, but I was just like "Fuck it I'll create an issue on github"
409: [04:14:14] <ss23> simon_w: DID YOU WANT ME TO VAR_DUMP?
410: [04:14:15] <henly> I have emplyye name
411: [04:15:16] <henly> $employee = DataObject::get("employees")->map('employye_id', 'employee_Name'); $ins = new DropdownField('employee_Name', 'Employee Name', $employee); $ins->setEmptyString('(Select one)');
412: [04:15:20] <ss23> simon_w: It definitly returns an object
413: [04:16:00] * Error404NotFound quit (Ping timeout: 256 seconds)
414: [04:16:04] <henly> $fields->addFieldToTab('Root.Main', $ins);
415: [04:16:43] <ss23> that was lucky
416: [04:16:50] <ss23> 16:16:36 -!- Irssi: Pasting 42 lines to #silverstripe. Press Ctrl-K if you wish to do this or Ctrl-C to cancel.
417: [04:16:54] <ss23> simon_w: https://gist.github.com/ss23/6459500
418: [04:17:02] * ajmitch quit (Ping timeout: 240 seconds)
419: [04:17:18] * ajmitch has joined #silverstripe
420: [04:19:29] * howardgrigg quit (Read error: Connection reset by peer)
421: [04:19:35] * howardgrigg has joined #silverstripe
422: [04:23:09] <ss23> simon_w: DID YOU FIX YET?
423: [04:23:14] <ss23> WHAT ABOUT YOU ajmitch? YOU FIX YET?
424: [04:25:05] <ajmitch> ss23: of course
425: [04:39:50] * mobiusnz quit (Quit: Leaving.)
426: [04:43:59] <ss23> http://i.imgur.com/lOy4DJi.gif
427: [04:44:56] <Colin[pi]> lol
428: [04:45:44] * unsignedint quit (Remote host closed the connection)
429: [04:51:30] * dilshan has joined #silverstripe
430: [04:52:38] <dilshan> hello geeks !
431: [04:57:56] <Colin[pi]> heya dilshan
432: [04:58:29] * openbees has joined #silverstripe
433: [05:01:00] <openbees> any module suggestion for tracking file view/download ? I am also using secure file module ..
434: [05:02:16] * DigNZ quit (Quit: DigNZ)
435: [05:03:17] <spronk> FFS SUBSITES
436: [05:04:25] <dilshan> hey spronk ! what is FFS SUBSITES ? i'm a newbie to silverstripe anyway
437: [05:04:36] <spronk> subsites is a silverstripe module
438: [05:04:54] * willr quit (Quit: willr)
439: [05:04:55] <openbees> dilshan .. you want me to explain FFS too ? :P
440: [05:05:23] <dilshan> yes please , if you have time
441: [05:05:27] <dilshan> :p
442: [05:05:45] <openbees> what's wrong with it spronk .. may be i can help .. I have been working on it recently
443: [05:05:56] <ss23> openbees: OI
444: [05:06:04] <ss23> openbees: guess what, addons.silverstripe.com is *broken*
445: [05:06:24] <openbees> last commit was from chillu .. it wasn't me :P
446: [05:06:35] <ss23> openbees: Wanna take a look at the ticket anyway?
447: [05:06:39] <ss23> openbees: this it's a server issue
448: [05:06:49] <ss23> openbees:
449: [05:06:50] <ss23> https://github.com/silverstripe/addons.silverstripe.org/issues/52
450: [05:07:56] <openbees> ss23 checking now
451: [05:09:03] <simon_w> fix it fix it fix it fix it fix it fix it fix it
452: [05:09:09] <ss23> ^^^
453: [05:09:32] <ss23> http://www.youtube.com/watch?v=p6PZhONZ3Ac
454: [05:09:33] <ss23> ss23 irl
455: [05:09:45] <openbees> hmm seems something serious ... Can I check after hours please ... having load of work here :(
456: [05:09:56] <ss23> openbees: Haha, of course, you don't have to fix it :P
457: [05:09:56] <openbees> office hours*
458: [05:10:02] <ss23> openbees: Ingo will fix when eh's in I presume
459: [05:10:09] <ss23> OH MAN "FIX IT" is sounding weird
460: [05:10:16] <spronk> openbees: dev deployment my subsites drop down selector is working
461: [05:10:21] <spronk> live deployment, doesn't change my site tree
462: [05:10:28] <spronk> just getting the main site regardless of what is selected in the dropdown
463: [05:11:49] <openbees> simon_w : may be a pull request from you :P
464: [05:11:57] <simon_w> Pfft :p
465: [05:12:40] <openbees> spronk : what version u are using .. I used latest version with ss3.1rc .. working fine for live site.
466: [05:13:53] * mirrors has joined #silverstripe
467: [05:14:02] * howardgrigg quit (Read error: Connection reset by peer)
468: [05:14:03] * howardgr_ has joined #silverstripe
469: [05:14:13] <openbees> guys any replacement for this in ss3.1 https://github.com/nyeholt/silverstripe-trackingsecurefiles
470: [05:14:39] <spronk> version as of about... 1 month ago
471: [05:16:00] <mirrors> hey guys...i want to update the core so that when I add a link from tinyMCE I can add an extra checkbox to add a "rel='nofollow'" to the link. I know i can use the hook updateLinkForm to add my checkbox
472: [05:16:06] <spronk> urgh
473: [05:16:18] <mirrors> now my problem is updating updating the javascript
474: [05:16:30] <mirrors> i cant work out how to do it without editing the core
475: [05:17:06] <spronk> the subsites selector reloads the admin page
476: [05:17:09] <spronk> but it reloads the main site tree :/
477: [05:17:22] * Dedra has joined #silverstripe
478: [05:18:56] <openbees> sorry spronk I never faced such issue .. not sure what is wrong there
479: [05:21:32] <spronk> ugh
480: [05:21:35] <spronk> it was working on development :@
481: [05:21:41] <ss23> Aww
482: [05:21:43] * ss23 pets spronk
483: [05:23:08] <openbees> is uploadify-module good for front end upload ?
484: [05:23:26] <spronk> unless it's like session set issues
485: [05:23:50] * openbees hoping unclecheese is not around :D
486: [05:24:06] <simon_w> openbees, UploadField
487: [05:24:58] * swordsmanz quit (Quit: swordsmanz)
488: [05:25:07] <simon_w> Uploadify barely worked in the CMS. I doubt it'll work in the frontend
489: [05:25:45] <openbees> thanks simon_w
490: [05:25:46] <Colin[pi]> I've had it working in the frontend
491: [05:27:48] * dilshan quit (Quit: Page closed)
492: [05:28:10] <mirrors> anyone know how i can modify entwine js without editing the framework files?
493: [05:29:20] <simon_w> Why would you do that?
494: [05:30:00] <mirrors> i want to add an extra checkbox to the popup that come up when you insert a link the tinymce
495: [05:30:03] <ss23> How are you meant to make links in templates, again?
496: [05:30:20] <ss23> like
497: [05:30:21] <simon_w> mirrors, there's an extension hook for that
498: [05:30:31] <simon_w> ss23, <a> tags
499: [05:30:31] <mirrors> so i have it there using the silveerstripe hook
500: [05:30:33] <Colin[pi]> <a href="$Link">;o</a>
501: [05:30:36] <ss23> lol
502: [05:30:39] <ss23> Not quite what I mean...
503: [05:30:47] <ss23> <a href="{$Top.Link}/export/?id={$RecordID}">
504: [05:30:59] <ss23> $Top.Link contains url.com/site/?locale=en_US
505: [05:31:05] <Colin[pi]> I usually generate links in the model/controller
506: [05:31:11] <Colin[pi]> so I'm always calling $Link
507: [05:31:17] <ss23> Which makes the link url.com/site/?locale=en_US/more_link/stuff?id=foo
508: [05:31:19] <mirrors> simon_w: yeah but the javsacript actually adds the link. I need to add an extra property based on my new checkbox field
509: [05:31:30] <ss23> This is userforms btw
510: [05:33:10] <spronk> ugh
511: [05:33:10] <spronk> seriously
512: [05:33:13] <spronk> fuck this subsites bullshit
513: [05:36:01] <mirrors> simon_w: are there hooks in the entwine code?
514: [05:36:25] <mirrors> otherwise the silverstripe hook is essentially useless
515: [05:37:03] <ss23> simon_w: Have you got a few mins to talk about how the API for an atomic update will look?
516: [05:38:28] <ss23> Or anyone else got ideas?
517: [05:54:33] <ss23> eh
518: [05:54:36] <ss23> will post on dev mailing list
519: [05:55:34] <Colin[pi]> I should go for a bike ride
520: [05:57:28] <simon_w|air> You should, it's nice and flat
521: [05:57:37] <simon_w|air> Or copy mine and go up Black Mountain :p
522: [05:57:59] <Colin[pi]> I have a good regular route that starts flat, then gets steeper, then gets quite steep before a nice fast downhill segment
523: [05:58:04] <Colin[pi]> about 16.5KM
524: [05:58:23] <Colin[pi]> I've done over 700KM on the same route now :)
525: [05:59:02] * kerosene quit (Quit: leaving)
526: [06:00:15] <simon_w|air> http://runkeeper.com/user/simon_w/activity/224888712
527: [06:00:18] * mirrors quit (Quit: Page closed)
528: [06:03:29] <Colin[pi]> mostly uphill on the way back?
529: [06:04:46] <Colin[pi]> simon_w, this is my regular route: http://cyclemeter.com/8d66cd304ea81d78/Cycle-20130904-1645?r=x
530: [06:05:11] <simon_w|air> The Wellington CBD's pretty much sea level
531: [06:06:21] <simon_w|air> Huh, I know where that is
532: [06:06:44] <ss23> simon_w: https://groups.google.com/forum/#!topic/silverstripe-dev/yZVNJRXa5kY
533: [06:06:47] <ss23> :D
534: [06:07:19] <simon_w|air> Colin[pi], also, that's not steep :p
535: [06:07:41] <Colin[pi]> the last part on hindmarsh dr gets a bit steep, but that's the worst of it
536: [06:08:48] <simon_w|air> I have the same climb between my 1 and 2k markers as your 3k steep bit :p
537: [06:09:04] <Colin[pi]> well someone give this man a damn cookie!
538: [06:09:09] <Colin[pi]> ;P
539: [06:09:14] <simon_w|air> http://orteil.dashnet.org/cookieclicker/ :p
540: [06:10:42] <ss23> holy shit
541: [06:10:50] <ss23> It is where I left it last time
542: [06:10:55] <ss23> 154 cookies a second
543: [06:10:55] <ss23> :D
544: [06:13:46] <simon_w|air> Colin[pi], I think you go through the suburb you can buy L&P in!
545: [06:13:49] <simon_w|air> You should buy some!
546: [06:14:34] <Colin[pi]> L&P
547: [06:14:35] <Colin[pi]> ?
548: [06:15:14] <simon_w|air> http://en.wikipedia.org/wiki/Lemon_%26_Paeroa
549: [06:16:01] <Colin[pi]> what the what
550: [06:16:09] <simon_w|air> Deliciousness!
551: [06:17:10] <Colin[pi]> of course it's owned by coca cola
552: [06:18:01] <simon_w|air> Hmm, little out of the way of that route
553: [06:18:05] <simon_w|air> General-ish area though
554: [06:18:21] <Colin[pi]> well are you going to tell me the suburb?
555: [06:18:29] <simon_w|air> Chapman
556: [06:18:36] <Colin[pi]> oic
557: [06:18:46] <Colin[pi]> and how did you discover this?
558: [06:18:49] <simon_w|air> From their weird almost-IGA place
559: [06:19:04] <simon_w|air> Cause we went looking for some :p
560: [06:19:38] <Colin[pi]> must be pretty good stuff eh? :
561: [06:19:39] <Colin[pi]> :P
562: [06:20:10] <simon_w> Yup!
563: [06:20:36] <simon_w> So's the L&P chocolate, but Caitlin hasn't managed to find any of that
564: [06:25:09] <henly> hi
565: [06:25:38] <henly> need help in creating a dropdown of names and id s associated with it
566: [06:25:42] <henly> in cms
567: [06:25:55] <henly> while adding we need to enter the id to databse
568: [06:25:55] * simon_w|air heads off to youth group
569: [06:29:19] * maknz has joined #silverstripe
570: [06:29:20] * maknz quit (Changing host)
571: [06:29:20] * maknz has joined #silverstripe
572: [06:29:28] * Shrike_Finland has joined #silverstripe
573: [06:32:03] <Colin[pi]> this cookie clicker thing is going to kill my mouse
574: [06:43:02] <Colin[pi]> this should be called "capitalism simulator"
575: [06:43:07] <Colin[pi]> ok I'm off for a bike ride :P
576: [06:47:43] * Dedra quit (Quit: Bye guys, have to go!)
577: [06:51:09] * violetina has joined #silverstripe
578: [06:55:29] * lerni has joined #silverstripe
579: [07:00:35] * priithansen has joined #silverstripe
580: [07:02:19] * ARNHOE has joined #silverstripe
581: [07:05:11] * SightUnseen1 has joined #silverstripe
582: [07:06:43] * SightUnseen1 quit (Client Quit)
583: [07:41:37] * mdowton quit (Quit: The computer fell asleep)
584: [07:47:47] <Shrike_Finland> Hi, one check -> is there a function like <% if last %> for template?
585: [07:48:06] <Shrike_Finland> or better, <% if not last %>
586: [07:55:13] <openbees> <% if Last %>
587: [07:56:26] <openbees> <% if Last %><% else %>if not last<% end_if %> :D
588: [08:02:26] * ARNHOE_ has joined #silverstripe
589: [08:02:27] * ARNHOE quit (Read error: Connection reset by peer)
590: [08:03:02] * howardgr_ quit (Remote host closed the connection)
591: [08:03:08] * howardgrigg has joined #silverstripe
592: [08:06:23] * kinglozzer has joined #silverstripe
593: [08:12:23] * openbees quit (Ping timeout: 246 seconds)
594: [08:13:56] * henly quit (Quit: Page closed)
595: [08:26:05] * openbees has joined #silverstripe
596: [08:36:40] * osterlaus has joined #silverstripe
597: [08:42:13] <Shrike_Finland> openbees: thats what I thoght ;), <% if not last %> would have been perfect.
598: [08:42:39] * osterlaus has left #silverstripe
599: [08:42:56] <Bollig|DesignCty> can we not negate for 3.1?
600: [08:43:41] <wmk> Bollig|DesignCty, ?
601: [08:43:57] <Bollig|DesignCty> like <% if !$last %>
602: [08:44:04] <wmk> <% if not $Last %>
603: [08:44:30] <wmk> afaik keyword "not" and $Last with uppercase L
604: [08:44:38] <wmk> in SS3.1
605: [08:44:59] <Bollig|DesignCty> yeah, thought so, awesome, thanks for confirming wmk
606: [08:47:18] * chillu has joined #silverstripe
607: [08:49:46] <wmk> btw: is there a possibility to download SS Docs for offline usage?
608: [08:50:02] <wmk> beside wget mirror...
609: [08:50:33] <Bollig|DesignCty> not unless you make something :)
610: [08:51:41] <wmk> Bollig|DesignCty, do you know the internals of doc.silverstripe.org? is it "just another ss page" or another tool?
611: [08:52:26] <Bollig|DesignCty> there were a bunch of discussions over on the dev group, although I don't remember exactly...
612: [08:52:36] <Bollig|DesignCty> let me do a quick search see if I can uncover something
613: [08:52:42] <wmk> there is a link at the bottom to the source on github
614: [08:52:44] <wmk> ss site
615: [08:53:50] <Bollig|DesignCty> https://github.com/silverstripe/silverstripe-docsviewer
616: [08:54:13] <Bollig|DesignCty> yeah, you got it.
617: [08:55:35] <wmk> docsviewer is the module to present the docs, lets find the module where the content is stored
618: [08:57:59] <wmk> well, the content is inside the framwork module in /docs/
619: [08:58:45] <wmk> cool.
620: [09:01:08] <wmk> damn, too busy atm to dig deeper into it, but adding it to composer require dev with minimal configuration should be easy. then i have it "offline" on my dev vm
621: [09:01:23] <wmk> Bollig|DesignCty, thanks for the input!
622: [09:01:50] <Bollig|DesignCty> lol, any time I can be of absolutely no use, you let me know. ;)
623: [09:01:59] <wmk> ??
624: [09:02:20] <Bollig|DesignCty> well you figured it all out yourself really :)
625: [09:02:39] <wmk> well, sometimes it's just important to talk to someone and get a little push
626: [09:02:50] <wmk> to the right direction.
627: [09:03:00] <Bollig|DesignCty> I was just joking that I wasn't really much help for you :) You are, of course, more than welcome!
628: [09:03:15] <wmk> In Germany we have a saying like "i can't see the forest, there are so many trees"
629: [09:03:28] <Bollig|DesignCty> It translates well into english too :)
630: [09:03:41] <wmk> -- and we have really MANY trees in the alps
631: [09:03:52] <Bollig|DesignCty> :)
632: [09:04:12] <Bollig|DesignCty> are you down near the alps?
633: [09:04:37] <wmk> well, in Austria, around are some 2000m mountains
634: [09:05:02] <wmk> www.hallstatt.net is my baby and where i live
635: [09:08:52] <Bollig|DesignCty> Beautiful part of the world. I was in Austria what seems like a lifetime ago, but was only really 18 months ago :)
636: [09:18:14] <wmk> Where have you been there (and may i ask where you are from?)
637: [09:22:54] <Bollig|DesignCty> It was just a quick trip through, spent a couple of weeks, stayed in salzburg and vienna. From Australia :)
638: [09:22:59] <ss23> chillu: :D
639: [09:23:02] <ss23> A+ would merge again
640: [09:23:15] <chillu> are you all still at the office getting drunk or what? :D
641: [09:23:55] <ss23> Yes...?
642: [09:24:00] <ss23> :D
643: [09:24:04] <ss23> Well, 4 of us are
644: [09:24:09] <ss23> The rest of us are posers who went home
645: [09:24:51] * halkyon has joined #silverstripe
646: [09:28:24] * ss23 quit (Ping timeout: 240 seconds)
647: [09:29:33] * ss23 has joined #silverstripe
648: [09:30:52] * travis-ci has joined #silverstripe
649: [09:30:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#921 (3.1 - 8864256 : Ingo Schommer): The build passed.
650: [09:30:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e43ca931d61b...8864256601bb
651: [09:30:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11051772
652: [09:30:52] * travis-ci has left #silverstripe
653: [09:31:06] * Sjohn has joined #silverstripe
654: [09:31:17] <Sjohn> Hello everyone
655: [09:31:32] <ss23> Hi my name is Stephen. I am a poser
656: [09:31:32] <ss23> NOOOOOO
657: [09:31:32] <ss23> LIES
658: [09:31:46] <ss23> not @ you, Sjohn
659: [09:31:46] <ss23> ;_;
660: [09:31:54] <wmk> LOL
661: [09:33:05] <Shrike_Finland> Problem: I have dataobject page "AddressData" and Page "Contact Page". In ContactPage.ss I try to check, if there is any AddressData available. I can do it by looping 'Addresses' which is linked to AddressData. Is there any other way get inside the data in AddressData page?
662: [09:33:09] <Sjohn> lol
663: [09:33:49] <wmk> Shrike_Finland, loop is for DataLists
664: [09:33:57] <wmk> do you have 1 or n AdressDatas ?
665: [09:34:05] <Shrike_Finland> n
666: [09:34:37] <wmk> loop is ok for printing all adresses.
667: [09:34:55] <wmk> you could do <% with $Adresses.First %> for getting the first
668: [09:36:10] <Shrike_Finland> problem: l loop the data in page yes, but before starting the loop I have to check, is there any data to loop. So I have double loop which is messing things.
669: [09:37:13] <wmk> $Adresses.Count
670: [09:37:18] <wmk> ?
671: [09:38:27] <Sjohn> I got a question about MutliEnum field.
672: [09:39:03] <Sjohn> when i have selected mutiple it renders like this: Option1(comma)Option2
673: [09:39:13] <Sjohn> i want to change this comma to a + sign
674: [09:39:15] <Shrike_Finland> wmk: <% loop Addresses %> <% if data1 %> load javascript <% loop AddressData %> $data1<%end_loop%><% end_if %><%end_loop"> this loops the javascript part too...
675: [09:39:17] <Sjohn> is this possible in the template?
676: [09:40:07] <wmk> Shrike_Finland, depends where you get $data1 from
677: [09:40:19] <wmk> if you're on SS3.x you should use $ for variables
678: [09:40:48] <kinglozzer> Sjohn: Looking at the MultiEnumField class I don't think so. I think you'll have to create an extension and apply it to MultiEnumField, with a method to convert the ',' to '+'.
679: [09:41:36] <Shrike_Finland> wmk: from AddressData which includes all the dataobjects, if that is what you were asking?
680: [09:42:13] <Sjohn> Alright, Thanks kinglozzer
681: [09:42:15] <kinglozzer> Shrike_Finland: Have you tried something like <% if Addresses.Column('data1') %> load javascript <% end_if %> ?
682: [09:42:23] <kinglozzer> Not sure if it'll work, just an idea
683: [09:42:46] <Shrike_Finland> kinglozzer: not yet, will do it right away...
684: [09:43:00] <wmk> Sjohn, you'll have to subclass it, the ',' is hardcoded in MultiEnum::__construct
685: [09:43:47] <wmk> kinglozzer, Sjohn extension or subclass is kind of taste ;)
686: [09:43:49] <Marvanni> does anybody know if there is a fix somewhere to avoid GridField converting <img src="framework/images/app_icons/generic_32.gif" /> to raw xml ?
687: [09:44:27] <wmk> have to run, lunch time
688: [09:47:08] * hansihansi123 has joined #silverstripe
689: [09:47:31] <hansihansi123> good morning
690: [09:48:20] <Sjohn> Morning
691: [09:48:36] <hansihansi123> we are just starting to use silverstripe cms
692: [09:48:40] <hansihansi123> and ran into a issue
693: [09:48:43] <hansihansi123> with the "home" page
694: [09:48:51] <hansihansi123> we are not sure how to handle this
695: [09:49:22] <Sjohn> what's the issue?
696: [09:49:28] <hansihansi123> we got a navigation with 5 topics; every topic has 5-10 subtopics
697: [09:49:42] <hansihansi123> our homepage should target to subpage 1 of mainpage 1
698: [09:49:54] <hansihansi123> i can use virtual pages or redirects
699: [09:50:02] <hansihansi123> but i want to stay at example.com
700: [09:50:06] * ko_ has joined #silverstripe
701: [09:50:33] <hansihansi123> so i m not sure what s the best way to set the "home"page
702: [09:51:58] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
703: [09:51:58] <hansihansi123> at the moment i got a "home"page with redirect and the url gets example.com/main/subpage
704: [09:54:45] <Sjohn> Im not sure i understand your issue xD sorry
705: [09:54:52] <Shrike_Finland> kinglozzer: works like a charm, thanks!
706: [09:55:49] <hansihansi123> if a use vists the page exampl.com
707: [09:55:59] <hansihansi123> he should see the content of example.com/main/subpage
708: [09:56:06] <hansihansi123> but the url should stay example.com
709: [09:57:23] <ko_> why don't you try VirtualPage than?
710: [09:57:35] <hansihansi123> i just tried it
711: [09:57:41] <hansihansi123> but then my subnavigation is not shown on the page
712: [10:00:49] <hansihansi123> because the homepage is no subpage
713: [10:00:58] <hansihansi123> and has no subpages
714: [10:01:11] <ko_> so make your own class extending from VirtualPage that will override not working methods. what functions are you using to generate navigation, is it Menu(x)?
715: [10:02:26] <hansihansi123> yes its menu(x)
716: [10:02:38] <hansihansi123> at the moment i undid the thing and have a "Homepage" as redirect
717: [10:02:47] <hansihansi123> to example.com/main/sub
718: [10:05:00] <Marvanni> so you can return function Menu(1){ return $this->VirtualPage()->Chilrden()} // or something on the MyVirtualPage Extends VirtualPage
719: [10:05:04] <ko_> than override function getMenu($level) in your VirtualPage_Controller subclass so it could suit your needs
720: [10:05:21] <ko_> right, like Marvanni said :)
721: [10:10:02] <hansihansi123> ok thx
722: [10:10:06] <hansihansi123> sounds like i good idea
723: [10:10:15] <Marvanni> So, now you can help me fixing those encoded displaying of <img src="framework/images/app_icons/generic_32.gif" /> in gridfields
724: [10:10:25] * openbees quit (Quit: Leaving)
725: [10:10:52] <Marvanni> it screws my HTMLEditorField insert iamge from CMS when documents other then images are uploaded
726: [10:12:16] <hansihansi123> i dont even understand your question ;D
727: [10:12:26] <hansihansi123> so i noticed your ideas and will try it after lunch
728: [10:12:28] <hansihansi123> thank you very much
729: [10:12:31] <hansihansi123> have a good time
730: [10:14:32] * Marvanni_ has joined #silverstripe
731: [10:20:46] * hansihansi123 quit (Quit: Page closed)
732: [10:23:50] * howardgrigg quit (Remote host closed the connection)
733: [10:31:18] * PanPipes has joined #silverstripe
734: [10:35:20] * NobrainerWeb has joined #silverstripe
735: [10:36:28] <NobrainerWeb> Hi, for the first time ever i need to do some permission stuff in SS (3.1), i need to have a group of ppl that can access and manage the blog section, and nothing else.
736: [10:37:34] <NobrainerWeb> But if i create a group that has checkmark in "Blog management", they will not be allowed in the CMS
737: [10:38:24] <NobrainerWeb> If i give them permission to access all CMS UI they can get past the login screen, but not edit
738: [10:39:02] <NobrainerWeb> If i allow them to be able to edit all pages they can - how the biiip do i allow them only to access and edit the blog section?
739: [10:44:30] * openbees has joined #silverstripe
740: [10:45:00] <openbees> isn't it enough to remove "add new" button in grid-field ... ->removeComponent('GridFieldAddNewButton');
741: [10:56:47] <Shrike_Finland> Someone used ajshort gridfield extension? Had any problems displaying items on "Add existing items"?
742: [10:57:32] <wmk> hm, not really
743: [10:57:55] <Shrike_Finland> On my setup it's displaying "There are no items"
744: [10:58:03] * Marvanni_ quit (Quit: Marvanni_)
745: [10:58:23] <Shrike_Finland> Just added this: $grid->getConfig()->addComponent(new GridFieldAddExistingSearchButton()));
746: [10:59:24] * cloph_away is now known as cloph
747: [11:03:57] <Marvanni> OK I fixed the raw displaying of <img src="framework/images/app_icons/generic_32.gif" /> in gridfields
748: [11:04:11] <Marvanni> little overkill i think, but it works
749: [11:04:11] <Marvanni> http://sspaste.com/paste/show/5229b5490fb55
750: [11:04:18] <Marvanni> what do you think?
751: [11:13:12] <wmk> NobrainerWeb, in 2.4 you could edit every section / page if a group can edit / view it
752: [11:13:18] <wmk> think in 3.x it's still the same
753: [11:13:27] <wmk> let me check...
754: [11:13:38] <NobrainerWeb> wmk: ok thanks, i was just looking at that, but i can't make it work
755: [11:14:28] <wmk> really?
756: [11:14:45] <simon_w> 3.1 got a lot better at actually respecting permissions
757: [11:14:53] <wmk> did you flush? (hmm, shouldn't be important here as it's a db setting)
758: [11:17:14] <wmk> NobrainerWeb, i'd disable for everyone expect editors in siteconfig and enable for blogeditors in blog section
759: [11:17:45] <NobrainerWeb> wmk: agh ok thanks, i think i did not try to change in siteconfig
760: [11:17:55] <NobrainerWeb> will look at it some more
761: [11:19:07] <wmk> ;)
762: [11:32:29] <Marvanni> Hm, this seem to fix it as well.... http://sspaste.com/paste/show/5229b5490fb55#PasteComment-5229bc0298159
763: [11:36:25] <simon_w|air> Marvanni, can't you just cast it to a HTMLValue?
764: [11:37:04] <simon_w|air> Perhaps SS_HTMLValue, or just HTMLVarchar
765: [11:43:18] <Marvanni> nevermind the last option does not work
766: [11:43:21] <Marvanni> let me try
767: [11:43:26] <wmk> hmm, composer breaks capistrano deploy cause of "uncommited changes"... some file permissions in phpunit got changed.
768: [11:43:35] <wmk> how can i tell composer to ignore those?
769: [11:44:17] <Marvanni> its that GridFieldDataColumns::castValue9) returns Convert::raw2xml($value); when its a string
770: [11:44:34] <Marvanni> so File::CMSThumbnail is encoded as well
771: [11:45:48] <Marvanni> no, if I cast it to HTMLText or what ever the Images are returned as Image_Cached strings instead of the thumbs
772: [11:46:48] <PanPipes> how do you completely delete a page
773: [11:46:49] <PanPipes> ?
774: [11:46:59] <Marvanni> this happens when a .swf is displayed in the InserMedia Form from CMS
775: [11:47:21] <simon_w|air> PanPipes, ->deleteFromStage('Stage'); ->deleteFromStage('Live');
776: [11:48:11] * Marvanni_ has joined #silverstripe
777: [11:49:56] <PanPipes> simon_w|air: so i can't do it via the admin? i have to write some code to do it?
778: [11:50:15] <simon_w|air> Well, you click the Unpublish button then the Delete From Stage button
779: [11:53:35] * ko_ quit (Ping timeout: 250 seconds)
780: [11:53:37] <simon_w|air> And then I sleep, though that's unrelated
781: [11:53:52] <wmk> good night
782: [11:56:37] <PanPipes> it just sits in the admin with deleted next to it. i have no delete from stage etc.
783: [11:57:03] <PanPipes> ignore me
784: [11:57:07] <PanPipes> found the buttons
785: [11:57:19] <openbees> Friday .. yaaah :D
786: [12:00:23] <kinglozzer> Hmm. If I set my $db field to have the field type 'Float(23,20)', the 23,20 isn't actually set in the database.. :(
787: [12:00:26] * kinglozzer lunch
788: [12:04:06] * PanPipes quit (Quit: Computer went to sleep)
789: [12:19:32] * guci0 has joined #silverstripe
790: [12:19:36] <guci0> Hello World!
791: [12:24:15] * howardgrigg has joined #silverstripe
792: [12:24:19] * chillu quit (Quit: chillu)
793: [12:24:31] * UndefinedOffset has joined #silverstripe
794: [12:24:48] * chillu has joined #silverstripe
795: [12:25:25] <chillu> openbees: FYI, I'm just fixing the "compatible versions" in addons search
796: [12:25:59] <openbees> ok thanks .. I was planning to fix this on weekend though ;)
797: [12:28:35] * howardgrigg quit (Ping timeout: 246 seconds)
798: [12:32:12] <Marvanni_> chill, could you take a look at this : http://www.sspaste.com/paste/show/5229b5490fb55
799: [12:32:21] <Marvanni_> chillu i mean
800: [12:33:12] <chillu> openbees there's enough work to go around either way :D
801: [12:33:54] <chillu> Marvanni_: what's the problem?
802: [12:33:58] <openbees> ha ha ..yes off-course
803: [12:34:49] <openbees> chillu don't you think we need some way to review addons before listing on addons site ?
804: [12:35:46] <wmk> openbees, you can list the addons and review it additionally
805: [12:35:52] <wmk> maybe rate it?
806: [12:36:38] <chillu> openbees: https://github.com/silverstripe/addons.silverstripe.org/issues/14
807: [12:36:40] <openbees> yaah it was an idea in initial draft .. seems a better way without making authors unhappy :)
808: [12:37:03] <Marvanni_> if I upload a .swf file, in the insert media form the icon img is displayed as an encoded string img src="framework/images/app_icons/generic_32.gif" />
809: [12:37:13] <chillu> I think the act of publishing it on Packagist is enough to say "this module should be on addons". We deal with any abuse as a blacklist, I'm not a fan of whitelists because they rely too much on human interaction
810: [12:39:38] <openbees> hmm yes I think .. probably we just need a way to hide modules in such cases.
811: [12:46:47] <chillu> openbees: maybe you could work on the themes/grid view? Once we switch over from ss.org those themes will be a bit underrepresented :) Then again, even with a grid view, most of them don't have screenshots...
812: [12:48:26] <wmk> is there a possibility to translate files?
813: [12:49:09] <wmk> so that i know that german.pdf is the german version and english.pdf another language
814: [12:49:54] <openbees> chillu is there any tickets for this task .. also will it need Front End skills ?
815: [12:51:52] <chillu> wmk: the admin/assets UI doesn't have support for it. On a model/relation level, should be possible with Translatable though
816: [12:52:24] <chillu> openbees: https://github.com/silverstripe/addons.silverstripe.org/issues/10
817: [12:54:36] <wmk> chillu, i want to manage downloadable files for different languages, with fallback to a language. Too bad translatable-dataobject doesn't support has_one yet
818: [12:55:25] <wmk> in fact a neat way to generate myfile__en_US etc. automatically would be nice ;)
819: [12:58:23] <openbees> chillu ok I will work on this :)
820: [12:59:30] <chillu> openbees: feel free to pick up any of the other tasks, once I'm working on something i'll assign it to myself so we don't happen to work on the same thing.
821: [12:59:50] <openbees> yaah that will be better .. I will do the same
822: [13:00:46] <wmk> chillu, if i overwrite custom_database_fields() i can generate translated has_ones for my dataobject, right?
823: [13:38:35] * micmania1 has joined #silverstripe
824: [13:41:20] * Shrike_Finland quit (Quit: Leaving.)
825: [13:42:11] * mento has joined #silverstripe
826: [13:47:24] * mento quit (Quit: Page closed)
827: [13:57:30] * openbees quit (Quit: Leaving)
828: [13:58:44] * openbees has joined #silverstripe
829: [14:02:32] * Colin[pi] quit (Ping timeout: 245 seconds)
830: [14:04:58] * lerni quit (Quit: lerni)
831: [14:07:25] <openbees> beer o'clock :)
832: [14:11:24] * openbees quit (Quit: Leaving)
833: [14:13:11] * samthejarvis has joined #silverstripe
834: [14:19:35] * NobrainerWeb quit (Quit: NobrainerWeb)
835: [14:23:16] * ARNHOE_ quit (Remote host closed the connection)
836: [14:24:36] * lerni has joined #silverstripe
837: [14:24:44] * howardgrigg has joined #silverstripe
838: [14:28:07] * howardgrigg quit (Read error: No route to host)
839: [14:45:01] * lerni quit (Quit: lerni)
840: [14:48:51] * Nivery has joined #silverstripe
841: [14:58:11] * Sjohn quit (Ping timeout: 250 seconds)
842: [15:32:54] * swordsmanz has joined #silverstripe
843: [15:33:46] * violetina quit (Remote host closed the connection)
844: [15:36:39] * dangerdan has joined #silverstripe
845: [15:37:05] <dangerdan> I can't get silverstripe tests to work - would anyone mind looking at my stackoverflow question?
846: [15:37:06] <dangerdan> http://stackoverflow.com/questions/18661200/cant-get-silverstripe-tests-to-display-results
847: [15:40:01] <kinglozzer> dangerdan: Can you run it from the command line?
848: [15:41:21] <dangerdan> No, says class SapphireTest not found...
849: [15:41:55] <kinglozzer> Do you have your phpunit.xml file set up?
850: [15:43:14] <dangerdan> I'm new to testing so i'm not 100% this is right, but... Yes, it's in the root of the silverstripe project - it's phpunit.xml.dist from the silverstripe installer
851: [15:43:24] <dangerdan> renamed to phpunit.xml obviously
852: [15:43:27] <kinglozzer> dangerdan: http://pastie.org/8303470
853: [15:43:34] <kinglozzer> That should work for yours I think
854: [15:43:57] <dangerdan> ahhh yeah mysite... ahh well
855: [15:44:07] <dangerdan> shows me for trying to do things differently
856: [15:44:08] <dangerdan> thankyou
857: [15:44:26] <kinglozzer> Haha, it caught me out before
858: [15:45:14] <dangerdan> hmmm its still doing it though...
859: [15:46:03] <dangerdan> I've rebuilt and flushed the manifest...
860: [15:46:46] <kinglozzer> Hmm. That's all I have on my setup. Then from the command line I call: phpunit mysite/tests '' flush=1
861: [15:46:56] <kinglozzer> Obviously mysite == app
862: [15:50:18] <dangerdan> I'm running it from the folder 'app/tests': > phpunit APHPUnitTest.php
863: [15:50:30] <dangerdan> if i do it from the root like you said above ^
864: [15:51:02] <dangerdan> so > phpunit app/tests '' flush=1
865: [15:51:27] <dangerdan> i get PHPUnit 3.5 is required, and phpunit --version says it is 3.4.14
866: [15:52:20] <kinglozzer> dangerdan: The phpunit.xml I use says "Requires PHPUnit 3.5+"
867: [15:52:27] <kinglozzer> Can you update it?
868: [15:52:33] <dangerdan> yeah i'm need to upgrade it
869: [15:55:05] <wmk> anyone knows if i can set the enum-fields of a special dbfield in config.yml?
870: [15:57:37] <kinglozzer> wmk: Not sure. I guess since $db is private static you might be able to. Something like this perhaps? http://pastie.org/8303502
871: [15:59:27] <wmk> this only overwrites the specific field?
872: [16:00:10] <kinglozzer> Yeah I'm pretty sure it will
873: [16:00:20] <kinglozzer> Sorry **
874: [16:00:28] <kinglozzer> No, I'm pretty sure it won't overwrite it
875: [16:00:40] <kinglozzer> The config API tries to merge values rather than overwrite them
876: [16:00:46] <kinglozzer> I *think*. Try it :)
877: [16:00:50] <wmk> ok. i'll give it a try
878: [16:07:12] <wmk> kinglozzer, it works like a charm. Thanks for the input
879: [16:07:23] <kinglozzer> Cool :) no problem
880: [16:16:04] * kinglozzer weekend
881: [16:16:07] * kinglozzer quit ()
882: [16:19:27] * chillu quit (Quit: chillu)
883: [16:19:28] * Nivery quit (Quit: Nivery)
884: [16:25:09] * howardgrigg has joined #silverstripe
885: [16:29:11] * howardgrigg quit (Ping timeout: 245 seconds)
886: [16:45:18] * Marvanni_ quit (Quit: Marvanni_)
887: [16:59:58] * Colin[pi] has joined #silverstripe
888: [17:00:46] * priithansen quit (Quit: priithansen)
889: [17:12:55] * Colin[pi] quit (Ping timeout: 256 seconds)
890: [17:14:35] * dangerdan quit (Quit: Page closed)
891: [17:28:12] * catcher has joined #silverstripe
892: [17:31:39] * priithansen has joined #silverstripe
893: [17:58:27] * wolfehr has joined #silverstripe
894: [17:59:43] * wolfehr has left #silverstripe
895: [18:02:02] * wolfehr has joined #silverstripe
896: [18:02:29] <wolfehr> what's the recommended approach to get access to Controller->dataRecord->record->MyField ?
897: [18:09:47] * jrthomer quit (Remote host closed the connection)
898: [18:10:12] * jrthomer has joined #silverstripe
899: [18:10:17] * jrthomer quit (Remote host closed the connection)
900: [18:11:32] * ARNHOE has joined #silverstripe
901: [18:19:25] * jrthomer has joined #silverstripe
902: [18:21:20] * Nivery has joined #silverstripe
903: [18:23:15] * ARNHOE quit (Remote host closed the connection)
904: [18:23:26] * jsQuestion has joined #silverstripe
905: [18:23:49] * ARNHOE has joined #silverstripe
906: [18:25:03] * chillu has joined #silverstripe
907: [18:25:35] * howardgrigg has joined #silverstripe
908: [18:25:54] <jsQuestion> hey guys, i'm using an old 2.4 advanced workflow module and i'm kind of confused. I just need a very simple one step workflow. editors make changes, apply for approval from publisher, publisher approves or rejects. however the entire flow is able to be completed by the editors in my workflow which is a problem. i need figure out how to hand the baton off to the publisher(s)
909: [18:26:28] <jsQuestion> i have read the github wiki a few times and i'm having a hard time gleaning how to do this
910: [18:28:02] * ARNHOE quit (Ping timeout: 246 seconds)
911: [18:30:30] * howardgrigg quit (Ping timeout: 276 seconds)
912: [18:37:36] <wmk> wolfehr, what do you mean?
913: [18:38:45] <wolfehr> for example, I've got a custom form embedded in another template file (ParentTemplate.ss displays the form ($MyForm) by doing return new Form())
914: [18:39:03] <wolfehr> inside that form template file, I can't access any of the variables from the parent template
915: [18:39:47] <wolfehr> I've tried with $Top but that doesn't return anything, so I'm guessing I'll need to access the variables (fields specific to the parent) by some kind of getter I'm not aware of
916: [18:51:20] * SightUnseen has joined #silverstripe
917: [18:52:00] * SightUnseen has left #silverstripe
918: [18:54:02] <wmk> wolfehr, which version of silverstripe do you use?
919: [18:54:12] <wolfehr> wmk, 2.4 I believe
920: [18:54:41] * robert_ quit (Ping timeout: 240 seconds)
921: [18:56:26] * wolfehr quit (Quit: wolfehr)
922: [18:58:30] * wolfehr has joined #silverstripe
923: [18:59:12] * robert_ has joined #silverstripe
924: [18:59:13] * robert_ quit (Changing host)
925: [18:59:13] * robert_ has joined #silverstripe
926: [19:03:51] * SightUnseen has joined #silverstripe
927: [19:05:43] * SightUnseen has left #silverstripe
928: [19:15:06] * guzzlefry has joined #silverstripe
929: [19:16:22] * ARNHOE has joined #silverstripe
930: [19:18:13] <guzzlefry> Is 3.1.x-dev still the reocmmended Composer package for silverstripe/cms? I see a 3.1.0.x-dev as well.
931: [19:21:48] * wolfehr quit (Quit: wolfehr)
932: [19:22:27] * chillu quit (Quit: chillu)
933: [19:33:06] * chillu has joined #silverstripe
934: [19:33:16] * ^pH has joined #silverstripe
935: [19:38:38] * maknz quit (Ping timeout: 240 seconds)
936: [19:52:41] * Motoservo has joined #silverstripe
937: [20:02:52] * UndefinedOffset quit (Quit: Leaving.)
938: [20:11:29] * wolfehr has joined #silverstripe
939: [20:24:11] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
940: [20:44:45] * wolfehr quit (Quit: wolfehr)
941: [20:52:44] * wolfehr has joined #silverstripe
942: [20:53:00] * Nivery quit (Quit: Nivery)
943: [20:54:33] * ARNHOE quit (Remote host closed the connection)
944: [20:55:09] * ARNHOE has joined #silverstripe
945: [20:56:15] <wmk> wolfehr, you have to pass the variables you need when creating the form
946: [20:57:31] <wolfehr> wmk, yeah I figured that's the only way, I just added the extra vars to my constructor
947: [20:59:05] * ARNHOE quit (Ping timeout: 240 seconds)
948: [20:59:21] <wmk> fine ;)
949: [21:02:48] * dangerdan has joined #silverstripe
950: [21:03:43] * toddmorey has joined #silverstripe
951: [21:03:50] <dangerdan> when testing, what is the difference between extending functionaltest and sapphiretest?
952: [21:05:31] <dangerdan> is sapphiretest for testing logic, whereas functionaltest is for your web application functionality?
953: [21:07:45] <toddmorey> I have a pretty straightforward setup with a form() method on a page controller. How can I tell in the context of that method whether or not the form currently has an error?
954: [21:08:05] <toddmorey> Or maybe more to the point, currently has session data
955: [21:09:12] <toddmorey> When I load the form, I pre-populate it from the DB before displaying it. But obviously this overwrites the session data if you are back at the same form with an error
956: [21:14:22] * maknz has joined #silverstripe
957: [21:14:22] * maknz quit (Changing host)
958: [21:14:22] * maknz has joined #silverstripe
959: [21:15:37] * wolfehr quit (Quit: wolfehr)
960: [21:16:33] <wmk> toddmorey, yup, stumbled on this also a time ago
961: [21:19:26] <wmk> toddmorey, this helped me: http://www.sspaste.com/paste/show/522a459176cc2
962: [21:21:51] <toddmorey> awesome, wmk! Thanks! This points me the right direction. Much appreciated.
963: [21:22:32] <wmk> glad i could help
964: [21:24:29] * chillu quit (Quit: chillu)
965: [22:10:50] * zippy__ has joined #silverstripe
966: [22:15:49] * dangerdan quit (Quit: Page closed)
967: [22:28:10] * halkyon quit (Read error: Connection reset by peer)
968: [22:28:29] * halkyon has joined #silverstripe
969: [22:28:29] * halkyon quit (Changing host)
970: [22:28:29] * halkyon has joined #silverstripe
971: [22:30:42] * spronk quit (Ping timeout: 264 seconds)
972: [22:45:39] * willr has joined #silverstripe
973: [23:08:35] * Colin[pi] has joined #silverstripe
974: [23:12:16] * toddmorey quit (Quit: Leaving.)
975: [23:13:55] * guci0 quit (Ping timeout: 250 seconds)
976: [23:21:37] * catcher quit (Quit: Leaving)
977: [23:33:44] * toddmorey has joined #silverstripe

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