#silverstripe IRC Log

IRC log for 20 July 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:02:18] * Hailwood_Ghost quit (Ping timeout: 258 seconds)
4: [00:14:59] * Hailwood_Ghost has joined #silverstripe
5: [00:26:24] * micmania1 quit (Quit: micmania1)
6: [00:27:36] * UncleCheese has joined #silverstripe
7: [00:34:06] * darjusIT quit (Read error: Connection reset by peer)
8: [00:45:02] * Stomach has joined #silverstripe
9: [00:51:50] * Exor quit (Ping timeout: 250 seconds)
10: [00:58:25] * Stomach quit (Quit: zzz)
11: [00:59:12] * Stomach has joined #silverstripe
12: [01:05:26] * micmania1 has joined #silverstripe
13: [01:09:08] * Stomach quit (Quit: zzz)
14: [01:39:32] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15: [01:42:20] * Stomach has joined #silverstripe
16: [01:43:48] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17: [01:51:46] * xyphoid quit (Ping timeout: 252 seconds)
18: [01:53:44] * xyphoid has joined #silverstripe
19: [01:53:59] * xyphoid quit (Changing host)
20: [01:53:59] * xyphoid has joined #silverstripe
21: [02:01:56] * Stomach quit (Quit: bye)
22: [02:03:13] * Stomach has joined #silverstripe
23: [02:09:53] * adrexia has joined #silverstripe
24: [02:42:11] <Hailwood_Ghost> Hmm, anyone know why aString.trim().replace(/\s+/g, "-") is replacing spaces AND the literal s character with -?
25: [02:43:44] * DanaeNZ quit (Remote host closed the connection)
26: [02:44:19] * DanaeNZ has joined #silverstripe
27: [02:48:37] * DanaeNZ quit (Ping timeout: 260 seconds)
28: [02:51:50] <micmania1> Hailwood_Ghost: doesn’t \s mean any string (includes spaces)?
29: [02:52:31] * Nightjar quit (Ping timeout: 240 seconds)
30: [02:54:35] * DanaeNZ has joined #silverstripe
31: [03:07:14] * Stomach quit (Quit: zzz)
32: [03:15:11] * Nightjar has joined #silverstripe
33: [03:15:27] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
34: [03:17:11] * Stomach has joined #silverstripe
35: [03:17:13] <Hailwood_Ghost> micmania1, Hmm, so silverstripe is stripping non-escaped \ so that when used in an in-page script block ends up being aString.trim().replace(/s+/g, "-")
36: [03:17:28] <Hailwood_Ghost> And no, \s+ means any number of spaces.
37: [03:17:35] * hailwood quit (Disconnected by services)
38: [03:17:38] * Hailwood_Ghost is now known as hailwood
39: [03:17:44] <hailwood> Better.
40: [03:18:03] * Hailwood_Ghost has joined #silverstripe
41: [03:20:08] <Nightjar> hailwood, double the \?
42: [03:20:55] <Nightjar> hmm, I've missed some stuff. Dun gone got da drop
43: [03:22:00] <Nightjar> if you're running it from PHP and your escape code (\n, \r, etc.) isn't recognised it replaces with the litteral (ie, \n becomes n - although it never would because \n is a valid escape)
44: [03:23:24] <Nightjar> so yeh, double \ so you have \\s
45: [03:23:27] <Nightjar> try that
46: [03:23:41] * Nightjar has the sneaky feeling that micmania1 already told you this
47: [03:23:45] <hailwood> Nightjar, mm, of course if we replace the \ with \\ then if it gets reversed, or the Javascript gets externalized it will break
48: [03:23:58] <Nightjar> define 'externalised'
49: [03:24:27] <hailwood> Moved to a <script src="..."></script> instead of <script>...code...</script>
50: [03:24:56] <Nightjar> in that case if you're worried about that (which you shouldn't IMO), then use javascriptFromTemplate or whatever that hack method is
51: [03:25:24] <Nightjar> or render an actual template with ArrayData encapsulated bits you need the PHP for.
52: [03:26:35] <hailwood> Nightjar, You've lost me a bit, what do you mean render and actual template?
53: [03:27:35] <Nightjar> SSViewer::create('MyCoolJavascriptTemplate')->loadDatData($myInfos)->render()
54: [03:27:40] <Nightjar> or something like that
55: [03:30:38] <hailwood> Nightjar, That wouldn't make a difference afaik. I am doing an actual template, I have the javascript inside a .ss that's being include <% include TemplateWithInlineJavascript %> so should be doing the same thing
56: [03:32:21] <Nightjar> so, it's NOT in PHP?
57: [03:33:02] <hailwood> No it's in an SS template.. Where did you get that it was in PHP from?
58: [03:33:18] <Nightjar> also \s+ does not mean any number of spaces. \s* means any number of spaces.
59: [03:33:34] <Nightjar> you said silverstripe was stripping it.
60: [03:33:43] <Nightjar> silverstripe is in php ;)
61: [03:33:50] <hailwood> It is, something in SSViewer when it parses the template lol
62: [03:34:04] <Nightjar> I'm not aware of templates recognising escape slashes
63: [03:34:37] <hailwood> No it's a new thing it doing this, and it's going to break a bunch of our sites on the next maintenance cycle
64: [03:34:51] <Nightjar> what version you running?
65: [03:35:50] <hailwood> 3.4.0
66: [03:40:07] <Nightjar> hailwood, can you write a test to reproduce the problem?
67: [03:42:29] <Nightjar> PR with test would be ace, but in any case log an issue on the githubs if you're certain it's a core cause conundrum.
68: [03:42:35] <Nightjar> caused*
69: [03:42:41] * adrexia has joined #silverstripe
70: [03:42:50] <Nightjar> o/ adrexia
71: [03:43:03] <adrexia> hey
72: [03:43:11] <adrexia> how's things?
73: [03:43:23] <Nightjar> Alright ta
74: [03:43:38] <Nightjar> you?
75: [03:43:47] <adrexia> mixed ;)
76: [03:45:43] <Nightjar> 0.71 hectares then :)
77: [04:44:43] * spekulatius quit (Ping timeout: 250 seconds)
78: [04:45:10] * spekulatius has joined #silverstripe
79: [04:46:01] * UncleCheese has joined #silverstripe
80: [05:33:04] * camfindlay has joined #silverstripe
81: [05:34:19] * camfindlay quit (Client Quit)
82: [05:34:50] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
83: [05:45:06] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
84: [05:53:26] * DanaeNZ quit (Quit: TIME TO FEED)
85: [06:01:16] * micmania1 quit (Quit: micmania1)
86: [06:07:01] * kerozene has joined #silverstripe
87: [06:07:04] * ^` quit (Ping timeout: 264 seconds)
88: [06:13:34] * Nightjar quit (Ping timeout: 252 seconds)
89: [06:24:06] * Stomach quit (Ping timeout: 258 seconds)
90: [06:25:33] * UncleCheese has joined #silverstripe
91: [06:42:31] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
92: [06:42:52] * UncleCheese has joined #silverstripe
93: [07:00:23] * darianno|aw is now known as darianno
94: [07:06:33] * TheVoid- quit (Ping timeout: 276 seconds)
95: [07:07:17] * TheVoid has joined #silverstripe
96: [07:30:27] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/-mmRAbgMAQAJ
97: [07:54:46] * kinglozzer has joined #silverstripe
98: [07:58:38] * kinglozz_ has joined #silverstripe
99: [07:58:39] * kinglozzer quit (Read error: Connection reset by peer)
100: [07:59:55] * kinglozz_ is now known as kinglozzer
101: [08:05:18] * Stomach has joined #silverstripe
102: [08:14:57] * slievr has joined #silverstripe
103: [08:15:41] * kinglozz_ has joined #silverstripe
104: [08:17:02] * kinglozzer quit (Ping timeout: 260 seconds)
105: [08:19:19] * janneklouman-- has joined #silverstripe
106: [08:42:31] * Mike123 has joined #silverstripe
107: [08:42:47] <Mike123> hey
108: [08:43:13] <swaiba> hey Mike123
109: [08:46:43] <Mike123> i need to make rss feed for Facebook instant articles
110: [08:46:57] <Mike123> any tips/hits ?
111: [08:47:21] <Mike123> SS has some helper classes for it ?
112: [08:52:19] <kinglozz_> Three cheers for BT!
113: [08:55:16] * agent44 has joined #silverstripe
114: [08:59:46] <swaiba> Mike123 http://api.silverstripe.org/3.1/class-RSSFeed.html
115: [08:59:47] * kinglozz_ quit (Read error: Connection reset by peer)
116: [08:59:55] * kinglozzer has joined #silverstripe
117: [09:01:14] * kinglozz_ has joined #silverstripe
118: [09:04:17] * kinglozzer quit (Ping timeout: 260 seconds)
119: [09:06:05] * kinglozz_ quit (Remote host closed the connection)
120: [09:06:08] * kinglozzer has joined #silverstripe
121: [09:08:01] <swaiba> kinglozzer hip hip... BT!
122: [09:08:41] <kinglozzer> Good job we don't rely on internet connections for work right?
123: [09:08:46] <kinglozzer> :P
124: [09:25:06] <swaiba> yeah we have wifi dongles in all the machines and a pay as you go sim router #internetbackup
125: [09:25:48] <kinglozzer> swaiba: I'm just tethering my phone's 3g for now
126: [09:26:25] <kinglozzer> Unlimited data plan ftw
127: [09:26:33] <kinglozzer> I'll put that to the test today :P
128: [09:30:30] <ss-helper> Re: [silverstripe-dev] Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/z7jIJKMTAQAJ
129: [09:33:45] <swaiba> kinglozzer really unlimited? really really? if so who with and how much ?
130: [09:35:27] <kinglozzer> swaiba: Aye, but I don't think they offer it any more
131: [09:35:47] <swaiba> oh sad face
132: [09:35:47] <kinglozzer> It's with O2, had unlimited texts + 300 mins for £10/month, with a £5/month unlimited data bolt-on
133: [09:36:20] <swaiba> I've got "unlimited" really odd that I can run out by leaving on youtube all day...
134: [09:36:21] <kinglozzer> Subject to "fair usage" etc, but I've never been throttled or charged
135: [09:36:43] <kinglozzer> I've hit 20gb in a month before and nothing happened :P
136: [09:38:22] * Stomach quit (Quit: zzz)
137: [09:41:44] * kinglozzer quit (Remote host closed the connection)
138: [09:42:11] * kinglozzer has joined #silverstripe
139: [10:18:49] * cloph is now known as cloph_away
140: [10:22:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
141: [10:58:44] * UncleCheese has joined #silverstripe
142: [12:10:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
143: [12:29:21] * UndefinedOffset has joined #silverstripe
144: [12:49:17] * muskie9 has joined #silverstripe
145: [13:04:03] * cloph_away is now known as cloph
146: [13:41:49] * r3v3rb has joined #silverstripe
147: [13:42:00] <r3v3rb> ‘sonly meeeeeeeeeee!
148: [13:45:26] <r3v3rb> is there a modal in the framework/modeladmin that can be utilised via a literalfield that contains an image or should I just roll my own and inject the necessary js such as magnific popup
149: [13:46:11] <swaiba> r3v3rb alreeet
150: [13:46:23] <r3v3rb> ayyyeeeee
151: [13:46:37] <swaiba> model admin that contains an image.. I'm lost...
152: [13:46:44] <swaiba> (not that unusual :)
153: [13:47:27] <r3v3rb> sorry the lieteralfield contains the image, i want to use a modal window to show the full size :) so wondered if there is a modal within the framework that i can cut/paste/use
154: [13:48:11] <swaiba> oh like in tinymce... "full screen mode" ?
155: [13:48:33] <r3v3rb> kinda, I’m doing: LiteralField::create('Image', '<div id="Image" class="field text"><label class="left">Preview Image</label><div class="middleColumn"><img src="' . $this->getComponentImage()->URL . '"/></div></div>')
156: [13:48:56] <swaiba> god I'm dense sometimes... I get you now
157: [13:48:59] <r3v3rb> so I’m thinking I could just add the modal stuff in there and add some requirements
158: [13:49:09] <swaiba> and no I don't know one, but also interested
159: [13:49:17] <swaiba> anything in the emcommerce modules?
160: [13:49:32] <r3v3rb> for the JS, but thought there might already be some code that I could spin off - for example the upload field edit modal
161: [13:50:01] <swaiba> i hacked something like that in to V2 so you would download the asset or right click open the image in a new window
162: [13:50:07] <r3v3rb> would obviously have some JS to fire it up - it might not be extenisble though for my needs :\
163: [13:50:33] <r3v3rb> swaiba: ecommerce is a good shout
164: [13:54:52] * Mike123 quit (Ping timeout: 250 seconds)
165: [14:04:32] <r3v3rb> well it’s roll my own into the literalfield me thinks
166: [14:05:20] * AlphaCactus quit (Read error: Network is unreachable)
167: [14:05:47] * AlphaCactus has joined #silverstripe
168: [14:11:28] * jonners99 has joined #silverstripe
169: [14:11:50] * kinglozzer quit (Read error: Connection reset by peer)
170: [14:12:21] <jonners99> I am looking to use searchable_fields to filter by a relationship. The dropdown is showing every possible object, can I filter for the dropdown to only show items that will match at least 1 record?
171: [14:12:32] <jonners99> I am looking to use searchable_fields to filter by a relationship. The dropdown is showing every possible object, can I filter for the dropdown to only show items that will match at least 1 record?
172: [14:12:38] <swaiba> jonners99 we hear you
173: [14:12:46] <jonners99> I hit edit by mistake
174: [14:12:56] <swaiba> no eidt on IRC me think :)
175: [14:13:34] <jonners99> As I just discovered. Hitting up does recall the last message though
176: [14:13:36] <swaiba> in short you can edit the field anyway you like in scaffoldSearchFields
177: [14:14:05] <swaiba> I'd recomment using https://github.com/tractorcow/silverstripe-autocomplete
178: [14:14:42] <swaiba> but I know the issue well, big tables used to simple crash V2
179: [14:15:05] <swaiba> and now they result in just a plain number input - which mystifies users!
180: [14:15:07] <jonners99> I think there used to be a docs for scaffoldSearchFields that details more of the options, I can only really find the search context page now
181: [14:15:57] * kinglozzer has joined #silverstripe
182: [14:16:40] <swaiba> scaffoldSearchFields works just like getCMSFields : you have something scaffolded and you can then change that FeildList as required
183: [14:23:20] <jonners99> Perfect thanks... that was all the documentation I needed
184: [14:23:25] <jonners99> Working as hoped now
185: [14:24:56] <swaiba> excellent :0
186: [14:24:59] <swaiba> :)
187: [14:28:22] * darianno is now known as darianno|aw
188: [15:03:24] * swaiba quit (Remote host closed the connection)
189: [15:06:53] * kinglozzer quit ()
190: [15:09:43] * jonners99 quit ()
191: [15:40:03] * janneklouman-- quit (Ping timeout: 276 seconds)
192: [15:50:18] * shellbackpacific quit (Ping timeout: 250 seconds)
193: [16:20:54] * kerozene quit (Ping timeout: 244 seconds)
194: [16:30:07] * kerozene has joined #silverstripe
195: [16:32:02] * shellbackpacific has joined #silverstripe
196: [16:37:40] * shellbackpacific quit (Ping timeout: 264 seconds)
197: [16:38:09] * agent44 quit (Quit: zzz)
198: [16:46:07] <ss-helper> SilverStripe move default SiteTree CMS fields to new tab - http://stackoverflow.com/questions/38486038/silverstripe-move-default-sitetree-cms-fields-to-new-tab
199: [16:53:57] * shellbackpacific has joined #silverstripe
200: [16:58:32] * shellbackpacific quit (Ping timeout: 260 seconds)
201: [17:20:40] * shellbackpacific has joined #silverstripe
202: [17:26:56] * shellbackpacific quit (Ping timeout: 250 seconds)
203: [17:30:40] <ss-helper> Re: [silverstripe-dev] Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/3wPkzfstAQAJ
204: [17:31:30] * r3v3rb quit (Quit: r3v3rb)
205: [18:12:09] * xyphoid quit (Ping timeout: 276 seconds)
206: [18:13:36] * xyphoid has joined #silverstripe
207: [18:49:15] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
208: [19:09:13] * slievr quit (Quit: Leaving.)
209: [19:10:23] * Stomach has joined #silverstripe
210: [19:14:30] * Stomach quit (Ping timeout: 244 seconds)
211: [19:57:30] * UncleCheese has joined #silverstripe
212: [20:01:46] * gelignite has joined #silverstripe
213: [20:02:03] * Stomach has joined #silverstripe
214: [20:33:29] * DanaeNZ has joined #silverstripe
215: [20:42:51] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
216: [20:44:35] * UndefinedOffset quit (Quit: Leaving.)
217: [20:46:09] * Stomach quit (Quit: zzz)
218: [20:47:32] * UndefinedOffset has joined #silverstripe
219: [20:47:39] * adrexia has joined #silverstripe
220: [20:53:12] * Stomach has joined #silverstripe
221: [20:54:57] * UndefinedOffset quit (Quit: Leaving.)
222: [21:03:35] * micmania1 has joined #silverstripe
223: [21:06:47] * janneklouman-- has joined #silverstripe
224: [21:29:29] * terryapodaca has joined #silverstripe
225: [21:54:19] * Thales has joined #silverstripe
226: [21:54:19] <ss-helper> Thales: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
227: [21:54:43] * Thales is now known as Guest28036
228: [22:04:58] * Guest28036 quit (Ping timeout: 250 seconds)
229: [22:05:20] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
230: [22:09:55] * adrexia has joined #silverstripe
231: [22:12:30] * Stomach quit (Quit: zzz)
232: [22:14:31] * Stomach has joined #silverstripe
233: [22:44:33] * BrewNaked has joined #silverstripe
234: [22:52:23] * thales has joined #silverstripe
235: [22:52:38] * terryapodaca quit (Quit: Later fellas......I'm out.)
236: [22:52:47] * thales is now known as Guest50105
237: [23:00:22] <DanaeNZ> fuck
238: [23:00:46] <DanaeNZ> does config manifest save under one spot? so for subsites, the manifest cache is identical for subsites?
239: [23:00:53] <DanaeNZ> fuck
240: [23:08:00] <DanaeNZ> fuuuuuuck
241: [23:13:37] * Stomach quit (Quit: zzz)
242: [23:20:55] * isaac_ has joined #silverstripe
243: [23:20:56] <ss-helper> isaac_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
244: [23:21:07] <isaac_> im having trouble with many many extra fields
245: [23:21:37] <isaac_> the write() method is not working
246: [23:22:09] <isaac_> because DataObject::getChangedFields is filtering out the many many extra field
247: [23:29:49] <isaac_> http://stackoverflow.com/questions/38492468/many-many-extra-field-not-saving
248: [23:31:13] <ss-helper> Many Many Extra Field not saving - http://stackoverflow.com/questions/38492468/many-many-extra-field-not-saving
249: [23:42:09] <isaac_> nevermind... ManyManyList::add is what I was looking for. On that note, using ManyManyList::add to update an existing item is very counter intuitive
250: [23:45:23] * Stomach has joined #silverstripe
251: [23:49:06] * isaac_ quit (Quit: Page closed)
252: [23:55:16] * gigaquail has joined #silverstripe
253: [23:55:16] <ss-helper> gigaquail: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
254: [23:56:57] <gigaquail> hey guys, what's the likely apache cause of the index.php being added to the URL, i just migrated a site to a new server, i'm wondering if the .htaccess is being ignored? i have AllowOverride All, and mod rewrite is enabled
255: [23:58:42] <adrexia> deleting index.php, usually fixes that. It's a legacy file, so not needed in most environment
256: [23:58:48] <adrexia> s
257: [23:59:46] <gigaquail> yeah that's not it, think the htaccess is getting ignored

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