#silverstripe IRC Log

IRC log for 7 June 2013

All timestamps are in UTC.

1: [00:06:19] * nikrolls quit ()
2: [00:07:13] * nikrolls has joined #silverstripe
3: [00:11:10] * tankr quit (Quit: Leaving.)
4: [00:11:53] * zippy__ quit (Ping timeout: 246 seconds)
5: [00:13:11] * zippy__ has joined #silverstripe
6: [00:22:10] * Jayden909090 has joined #silverstripe
7: [00:24:53] <Jayden909090> in template if statements, is it "$variable" or just "variable" and is it "$variable == 'value'" or just "variable = value"
8: [00:25:14] <Jayden909090> docs are inconsistant and seem to differ from what I am seeing on forums: http://doc.silverstripe.org/framework/en/reference/templates
9: [00:25:26] <Stomach> for ss 3.0 you should use $variable as its more verbose
10: [00:25:41] <Jayden909090> nice to hear, thanks
11: [00:25:48] <Stomach> < 3.0 the template doesn't parse the $ :)
12: [00:26:09] <Stomach> but both options are still valid currently
13: [00:26:12] <Jayden909090> Ahhh would explain some of the oudated forum advice
14: [00:26:26] <Stomach> yup
15: [00:26:29] * zippy__ quit (Quit: zippy__)
16: [00:26:36] <Jayden909090> what about the quotes and double ==
17: [00:27:25] <Stomach> I *believe* that in 3+ you can use the double and quotes - someone else should confirm though
18: [00:27:52] <Jayden909090> the docs has this example: <% if $MyDinner=="kipper" || $MyDinner=="salmon" %>
19: [00:28:02] <Jayden909090> then this one: <% if $MyDinner="quiche" %>
20: [00:28:28] <Stomach> both probably still work - again I would use the double == for verbosity and consistent code across template/php
21: [00:29:08] <Stomach> deprecated code is the best :D
22: [00:29:29] <Jayden909090> haha
23: [00:29:58] <Jayden909090> I take it it doesn't matter then if you use single or double quotes around values
24: [00:30:04] * Colin[pi] has joined #silverstripe
25: [00:35:08] <Stomach> I've just sent a pull request to change it to double == in all cases on that page
26: [00:35:13] <Stomach> nice spotting Jayden909090
27: [00:38:28] <Jayden909090> Nice, thanks
28: [00:43:34] * joelpittet quit (Remote host closed the connection)
29: [00:49:30] <unsignedint> hey does anyone know how to transform a url into an absolute url in silverstripe. eg "www.google.co.nz" should be transformed to "http://www.google.co.nz" but I cant just append "http" because I want the url "http://www.google.co.nz" to work too (instead of becoming "http://http://www.google.co.nz")
30: [00:51:59] * tankr has joined #silverstripe
31: [00:52:28] * Stomach quit (Quit: Leaving.)
32: [00:57:02] * spronk quit (Ping timeout: 246 seconds)
33: [01:02:18] <Colin[pi]> unsignedint, there's a function in SS for that
34: [01:02:21] <Colin[pi]> lemme find it
35: [01:03:01] <Colin[pi]> found it
36: [01:03:07] <Colin[pi]> Varchar.URL
37: [01:03:13] <Colin[pi]> "Ensure that the given value is an absolute URL."
38: [01:03:27] <Colin[pi]> will only append http:// if it doesn't have it already
39: [01:05:40] <unsignedint> thanks
40: [01:05:59] <unsignedint> I didnt realise that Varchar fields had their own class, I thought they were just strings
41: [01:06:10] <Colin[pi]> all the field types have their own class iirc
42: [01:06:20] <Colin[pi]> btw np, often if I need a certain piece of functionality like that, it usually already exists in SS :)
43: [01:06:29] <Colin[pi]> just a matter of remembering where
44: [01:06:40] <unsignedint> thats odd then because when I tried to use a custom class in the static $db array Silverstripe breaks
45: [01:07:02] <Colin[pi]> a custom data type?
46: [01:07:23] <Jayden909090> Is there a quick way in templates to find if a page has any children of a particular $ClassName (without looping all children), can't find a way in the docs
47: [01:08:36] <unsignedint> Jayden909090: im not sure, I just loop the children. performance isnt usually that critical for me
48: [01:08:55] <nikrolls> Jayden: in templates you can use either type of quote as long as they match. You can swap and choose depending on the content, as you have to escape a single quote if used within single quotes, etc
49: [01:09:45] <Colin[pi]> unsignedint: concurs... usually dont have enough children to be that concerned
50: [01:09:46] <Jayden909090> nikrolls: Thanks, good to know :)
51: [01:09:46] * giblet_ has joined #silverstripe
52: [01:09:51] <unsignedint> Colin[pi]: yeah just my own class that extended DataObject. I had no success though, they only seem to work in $has_one / $has_many etc
53: [01:09:52] <Colin[pi]> unless we are talking 1000's
54: [01:10:12] <nikrolls> And children of type, in the past I've written a quick helper function for that to avoid looping. Not sure if it's quicker, but looks a little cleaner in the tpl
55: [01:10:18] <giblet_> can we add extra buttons to the wysiwyg content editor?
56: [01:10:28] <Hippieee> I love ellie goulding!
57: [01:10:36] <giblet_> I'm sure you can, just not sure where to look... any ideas?
58: [01:10:36] <Colin[pi]> unsignedint: why would you add a DataObject subclass to the db fields? o_O
59: [01:10:50] <Colin[pi]> unsignedint: would need to be a DBField subclass, no?
60: [01:10:56] <unsignedint> Colin[pi]: because Pyromanik told me to but I think he was on crack
61: [01:11:01] <Colin[pi]> LOL
62: [01:11:04] <nikrolls> haha
63: [01:11:10] <Colin[pi]> seems legit
64: [01:11:11] <Colin[pi]> :)
65: [01:12:20] <giblet_> ^^?
66: [01:13:07] * Colin[pi] 's coffee is cold :C
67: [01:13:36] <Colin[pi]> actually my everything is cold
68: [01:13:39] <irogue> http://arstechnica.com/security/2013/06/more-than-360000-apache-websites-imperiled-by-crticial-vulnerability/
69: [01:13:39] <Colin[pi]> ffffuuuuuuu Canberra
70: [01:13:41] <Jayden909090> is there a way to break a loop early in templates once I have found there is a child page of desired class? Nothing on breaking here: http://doc.silverstripe.org/framework/en/reference/templates#looping-over-lists
71: [01:13:54] <irogue> why... does an article about a Plesk vuln... have a St John ambulance?!?
72: [01:14:12] <Colin[pi]> why not?
73: [01:14:13] <Colin[pi]> :D
74: [01:14:40] <Colin[pi]> probably because that's where the Plesk developer is right now
75: [01:14:58] <irogue> haha
76: [01:15:05] <Colin[pi]> I know I would be
77: [01:15:15] <nikrolls> Jayden909090: Not that I know of. Another reason to do a helper query function on the model, eg getChildrenOfType($type, $firstOnly = false)
78: [01:15:35] <nikrolls> You can pass string parameters in from the template
79: [01:15:36] <Jayden909090> It snowed in Canberra once when I was there
80: [01:15:42] <nikrolls> string/int
81: [01:15:52] <nikrolls> possibly more
82: [01:16:25] <Jayden909090> nikrolls: Makes sense, thanks :)
83: [01:16:31] <Colin[pi]> Canberra is a bollocks of a place
84: [01:16:43] * Colin[pi] does not know why I stay here
85: [01:18:01] <Jayden909090> Colin[pi]: everyone I know who has lived in Canberra, myself included, was forced to be there
86: [01:18:08] * giblet_ quit (Quit: Page closed)
87: [01:18:25] <Colin[pi]> well I am in a way, I have a son here
88: [01:18:40] <Colin[pi]> (from former relationship)
89: [01:18:42] <Colin[pi]> so I need to stay
90: [01:18:53] <Colin[pi]> otherwise, I would be in Brisbane or somewhere warmer
91: [01:20:42] <Colin[pi]> my sister lives in brisbane and sends me txts that say "Sitting here at cafe, in t-shirt and shorts" me: "Fuck you."
92: [01:21:14] <lewellyn> Colin[pi]: same is true in brisbane, california, fwiw :)
93: [01:21:20] <Colin[pi]> fuck you
94: [01:21:22] <Colin[pi]> ;D
95: [01:21:51] * tankr quit (Quit: Leaving.)
96: [01:21:56] <lewellyn> :)
97: [01:21:59] <Colin[pi]> can't wait until August, have a trip booked to Fitzroy Island in tropical north Queensland... NO WORK FOR THAT WEEK.
98: [01:22:36] <nikrolls> Colin[pi]: What are you talking about, it's 13 degrees in Canberra. Luxury
99: [01:23:08] <Colin[pi]> yeah if you like the sound of testicles falling onto the floor
100: [01:23:13] <nikrolls> 13 degrees here in Auckland at the moment, and I'm about to take off some layers
101: [01:23:24] <Colin[pi]> it's all relative I know :)
102: [01:23:28] <nikrolls> :D
103: [01:23:37] <Colin[pi]> have a friend from Russia, he walks around here in a t-shirt
104: [01:23:43] <Colin[pi]> saying it feels like summer
105: [01:23:45] <nikrolls> Hahaha
106: [01:24:04] <nikrolls> Yeah, people visit us an ask how we can be walking around in shorts and jandals in winter
107: [01:25:19] <Colin[pi]> my gf is from sao paulo... she complains it's freezing cold right now, and complains it's too hot in summer
108: [01:25:35] <Colin[pi]> jesus we can't all have 25C EVERY BLOODY DAY
109: [01:25:38] <nikrolls> Weather is always good to complain about
110: [01:26:54] <unsignedint> 25C? and you think thats cold?
111: [01:26:56] <unsignedint> damn aussies :O
112: [01:26:59] <unsignedint> *:P
113: [01:27:02] <nikrolls> :D
114: [01:29:16] * tankr has joined #silverstripe
115: [01:30:20] <Colin[pi]> no just saying that she is accustomed to 25C every day in brazil
116: [01:30:25] <Colin[pi]> she's not used to temperature swings
117: [01:30:43] <Colin[pi]> so it gets less than 15, it's freezing cold, and more than 30, OMG SO HOT
118: [01:31:58] <tankr> A Behat login.fixture Scenario: Valid login is failing for me, seems to use ADMIN@example.org - any ideas @sminnee?
119: [01:32:09] <sminnee> who's tankr ?
120: [01:32:20] <tankr> Frank in Auckland
121: [01:32:37] * Pat_Ts has joined #silverstripe
122: [01:32:38] <sminnee> oh right
123: [01:32:44] <Pat_Ts> afteroon all
124: [01:33:02] <sminnee> tankr: are you in dev mode, have you created run that creation-session-key comamnd?
125: [01:33:22] <sminnee> the error means that it's not created a test session with its own database successfully
126: [01:33:35] <Pat_Ts> can anyone tell me if it's possible to adjust the WYSIWYG editor to allow hyperlinking without first needing to select/highligh text?
127: [01:34:07] <tankr> yes to both. hmm, it should have root access to MySQL to create the DB..
128: [01:34:29] <tankr> also, where does it find the data to use for "ADMIN" i.e: ADMIN@example.org
129: [01:34:56] <Colin[pi]> Pat_Ts: doesn't the SS insert link form have a Link text field?
130: [01:35:07] <Colin[pi]> or are you talking about the TinyMCE insert link?
131: [01:36:42] <Pat_Ts> <Colin[pi]> I'm talking about the Tmce insert link - the hyperlink button
132: [01:37:59] <Pat_Ts> I've noticed this is possible on 2.4x if that helps
133: [01:41:05] <Colin[pi]> hmm on my 2.4 I can only use the TinyMCE insert link if I highlight text first
134: [01:45:12] <Pat_Ts> A site I'm working on (3.0) is replacing a site on 2.4x that allows hyperlinks to be inserted (button isn't greyed out) whereever - without selecting text. Kinda tricky to track down how it was done!
135: [01:46:50] <nikrolls> Likely a setting in TinyMCE, but even if you found it I'm not sure if it would work for you because SS3 doesn't have a 'link text' field in the URL popup
136: [01:48:12] <Pat_Ts> hmmmp - thanks <nikrolls> I'll take a look
137: [01:50:26] * tankr quit (Quit: Leaving.)
138: [02:01:11] * Pat_Ts quit (Ping timeout: 250 seconds)
139: [02:10:45] * spronk has joined #silverstripe
140: [02:18:59] * joelpittet has joined #silverstripe
141: [02:20:34] * joelpittet quit (Remote host closed the connection)
142: [02:21:09] * joelpittet has joined #silverstripe
143: [02:28:59] * Stomach has joined #silverstripe
144: [02:36:17] * Jayden909090 quit (Ping timeout: 250 seconds)
145: [02:42:13] * priithansen quit (Quit: priithansen)
146: [02:42:40] <unsignedint> Does anyone know if there are any plans to add has_one relationship editing in the CMS?
147: [02:42:57] <unsignedint> its seriosuly annoying that this doesnt appear to be possible
148: [02:51:35] * SamMargalit has joined #silverstripe
149: [02:54:19] <nikrolls> What kind of editing? It usually appears as a DropdownField?
150: [02:58:18] <nikrolls> unsignedint: Scaffolding will create a dropdown field for you, unless it's been overridden (like it is on SiteTree). In that case you create a DropdownField, but use the DB column name rather than the field name (so 'Artist' would become 'ArtistID'). Like: DropdownField::create('ArtistID', 'Artist', Artist::get()->toMap())
151: [02:58:46] <unsignedint> that would only allow me to choose an existing artist, right?
152: [02:59:00] <nikrolls> Artist::get()->map(), rather
153: [02:59:05] <nikrolls> Yes, not create additional
154: [02:59:26] <unsignedint> I need the ability to create a new artist and attach it to the current object. It doesnt need to be shared amongst many objects
155: [02:59:40] <nikrolls> In the past I've added a gridfield as another tab in getCMSFields to allow users to edit all available Artists, and then attach them
156: [03:00:17] <nikrolls> Doesn't quite suit your requirement exactly, but comes close
157: [03:00:18] <unsignedint> it would be nice to be able to edit the Artist inline, or even go to a separate page. I basically want GridField, but to only edit 1 item
158: [03:00:45] <nikrolls> Almost like getCMSFieldsForPopup or whatever was in SS2?
159: [03:01:03] <unsignedint> yes kinda like that (I never used it but I think I get the concept)
160: [03:01:17] <nikrolls> That would be handy even for standard use cases
161: [03:01:26] <unsignedint> people have reported HasOneComplexTableField could be used, but thats deprectaed in SS3
162: [03:02:08] * pyromaniik has joined #silverstripe
163: [03:02:10] <nikrolls> Hmm. I heard GridField is going through some decoupling at the moment, maybe after that's done it will be easier to use it for custom purposes
164: [03:02:11] <unsignedint> err, deprecated*
165: [03:02:24] <pyromaniik> omg omg omg spronk
166: [03:02:28] <nikrolls> For now it's very automated
167: [03:02:37] <unsignedint> hopefully, because the way it is now I pretty much have to make all the has_one's into has_many's and tell the user to only add 1 item to them
168: [03:02:40] * irogue licks pyromaniik
169: [03:02:56] <spronk> ????
170: [03:03:19] <pyromaniik> burgerfuel officially coming to christchurch
171: [03:03:42] <unsignedint> burgerfuel is extremely good
172: [03:03:48] <nikrolls> Wow!
173: [03:03:48] <pyromaniik> just read a full page info ad in kia ora
174: [03:03:58] <unsignedint> im suprised there wasnt one in christchurch already?
175: [03:04:08] <nikrolls> Used to live in Chch, missed Burgerfuel so much
176: [03:04:26] <pyromaniik> unsignedint none in si at all
177: [03:04:38] <nikrolls> I don't think they were in the SI at all for such a long time
178: [03:04:46] <pyromaniik> sydney - yep.
179: [03:04:49] <unsignedint> pyromaniik: really? wow
180: [03:04:55] <xyphoid> woohay
181: [03:05:05] <pyromaniik> DUBAI - Yep.
182: [03:05:13] <unsignedint> pyromaniik: do they have burger wisconsin? I think its similar (purists will disagree of course)
183: [03:05:14] <xyphoid> last time we visited wellington we ate burgerfuel 3 meals in a row, was pretty sad
184: [03:05:17] <pyromaniik> but none in si nz
185: [03:05:29] <xyphoid> pyromaniik: link?
186: [03:05:33] <nikrolls> Yeah, it even got to the middle-east before SI ...
187: [03:05:55] <xyphoid> i do like burgers and beers though
188: [03:06:01] * cloph_away quit (Ping timeout: 248 seconds)
189: [03:06:03] <xyphoid> but it's kind of a different kind of thing
190: [03:06:10] * cloph_away1 has joined #silverstripe
191: [03:06:19] <unsignedint> ridiculously expensive beers if you get them from burgerfuel
192: [03:06:22] <nikrolls> xyphoid: Yes! Went there once, was very nice
193: [03:06:22] <pyromaniik> xyphoid no link read it in physical magazine
194: [03:06:41] <nikrolls> Is B&B still around?
195: [03:06:45] <unsignedint> they have a magazine called 'kia ora' in the south island? I didnt think there were many maoris down there
196: [03:06:52] <unsignedint> too cold or something
197: [03:06:56] <nikrolls> :D
198: [03:07:03] <nikrolls> It's the Air NZ mag, right?
199: [03:07:23] <pyromaniik> driving now enjoy.
200: [03:07:44] <nikrolls> http://www.burgerfuel.com/nz/franchise-nz/territories
201: [03:08:49] <xyphoid> B&B is in two chch locations now
202: [03:08:58] <nikrolls> Nice
203: [03:10:03] <irogue> www.thecivilian.co.nz/editorial-why-were-registering-a-political-party/
204: [03:12:53] <nikrolls> Only 50c to join
205: [03:14:26] * pyromaniik quit (Ping timeout: 256 seconds)
206: [03:15:38] <nikrolls> irogue: a workmate of mine suggested Dotcom launch Mega in the CI. I'm sure that would go down well.
207: [03:17:28] * RojoD has joined #silverstripe
208: [03:17:28] * RojoD quit (Changing host)
209: [03:17:28] * RojoD has joined #silverstripe
210: [03:18:35] * Jayden909090 has joined #silverstripe
211: [03:21:55] * RojoD quit (Ping timeout: 256 seconds)
212: [03:22:36] <Jayden909090> guys, what do you have to do to globally get .svg files to upload as ClassName "Image" and not "File"
213: [03:22:51] <Jayden909090> Already did File::$allowed_extensions[] = 'svg'; in _config.php
214: [03:24:48] <Jayden909090> .svg image files are becoming comonplace on the web these days and should work properly off the bat, perhaps this stuff could be officially added to SS?
215: [03:26:12] <nikrolls> You will want to use the Config class for that now
216: [03:26:32] <nikrolls> But apart from that you've got it
217: [03:28:17] * SamMargalit quit (Ping timeout: 250 seconds)
218: [03:28:20] <nikrolls> Unless you can add to allowed_extensions in yaml, haven't tested that yet though
219: [03:28:31] <nikrolls> Assuming:
220: [03:29:24] <Jayden909090> I can upload .svg files as it is, but they are entered in the DB as "File"
221: [03:29:33] <nikrolls> Ah
222: [03:29:36] <Jayden909090> this breaks using them in <img> tags in HTMLText boxes
223: [03:29:56] <Jayden909090> It works if I manually set their ClassName to "Image"
224: [03:29:57] <nikrolls> Something to do with File::set_class_for_file_extension(
225: [03:30:05] <nikrolls> But obviously the Config version of that
226: [03:30:18] <Jayden909090> ooh sounds promissing
227: [03:30:31] <Jayden909090> There is nothing on the web about using SVG images in SS
228: [03:30:51] <nikrolls> That function will work now, but yeah, it won't once you move to v3.1
229: [03:30:59] <Jayden909090> hmmm :(
230: [03:31:17] <nikrolls> But there will definitely be a way to do it with yaml or the Config class
231: [03:31:45] <nikrolls> Rather, if you can't do it with Config or yaml yet, then they will leave it working the old way
232: [03:33:13] <Jayden909090> btw how can I find the "config version" of File::set_class_for_file_extension(
233: [03:33:26] <nikrolls> http://doc.silverstripe.org/framework/en/topics/configuration
234: [03:33:34] <nikrolls> That explains Config in general a little
235: [03:33:36] <nikrolls> May help
236: [03:33:39] <Jayden909090> http://api.silverstripe.org/3.0/class-File.html#_set_class_for_file_extension
237: [03:34:42] <nikrolls> Actually, could check your link for 3.1 to see if it's private or not
238: [03:34:57] <nikrolls> If still public then it hasn't been migrated yet
239: [03:35:08] <Jayden909090> http://api.silverstripe.org/3.1/class-File.html#_set_class_for_file_extension
240: [03:35:24] <Jayden909090> public static
241: [03:35:29] <nikrolls> Looks like it may still be a go-er
242: [03:35:37] <nikrolls> Unless anyone else here knows better
243: [03:36:07] <nikrolls> Oh but it has a bug, I remember
244: [03:36:22] <nikrolls> Line 931 (as of 3.1) should be checking $class, not $ext
245: [03:36:40] * willr quit (Ping timeout: 260 seconds)
246: [03:38:50] <Jayden909090> I have been having weird errors when syncing files and filtering them, I have assumed its been these svg problems
247: [03:39:05] <nikrolls> Yeah it is
248: [03:39:18] <nikrolls> Had the same issue when I subclassed Image
249: [03:40:02] <Jayden909090> resolved it?
250: [03:40:18] <nikrolls> So far I've fixed the bug I mentioned in our installations, haven't got around to doing it properly and doing a pull request yet
251: [03:40:40] <nikrolls> Yeah if you register Image as the class for filetype svg then you should be fine (provided you fix the line I pointed out)
252: [03:41:24] <Jayden909090> line 931 of File.php I take it
253: [03:41:41] <nikrolls> Yes, sorry. That's as of 3.1
254: [03:42:13] <nikrolls> if(!is_subclass_of($ext, 'File')) {
255: [03:42:15] <nikrolls> should be
256: [03:42:20] <nikrolls> if(!is_subclass_of($class, 'File')) {
257: [03:42:46] <nikrolls> Technically the function could be optimised in consideration of this, but it will still work
258: [03:43:38] * willr has joined #silverstripe
259: [03:46:49] <Jayden909090> I have on line 939 if(is_subclass_of($ext, 'File')) {
260: [03:49:25] <Jayden909090> sorry, just realised you mean the beta
261: [03:49:33] <Jayden909090> we are on stable for this project
262: [03:54:08] <nikrolls> Yeah, that's incorrect and has been for a while. It should be checking $class, not $ext
263: [03:54:26] <nikrolls> *even in stable
264: [03:56:07] <Jayden909090> Would pasting in the latest function set_class_for_file_extension work do you think
265: [03:56:18] <Jayden909090> or if you recommend, we could just update to beta
266: [03:57:48] * willr quit (Quit: willr)
267: [03:58:31] <Stomach> I'd recommend not changing core just so you dont have to deal with it during upgrades
268: [03:59:07] <Jayden909090> could I just skip using that function in config
269: [03:59:22] <Jayden909090> directly use self::$class_for_file_extension[$ext] = $class;
270: [03:59:43] <Jayden909090> File::$class_for_file_extension['svg'] = 'Image';
271: [04:01:43] <nikrolls> Sorry, to clarify -- that function still isn't fixed (at least according to docs). So I wouldn't normally modify core, but I planned to submit a patch for the next release so I wouldn't have to deal with the upgrade :)
272: [04:02:06] <nikrolls> But haven't got around to it yet
273: [04:03:35] * cloph_away1 quit (Ping timeout: 246 seconds)
274: [04:04:08] <nikrolls> Aaand, checking the latest on github, it *has* been fixed
275: [04:05:09] <nikrolls> https://github.com/silverstripe/silverstripe-framework/blob/3.1/filesystem/File.php#L939
276: [04:08:13] <Jayden909090> wierd. now in a HTMLText field saving <img src="assets/Uploads/conversion-optimisation.svg" /> changes it in place to <img src="assets/Uploads/_resampled/resizedimage460337-conversion-optimisation.svg" />
277: [04:08:46] * cloph_away has joined #silverstripe
278: [04:09:08] <nikrolls> Err, maybe Image class isn't going to work
279: [04:09:22] <nikrolls> If it's trying to use GD on it
280: [04:09:37] <nikrolls> Other option, maybe subclass File and implement the getTag function?
281: [04:10:43] <Jayden909090> wow this is getting really complicated to get .svg image files working, am I the first person in the world to try this lol?
282: [04:11:03] <nikrolls> :)
283: [04:11:24] <nikrolls> I guess SVG is commonly in the stylesheets rather than user-uploaded
284: [04:11:35] <nikrolls> But I agree that it should be supported
285: [04:12:10] <Jayden909090> about 30% of our hundreds of images are .svg
286: [04:12:17] <Jayden909090> maybe more
287: [04:12:29] * Pat_Tas has joined #silverstripe
288: [04:13:03] <Pat_Tas> anyone know how one would insert the document link (hyperlink) using the documents file name?
289: [04:13:35] <Pat_Tas> any helps appreciated
290: [04:13:50] <Jayden909090> I guess id does not matter if they are "file" class, but doing so breaks the HTMLText field saving in the cms using .svg in an image tag
291: [04:13:58] <Jayden909090> *it does not
292: [04:14:15] <Jayden909090> is there a quick fix for that?
293: [04:14:19] * Stomach has left #silverstripe
294: [04:14:23] <unsignedint> Guys its after 4pm on friday, stop what youre doing and have a beer.
295: [04:14:33] <Pat_Tas> haha
296: [04:14:45] <Jayden909090> deploying tonight :(
297: [04:15:11] <Pat_Tas> I'm not - I'm just trying to figure out why so many awesome features have left 2.4 on 3.0
298: [04:15:17] <Pat_Tas> :(
299: [04:15:19] <Jayden909090> 2:14 PM here :P
300: [04:15:22] <unsignedint> worst time ever to deploy! (assuming its Friday in your timezone). guaranteed something will break and youll spend all weekend trying to fix it
301: [04:15:48] <nikrolls> Yeah, we never deploy after Wed if we can help it
302: [04:15:56] <Jayden909090> Its a very long story but agreed
303: [04:15:56] * Pat_Tas quit (Client Quit)
304: [04:16:04] <nikrolls> :)
305: [04:18:15] <unsignedint> nikrolls: where do you work? if you dont mind me asking
306: [04:18:30] <nikrolls> infinity.io
307: [04:18:34] <nikrolls> Auckland NZ
308: [04:19:11] <unsignedint> oh cool
309: [04:19:13] <unsignedint> nice site
310: [04:19:19] <nikrolls> Cheers :)
311: [04:19:30] <nikrolls> Built on SS!
312: [04:19:41] <unsignedint> haha yep I went 'view source' to check
313: [04:19:50] <nikrolls> More to come, we just wanted it up there
314: [04:20:01] <unsignedint> makes sense. something is better than nothing
315: [04:22:56] <unsignedint> interesting to see wastpac.co.nz is built on SS too
316: [04:23:01] <unsignedint> err, westpac.co.nz*
317: [04:23:37] * tankr has joined #silverstripe
318: [04:25:07] <nikrolls> Yeah
319: [04:25:07] <nikrolls> Some big sites on it
320: [04:25:20] <nikrolls> But you don't always realise
321: [04:26:11] * travis-ci has joined #silverstripe
322: [04:26:11] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#412 (3.1 - 08850da : Stig Lindqvist): The build passed.
323: [04:26:11] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/df1836add2cb...08850da71e58
324: [04:26:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7865541
325: [04:26:11] * travis-ci has left #silverstripe
326: [04:26:46] <spronk> i really want SS ltd to open source a few of the biger web builds
327: [04:26:50] <spronk> to see how they do things
328: [04:27:24] <unsignedint> you know what would be sweet? having proper template inheritance in SS. Inheritance where you can define multiple blocks in templates and override them in subtemplates
329: [04:27:43] <unsignedint> spronk: yeah I would be interested in that too
330: [04:28:04] <spronk> mm
331: [04:28:06] <spronk> subtemplates would be nice
332: [04:28:16] <nikrolls> Subtemplates exist, right?
333: [04:28:25] <nikrolls> But maybe they don't do inheritance yet
334: [04:28:50] <spronk> well
335: [04:28:52] <spronk> one level of subtemplate
336: [04:28:53] <unsignedint> kind of. you can conditionally render a model to a template (any template) from within a model and insert it into the main page template
337: [04:29:30] <unsignedint> and you can include another template. but the included template cant access its parent and you can only pass in variables 1 by 1, and only strings. its retarded
338: [04:30:16] <nikrolls> Oh, I'm thinking subthemes
339: [04:30:25] <nikrolls> Includes have parent scope conditionally
340: [04:30:31] <nikrolls> It seems
341: [04:30:33] <unsignedint> ive never used subthemes
342: [04:30:53] <unsignedint> nikrolls: they do? how?
343: [04:31:15] <unsignedint> i know you can pass in parent variables as parameters. but it stringifys them
344: [04:31:15] <nikrolls> Well I've noticed that I can sometimes reference parent scope objects from an include
345: [04:31:19] <nikrolls> And sometimes can't
346: [04:31:43] <nikrolls> Depending on the situation. Not sure of the logic behind it
347: [04:31:46] <nikrolls> And I have replicated the template inheritance in some of our projects
348: [04:31:48] <unsignedint> theres a few like $ThemeDir that seem to work anywhere. But fields on the parent model seem to be off limits
349: [04:32:10] <nikrolls> That is, the same inheritance that gives you Page.ss as a wrapper also works for any other dataobject
350: [04:32:25] <unsignedint> right
351: [04:32:30] <unsignedint> sounds hacky
352: [04:32:33] <nikrolls> We use it for a content row/content block system
353: [04:32:45] <nikrolls> Quite elegant actually once you figure it out
354: [04:32:57] * unsignedint longs for something like Twig
355: [04:33:09] <nikrolls> :)
356: [04:35:28] <unsignedint> oh well, cant have everything
357: [04:35:44] <unsignedint> alright im going to be sociable and take my beer drinking away from my computer
358: [04:35:52] <unsignedint> happy coding
359: [04:36:03] <nikrolls> Have a good weekend :)
360: [04:39:19] * tankr quit (Ping timeout: 264 seconds)
361: [04:40:34] * spronk has left #silverstripe
362: [04:41:08] * spronk has joined #silverstripe
363: [04:43:09] * tankr has joined #silverstripe
364: [04:45:18] * tankr quit (Client Quit)
365: [04:49:14] * DigNZ quit (Quit: DigNZ)
366: [05:01:09] * Peavers quit (Ping timeout: 252 seconds)
367: [05:22:07] * munk0r_ has joined #silverstripe
368: [05:23:49] * munk0r_ is now known as munk0r
369: [05:46:29] * howardgrigg has joined #silverstripe
370: [05:49:37] * DigNZ has joined #silverstripe
371: [05:49:37] * DigNZ quit (Client Quit)
372: [05:56:44] * travis-ci has joined #silverstripe
373: [05:56:44] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#413 (3.1 - b3f31d8 : Stig Lindqvist): The build passed.
374: [05:56:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/08850da71e58...b3f31d8e6fdf
375: [05:56:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7866692
376: [05:56:44] * travis-ci has left #silverstripe
377: [05:58:48] * Hippiee has joined #silverstripe
378: [06:00:29] * Hippieee quit (Ping timeout: 246 seconds)
379: [06:07:13] <ss23> sminnee: You here?
380: [06:12:45] <irogue> i spilt cider all over my desk :<
381: [06:13:23] <ss23> lol
382: [06:13:29] <ss23> Thats what you get for not leaving work at 4pm
383: [06:17:17] * Jayden909090 quit (Ping timeout: 250 seconds)
384: [06:21:57] <spronk> fuckin
385: [06:22:03] <spronk> gotta buy me some catfiev
386: [06:22:03] <ss23> shit cunt fuck
387: [06:22:10] <ss23> spronk: wat dat?
388: [06:22:24] <sminnee> hi ss23
389: [06:22:37] <ss23> sminnee: Hi, for signing this, I can just print out the one page that needs to be signed and email that back?
390: [06:22:39] <spronk> you know
391: [06:22:40] <spronk> data cable
392: [06:22:44] <sminnee> yeah sure'
393: [06:22:45] <ss23> oic spronk
394: [06:22:48] <ss23> sminnee: cat5*e*
395: [06:22:50] <ss23> uh
396: [06:22:51] <ss23> spronk*
397: [06:23:00] <ss23> sminnee: Sweet, sorry about the delay, been sleeping :O
398: [06:23:24] <sminnee> lol
399: [06:23:51] <sminnee> ss23 so when can you start?
400: [06:24:14] <ss23> sminnee: Um, 17th is fine right?
401: [06:24:29] <sminnee> yeah sounds good :)
402: [06:25:07] <ss23> sminnee: I am looking foward to it :D
403: [06:25:19] <ss23> Working outside Burger Fuel... and that pizza place...
404: [06:25:24] <ss23> A McDonalds really close...
405: [06:25:28] <ss23> The work will be fun too I'm sure!
406: [06:26:15] <sminnee> cool, i'll announce your imminent arrival to everyone on Monday
407: [06:26:22] <ss23> :D
408: [06:32:22] * MrJeremy quit (Remote host closed the connection)
409: [06:34:17] * g4b0 has joined #silverstripe
410: [06:58:24] * chillu has joined #silverstripe
411: [07:13:30] * joelpittet quit (Remote host closed the connection)
412: [07:20:16] * willr has joined #silverstripe
413: [07:23:24] * EasyCo has joined #silverstripe
414: [07:24:14] <EasyCo> If I do $something = Something::get(); and the Something object has_one image. How would I get the image $something->??
415: [07:24:50] <ss23> I remember this...
416: [07:24:51] <ss23> dammit
417: [07:24:52] <ss23> It's like
418: [07:25:31] * mento has joined #silverstripe
419: [07:25:41] <EasyCo> Common ss23, dig deep mate, dig deep!
420: [07:25:49] <ss23> The name
421: [07:25:54] <ss23> EasyCo: static $has_one = array('Deal' => 'Deal');
422: [07:26:00] <ss23> then $thatthing->Deal
423: [07:27:42] <EasyCo> Hmm, it's just returning number 1
424: [07:31:26] <EasyCo> Ahh got it
425: [07:31:34] <ss23> :D
426: [07:31:35] <ss23> Awesome!
427: [07:31:46] <EasyCo> $something->Deal()->Filename
428: [07:39:59] * EasyCo quit (Quit: EasyCo)
429: [07:40:03] * priithansen has joined #silverstripe
430: [07:42:20] * willr quit (Ping timeout: 264 seconds)
431: [07:44:18] * lewellyn quit (Ping timeout: 240 seconds)
432: [07:46:01] * zfmf1 has joined #silverstripe
433: [07:57:51] * kinglozzer has joined #silverstripe
434: [08:03:38] * popeshoe has joined #silverstripe
435: [08:11:29] * spronk quit (Read error: Connection reset by peer)
436: [08:13:07] * lx-berlin_ has joined #silverstripe
437: [08:40:48] * chillu quit (Quit: chillu)
438: [09:20:10] * MJ90 has joined #silverstripe
439: [09:20:36] * chillu has joined #silverstripe
440: [09:26:51] <g4b0> is there a way to let partial caching store results in memcached?
441: [09:40:21] * lewellyn has joined #silverstripe
442: [09:52:02] * Hippieee has joined #silverstripe
443: [09:52:32] * Colin[pi] quit (Ping timeout: 246 seconds)
444: [09:52:51] * Colin[pi] has joined #silverstripe
445: [09:54:20] * Hippiee quit (Ping timeout: 256 seconds)
446: [09:57:21] * folibis has joined #silverstripe
447: [09:57:31] <folibis> hi all!
448: [09:58:44] <folibis> how can I upload file without inserting it to database like FileField does?
449: [09:59:58] <folibis> I just wnat to allow to user upload file and get some info about it. After it file have to be deleted.
450: [10:03:04] <kinglozzer> folibis: You could just use native PHP
451: [10:03:16] <kinglozzer> Or write it to the database, get whatever info you need, then delete it
452: [10:04:01] <folibis> yes but so I have to create form in native HTML and hanler so far
453: [10:04:22] <kinglozzer> folibis: I didn't think FileField writes it until you call saveInto()
454: [10:04:26] <folibis> and I lose controller power
455: [10:05:32] <kinglozzer> Easiest way would just be to let it write to the db, get info, then delete
456: [10:07:36] <folibis> yes may be you right. I so hate to do unnecessary things )) I look for some hacker way )
457: [10:10:09] * munk0r quit (Quit: ["Textual IRC Client: www.textualapp.com"])
458: [10:16:06] * travis-ci has joined #silverstripe
459: [10:16:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#243 (3.1 - 17bca1d : Stig Lindqvist): The build passed.
460: [10:16:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/59fb88bec7c5...17bca1db86b6
461: [10:16:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7871427
462: [10:16:06] * travis-ci has left #silverstripe
463: [10:18:20] * travis-ci has joined #silverstripe
464: [10:18:20] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#414 (3.1 - e9fe4f7 : Ingo Schommer): The build passed.
465: [10:18:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/b3f31d8e6fdf...e9fe4f7c68b7
466: [10:18:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7871435
467: [10:18:20] * travis-ci has left #silverstripe
468: [10:18:26] <kinglozzer> Hmm.. if I add getCMSValidator() to a Page, I can't delete a page until each of the required fields has been filled out
469: [10:28:13] <kinglozzer> In fact, even when it is filled out I can't delete the page
470: [10:28:58] <kinglozzer> Is getCMSValidator() the correct method to add extra required fields to pages?
471: [11:05:57] * mattybalaam has joined #silverstripe
472: [11:11:13] <mattybalaam> Is there a way to add a checkbox directly onto a gridfield, to allow manipulation of a boolean without having to go into each actual record?
473: [11:11:13] * folibis quit (Quit: Page closed)
474: [11:16:55] <kinglozzer> mattybalaam: With 3.1 you might be able to do it with ajshort's GridFieldExtensions
475: [11:17:04] <kinglozzer> https://github.com/ajshort/silverstripe-gridfieldextensions
476: [11:17:41] <mattybalaam> Great, I will check that out.
477: [11:40:03] * Guits has joined #silverstripe
478: [11:41:44] * nikrolls quit (Ping timeout: 264 seconds)
479: [11:43:59] <Guits> why do i get White Screen of Death on dev/build
480: [11:44:09] <Guits> have display_errors = On;
481: [11:44:22] <Guits> and Director::set_environment_type("dev");
482: [11:44:28] <Guits> and error_reporting(E_ALL);
483: [11:47:04] <kinglozzer> Server error logs?
484: [11:47:11] * Liquide quit ()
485: [11:54:36] <Guits> no... and the db seems to be remodelled
486: [11:58:56] <Guits> but i would really get my output back
487: [11:59:07] <Guits> ..worked fine until i changed to another server
488: [12:07:58] * jrthomer quit (Remote host closed the connection)
489: [12:09:19] * nikrolls has joined #silverstripe
490: [12:11:46] * mattybalaam quit (Ping timeout: 250 seconds)
491: [12:13:07] * UndefinedOffset has joined #silverstripe
492: [12:15:58] * popeshoe quit (Quit: This computer has gone to sleep)
493: [12:17:38] * popeshoe has joined #silverstripe
494: [12:31:32] * osterlaus has joined #silverstripe
495: [12:55:46] * RojoD has joined #silverstripe
496: [12:55:46] * RojoD quit (Changing host)
497: [12:55:46] * RojoD has joined #silverstripe
498: [13:12:12] * jrthomer has joined #silverstripe
499: [13:20:48] * UndefinedOffset quit (Quit: Leaving.)
500: [13:25:06] * UndefinedOffset has joined #silverstripe
501: [13:29:18] * nikrolls quit (Ping timeout: 240 seconds)
502: [13:37:57] <zfmf1> until this line my action works: return $this->customise ( $data )->renderWith ( array ('Ausgang','Page') ); after this im gettin not found i use the same line in other actions and its working :D wtf is this :D
503: [13:39:21] * osterlaus quit (Quit: Leaving.)
504: [13:43:20] * Colin[pi] quit (Ping timeout: 260 seconds)
505: [13:51:46] <kinglozzer> "not found" as in template not found?
506: [13:51:57] <kinglozzer> Or "404, I should put my site in dev mode" not found? ;)
507: [13:52:39] <zfmf1> 404
508: [13:53:07] <zfmf1> "NetworkError: 404 Not Found - domain.com/warenausgang/gesendet"
509: [13:53:20] <kinglozzer> zfmf1: So if you do die('hello word'); before there, you see 'hello world'?
510: [13:53:41] <zfmf1> yes
511: [13:53:46] <kinglozzer> Dev mode?
512: [13:54:14] <zfmf1> yes
513: [13:54:31] * UndefinedOffset quit (Quit: Leaving.)
514: [13:54:37] <kinglozzer> Anything in error logs? How about if you just do return $this->renderWith ( array ('Ausgang','Page') );
515: [13:57:37] <zfmf1> nothing in the logs, renderwith changed nothing
516: [13:57:56] <kinglozzer> Is it an allowed action?
517: [13:58:02] <kinglozzer> Try just return array();
518: [13:58:58] <zfmf1> its in allowed action yes
519: [13:59:05] <zfmf1> return array works
520: [13:59:45] <kinglozzer> Have you definitely flushed after creating your 'ausgang' template?
521: [14:00:33] <zfmf1> yes ausgang is a older template i created it on monday i think
522: [14:00:48] <zfmf1> i have other actions they are rendering the same
523: [14:01:06] <zfmf1> they are working :D
524: [14:02:24] * UndefinedOffset has joined #silverstripe
525: [14:02:24] <kinglozzer> Hmm
526: [14:02:36] <kinglozzer> return $this->renderWith(array('Page', 'Page')); ?
527: [14:04:14] <zfmf1> this is also working, i will check ausgang.ss again but first i think i need coffeeeeeee :D
528: [14:04:37] <kinglozzer> Do you actually have a space after the word 'array' in your php? I'd get rid of that if you do
529: [14:04:48] <kinglozzer> You never know ;)
530: [14:09:48] * g4b1 has joined #silverstripe
531: [14:11:55] <g4b0> chillu: do I have some hope that this PR will be merged? https://github.com/silverstripe/silverstripe-framework/pull/2063
532: [14:16:56] <zfmf1> omg :D ausgang is calling a method in the extended controller :D and its throws the error :@
533: [14:16:59] <zfmf1> kinglozzer: thanks ;)
534: [14:17:34] <kinglozzer> Haha, strange you didn't see an error though
535: [14:17:43] * nickmolhoek quit (Quit: nickmolhoek)
536: [14:17:51] <zfmf1> it throw a 404 :d
537: [14:17:54] <ss23> there's only two difficult things in programming:
538: [14:17:55] <ss23> 1) cache invalidation
539: [14:17:56] <ss23> 2) naming things
540: [14:17:57] <ss23> 3) off by one errors
541: [14:18:06] <kinglozzer> ;)
542: [14:18:37] <zfmf1> spaces are added by phpstorm i think , i never do that normally :D
543: [14:18:58] <g4b0> ss23: 4) programming (recursive)
544: [14:26:56] * travis-ci has joined #silverstripe
545: [14:26:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#244 (3.1 - 574c11a : Mike Parkhill): The build passed.
546: [14:26:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/17bca1db86b6...574c11a834ee
547: [14:26:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7877425
548: [14:26:56] * travis-ci has left #silverstripe
549: [14:33:31] * travis-ci has joined #silverstripe
550: [14:33:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#245 (3.1 - 7b7d99d : Ingo Schommer): The build passed.
551: [14:33:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/574c11a834ee...7b7d99d3b1ed
552: [14:33:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7877486
553: [14:33:31] * travis-ci has left #silverstripe
554: [14:34:02] <kinglozzer> Behat looks awesome, wish I had the time/an excuse to learn it
555: [14:34:06] * joelpittet has joined #silverstripe
556: [14:35:17] * UndefinedOffset quit (Quit: Leaving.)
557: [14:36:11] * chillu quit (Quit: chillu)
558: [14:38:29] * travis-ci has joined #silverstripe
559: [14:38:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#246 (3.1 - 117b688 : Ingo Schommer): The build passed.
560: [14:38:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7b7d99d3b1ed...117b6887c724
561: [14:38:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7877510
562: [14:38:29] * travis-ci has left #silverstripe
563: [14:40:23] * micmania1 has joined #silverstripe
564: [14:43:31] * chillu has joined #silverstripe
565: [14:50:43] * travis-ci has joined #silverstripe
566: [14:50:43] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#247 (3.0 - c45ae00 : Ingo Schommer): The build passed.
567: [14:50:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d3a4161a9458...c45ae00d012d
568: [14:50:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7877515
569: [14:50:43] * travis-ci has left #silverstripe
570: [14:51:54] * catcher has joined #silverstripe
571: [14:53:37] * dospuntocero has joined #silverstripe
572: [14:56:59] <AlphaCactus> Why don't they make the items per page user adjustable in GridField
573: [14:59:00] <catcher> AlphaCactus, new GridFieldPaginator(15), no?
574: [14:59:14] <AlphaCactus> i meant, like with a dropdown or something in the interface
575: [14:59:50] <catcher> oh, client-side
576: [14:59:56] <AlphaCactus> right
577: [15:00:51] <catcher> it'd have to reload if you went larger, but it'd still be nice to have.
578: [15:01:46] * Nivery has joined #silverstripe
579: [15:01:58] * UndefinedOffset has joined #silverstripe
580: [15:03:11] <AlphaCactus> yeah. probably could make something without much difficulty, just have to find a budget to sneak it in
581: [15:04:44] * lx-berlin_ has left #silverstripe
582: [15:08:09] * travis-ci has joined #silverstripe
583: [15:08:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#248 (3.1 - 92135ac : Andrew Short): The build passed.
584: [15:08:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/117b6887c724...92135acc1490
585: [15:08:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7878828
586: [15:08:09] * travis-ci has left #silverstripe
587: [15:08:34] * micmania1 quit (Ping timeout: 250 seconds)
588: [15:13:26] * joelpittet quit (Read error: Connection reset by peer)
589: [15:13:49] * joelpittet has joined #silverstripe
590: [15:20:10] <AlphaCactus> Know how to hide specific managed models in ModelAdmin. going to be based on groups.
591: [15:20:26] * travis-ci has joined #silverstripe
592: [15:20:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#250 (3.1 - 4ebd5ab : Ingo Schommer): The build passed.
593: [15:20:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1c0ae76f8ef4...4ebd5ab74079
594: [15:20:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7878917
595: [15:20:26] * travis-ci has left #silverstripe
596: [15:34:29] * PigeonFriend has joined #silverstripe
597: [15:37:04] * mento quit (Quit: Page closed)
598: [15:38:44] * MJ90 quit (Ping timeout: 264 seconds)
599: [15:39:23] * MJ90 has joined #silverstripe
600: [15:40:24] <kinglozzer> JS help needed as I suck a** at it: why can't I do some.array[key] = val; instead of some.array.push(val) ?
601: [15:42:05] <AlphaCactus> you should be able to. hmmm
602: [15:44:20] <AlphaCactus> is some an object and array on the object which isn't actually named 'array'
603: [15:47:40] <AlphaCactus> also, javascript doesn't really support associative arrays, so you can't do arrays like you can in php
604: [15:48:01] <AlphaCactus> http://blog.xkoder.com/2008/07/10/javascript-associative-arrays-demystified/
605: [16:00:29] * chillu quit (Quit: chillu)
606: [16:04:01] * g4b1 quit (Quit: g4b1)
607: [16:04:05] * g4b0 quit (Quit: Sto andando via)
608: [16:06:55] <kinglozzer> Thanks AlphaCactus, it wasn't an issue with javascript, just how angular was treating it (I've never used angular before today!). Managed to get it working now, just using an object instead of an array
609: [16:07:07] * kinglozzer quit (Quit: Weekend!)
610: [16:13:27] <AlphaCactus> great
611: [16:50:17] * chillu has joined #silverstripe
612: [16:57:47] * joelpittet quit (Remote host closed the connection)
613: [16:58:39] * joelpittet has joined #silverstripe
614: [16:58:59] * MJ90 quit ()
615: [17:00:45] * popeshoe quit (Quit: Leaving)
616: [17:04:53] <PigeonFriend> hey, lets test some bugs: http://new.betterbrief.co.uk
617: [17:05:10] <PigeonFriend> @chillu: nice stuff on SS ^ ;)
618: [17:05:54] <PigeonFriend> pre release
619: [17:10:30] <jrthomer> chillu : thanks for merging https://github.com/silverstripe/silverstripe-translatable/pull/115
620: [17:10:39] <jrthomer> do you think it will be merged to master as well (for 3.1?)
621: [17:16:45] * zfmf1 has left #silverstripe
622: [17:33:01] * Motoservo_ has joined #silverstripe
623: [17:34:39] * Motoservo quit (Ping timeout: 256 seconds)
624: [17:34:40] * Motoservo_ is now known as Motoservo
625: [17:35:35] * Nivery quit (Quit: Nivery)
626: [17:38:11] * Nivery has joined #silverstripe
627: [18:05:49] * zfmf1 has joined #silverstripe
628: [18:12:18] * chillu quit (Quit: chillu)
629: [18:16:18] * gelignite has joined #silverstripe
630: [18:16:31] * chillu has joined #silverstripe
631: [18:33:48] * mattybalaam has joined #silverstripe
632: [18:34:28] * chillu quit (Quit: chillu)
633: [18:57:48] * mattybalaam quit (Ping timeout: 250 seconds)
634: [19:04:05] * PigeonFriend quit (Ping timeout: 276 seconds)
635: [19:04:25] * PigeonFriend has joined #silverstripe
636: [19:11:08] * culshaw has joined #silverstripe
637: [19:11:15] <culshaw> hey anybody around?
638: [19:12:02] <culshaw> i'm having a htaccess hiccup on a godaddy hosting server, last week the site was fine, now the redirect inside the framework seems to have gone haywire
639: [19:12:04] <culshaw> v3.0
640: [19:12:26] <culshaw> here is how the site is supposed to look http://industriousminds.com/coast-cms/
641: [19:13:17] <culshaw> and it will be at http://coastconsulting.com but i'm reuploading the framework folder just to be sure
642: [19:15:33] <culshaw> and for some unknown reason all the assets are being served from http://coastconsulting.com/index.php/assets/img/.... rather than http://coastconsulting.com/assets/img/
643: [19:15:44] <culshaw> which is causing the images to be served as text/html
644: [19:18:42] <culshaw> when i try to run a /dev/build im forwarded to a 404 page
645: [19:18:46] <culshaw> same for /admin
646: [19:31:42] <culshaw> ok so http://coastconsulting.com is as it was
647: [19:31:59] <culshaw> please can someone help me out? I'm also getting a 'No file input' when clicking on any of the links
648: [19:32:01] <culshaw> so bizzare
649: [19:35:19] <catcher> culshaw, can you paste your .htaccess?
650: [19:35:33] <culshaw> one sec
651: [19:35:43] <culshaw> i think it might be a stupid godaddy fastcgi problem
652: [19:35:44] * lewellyn quit (Ping timeout: 264 seconds)
653: [19:36:03] <catcher> entirely possible
654: [19:39:39] <culshaw> yep so i had to disable fast cgi
655: [19:39:51] <culshaw> but godaddy doesn't have a php 5.3 non fast-cgi version
656: [19:39:54] <culshaw> so i'm stuck
657: [19:40:17] <culshaw> I'll post my .htaccess now @catcher
658: [19:41:15] <culshaw> catcher: http://pastie.org/8020515
659: [19:44:05] <catcher> culshaw, might flip your -f test with your ^(.*)$
660: [19:45:07] <catcher> though it actually should be fine as is
661: [19:46:08] <culshaw> sorry can you do an idiots .htaccess line for me, i don't do htaccess regex so often
662: [19:46:19] <culshaw> literally remove the ! ?
663: [19:46:45] <catcher> nah, just flip lines 25 and 26
664: [19:47:42] <culshaw> 404's all round
665: [19:49:10] <catcher> yeah, what you had before should've been fine really.
666: [19:49:51] <catcher> culshaw, is php5.4 an option for you?
667: [19:50:20] <catcher> to get around the fast cgi stuff?
668: [19:50:45] <culshaw> nah i've only got 5.2 or 5.3 fast-cgi
669: [19:51:07] <culshaw> i've got a phpinfo up if that could help with the debug?
670: [19:51:21] <culshaw> (if only clients listen and don't take the cheap option on hosting)
671: [19:53:34] <catcher> culshaw, already checked it for mod_rewrite, looks okay..
672: [19:54:03] <culshaw> that was my first thought too, that mod rewrite had failed...
673: [19:54:34] <catcher> culshaw, I've never hosted with godaddy, so I'm not much help beyond telling you your .htaccess looks okay.
674: [19:56:56] <culshaw> catcher, thanks for your help. I think I've established it's an intermittent problem with GoDaddy
675: [19:57:16] <culshaw> It's been fine for the last 5 months and now boom, broken
676: [19:57:28] <catcher> culshaw, no changes on your end?
677: [20:01:56] <culshaw> nope nothing
678: [20:02:29] <culshaw> catcher: but maybe we can solve it another way, index.php/ is being added into the asset path, do you have any idea where it is set/stored (the base path)
679: [20:04:32] * Nivery quit (Quit: Nivery)
680: [20:07:49] <catcher> culshaw, it's still behaving like an htaccess problem though, as though the rewrite cond for -f is passing when it shouldn't.
681: [20:08:14] <catcher> culshaw, check the permissions on assets/ recursively, be sure the webserver can read (and write)
682: [20:10:29] <culshaw> ok done that
683: [20:10:39] <culshaw> its serving this http://coastconsulting.com/index.php/assets/Uploads/levis.jpg instead of http://coastconsulting.com/assets/Uploads/levis.jpg
684: [20:10:44] <culshaw> although that may be a minor problem
685: [20:11:33] <catcher> nah, that's a problem - it should go straight through to the file
686: [20:13:41] <catcher> Ah, you have 2 frameworks going.
687: [20:13:48] <catcher> culshaw, gotta get rid of one
688: [20:14:07] <catcher> (framework-old)
689: [20:15:51] <culshaw> how in the hell did you know that? Ok removing... I renamed it in order to see if something in the framework had spontaneously combusted
690: [20:16:22] <catcher> culshaw, I've been there, sometimes renaming isn't an option.
691: [20:16:44] <culshaw> that is also deleted
692: [20:16:57] <catcher> culshaw, give it a ?flush=all
693: [20:17:09] * chillu has joined #silverstripe
694: [20:17:11] * chillu quit (Client Quit)
695: [20:17:56] <culshaw> getting 404's on /dev/build
696: [20:18:37] <culshaw> i can't force login either, can't get to /admin
697: [20:19:17] <catcher> culshaw, now you're really down to fastcgi issues, I believe
698: [20:19:53] <culshaw> ok thanks for everything, it's so bizzare how it was working before
699: [20:19:59] <culshaw> truly puzzled
700: [20:20:01] <catcher> culshaw, is your mysite/_config.php in working order?
701: [20:20:28] <catcher> culshaw, it almost seems to be having issues with your db
702: [20:20:41] <catcher> culshaw, try putting the site in 'dev' mode, then give it a /dev/build?flush=all
703: [20:22:19] <culshaw> tested the config details with installer, worked fine
704: [20:22:22] <culshaw> putting in dev mode...
705: [20:23:39] <culshaw> same
706: [20:23:42] <culshaw> can't reach anywhere
707: [20:24:09] <catcher> last attempt for me - create a folder called silverstripe-cache in your root
708: [20:24:16] <catcher> make sure it's writeable by the webserver
709: [20:24:29] <culshaw> already there and writeable
710: [20:24:31] <culshaw> :(
711: [20:24:36] <catcher> culshaw, anything in it?
712: [20:24:49] <catcher> try removing it
713: [20:25:12] <culshaw> .cache, aggregate_cache, cache and lots of .cachexxx files
714: [20:25:14] <culshaw> ok
715: [20:25:33] <culshaw> yes also nada
716: [20:27:08] <catcher> culshaw, check the index.php, make sure it's the same as what comes with SS3.0
717: [20:27:57] <catcher> and make sure webserver can read your framework & cms
718: [20:30:20] <catcher> culshaw, pretty sure there's an issue with your _config.php, actually.
719: [20:30:41] * dospuntocero quit (Remote host closed the connection)
720: [20:30:43] <culshaw> want me to paste it too?
721: [20:31:07] <catcher> culshaw, it seems to be an issues specific to your DB, so that probably won't help.
722: [20:31:36] <catcher> culshaw, you should also make sure your DB is running properly via your godaddy cpanel
723: [20:32:23] <culshaw> for clarity: http://pastie.org/8020697
724: [20:34:07] <catcher> looks fine to me, provided the DB is running properly & credentials are right.
725: [20:36:12] <culshaw> yep im in phpmyadmin now, everything seems fine; also checked details via the install.php everything is fine there too
726: [20:37:37] * UndefinedOffset quit (Quit: Leaving.)
727: [20:39:20] <catcher> culshaw, you may have a whitespace parse error in your .htaccess - try adjusting the line endings & newlines, or re-type the .htaccess
728: [20:41:20] <culshaw> had a look, trimmed everything, i always code with hidden characters on; looks fine
729: [20:41:26] <culshaw> think we are clutching straws a little?
730: [20:42:36] <catcher> those are all issues that have existed before, and the only ones I can suggest since I can't help with fastcgi :-P
731: [20:43:21] <culshaw> yea i'm going to try and convince the client to switch to my server
732: [20:43:26] <culshaw> i've got a mediatemple box
733: [20:43:33] <culshaw> so much easier
734: [20:44:05] <catcher> yeah, I've been lucky enough to avoid godaddy thus far.
735: [20:45:40] <culshaw> well thanks for your help whats your paypal address i owe you a beer
736: [20:46:47] <catcher> culshaw, ha! can't collect without a solution, thanks though
737: [20:48:39] <culshaw> ok well i gotta go, gotta drive 150 miles then ill be back on
738: [20:48:45] <culshaw> laters
739: [20:49:41] * RojoD quit (Ping timeout: 256 seconds)
740: [20:54:03] * joelpitt_ has joined #silverstripe
741: [20:54:07] * joelpittet quit (Read error: Connection reset by peer)
742: [20:55:14] * culshaw quit (Ping timeout: 250 seconds)
743: [21:01:32] * dospuntocero has joined #silverstripe
744: [21:10:24] * dospuntocero quit (Read error: Connection reset by peer)
745: [21:10:37] * lewellyn has joined #silverstripe
746: [21:10:39] * dospuntocero has joined #silverstripe
747: [21:11:52] * dospuntocero quit (Remote host closed the connection)
748: [21:11:59] * dospuntocero has joined #silverstripe
749: [21:36:02] * dospuntocero quit (Remote host closed the connection)
750: [21:36:33] * dospuntocero has joined #silverstripe
751: [21:39:38] * dospuntocero quit (Read error: Connection reset by peer)
752: [21:39:49] * dospuntocero has joined #silverstripe
753: [21:41:02] * dospuntocero quit (Remote host closed the connection)
754: [21:41:08] * dospuntocero has joined #silverstripe
755: [21:42:23] * dospuntocero quit (Remote host closed the connection)
756: [21:42:51] * dospuntocero has joined #silverstripe
757: [21:50:14] * dospuntocero quit (Read error: Connection reset by peer)
758: [21:50:19] * dospunto_ has joined #silverstripe
759: [21:51:31] * dospunto_ quit (Remote host closed the connection)
760: [21:51:46] * dospuntocero has joined #silverstripe
761: [22:10:34] * dospuntocero quit (Remote host closed the connection)
762: [22:11:02] * dospuntocero has joined #silverstripe
763: [22:16:41] * dospuntocero quit (Ping timeout: 256 seconds)
764: [22:34:07] * Zauberfisch|idle quit (Ping timeout: 245 seconds)
765: [22:38:33] * Zauberfisch|idle has joined #silverstripe
766: [22:39:33] * catcher quit (Quit: Leaving)
767: [22:41:05] * dospuntocero has joined #silverstripe
768: [22:47:00] * joelpitt_ quit (Read error: Connection reset by peer)
769: [22:47:16] * joelpittet has joined #silverstripe
770: [22:53:12] <AlphaCactus> Anybody know how to apply custom formats to tinyMCE? HTMLEditorConcifg uses Convert::raw2json which wraps arrays with doublequotes resulting in them being treated as strings and so my formats cause a js error which breaks the whole thing.
771: [22:53:31] * dospuntocero quit (Ping timeout: 256 seconds)
772: [22:54:39] <AlphaCactus> and just using editor.css won't work because I need to apply custom attributes which require js and to be in the tinymce init
773: [23:00:46] * dospuntocero has joined #silverstripe
774: [23:01:51] * dospuntocero quit (Remote host closed the connection)
775: [23:01:58] * dospuntocero has joined #silverstripe
776: [23:09:59] * DigNZ has joined #silverstripe
777: [23:09:59] * DigNZ quit (Client Quit)
778: [23:14:29] * gelignite quit (Quit: http://bit.ly/nkczDT)
779: [23:14:47] * Zauberfisch|idle quit (Read error: Connection reset by peer)
780: [23:15:16] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
781: [23:22:07] <AlphaCactus> answer: register the formats in a tinymce plugin. Don't use HtmlEditorConfig::setOption
782: [23:26:44] * travis-ci has joined #silverstripe
783: [23:26:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#252 (3.1 - 31cfcdb : Will Rossiter): The build passed.
784: [23:26:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4ebd5ab74079...31cfcdb08eda
785: [23:26:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7893454
786: [23:26:44] * travis-ci has left #silverstripe
787: [23:43:45] * pex has joined #silverstripe
788: [23:45:47] * kerosene quit (Quit: leaving)
789: [23:46:45] * kerosene has joined #silverstripe

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