#silverstripe IRC Log

IRC log for 7 January 2016

All timestamps are in UTC.

1: [00:05:55] <BrewNaked> Initial Google-ing is looking vaguely similar to what I'm doing. Thanks!
2: [00:08:20] * MarkGuin_ quit (Ping timeout: 260 seconds)
3: [00:10:26] * micmania1 quit (Quit: micmania1)
4: [00:14:41] * scott1702 has joined #silverstripe
5: [00:39:00] * adrexia quit (Ping timeout: 256 seconds)
6: [00:49:48] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
7: [00:56:51] * micmania1 has joined #silverstripe
8: [01:04:20] * scott1702 quit (Quit: This computer has gone to sleep)
9: [01:09:50] * joelpittet quit (Remote host closed the connection)
10: [01:10:33] * scott1702 has joined #silverstripe
11: [01:21:19] * pinc_ has joined #silverstripe
12: [01:21:20] * pinc quit (Read error: Connection reset by peer)
13: [01:31:43] * BrewNaked quit (Remote host closed the connection)
14: [01:43:54] * MarkGuin_ has joined #silverstripe
15: [01:57:48] * MarkGuin_ quit (Ping timeout: 264 seconds)
16: [02:16:20] * hailwood quit (Remote host closed the connection)
17: [02:21:33] <ss-helper> Dropdown menu on silverstripe - http://stackoverflow.com/questions/34646249/dropdown-menu-on-silverstripe
18: [02:35:29] <spronk> holy fuck my dishdrawer is possessed
19: [02:37:40] <spronk> https://dl.dropboxusercontent.com/u/22222688/Dishwasher.m4a
20: [02:37:42] <spronk> what the actual fuck
21: [02:38:41] * scott1702 quit (Quit: This computer has gone to sleep)
22: [02:38:56] * scott1702 has joined #silverstripe
23: [02:43:25] <nontgor> tests running slow in Travis - simply break them into lots of parallel tests :) https://travis-ci.org/gordonbanderson/silverstripe-elastica/builds/100610041
24: [02:43:52] <nontgor> resulting in code coverage like this https://codecov.io/github/gordonbanderson/silverstripe-elastica?ref=8a0ae6942d7dc90d6dc2f6003a09355b83b1b197
25: [02:54:51] <Pyromanik> spronk, deffos morse code
26: [03:13:34] <helenclarko> spronk: lol, had that washing machine sound playing on loop in an open (hidden) tab for like half an hour. Was wondering what the hell my speakers were doing.
27: [03:19:30] * spronk quit (Quit: I may need a longer sleep timer...)
28: [03:20:51] * BrewNaked has joined #silverstripe
29: [03:25:20] * BrewNaked quit (Ping timeout: 255 seconds)
30: [03:25:33] <Pyromanik> lulz helenclarko
31: [03:26:33] <helenclarko> beep bleep bleep!
32: [03:26:46] <Pyromanik> wtb, cheap easy base64 encode
33: [03:26:50] <Pyromanik> for windows
34: [03:26:52] * spronk has joined #silverstripe
35: [03:26:57] <Pyromanik> cheap like free (beer)
36: [03:27:01] <Pyromanik> & dom
37: [03:27:08] * helenclarko quit (Quit: Ain't no lie, baby bye bye bye.)
38: [03:27:25] <spronk> loooool
39: [03:33:01] * MarkGuin_ has joined #silverstripe
40: [03:36:03] <Pyromanik> ciao
41: [03:36:07] * Pyromanik sleeps
42: [03:40:40] * Pyromanik quit (Ping timeout: 260 seconds)
43: [03:45:21] <nontgor> MarkGuin_: My tactic or running the test suite over 11 parallel jobs worked https://travis-ci.org/gordonbanderson/silverstripe-elastica/builds/100610041 result https://codecov.io/github/gordonbanderson/silverstripe-elastica?ref=8a0ae6942d7dc90d6dc2f6003a09355b83b1b197
44: [03:46:56] * MarkGuin_ quit (Ping timeout: 272 seconds)
45: [03:59:29] * Stomach quit (Quit: zzz)
46: [04:01:07] * Stomach has joined #silverstripe
47: [04:17:38] * micmania1 quit (Quit: micmania1)
48: [04:47:34] * LukeF has joined #silverstripe
49: [04:49:27] <LukeF> so!
50: [04:49:40] <LukeF> I have an error 503
51: [04:50:01] <LukeF> host tells me it has something to do with my .htaccess file
52: [04:52:08] <LukeF> i have tried commenting out bits, but im not au fait with the .htaccess file
53: [04:52:43] <LukeF> so having no success as yet... is anyone willing to take a brief look for me?
54: [04:52:44] <LukeF> http://pastie.org/10675264
55: [05:03:42] * spronk quit (Quit: I may need a longer sleep timer...)
56: [05:06:36] <ss-helper> Dropdown menu in SilverStripe - http://stackoverflow.com/questions/34646249/dropdown-menu-in-silverstripe
57: [05:08:22] * Pyromanik has joined #silverstripe
58: [05:16:26] <camfindlay> LukeF: seems ok (this is just direct out of the SS installer right?) - perhaps it is permission seeting on that file? is it readable?
59: [05:17:29] * krofek__ has joined #silverstripe
60: [05:17:47] <LukeF> yeah, i didnt do anthing to it that i recall... it was working fine for 6 months or more
61: [05:18:06] <LukeF> camfindlay: permissions are 644
62: [05:18:51] * spronk has joined #silverstripe
63: [05:19:25] <LukeF> camfindlay: just tried 777 to be sure and it didn't make any difference
64: [05:19:38] <camfindlay> recken they’ve perhaps updated apache or something at their end maybe, still should work. I’d also expect to see a 500 not a 503 if there was an issue inside the htaccess itself.
65: [05:19:53] <LukeF> ok
66: [05:19:55] <camfindlay> shared hosting?
67: [05:19:58] <LukeF> yeah
68: [05:20:42] <camfindlay> do you have the site running on a local dev envrionment?
69: [05:20:47] <LukeF> no
70: [05:21:08] * krofek_ quit (Ping timeout: 276 seconds)
71: [05:21:08] <LukeF> it was built and launched ages ago
72: [05:21:11] <camfindlay> try running locally so you can rule out any application related issues
73: [05:21:25] <camfindlay> version of SS?
74: [05:21:37] <camfindlay> im guessing 3.0 or 3.1?
75: [05:21:47] <LukeF> i think its 3.1
76: [05:21:51] <LukeF> i can check
77: [05:22:06] * MarkGuin_ has joined #silverstripe
78: [05:22:53] <camfindlay> LukeF I’ve got to run - look to get it running locally if you can (also try find out if shared hosting has updated Apache or PHP lately and to what versions.
79: [05:23:07] <LukeF> ok
80: [05:23:07] <camfindlay> Try relicate locally then at least you can go back to them armed ;)
81: [05:23:09] <LukeF> thanks
82: [05:23:18] * camfindlay quit (Quit: camfindlay)
83: [05:23:19] <LukeF> :)
84: [05:23:24] <LukeF> really appreciate the help
85: [05:28:36] * LukeF quit ()
86: [05:31:05] * scott1702 quit (Quit: This computer has gone to sleep)
87: [05:31:09] * joelpittet has joined #silverstripe
88: [05:35:16] * MarkGuin_ quit (Ping timeout: 250 seconds)
89: [05:59:12] * Pyromanik quit (Quit: Leaving)
90: [06:03:30] * spronk quit (Quit: I may need a longer sleep timer...)
91: [06:07:03] * Error404NotFound has joined #silverstripe
92: [06:44:02] * wmk has joined #silverstripe
93: [06:50:21] * spronk has joined #silverstripe
94: [06:51:16] * Stomach quit (Quit: zzz)
95: [06:58:41] * BrewNaked has joined #silverstripe
96: [07:03:11] * BrewNaked quit (Ping timeout: 260 seconds)
97: [07:06:01] * r_hector has joined #silverstripe
98: [07:08:35] * Mike123 has joined #silverstripe
99: [07:11:11] * MarkGuin_ has joined #silverstripe
100: [07:24:40] * MarkGuin_ quit (Ping timeout: 260 seconds)
101: [07:26:20] * Stomach has joined #silverstripe
102: [07:29:26] * Liquide quit ()
103: [07:30:27] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
104: [07:30:36] * spronk quit (Quit: I may need a longer sleep timer...)
105: [07:33:05] * r_hector quit (Remote host closed the connection)
106: [07:57:45] * joelpittet quit (Remote host closed the connection)
107: [08:03:51] * arnhoe has joined #silverstripe
108: [08:20:16] * MarkGuin_ has joined #silverstripe
109: [08:36:40] * Stomach quit (Quit: zzz)
110: [08:45:44] <elgabbu> morning guys have a routing question :)
111: [08:46:14] <elgabbu> Director: rules: 'outclick//$ID': 'TrackerController' 'download//$ID': 'TrackerController'
112: [08:46:44] <elgabbu> i setup this rule ... and when I hit /outclick/test ... i manage to get to the trackercontroller init function
113: [08:47:20] * BrewNaked has joined #silverstripe
114: [08:47:42] <elgabbu> what i can't figure out is how do i push the request /outclick and /download to their respective action functions inside the controller?
115: [08:51:38] * BrewNaked quit (Ping timeout: 246 seconds)
116: [08:51:54] * MarkGuin_ quit (Remote host closed the connection)
117: [08:52:35] * Eliseth has joined #silverstripe
118: [09:06:06] * kinglozzer has joined #silverstripe
119: [09:07:37] <elgabbu> gd morning kinglozzer
120: [09:07:43] <kinglozzer> hey elgabbu
121: [09:08:47] <elgabbu> you have a minute for a routing question :)
122: [09:09:16] <elgabbu> i setup this rule in yml .. Director: rules: 'outclick//$ID': 'TrackerController' 'download//$ID': 'TrackerController'
123: [09:09:30] <elgabbu> and when I hit /outclick/test ... i manage to get to the trackercontroller init function
124: [09:09:51] <elgabbu> what i can't figure out is how do i push the request /outclick and /download to their respective action functions inside the controller?
125: [09:10:02] <elgabbu> i figure i need to setup url handlers
126: [09:10:12] <elgabbu> but i can't seem to get the pattern right
127: [09:13:29] <elgabbu> doing a debug_request i shows that the $ID parameter is being used as the action .... no function is found ... so it throws 404
128: [09:19:36] * cloph_away is now known as cloph
129: [09:27:28] * harry_ quit (Ping timeout: 252 seconds)
130: [09:48:51] <elgabbu> any help kinglozzer?
131: [09:50:01] <wmk> elgabbu, how about two controllers for that and the init method handles all stuff?
132: [09:50:15] <wmk> btw: this functionality is built in piwik
133: [09:50:32] <wmk> ok, requires on javascript then
134: [09:51:44] <kinglozzer> hmm, not sure elgabbu
135: [09:52:51] <kinglozzer> As far as I know it'd have to be 'tracker/$Action//$ID': 'TrackerController' or something
136: [09:52:58] <kinglozzer> But that means an extra URL parameter
137: [09:53:07] <kinglozzer> I don't think we can route to specific actions
138: [09:54:03] <wmk> kinglozzer, ain't there a hidden route-to-action configuration?
139: [09:54:16] <kinglozzer> wmk: Not that I can find :(
140: [09:54:51] <wmk> maybe it was in 2.4...
141: [09:54:55] <elgabbu> hmmm i would have expected that the url handler pattern would be capable to route my request to the desired action :/
142: [09:55:29] <kinglozzer> elgabbu: Like wmk said, I think the only way you could do it is with two controllers
143: [09:56:18] <wmk> elgabbu, nope, $url_handler is for routing INSIDE the controller to the action
144: [09:56:30] <wmk> e.g. foo => action bar
145: [09:56:47] <elgabbu> yeah but i am getting to the controller
146: [09:56:56] <wmk> but that's all after the // in the route, so the controller doesn't really know if it's called via /outclick/ or /download/
147: [09:57:01] <elgabbu> the init function of trackerController gets called
148: [09:57:05] <wmk> of course
149: [09:57:16] <elgabbu> aaaa
150: [09:57:17] <elgabbu> ic ic
151: [10:01:47] <elgabbu> kinglozzer so what if I setup a route something like $Action/$ID : 'TrackerController'
152: [10:10:53] <wmk> elgabbu, e.g. /out/download/1233 or /out/click/123
153: [10:11:05] <wmk> so in Route: out => TrackerController
154: [10:11:15] <wmk> then two actions, download and click
155: [10:11:48] * MarkGuin_ has joined #silverstripe
156: [10:11:50] <wmk> if cou can live with one bit more in the url...
157: [10:11:52] <wmk> hi MarkGuin_
158: [10:12:20] <kinglozzer> elgabbu: You *can* do that, but it'll overwrite everything else
159: [10:12:25] <kinglozzer> Do you have the CMS module installed?
160: [10:18:36] <kinglozzer> elgabbu: What I did for framework-only is this: https://gist.github.com/kinglozzer/5122492b3d1483946015. That let me have urls like http://mysite.com/article-url-segment without an action before the URL segment
161: [10:19:20] <kinglozzer> Everything then goes through index(), which works out if it's an article or another action (e.g. "archive" or something)
162: [10:19:45] <kinglozzer> I don't know if that would work if CMS is installed though... it might override the CMS routing and break it
163: [10:21:50] * otterpocket has joined #silverstripe
164: [10:23:28] <otterpocket> is there a method for creating pages?
165: [10:24:42] <kinglozzer> otterpocket: $page = new Page(); $page->write(); ?
166: [10:24:48] <kinglozzer> Not sure what you mean
167: [10:25:09] * MarkGuin_ quit (Ping timeout: 245 seconds)
168: [10:26:25] <wmk> click on "add new" ...?
169: [10:27:34] <otterpocket> kinglozzer, Yea, just done that and it works, I thought there might of been more too it like setting url, but I assume the constructor is just handling all of that
170: [10:27:43] <otterpocket> I asked before I tried :D
171: [10:36:14] * BrewNaked has joined #silverstripe
172: [10:37:52] * MarkGuin_ has joined #silverstripe
173: [10:38:52] * swaiba has joined #silverstripe
174: [10:39:09] <wmk> otterpocket, $page = Page::create();, $page->Title = 'my cool new page'; $page->URLSegment = 'seo-optimised-urlsegment'; $page->write(); $page->doPublish();
175: [10:40:26] * BrewNaked quit (Ping timeout: 240 seconds)
176: [10:40:26] <elgabbu> kinglozzer thanks for now i just handled everything in the init function
177: [10:42:51] <nontgor> kinglozzer: Merging of test code coverage on codecov definitely works, see https://codecov.io/github/gordonbanderson/silverstripe-elastica which is a merging of 11 different test runs
178: [10:43:15] * swaiba quit (Remote host closed the connection)
179: [10:44:15] <kozmikreis> MarkGuin_: that odd behaviour I spotted yesterday, it seems to be SS itself causing it, I only noticed it due to SS thinking that the S3-hosted images are hotlinked and giving the resizing options that are otherwise not displayed.
180: [10:44:24] <kozmikreis> Just an FYI in case you were curious :-)
181: [10:47:06] <MarkGuin_> Interesting. I think there's an issue on either the s3 driver or the main cloudassets repo about that. I know I've heard of someone having that problem before.
182: [10:47:36] <MarkGuin_> https://github.com/markguinn/silverstripe-cloudassets/issues/23
183: [10:49:03] <MarkGuin_> I'll be working a bit more on that module in the next few months as we've got a project that will be using it. That might be one of the issues I have to address, but if you've got any ideas or a PR that would be great.
184: [10:49:16] <kozmikreis> Ah right. My colleague has spotted that the issue occurs when the dialogue inserts the "embed" class during changing the sizes around. If he removes the "embed" class manually with the raw HTML editing view it fixes it and respects the manual sizing.
185: [10:50:05] <kozmikreis> No PR yet, still trying to determine the actual cause and what use cases produce the symptoms.
186: [10:50:32] <otterpocket> what is the method for fully deleting a page?
187: [10:54:04] <wmk> otterpocket, 3.1. or 3.2 ?
188: [10:55:15] <otterpocket> 3.2
189: [11:14:41] <cloph> fully delete = also remove from history so it cannot be restored anymore? If so → need to manually work in the database/php, other than that unpublish (makes in invisible to users browsing to your site) and then also delete from draft (clears up your view in the cms, but still can be seen when you set the filter to also show deleted pages)
190: [11:52:40] <Eliseth> I have a PDF generator that works when environment is set to dev/test but on live it hangs, any ideas?
191: [12:06:40] <wmk> Eliseth, error log?
192: [12:06:55] <wmk> combined css ?
193: [12:07:52] <Eliseth> error log not showing anything
194: [12:16:52] * harry2 has joined #silverstripe
195: [12:16:53] <ss-helper> harry2: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
196: [12:17:21] <harry2> stange behaviour here, in my Page.ss: <% include Slider %>
197: [12:17:33] <harry2> inside my Includes folder I have Slider.ss
198: [12:17:57] <harry2> Slider.ss is an empty file - i deleted the contents
199: [12:18:09] <harry2> i still see the content previous that was in the file
200: [12:18:16] <harry2> i have flushed and flushed
201: [12:18:28] <harry2> how do i manually delete/flush my cache
202: [12:18:34] <harry2> immensely frustating
203: [12:25:10] * BrewNaked has joined #silverstripe
204: [12:28:27] <harry2> anyone know where I can find my site cache on my server
205: [12:29:26] * BrewNaked quit (Ping timeout: 240 seconds)
206: [12:29:52] <ss23> harry2: /var/tmp, /tmp, or inside your webroot in the silverstripe-cache folder
207: [12:30:22] <harry2> @aa23 - I'm running locally on a windows box
208: [12:30:36] <ss23> Hmm
209: [12:30:47] <harry2> something weird is going on
210: [12:31:00] <ss23> Same rules should apply: IF there is a folder in your webroot called silverstripe-cache, it will use that, else it will use the default directory. you can probably find it somewhere in phpinfo()
211: [12:31:02] <harry2> my Includes xxxx.ss shows old data
212: [12:31:10] <ss23> Did you flush?
213: [12:31:28] <harry2> yes re-built and flushed
214: [12:31:47] <ss23> annoying... migth mean you want to check obvious things
215: [12:31:52] <ss23> e.g. ar eyou sure you're on the right server and webroot
216: [12:32:01] <ss23> so edit the main template and see if those edits work
217: [12:32:14] <ss23> if they do, and you're sure you're in the right place etc, might be time to start manually hacking compiled templates, which is annoying
218: [12:32:22] <ss23> basically you find where they're compiled to and var_dump stuff till you figure out what's wrong
219: [12:32:26] <ss23> :P
220: [12:33:28] <harry2> i'm in the right place becuase if i remove this line: <% include Slider %>
221: [12:33:31] <harry2> the content disappears
222: [12:33:57] <harry2> but if i go into the file itself and edit it the changes aren't seen
223: [12:34:24] <ss23> Is there more than one Slider.ss in your entire project?
224: [12:34:28] <ss23> like, in a module or something weird?
225: [12:34:45] <harry2> ok hang on I see the issue
226: [12:34:57] <harry2> Slider.ss is not in the includes folder
227: [12:35:16] <harry2> it's at the same level as Page.ss in 'templates'
228: [12:35:17] <ss23> :D
229: [12:35:21] <harry2> so how is it being included?
230: [12:35:38] <ss23> Another one hiding, or weird stuff SilverStripe is doing to "help" maybe, I don't know off the top of my head
231: [12:36:29] <harry2> when i move the file to the includes folder it doesn't work
232: [12:36:39] <harry2> the include is in Page.ss
233: [12:36:45] <harry2> do i need to specify the path?
234: [12:37:01] <ss23> Shouldn't need to...
235: [12:38:02] <harry2> hmm weird because two lines above I include Navigation in the same way
236: [12:38:12] <harry2> and Navigation.ss in in the includes folder and works
237: [12:38:17] <harry2> time for another flush
238: [12:39:16] * r3v3rb has joined #silverstripe
239: [12:39:22] <r3v3rb> \o/
240: [12:39:27] <Eliseth> o/
241: [12:39:28] <r3v3rb> |
242: [12:39:44] <r3v3rb> \o/
243: [12:39:46] <r3v3rb> |
244: [12:40:07] <wmk> / \
245: [12:40:11] <r3v3rb> I’m free falling! into Uploadfield Hell!
246: [12:40:21] <r3v3rb> thanks wmk ;)
247: [12:40:31] <r3v3rb> Maybe later I’ll find my legs
248: [12:40:42] <wmk> r3v3rb, better some http://www.fucking-hell.de/en/bier/ ?
249: [12:41:25] <r3v3rb> Best pronounce that one with my heritage german accent ;) eh?
250: [12:41:42] <wmk> of course
251: [12:42:42] <r3v3rb> and do they deliver?
252: [12:42:52] <wmk> dunno, never tried it yet
253: [12:42:55] <r3v3rb> :P
254: [12:43:11] <wmk> i just know the town it's named after (but not brewed there)
255: [12:45:05] <harry2> @ss23 - that fixed it
256: [12:45:27] <ss23> Sweet :D
257: [12:48:40] <r3v3rb> so why do my files show up as ‘Not FOund’ when I hit open in the UploadField diap=log box in a frontend form?
258: [13:12:48] <wmk> again filtering on a relation...
259: [13:13:11] <wmk> i have a has_many relation and want to filter all DataObjects that have at least one item in the has_many...?
260: [13:13:17] <wmk> e.g. Foo has_many Member
261: [13:13:26] <wmk> so i want all Foos with at least one Member assigned
262: [13:15:16] <wmk> ->leftJoin('Member') ...? or is there a shortcut?
263: [13:16:35] * kinglozzer quit (Read error: Connection reset by peer)
264: [13:17:19] * kinglozzer has joined #silverstripe
265: [13:17:29] <wmk> kinglozzer, ?
266: [13:17:33] <wmk> ^^
267: [13:21:49] * UndefinedOffset has joined #silverstripe
268: [13:42:32] <nontgor> wmk: Joins are how I've usually done filtering
269: [13:51:57] <kinglozzer> wmk: Sorry, was out for lunch. Not sure, you can't use relation() for has_one :( maybe $ids = Member::get()->column('FooID'); $foos = Foo::get()->filter('ID', $ids); ?
270: [13:52:23] <wmk> kinglozzer, yup, found something like that
271: [13:53:01] <wmk> $fooIDs = Member::get()->Column('FooID');
272: [13:53:29] <wmk> Foo::get()->byIDs($fooIDs)
273: [13:55:06] <kinglozzer> It sucks that it's so much easier for has_many (if it was the other way around) and many_many, You could just do $foos = Member::get()->relation('Foos');
274: [13:55:52] * MarkGuin_ quit (Remote host closed the connection)
275: [13:55:55] <wmk> relation is on datalist?
276: [13:56:13] <kinglozzer> Yeah
277: [13:58:03] <wmk> well, Foo has many Member
278: [13:58:17] <wmk> so Foo::get()->relation('Member')... returns a...?
279: [13:58:44] <wmk> datalist of members or a datalist of foos?
280: [13:59:19] <kinglozzer> wmk: HasManyList of Members
281: [13:59:33] <wmk> ok
282: [13:59:56] <kinglozzer> So if you want all members that have a FooID set, you can do Foo::get()->relation('Members');
283: [14:00:20] <kinglozzer> I think it does 2 db queries though
284: [14:00:45] <wmk> yup. maybe it's intelligent and makes a subselect, dunno
285: [14:00:56] <kinglozzer> So probably easier to do Member::get()->exclude('FooID', null) or something instead
286: [14:14:01] * BrewNaked has joined #silverstripe
287: [14:16:09] <wmk> well, i don't want the Members but the Foos with Members related
288: [14:18:27] * BrewNaked quit (Ping timeout: 265 seconds)
289: [14:18:58] <kinglozzer> wmk: Yeah, it's a shame you can't do Member::get()->relation('Foo')
290: [14:19:18] <kinglozzer> Perhaps that could be added as a new feature :)
291: [14:20:13] <r3v3rb> kinglozzer: ever come across ‘Not Found’ on an image Uploadfield from the frontend?
292: [14:20:41] <kinglozzer> r3v3rb: Nope, sorry... but then I've never used UploadField on the frontend :P
293: [14:20:53] * TRB143 quit (Quit: No Ping reply in 180 seconds.)
294: [14:21:09] <r3v3rb> ok kinglozzer ^^ not uploading passport documents for norwich security ;)
295: [14:21:34] <kinglozzer> r3v3rb: Heh, nope ;)
296: [14:21:45] <r3v3rb> and what member login form are you using?
297: [14:23:10] * TRB143 has joined #silverstripe
298: [14:26:24] * muskie9 has joined #silverstripe
299: [14:42:28] <r3v3rb> ffs, abide from foundation works on one form, but not another on the same f’ng page! grrrrr
300: [15:00:41] <r3v3rb> right all forms working bar the image upload :(
301: [15:00:47] <r3v3rb> Zauberfisch: you about
302: [15:14:29] * MarkGuin_ has joined #silverstripe
303: [15:51:55] * xyphoid quit (Ping timeout: 250 seconds)
304: [15:52:02] * xyphoid has joined #silverstripe
305: [15:53:21] <kinglozzer> r3v3rb: the best one, our one
306: [15:53:22] <kinglozzer> :D
307: [15:53:44] <r3v3rb> bah, thought it might be the one from the conference which I forgot the name of!
308: [15:53:58] <kinglozzer> ayxr's one? I think that's how you spell his username :P
309: [15:54:30] <r3v3rb> http://addons.silverstripe.org/add-ons/axyr/silverstripe-adminlogin
310: [15:54:34] <r3v3rb> looks similar
311: [15:54:49] <r3v3rb> wasn’t there one that had all styling options too or am i dreaming?
312: [15:55:19] <kinglozzer> uuhh pass, can't remember
313: [15:55:32] * wmk quit (Ping timeout: 276 seconds)
314: [15:57:00] <r3v3rb> me either, brain farting at the moment
315: [15:57:21] <r3v3rb> time to stop and run unison instead :]
316: [15:57:50] <r3v3rb> then ponder what time the rPI2 is turning up tomorrow …
317: [16:00:56] <r3v3rb> eek, part two of order from gearbest (china) is in transit (flying to belgium) as we speak for delivery next week :D
318: [16:01:31] * DimiStripe quit (Quit: DimiStripe)
319: [16:02:55] * BrewNaked has joined #silverstripe
320: [16:03:42] <r3v3rb> heh, the pi console is looking good for next week - two x bt controllers = £9 ! lol… http://www.gearbest.com/game-controllers/pp_279627.html
321: [16:03:56] * joelpittet has joined #silverstripe
322: [16:04:01] <r3v3rb> pi and case £35 from UK delivery tomorrow
323: [16:07:16] * BrewNaked quit (Ping timeout: 256 seconds)
324: [16:07:52] * Mike123 quit (Ping timeout: 252 seconds)
325: [16:09:05] * Eliseth quit (Ping timeout: 260 seconds)
326: [16:12:18] * Eliseth has joined #silverstripe
327: [16:12:23] * Eliseth quit (Client Quit)
328: [16:29:20] * arnhoe quit ()
329: [16:33:58] * cupcake has joined #silverstripe
330: [16:34:37] <cupcake> heyo 0/
331: [16:34:43] <cupcake> happy new year to all!
332: [16:37:18] <cupcake> can anyone suggest a good image gallery rather than the gridfield?
333: [16:39:07] <cloph> just use colorbox or similar. or describe in more detail what your image gallery should do....
334: [17:00:53] * BrewNaked has joined #silverstripe
335: [17:04:58] * kinglozzer quit ()
336: [17:19:54] * harry2 quit (Ping timeout: 252 seconds)
337: [17:20:53] * r3verb has joined #silverstripe
338: [17:20:53] <ss-helper> r3verb: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
339: [17:21:42] <r3verb> evening all
340: [17:22:10] <r3verb> anyone home?
341: [17:22:18] <muskie9> o/
342: [17:23:17] <r3verb> hi muskie9
343: [17:23:40] <r3verb> any experience with UploadField on a frontend?
344: [17:23:58] <r3verb> being submitted with ajax too in a foundadtion 5 site ;)
345: [17:23:58] <muskie9> lol, yes, I ended up using FileField
346: [17:24:15] <r3verb> I keep getting 'Not Found' when selecting the file
347: [17:24:18] <muskie9> UploadField gets all fuckocked on the frontend
348: [17:24:19] * jcwacky has joined #silverstripe
349: [17:24:43] <r3verb> okay i'll switch to FileField - any caveats?
350: [17:25:23] <muskie9> not that I found really... I did jQuery validation and some js for a preview image of the selected file, but otherwise that seemed to work better than UploadField
351: [17:26:00] <muskie9> r3verb are you r3v3rb ?
352: [17:27:24] <r3verb> i am :D
353: [17:27:34] <muskie9> I thought so ;P
354: [17:27:38] <r3verb> but left myself connected at home, out on laptop at the moment
355: [17:28:06] <muskie9> saw your question earlier but was tied up in a project... wasn't sure if you were still around
356: [17:29:04] <r3verb> haha, had to cook dinner for kids and now out working/watching yougest at gymnastics
357: [17:29:12] <r3verb> youngest*
358: [17:29:25] <muskie9> remote working ftw!
359: [17:29:32] <r3verb> wierdly filefield produces no $_Files on submission
360: [17:29:53] <jcwacky> Struggling to stop a NumericField from allowing ‘0’ as a valid entry. Any suggestions?
361: [17:29:56] <r3verb> muskie9 i could have logged in all vpn'd but lazy so just grabbed surface
362: [17:30:28] <muskie9> me and vpn's don't get along lol
363: [17:31:13] <r3verb> i set mine up in an afternoon, runs on server that also runs unison for file syncronisation across three devices - works really well
364: [17:31:45] <muskie9> nice!
365: [17:31:56] <muskie9> jcwacky in the cms or frontend?
366: [17:32:07] <jcwacky> Sorry, CMS.
367: [17:32:37] <muskie9> jcwacky maybe the validate() method to check if $this->YourNumericField === 0 then return validation error
368: [17:33:29] <muskie9> r3verb I'll double check my code for the FileField... unless I went back to the UploadField... thought I kept FileField
369: [17:35:24] <jcwacky> In a custom NumericField? No way to do it without creating a custom field type?
370: [17:36:15] <r3verb> fixed it
371: [17:36:52] <r3verb> muskie9, it was the jquery ajax post - it need the file fields appended to the formdata
372: [17:36:57] <muskie9> jcwacky do it on the object that has the NumericField... https://github.com/dynamic/foxystripe/blob/1.1/code/pages/ProductPage.php#L289
373: [17:37:06] <muskie9> ah
374: [17:37:13] <r3verb> all f'ing day for a jquery ajax issue! instead of real work
375: [17:37:32] <muskie9> those are the worst r3verb
376: [17:37:36] <r3verb> still only need to save the uploaded file now :D
377: [17:37:40] <r3verb> and finished
378: [17:37:47] <jcwacky> muskie9: Ah yes, cheers!
379: [17:38:33] <muskie9> jcwacky I've noticed some weirdness in 3.2.x with validate() though, where the field passes my checks and it still throws a validation error... so hopefully it works for you
380: [17:41:15] * DimiStripe has joined #silverstripe
381: [17:44:02] * joelpittet quit (Remote host closed the connection)
382: [17:45:27] * MarkGuin_ quit (Remote host closed the connection)
383: [17:50:16] * muskie9 is now known as muskie9_afk
384: [17:57:37] * Eliseth has joined #silverstripe
385: [17:57:43] * Eliseth quit (Client Quit)
386: [18:04:38] * r3verb quit (Ping timeout: 246 seconds)
387: [18:04:51] * joelpittet has joined #silverstripe
388: [18:29:46] * UndefinedOffset quit (Quit: Leaving.)
389: [18:30:12] * UndefinedOffset has joined #silverstripe
390: [18:31:56] * UndefinedOffset1 has joined #silverstripe
391: [18:31:56] * UndefinedOffset quit (Disconnected by services)
392: [18:32:06] * UndefinedOffset1 is now known as UndefinedOffset
393: [18:33:11] * arnhoe has joined #silverstripe
394: [18:33:34] * 7GHABYKV2 has joined #silverstripe
395: [18:35:32] * Stomach has joined #silverstripe
396: [18:36:00] * ss-helper quit (Ping timeout: 245 seconds)
397: [18:38:41] * r3verb has joined #silverstripe
398: [18:39:59] * arnhoe quit (Ping timeout: 276 seconds)
399: [18:43:28] * ss-helper has joined #silverstripe
400: [18:51:00] * muskie9_afk quit (Quit: My Mac has gone to sleep. ZZZzzz…)
401: [18:55:51] * Stomach quit (Quit: zzz)
402: [19:08:56] * 7GHABYKV2 quit (Ping timeout: 265 seconds)
403: [19:09:58] <r3verb> hmm, okay whats the best way to load a file from a frontend field into file field (has_one) attached to the saved form?
404: [19:13:08] * ss-helper quit (Ping timeout: 256 seconds)
405: [19:18:52] * ss-helper has joined #silverstripe
406: [19:20:03] * r3verb quit (Ping timeout: 260 seconds)
407: [19:20:11] * helenclarko has joined #silverstripe
408: [19:23:18] * muskie9 has joined #silverstripe
409: [19:26:56] * gelignite has joined #silverstripe
410: [19:30:09] * DanaeNZ_ has joined #silverstripe
411: [19:31:01] * pinc_ quit ()
412: [19:33:16] * r3verb has joined #silverstripe
413: [19:33:31] * ajmitch_ has joined #silverstripe
414: [19:35:29] * darjusIT has joined #silverstripe
415: [19:36:30] * cloph_away has joined #silverstripe
416: [19:37:12] * helenclarko quit (Read error: Connection reset by peer)
417: [19:38:31] * cloph quit (*.net *.split)
418: [19:38:32] * DanaeNZ quit (*.net *.split)
419: [19:38:34] * ajmitch quit (*.net *.split)
420: [19:44:45] * spronk has joined #silverstripe
421: [19:46:34] <r3verb> is there a built in way to load a $_FILES upload into a $has_one from a front end form being submitted via ajax
422: [19:53:13] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
423: [19:55:27] <r3verb> found it! :D
424: [20:01:52] * r3verb quit (Ping timeout: 256 seconds)
425: [20:05:33] * micmania1 has joined #silverstripe
426: [20:05:59] * arnhoe_ has joined #silverstripe
427: [20:09:13] * r3verb has joined #silverstripe
428: [20:13:12] * arnhoe_ quit (Ping timeout: 250 seconds)
429: [20:14:02] <spronk> ugh
430: [20:17:18] * arnhoe has joined #silverstripe
431: [20:18:05] * helenclarko has joined #silverstripe
432: [20:18:27] <helenclarko> Morning!
433: [20:18:40] * harry_ has joined #silverstripe
434: [20:20:50] * scott1702 has joined #silverstripe
435: [20:21:06] * muskie9 has joined #silverstripe
436: [20:21:42] * arnhoe quit (Ping timeout: 256 seconds)
437: [20:21:52] * arnhoe has joined #silverstripe
438: [20:23:03] <harry_> I have a navigation menu which has a class="active" to highlight the current page
439: [20:23:32] <harry_> what is the best way to handle this, an if statement on each menu item seems a bit like overkill?
440: [20:24:14] * arnhoe_ has joined #silverstripe
441: [20:26:14] * arnhoe__ has joined #silverstripe
442: [20:26:48] * arnhoe___ has joined #silverstripe
443: [20:26:49] <ss-helper> arnhoe___: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
444: [20:27:30] * arnhoe quit (Ping timeout: 250 seconds)
445: [20:27:35] * arnhoe___ quit (Remote host closed the connection)
446: [20:29:32] * arnhoe_ quit (Ping timeout: 246 seconds)
447: [20:30:35] * arnhoe__ quit (Ping timeout: 246 seconds)
448: [20:32:56] <micmania1> harry_: https://docs.silverstripe.org/en/2.4/reference/built-in-page-controls/#links-and-classes that might help
449: [20:38:10] * arnhoe has joined #silverstripe
450: [20:40:00] * arnhoe_ has joined #silverstripe
451: [20:40:01] * arnhoe quit (Read error: Connection reset by peer)
452: [20:42:10] * arnhoe has joined #silverstripe
453: [20:44:13] * arnhoe__ has joined #silverstripe
454: [20:44:14] * arnhoe quit (Read error: Connection reset by peer)
455: [20:44:15] * arnhoe_ quit (Ping timeout: 240 seconds)
456: [20:44:20] <harry_> @micmanial thanks
457: [20:50:35] * arnhoe__ quit (Ping timeout: 240 seconds)
458: [20:56:57] * micmania1 quit (Read error: No route to host)
459: [20:57:02] * micmania2 has joined #silverstripe
460: [21:01:54] * darjusIT quit (Quit: Leaving)
461: [21:02:42] <spronk> hmm
462: [21:14:46] * kozmikreis quit (Ping timeout: 252 seconds)
463: [21:18:02] <Zauberfisch> r3v3rb: hey
464: [21:18:04] <Zauberfisch> r3v3rb: now I am
465: [21:25:15] * r3verb quit (Ping timeout: 260 seconds)
466: [21:25:38] * r3verb has joined #silverstripe
467: [21:30:38] * antmas has joined #silverstripe
468: [21:30:48] <antmas> gerd mergning erl o/
469: [21:34:10] * UndefinedOffset quit (Quit: Leaving.)
470: [21:36:27] * antmas quit (Quit: Page closed)
471: [21:37:01] * scott1702 quit (Quit: This computer has gone to sleep)
472: [21:37:24] * scott1702 has joined #silverstripe
473: [21:40:20] <harry_> how do i create a top level menu item that itself is not a Page, but simply a top-level holder for related Pages?
474: [21:41:14] * r3verb quit ()
475: [21:41:24] <spronk> call it a page anyway
476: [21:41:53] * spronk is srs
477: [21:43:07] <harry_> it will create a Page though won't it
478: [21:43:20] <harry_> i don't want or need a Page for this holder
479: [21:43:36] * helenclarko quit (Read error: Connection reset by peer)
480: [21:43:51] <spronk> harry_ the easiest way to do this is with a page
481: [21:43:58] <spronk> even if you don't think you want a page right now
482: [21:44:00] <spronk> you probably do want one
483: [21:44:24] <spronk> even if the only purpose of said page is to list its subordinates
484: [21:44:59] <harry_> ok I see a way around this
485: [21:45:07] <harry_> thanks
486: [21:45:47] <micmania2> harry_: I’d use a page too. clear/simple > clever/complicated
487: [21:46:27] <spronk> also, it doesn't really make a lot of sense from an information architecture perspective to skip a level
488: [21:46:46] * micmania2 is now known as micmania1
489: [21:48:45] <harry_> yeah... i can see it's the way to go
490: [21:49:09] <harry_> and i just need to make the most generic page in the sub-category the parent
491: [21:49:11] <harry_> job done
492: [21:50:17] * krofek__ quit (*.net *.split)
493: [21:51:24] * dollardad has joined #silverstripe
494: [21:51:31] * krofek__ has joined #silverstripe
495: [21:53:01] <dollardad> Is there a way to call Page.ss from a template itself. I currently have a module that is displaying an include ss file but not rendering the page.ss
496: [21:55:30] <muskie9> dollardad is the module using ->renderWith() ?
497: [21:55:34] <micmania1> dollardad: add a method to your controller and you $this->renderWith(‘Page.ss’)
498: [21:55:52] <muskie9> micmania1 do you need the .ss in there?
499: [21:56:03] <micmania1> maybe not - I forget :)
500: [21:56:16] <muskie9> I think you can just do 'Page'
501: [21:56:31] <muskie9> or array('YourTemplate','Page')
502: [21:56:55] <dollardad> the module (addon) basic-calendar has return $this->customise($pageData)
503: [21:56:55] <dollardad> ->renderWith('CalendarEntryDetails');
504: [21:57:34] <dollardad> I don’t want to hack the module so I need a way to add “Page” at some other point
505: [21:59:02] <muskie9> dollardad you could raise an issue ticket for the module and provide a PR if you find a fix... that's odd that they would render with an include and leave out the Page template
506: [22:00:35] <dollardad> As I understand it would use Page.ss by default. The problem is the fact I am using the routes.yml
507: [22:01:22] <muskie9> ah
508: [22:01:29] <r3v3rb> Zauberfisch: haha, I fixed it all eventually - switched to FileField and some formData shizzle to get ajax frontend upload forms working
509: [22:01:49] <r3v3rb> Wanted help from the UploadField master though earlier in my first attempts ;)
510: [22:02:27] <r3v3rb> night all btw...
511: [22:02:33] <Zauberfisch> good night
512: [22:02:46] <r3v3rb> time for sweet dreams about my RasPi 2 turning up tomorrow :D
513: [22:06:45] * r3v3rb quit (Quit: r3v3rb)
514: [22:09:29] * helenclarko has joined #silverstripe
515: [22:10:17] <helenclarko> ANTMAS: o/
516: [22:10:33] <helenclarko> nevermind, he's gone
517: [22:24:25] * spronk swaps headphones
518: [22:27:13] * harry_ quit (Quit: Page closed)
519: [22:42:57] * scott1702 quit (Quit: This computer has gone to sleep)
520: [22:48:48] * scott1702 has joined #silverstripe
521: [23:03:23] <spronk> neat
522: [23:03:32] <spronk> free 'upgrade' to my dishdrawer
523: [23:18:25] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
524: [23:20:15] * scott1702 quit (Quit: This computer has gone to sleep)
525: [23:21:09] * scott1702 has joined #silverstripe
526: [23:28:58] <micmania1> MOAR SPEED https://github.com/silverstripe/silverstripe-framework/pull/4748
527: [23:31:07] <spronk> :|
528: [23:31:09] <spronk> holy crap
529: [23:31:43] <spronk> oh
530: [23:31:47] <spronk> not 2-0.3
531: [23:31:49] <spronk> :(
532: [23:31:54] <spronk> still, worthwhile
533: [23:32:34] <micmania1> spronk: nah, I didn’t really have time to performance test then. It was just times form siege but they were consistent :(
534: [23:33:08] <micmania1> Its ~10% on a base install and ~20% on larger projects. Basically, the more you use the config system, the greater the performance boost.
535: [23:33:23] <micmania1> Unless you Config:update(). Then you only have yourself to blame :p
536: [23:36:45] <micmania1> woo tests pass :D
537: [23:36:51] <spronk> mm
538: [23:40:42] * joelpittet quit (Remote host closed the connection)
539: [23:59:07] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)

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