#silverstripe IRC Log

IRC log for 11 March 2015

All timestamps are in UTC.

1: [00:02:27] <mahfuz> UncleCheese: I flushed once again now but it looks like the same
2: [00:07:21] <mahfuz> UncleCheese: I am using Bootstrap through this - //maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css and //maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js
3: [00:07:44] <Ryan-Toast> y’all need bower
4: [00:15:19] * spronk2 quit (Quit: I may need a longer sleep timer...)
5: [00:22:32] * Sticks has joined #silverstripe
6: [00:23:01] <UncleCheese> mahfuz are you sure bootstrap is being included twice?
7: [00:24:51] <mahfuz> I am using bootstrap using the above CDNs and now I wanted to test your bootstrap-forms module so used this lines in my site config.yml file BootstrapForm: bootstrap_included: true jquery_included: true
8: [00:39:55] * ghostcheese has joined #silverstripe
9: [00:54:27] <Hailwood> Hi guys, So in a template is there any way to tell if a method is returning literal FALSE compared to simply not existing?
10: [01:05:16] * ghostcheese quit (Ping timeout: 246 seconds)
11: [01:05:32] * jedateach has joined #silverstripe
12: [01:07:41] <jedateach> has anyone tried importing/exporting with a PHP library other than what is baked into SS?
13: [01:07:50] <jedateach> CSV
14: [01:12:53] * test___ has joined #silverstripe
15: [01:13:47] <veb> ghostnote is epic
16: [01:13:51] <veb> i'm in love
17: [01:14:04] <veb> http://www.ghostnoteapp.com/
18: [01:16:33] <jedateach> veb: nice
19: [01:17:04] <veb> blackwhite_'s wee baby
20: [01:17:08] <veb> he's not here atm
21: [01:17:10] * test___ quit (Ping timeout: 246 seconds)
22: [01:17:37] <jedateach> veb: how does it handle query strings etc in urls?
23: [01:17:55] <veb> did you see the video?
24: [01:19:24] <Hailwood> Is there no way to tell if either the variable is actually defined on a page :/ I need to do something if the method/dbfield is defined and returns true, or if it's not defined, and do something else if it's defined and returns false.
25: [01:19:37] <jedateach> veb: yeah, but wasn’t sure if it has the same note on mypage.com/abc?query=x as it does on mypage.com/abc
26: [01:19:45] * cheeseplease has joined #silverstripe
27: [01:23:03] * cheeseplease quit (Client Quit)
28: [01:25:56] * jedateach quit (Quit: jedateach)
29: [01:26:29] * muskie9_afk is now known as muskie9
30: [01:41:10] * zlinux has joined #silverstripe
31: [01:43:57] * muskie9 is now known as muskie9_afk
32: [01:45:51] <mahfuz> anyone here used silverstripe-autocomplete module or anything similar?
33: [01:50:22] * Hailwood quit (Ping timeout: 272 seconds)
34: [01:50:44] <Ryan-Toast> Looking for an intermediate if anyone knwows someone: http://www.seek.co.nz/Job/28288948
35: [01:53:56] * jedateach has joined #silverstripe
36: [01:54:05] <Stomach> mahfuz - yeah I have'
37: [02:04:40] <mahfuz> Stomach: Thanks for responding. How do I create a field? AutoCompleteField::create("Suburb","Suburb Name","Classnametosearh", "Fieldname")
38: [02:05:41] <mahfuz> Ryan-Toast: Will you consider me?
39: [02:05:51] <Ryan-Toast> mahfuz: link to portfolio?
40: [02:07:50] <mahfuz> Ryan-Toast: http://mahfuz.co.nz/#portfolio
41: [02:08:00] <mahfuz> I haven't updated it for a while
42: [02:08:28] <mahfuz> My latest work using SilverStripe is pixipic.com
43: [02:08:36] <Ryan-Toast> I’m always confused when people put key skills as a percentage.
44: [02:08:39] <Ryan-Toast> WHAT DOES IT MEAN?!
45: [02:09:43] <webpal> i just list them with coma
46: [02:10:01] <mahfuz> Here is my linkedin profile: https://nz.linkedin.com/in/mahfuzprofile
47: [02:10:24] <webpal> i mean you are doing 2 things with a cv, you are either making a tag cloud for a search engine to pick up, or you are making a skim-readable tag cloud for someone having to go through 50 cvs on their desk
48: [02:10:32] <webpal> in neither case do you need exotic decoration or percentages
49: [02:10:37] <Ryan-Toast> mahfuz, do you have any sites that aren’t WP?
50: [02:11:06] <mahfuz> pixipic.com bbtdigital.com
51: [02:11:46] <mahfuz> propertybillboard.co.nz
52: [02:12:40] <Ryan-Toast> Can’t hurt to chuck your CV through on the seek ad.
53: [02:14:26] * travis-ci has joined #silverstripe
54: [02:14:27] <travis-ci> silverstripe/silverstripe-framework#4405 (3.1 - 403f2b9 : Damian Mooyman): The build has errored.
55: [02:14:27] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/c0b6619c5ecc...403f2b91b0dd
56: [02:14:27] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53890364
57: [02:14:27] * travis-ci has left #silverstripe
58: [02:14:55] <mahfuz> Ryan-Toast: Sorry didn't get what you meant
59: [02:15:04] <Ryan-Toast> mahfuz: apply on the seek page.
60: [02:15:54] <antmas> Ryan-Toast: you had many already?
61: [02:16:06] <Ryan-Toast> antmas: Only put it up like 15 minutes ago.
62: [02:16:18] <antmas> ah
63: [02:16:31] <mahfuz> Ok Ryan-Toast: I have been working in digital agencies in Auckland for the last 2 years. My main strength is in the front end but i know back end as well.
64: [02:17:20] <mahfuz> I have great attention to detail and am a quick learner
65: [02:23:06] <ss-helper> SilverStripe 3.0.5 release - https://groups.google.com/d/msg/silverstripe-announce/1SQtn7wsDd4/foLmnZoBNuYJ
66: [02:26:22] * Liquide quit ()
67: [02:38:07] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
68: [02:53:47] * antmas beeps
69: [02:55:44] <Colin[pi]> might want to get that looked at antmas
70: [02:56:12] <antmas> too much curry
71: [02:56:16] <antmas> :|
72: [03:04:02] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
73: [03:04:52] * Hailwood has joined #silverstripe
74: [03:05:30] <antmas> [14:14] <veb> http://www.ghostnoteapp.com/
75: [03:05:33] <antmas> nice
76: [03:05:38] <antmas> Might give that a go
77: [03:22:48] <MichalKleiner> anyone tested StriderCD, continuous delivery system written in NodeJS?
78: [03:23:22] <MichalKleiner> <span class="build-count">($FeatureFacetCount)</span>
79: [03:23:24] <MichalKleiner> sorry
80: [03:23:36] <MichalKleiner> https://github.com/Strider-CD/strider
81: [03:26:41] * spronk2 has joined #silverstripe
82: [03:27:18] <antmas> spronk2: o/
83: [03:27:34] <Colin[pi]> hi spronky
84: [03:28:21] * spronk2 quit (Client Quit)
85: [03:28:53] <Colin[pi]> aww
86: [03:28:56] * spronk2 has joined #silverstripe
87: [03:32:05] <antmas> must be the macbook playing up
88: [03:32:17] * antmas looks at spronk2 ^.^
89: [03:32:29] <spronk2> lol
90: [03:32:33] <spronk2> ya
91: [03:32:34] <spronk2> :P
92: [04:00:28] * antmas quit (Quit: Page closed)
93: [04:06:56] * Kingy[a] is now known as Kingy
94: [04:07:16] <Kingy> morning
95: [04:17:02] <Colin[pi]> heya Kingy o/
96: [04:17:09] <Kingy> how ya going Colin[pi]
97: [04:19:24] <veb> wowsor, Jeremy Clarkson got suspended from the BBC, and the latest episodes on the current series may not be broadcast
98: [04:19:25] <veb> http://www.bbc.com/news/entertainment-arts-31824040
99: [04:19:29] <veb> that's pretty big.
100: [04:19:40] <veb> hey Kingy
101: [04:24:16] <Kingy> veb yeah i was just reading about that
102: [04:24:24] <Kingy> would be the end of top gear if he gets fired
103: [04:25:00] <veb> I got a feeling he'd LOVE to be fired, thus the offensive remarks that keep happening more frequently. face it, they're old, rich and most likely bored by the show
104: [04:25:01] * Ryan-Toast quit (Quit: Ryan-Toast)
105: [04:25:10] <veb> probably way too much red tape these days for their liking too
106: [04:30:34] <Colin[pi]> Kingy: good thanks and u? soz was afk
107: [04:30:43] <Kingy> yeah not bad
108: [04:30:54] <Colin[pi]> veb: yeah saw that, he punched a producer right?
109: [04:30:55] <Colin[pi]> lol
110: [04:31:04] <veb> allegedly
111: [04:31:07] <Colin[pi]> if there's one thing that'll get you fired, it's punching your boss
112: [04:38:26] <veb> https://twitter.com/MrJamesMay/status/575451642901856258
113: [04:38:27] <veb> lol
114: [04:38:56] <Stomach> punching producer sounds mint
115: [04:39:58] * Kingy is now known as Kingy[a]
116: [04:46:52] * veb quit (Quit: veb-irc: &)
117: [04:48:59] * Shrike_Finland has joined #silverstripe
118: [04:49:52] * Shrike_Finland quit (Client Quit)
119: [05:07:29] <Hailwood> For package name should we use unclecheese/display-logic or silverstripe/display-logic ?
120: [05:07:40] <Hailwood> It looks like they both point at the same thing anyway
121: [05:20:07] <Colin[pi]> Hailwood: yeah looks like they're exactly the same thing
122: [05:21:45] <Hailwood> Colin[pi], I did notice that that they say they "replace silverstripe/display-logic" so does that mean we should use unclecheese?
123: [05:22:55] * veb has joined #silverstripe
124: [05:22:59] * gordon has joined #silverstripe
125: [05:23:02] * veb quit (Client Quit)
126: [05:23:07] * gordon is now known as nontgor
127: [05:23:13] <Colin[pi]> Hailwood: looks like it
128: [05:27:25] * mahfuz quit (Ping timeout: 246 seconds)
129: [05:29:38] * Shrike_Finland has joined #silverstripe
130: [05:33:48] * spronk2 quit (Quit: I may need a longer sleep timer...)
131: [05:37:36] * benjhocking quit (Read error: Connection reset by peer)
132: [05:51:35] * Liquide has joined #silverstripe
133: [05:54:57] * Shrike_Finland quit (Quit: Leaving.)
134: [05:56:22] * jedateach quit (Quit: jedateach)
135: [05:59:21] * wmk has joined #silverstripe
136: [06:26:37] * Shrike_Finland has joined #silverstripe
137: [06:31:23] <Hailwood> sheadawson/silverstripe-linkable says it requires "unclecheese/display-logic": "1.0.8" - is there any reason it should require 1.0.8 instead of 1.2.1?
138: [06:33:09] * wmk quit (Ping timeout: 252 seconds)
139: [06:35:34] * spronk2 has joined #silverstripe
140: [06:39:40] * BPower has joined #silverstripe
141: [06:40:23] * peter_w has joined #silverstripe
142: [06:42:31] * Cramb quit (Quit: Cramb)
143: [06:42:54] <peter_w> hey has anyone use the fluent module?
144: [06:55:35] * spronk2 quit (Quit: I may need a longer sleep timer...)
145: [06:55:53] * spronk2 has joined #silverstripe
146: [07:03:21] * Shrike_Finland quit (Ping timeout: 256 seconds)
147: [07:03:56] * Sticks quit (Quit: Leaving)
148: [07:11:50] * peter_w quit (Quit: Page closed)
149: [07:29:11] * travis-ci has joined #silverstripe
150: [07:29:12] <travis-ci> tractorcow/silverstripe-cms#24 (pulls/3.1/fix-page-create - f96a4a1 : Damian Mooyman): The build failed.
151: [07:29:12] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/a142ffd46527^...f96a4a1c9e04
152: [07:29:12] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/53906344
153: [07:29:12] * travis-ci has left #silverstripe
154: [07:38:25] * Shrike_Finland has joined #silverstripe
155: [07:40:13] * travis-ci has joined #silverstripe
156: [07:40:14] <travis-ci> tractorcow/silverstripe-cms#25 (pulls/3.1/fix-page-create - f5f3e12 : Damian Mooyman): The build failed.
157: [07:40:14] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/f96a4a1c9e04...f5f3e126067b
158: [07:40:14] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/53907419
159: [07:40:14] * travis-ci has left #silverstripe
160: [07:53:58] * wmk has joined #silverstripe
161: [07:54:49] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
162: [08:11:38] * benjhocking has joined #silverstripe
163: [08:16:47] * Colin[pi] quit (Ping timeout: 244 seconds)
164: [08:25:44] <ss-helper> restrict colors in HtmlEditorConfig - http://www.silverstripe.org/community/forums/customising-the-cms/show/101339
165: [08:30:31] * Tanger quit (Quit: sleep())
166: [08:32:29] <wmk> Stomach, what was the name of the module for grouping cms left menu?
167: [08:32:38] <Stomach> grouped-cms-menu
168: [08:32:42] <wmk> thanks.
169: [08:32:42] <Stomach> by silverstripe-australia
170: [08:32:48] <wmk> while asking i remembered the name
171: [08:33:04] <wmk> how do you config it for different user groups?
172: [08:33:17] <wmk> or is it smart enough not to show sections where a user don't have permissions for?
173: [08:33:52] * Shrike_Finland quit (Ping timeout: 256 seconds)
174: [08:34:01] * Shrike_Finland has joined #silverstripe
175: [08:39:30] * BPower quit (Remote host closed the connection)
176: [08:40:48] <ss-helper> Re: restrict colors in HtmlEditorConfig - http://www.silverstripe.org/community/forums/customising-the-cms/show/101339#post400667
177: [08:40:56] * benjhocking quit (Read error: Connection reset by peer)
178: [08:49:58] <wmk> Stomach, i installed the module, did dev/build, flushed, added config...
179: [08:50:05] <wmk> still no change in admin
180: [08:50:27] <Stomach> did you flush after the config?
181: [08:50:39] <Stomach> and it is smart enough to only show based on permissions
182: [08:50:46] <wmk> yup, flushed
183: [08:50:52] <wmk> at least i think...
184: [08:51:22] <Stomach> try this as a basic one
185: [08:51:23] <Stomach> http://pastie.org/10017944
186: [08:51:28] <Stomach> that should work on all ss sites
187: [08:51:58] <wmk> this is my config
188: [08:52:00] <wmk> http://sspaste.com/paste/show/5500019d3ba80
189: [08:54:38] * Stomach quit (Quit: bye)
190: [08:55:00] * spronk2 quit (Quit: I may need a longer sleep timer...)
191: [08:56:07] * Hailwood quit (Ping timeout: 245 seconds)
192: [09:06:19] * stnvh quit (Quit: quit)
193: [09:12:36] * stnvh has joined #silverstripe
194: [09:13:25] * kinglozzer has joined #silverstripe
195: [09:17:10] * Colin[pi] has joined #silverstripe
196: [09:17:26] <nontgor> wmk/Stomach: What's the cdn_rewrite thingy - external module?
197: [09:17:57] <wmk> ?
198: [09:18:38] <wmk> grouped cms menu?
199: [09:19:54] <wmk> nontgor, or rewriting links to images / files in asset to a cdn?
200: [09:23:33] <nontgor> wmk: Cant find the config whilst grepping my setup, so was assuming a module.
201: [09:25:58] <ss-helper> $Up inside a dataobjects loop doesn't work - http://www.silverstripe.org/community/forums/general-questions/show/101340
202: [09:25:58] <ss-helper> Re: restrict colors in HtmlEditorConfig - http://www.silverstripe.org/community/forums/customising-the-cms/show/101339#post400668
203: [09:31:35] * r_hector has joined #silverstripe
204: [09:33:58] * Shrike_Finland quit (Quit: Leaving.)
205: [09:35:13] * travis-ci has joined #silverstripe
206: [09:35:14] <travis-ci> dhensby/silverstripe-framework#272 (added-max-size-by-upload-type-turnerj - e01a586 : Turnerj): The build has errored.
207: [09:35:14] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/d230fd4ed9a6...e01a58698ee4
208: [09:35:14] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/53917406
209: [09:35:14] * travis-ci has left #silverstripe
210: [09:36:50] * travis-ci has joined #silverstripe
211: [09:36:51] <travis-ci> dhensby/silverstripe-framework#273 (added-max-size-by-upload-type-turnerj - d230fd4 : Turnerj): The build has errored.
212: [09:36:51] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/e01a58698ee4...d230fd4ed9a6
213: [09:36:51] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/53917470
214: [09:36:51] * travis-ci has left #silverstripe
215: [09:37:51] * Shrike_Finland has joined #silverstripe
216: [09:39:39] * travis-ci has joined #silverstripe
217: [09:39:40] <travis-ci> dhensby/silverstripe-framework#274 (added-max-size-by-upload-type-turnerj - 20f51ce : Turnerj): The build has errored.
218: [09:39:40] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/d230fd4ed9a6...20f51cead8b5
219: [09:39:40] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/53917770
220: [09:39:40] * travis-ci has left #silverstripe
221: [09:44:39] <wmk> kinglozzer, do you think it's possible to add a hook right before handleRequest finishes?
222: [09:45:08] <wmk> e.g. for rewriting stuff before sending it to the browser
223: [09:45:14] <kinglozzer> wmk: Isn't that what request filters are for?
224: [09:47:53] * Shrike_Finland quit (Quit: Leaving.)
225: [09:48:09] <wmk> kinglozzer, any infos howto use a request filter?
226: [09:48:22] <wmk> seems like it's a good idea...
227: [09:48:25] <wmk> nontgor, ^^^^
228: [09:48:55] <kinglozzer> wmk: http://doc.silverstripe.org/en/developer_guides/controllers/requestfilters/
229: [09:49:26] <kinglozzer> The only issue is that it is applied to _all_ requests, including CMS ones, but if you're rewriting asset links only that probably won't matter
230: [09:49:38] <kinglozzer> Or you could check if the theme is enabled before rewriting or something
231: [09:57:19] * nontgor quit (Ping timeout: 245 seconds)
232: [10:03:18] * GioVdK has joined #silverstripe
233: [10:04:09] * Shrike_Finland has joined #silverstripe
234: [10:07:53] * zlinux_ has joined #silverstripe
235: [10:09:07] * zlinux quit (Ping timeout: 252 seconds)
236: [10:10:09] <ss-helper> How to make custom Change Password redirect in Silverstripe? - http://stackoverflow.com/questions/27787313/how-to-make-custom-change-password-redirect-in-silverstripe
237: [10:10:20] * nontgor has joined #silverstripe
238: [10:12:53] * NETim has joined #silverstripe
239: [10:13:17] <NETim> Morning, Anyone know how to make a section of a CMS tab collapsible?
240: [10:13:44] <kinglozzer> NETim: Like the "Metadata" thing?
241: [10:13:52] <kinglozzer> That's ToggleCompositeField
242: [10:13:57] <NETim> More like an accordion section.
243: [10:14:34] <wmk> kinglozzer, afaik you can check if it's a frontend request
244: [10:14:37] <NETim> We have a series of 6 blocks on the homepage of a site, no more, no less. I just wanted to see if there was a way of getting them to be collapsible, so they could be minimised.
245: [10:14:53] <kinglozzer> ToggleCompositeField is the only built-in solution I know of, you might have to build it yourself if that won't work
246: [10:15:17] <wmk> NETim, kinglozzer aren't tabs in cms jquery-ui?
247: [10:15:38] <NETim> wmk: was thinking of accordion style, not tabs.
248: [10:15:38] <wmk> so it should be possible to create a grouped field to utilize accordeon instead of tab
249: [10:16:15] <wmk> NETim, are you talking of backend or frontend?
250: [10:16:37] <NETim> CMS, backend. In pages.
251: [10:17:01] <wmk> ok.
252: [10:17:06] <wmk> gridfield isn't an option?
253: [10:17:26] <NETim> It's not linking to any objects.
254: [10:17:55] <wmk> ah, it's just block1 ... block6 as fields
255: [10:18:44] <wmk> maybe you can hack something together with DisplayLogic module?
256: [10:19:08] <wmk> maybe with additional checkboxes and a bit of javascript
257: [10:20:27] <NETim> wmk, one for another day. Got the ToggleCompositeField working.
258: [10:20:39] <wmk> fine.
259: [10:20:58] <wmk> Did you get the other problem solved yesterday?
260: [10:21:13] <NETim> yup, run and hide...
261: [10:21:42] <wmk> what was causing the prob?
262: [10:22:11] <NETim> Not sure. Ran out of time and had to roll back.
263: [10:22:31] <wmk> kinglozzer, thanks for the tip, i'll investigate the request filter later. maybe i can split my stuf out in a module....
264: [10:22:43] <GioVdK> Hello, does SecurityToken() save the token in the session?
265: [10:23:02] <wmk> afaik yes GioVdK
266: [10:23:14] <GioVdK> thanks wmk
267: [10:24:37] <wmk> once i found a post where someone described how to inject securitytoken into staticpublisher pages
268: [10:28:18] * Py5221k has joined #silverstripe
269: [10:30:22] * travis-ci has joined #silverstripe
270: [10:30:23] <travis-ci> silverstripe/silverstripe-framework#4413 (3.1 - c996ab6 : Daniel Hensby): The build passed.
271: [10:30:23] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/403f2b91b0dd...c996ab69e79a
272: [10:30:23] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53921856
273: [10:30:23] * travis-ci has left #silverstripe
274: [10:30:33] * cloph_away has joined #silverstripe
275: [10:30:45] * cloph quit (Ping timeout: 252 seconds)
276: [10:32:19] <wmk> https://github.com/markguinn/silverstripe-livepub looks sexy
277: [10:32:22] <wmk> i hope it works...
278: [10:34:43] * Py5221k quit (Ping timeout: 246 seconds)
279: [10:42:01] * Shrike_Finland quit (Quit: Leaving.)
280: [10:44:02] * UncleCheese has joined #silverstripe
281: [10:44:53] * Py5221k has joined #silverstripe
282: [10:52:37] * Shrike_Finland has joined #silverstripe
283: [10:57:22] * benjhocking has joined #silverstripe
284: [10:57:23] * benjhocking quit (Read error: Connection reset by peer)
285: [11:00:33] * slievr quit (Quit: Page closed)
286: [11:08:25] * cloph_away is now known as cloph
287: [11:30:55] * travis-ci has joined #silverstripe
288: [11:30:56] <travis-ci> silverstripe/silverstripe-framework#4405 (3.1 - 403f2b9 : Damian Mooyman): The build passed.
289: [11:30:56] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/c0b6619c5ecc...403f2b91b0dd
290: [11:30:56] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53890364
291: [11:30:56] * travis-ci has left #silverstripe
292: [11:40:17] * Shrike_Finland quit (Quit: Leaving.)
293: [11:48:55] * Shrike_Finland1 has joined #silverstripe
294: [11:49:12] * Shrike_Finland1 quit (Read error: Connection reset by peer)
295: [11:49:26] * Shrike_Finland1 has joined #silverstripe
296: [11:50:52] * Shrike_Finland2 has joined #silverstripe
297: [11:50:53] * Shrike_Finland1 quit (Read error: Connection reset by peer)
298: [11:57:13] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
299: [12:00:02] * circ-user-QbHTH has joined #silverstripe
300: [12:01:03] * circ-user-QbHTH is now known as swaiba
301: [12:01:20] <swaiba> hi
302: [12:02:39] <swaiba> having an issue with apostrophe in Member.Surname (Varchar) showing in ModelAdmin summary, edit form and when included on a template, like "Someone O'Connor"
303: [12:03:03] <swaiba> I'd guess it could be changed by changing the datatype to Text, but this is core...
304: [12:03:30] <swaiba> does anyone have a solution to stop client seeing "Someone O\'Connor"?
305: [12:04:04] <kinglozzer> swaiba: I just tried it and it works fine for me in SecurityAdmin, is this your own ModelAdmin?
306: [12:04:32] <swaiba> hmmmm
307: [12:04:55] <swaiba> it is a custom... class CustomersAdmin extends ModelAdmin
308: [12:05:29] <swaiba> but it is using just default summary_fields and then normal use int eh template $Surname
309: [12:07:46] <kinglozzer> swaiba: Which version of SilverStripe are you using? I just tested it in my own ModelAdmin section and it still doesn't happen in the GridField or edit form
310: [12:08:40] <swaiba> 3.1.6 (if silverstripe_version can be trusted)
311: [12:11:41] <wmk> quite old, 3.1.11 is just around the corner
312: [12:12:17] <swaiba> yes I know
313: [12:12:34] <swaiba> I've just tested with 3.1.10 with clean model admin
314: [12:12:44] <swaiba> and it isn't there, sorry should have tested that first
315: [12:12:49] <wmk> np
316: [12:12:58] <wmk> hope you can update without issues
317: [12:13:16] <swaiba> there must be something in the custom form and save being done...
318: [12:13:19] * Shrike_Finland2 quit (Quit: Leaving.)
319: [12:13:39] * Shrike_Finland has joined #silverstripe
320: [12:14:54] <wmk> yup, possible it's in the db or a problem with casting
321: [12:15:00] * AirScrappy has joined #silverstripe
322: [12:15:14] * Shrike_Finland quit (Client Quit)
323: [12:15:29] * Shrike_Finland has joined #silverstripe
324: [12:15:38] * Shrike_Finland quit (Client Quit)
325: [12:16:30] <swaiba> so it traces through some custom code to...
326: [12:16:30] <swaiba> $member->setField($fPendingMember->getName(),Convert::raw2sql($value));
327: [12:16:31] * Shrike_Finland has joined #silverstripe
328: [12:17:01] <swaiba> I cannot think of a reason to escape the input before passed to setfield, this must be it
329: [12:17:40] <wmk> possibly it was important in old ss and can be stripped away in 3.1
330: [12:21:22] * zlinux_ quit (Ping timeout: 240 seconds)
331: [12:22:16] <wmk> Why doesn't grouped cms menu not show ReportAdmin???
332: [12:23:45] * Colin[pi] quit (Ping timeout: 244 seconds)
333: [12:26:00] <Py5221k> Leaving this here for Jakx: http://preview.grooveshark.com/#!/album/The+Nomad/10063755
334: [12:26:23] <Py5221k> oh hey, it's that swaiba character :>
335: [12:26:55] * UndefinedOffset has joined #silverstripe
336: [12:27:47] <Py5221k> swaiba: double escaping! D:
337: [12:28:45] <Py5221k> wmk: nah, it's always been a thing to never double escape. Docs even explicitly mention it.
338: [12:28:59] <Py5221k> DB layer does it automagically.
339: [12:29:10] <wmk> yup, but from 3.x on
340: [12:29:12] <wmk> afaik
341: [12:29:27] <wmk> in 2.3 or 2.4 you had to escape yourself afaik
342: [12:29:35] <Py5221k> unless you go and do something silly like event_calendar did and DB::Query($_GET['filter'])
343: [12:29:45] <Py5221k> (that was actually a thing)
344: [12:30:00] <Py5221k> wmk: nope, not unless you're manually querying.
345: [12:30:20] <Py5221k> $do->write has always escaped.
346: [12:30:28] <kinglozzer> wmk: You can just add ReportAdmin to your configuration though, right?
347: [12:30:36] <Py5221k> in 2.4 it wasn't infallible though I guess since it's basically regex.
348: [12:30:47] * Shrike_Finland quit (Quit: Leaving.)
349: [12:31:13] <wmk> kinglozzer, i have it in my config, but cms doesn't seem to add it to menu?
350: [12:32:09] <kinglozzer> wmk: Really? :| I just looked at a site I have and it's working - LeftAndMain: menu_groups: Content: - CMSPagesController - AssetAdmin - ReportAdmin
351: [12:32:34] <wmk> i saw it before when debugging...
352: [12:32:42] <wmk> but somehow...
353: [12:32:58] * cloph quit (Ping timeout: 255 seconds)
354: [12:33:04] <kinglozzer> wmk: Before:/After: YAML or something perhaps?
355: [12:33:07] <Py5221k> hahahahahhahaha, fuck. Manager man is currently running an introduction speech. "Normally there's a lot more people here" - NO THERE ISN'T YOU FUCKING LIAR, YOU'RE MAKING THEM ALL QUIT
356: [12:33:12] <kinglozzer> I don't *think* that should affect it though :/
357: [12:33:20] <wmk> not really.
358: [12:33:25] <wmk> subsites maybe?
359: [12:33:28] <Py5221k> Also there are about 20 people standing there staring at me thinking I'm working.
360: [12:33:34] <Py5221k> but I'm not, haahhaha
361: [12:33:39] <kinglozzer> Possibly wmk, it might have its own reports admin class?
362: [12:34:00] <wmk> but then i'd see it in menu anyway...?
363: [12:35:13] <wmk> it's not in menu list somehow
364: [12:37:56] * AirScrappy quit (Quit: Life without danger is a waste of oxygen)
365: [12:39:03] <wmk> kinglozzer, yup, it's subsites
366: [12:39:18] <wmk> disabling it i see Reports
367: [12:39:54] * cloph_away has joined #silverstripe
368: [12:41:30] * Shrike_Finland has joined #silverstripe
369: [12:41:48] * cloph_away quit (Remote host closed the connection)
370: [12:42:04] * cloph_away has joined #silverstripe
371: [12:42:37] * cloph_away is now known as cloph
372: [12:44:08] <nontgor> wmk/kinglozzer: another possible CDN solution https://github.com/markguinn/silverstripe-cloudassets
373: [12:45:10] <Py5221k> I need to decide on lisence :<
374: [12:45:26] <Py5221k> license
375: [12:45:33] <Py5221k> licence
376: [12:45:39] <Py5221k> li-sense
377: [12:45:53] <Py5221k> bsd or mit?
378: [12:46:19] <Py5221k> is ss 2 clause or 3?
379: [12:46:30] <kinglozzer> Py5221k: BSD-3
380: [12:46:32] <kinglozzer> I think
381: [12:47:00] <kinglozzer> Yeah BSD-3
382: [12:47:39] <kinglozzer> Py5221k: Go for wtfpl
383: [12:47:40] <kinglozzer> http://www.wtfpl.net/
384: [12:50:13] <wmk> i normally use MIT
385: [12:50:51] <Py5221k> Probably just gonna match SS, if I like 3 clause.
386: [12:51:15] <Py5221k> gotta read up. haha, should fuck everyone over and go GPLv3 :P
387: [12:51:30] <wmk> nontgor, but cdn normally means you have more end points for the image for one url
388: [12:54:47] <kinglozzer> Py5221k: Yeah I always got BSD-3
389: [12:54:49] <kinglozzer> go
390: [12:56:38] * muskie9 has joined #silverstripe
391: [12:56:38] <ss-helper> Re: $Up inside a dataobjects loop doesn't work - http://www.silverstripe.org/community/forums/general-questions/show/101340#post400670
392: [13:02:23] <wmk> there is a SubsiteMenuExtension i have to apply to ReportAdmin that it's shown globally in CMSMenu
393: [13:04:44] <Py5221k> hmm, simplified BSD seems legit. I like the third clause. However I like the MIT lisence and how it states 'substantial portions'
394: [13:08:25] <wmk> Py5221k, so developing with your little modules is like playing lego?
395: [13:08:34] <Py5221k> wmk: basically.
396: [13:09:30] <Py5221k> class Thing extends OtherThing {private static $extensions = ['ThisOne','AndThatOne','OMGSavedSoMuchTyping']; /* :D! */ }
397: [13:09:53] <wmk> or that...
398: [13:10:01] <wmk> i like defining extensions in yml
399: [13:10:07] <Py5221k> wmk: 'rigging' is the stuff that goes on sailing boats, the cabling that holds the mast up, etc.
400: [13:10:33] <Eliseth> Halp!
401: [13:10:37] <Py5221k> k
402: [13:10:46] <Py5221k> If you ask a question! ;P
403: [13:10:56] <Eliseth> Bashing my head against the wall here
404: [13:11:07] <Py5221k> I can't help with that sorry, I'm too far away.
405: [13:11:11] <wmk> Eliseth, doesn't that hurt?
406: [13:12:30] <wmk> kinglozzer, YO!
407: [13:12:45] <wmk> it was subsites, this old b****
408: [13:12:58] <wmk> Eliseth, wasuup?
409: [13:15:05] <Eliseth> Using the RestfulService
410: [13:15:06] <Eliseth> Locally it works
411: [13:15:06] <Eliseth> On my test server it keeps generating the following error: http://pastie.org/private/ns9rkydh8vcvlclcimygpa
412: [13:15:06] <Eliseth> When calling the service from command line directly on the server using curl, I'm getting the data as I should.
413: [13:15:35] <Eliseth> Did you really just type 4 sentences in 1 second.. or was there massive lag? :)
414: [13:15:58] <Eliseth> ping
415: [13:16:25] <Py5221k> pong
416: [13:16:27] <wmk> Eliseth, lang
417: [13:16:29] <wmk> lag
418: [13:16:56] <wmk> Eliseth, Internal Server Error <--- any logs available?
419: [13:17:00] <wmk> how about dev mode?
420: [13:17:28] <Py5221k> wmk: that's restful service returning 500. ie, not his server.
421: [13:17:35] <Py5221k> or her server.
422: [13:17:36] <Py5221k> idk
423: [13:17:45] <wmk> hmm
424: [13:18:03] <wmk> doesn't it log somewhere? maybe ss log?
425: [13:18:09] <Py5221k> bad request, bung data, poor implementation...
426: [13:18:13] <Eliseth> That's what I thought at first as well, that it was their server generating it... but it appears it isn't
427: [13:18:14] <Py5221k> wmk: no, it's not his server!
428: [13:18:30] <wmk> Py5221k, it's mine neither
429: [13:18:31] <Eliseth> looking at local logs now
430: [13:18:37] <Py5221k> well, unless Eliseth is querying an api (s)he is hosting.
431: [13:18:51] <Py5221k> the error will be on that remote server's log.
432: [13:19:04] <Eliseth> Will it? That's odd
433: [13:19:06] <Py5221k> there might be a curl log with more info, but I doubt it.
434: [13:19:19] <wmk> hmm...
435: [13:19:20] <Py5221k> Eliseth: why would it be?
436: [13:19:21] <Eliseth> Because they say their logs say the data was returned properly to my request
437: [13:19:43] <Py5221k> err, why would an error for say someoneelsesite.com appear in _your_ logs?
438: [13:19:54] <Py5221k> oic
439: [13:19:58] <Py5221k> well they're lying.
440: [13:20:01] <Py5221k> you've got 500
441: [13:20:20] <Py5221k> are you sure the request going out is exactly the same?
442: [13:20:23] <Eliseth> And as I said, when I mimic the request manually in my terminal using command line, it returns the data I'm after
443: [13:20:43] <Py5221k> yeah, but when you form it manually using CLI, that means you're generating it, not php through SS
444: [13:20:45] <swaiba> wmk: there are always logs if you have logging turned on
445: [13:20:45] <wmk> well...
446: [13:20:58] <Py5221k> SS/php/apache/curl won't log an error if it doesn't think there is one.
447: [13:21:00] <wmk> Eliseth, try to get the request that is sended
448: [13:21:13] <swaiba> and also apache / php logs also
449: [13:21:14] <wmk> maybe set a breakpoint before the request is going out
450: [13:21:17] <Py5221k> perhaps there's a setting that lists curl request that you can read?
451: [13:21:19] <Py5221k> idk.
452: [13:21:28] <wmk> or at least a Debug::log() if you have logging set up
453: [13:21:46] <wmk> swaiba, yup, but you need it configured properly, e.g. write access to error log or debug.log
454: [13:21:47] <Py5221k> I'd expect remote server to return 400 though if it's mal formed request.
455: [13:22:03] <Py5221k> bad request.
456: [13:22:18] <swaiba> wmk sure, if you don't have write you can setup an emial logger
457: [13:22:24] <Py5221k> which would point at remote server (api provider) havnig bad implementation
458: [13:23:23] <Py5221k> Eliseth: either dump the true request somehow, or you can check using a different method somehow (perhaps file_get_contents('url') ?
459: [13:23:26] <Py5221k> )
460: [13:23:54] <Eliseth> HM, how would I go about dumping the true request?
461: [13:24:07] <Py5221k> dunno, php curl opiton, or just curl, or something
462: [13:24:18] <Py5221k> or dump the info that goes into it and try to figure it out, I dunno man./
463: [13:24:28] <Py5221k> woman...?
464: [13:24:32] * Py5221k shrugs
465: [13:24:34] <Eliseth> Haha, okok, thought it was a SS function or something
466: [13:24:50] <Py5221k> well it could be. I dunno, I don't do curl much
467: [13:25:10] <Py5221k> I mean I wrote a JSON module sure, but that was a year and a half ago
468: [13:25:58] <wmk> Py5221k, my wife likes when curling is on tv
469: [13:26:14] <Py5221k> haha, is that often wmk ?
470: [13:26:35] <Py5221k> I do like curling, don't know if I could watch a lot of it though.
471: [13:26:42] <Py5221k> & I've not tried it personally.
472: [13:26:45] <wmk> every 4 years when olympic games are
473: [13:26:52] <Py5221k> haha, yeh.
474: [13:27:00] <Py5221k> It's quite a neglected sport
475: [13:27:08] <Py5221k> I guess
476: [13:27:21] <wmk> well, over here we have something similar, without that ice-cleaning habbit
477: [13:28:01] <wmk> https://en.wikipedia.org/wiki/Ice_stock_sport
478: [13:32:56] <Py5221k> heh, cool. Although it boggles me as to how they play in summer on asphalt
479: [13:33:26] <wmk> yup
480: [13:34:23] * catcher has joined #silverstripe
481: [13:54:58] <wmk> does config parse all php classes or only subclasses of Object ?
482: [13:56:49] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333#post400671
483: [14:04:40] <kinglozzer> wmk: Everything that's in the manifest
484: [14:04:50] <wmk> cool
485: [14:05:01] <wmk> so i can use config values in MyRequestFilter
486: [14:05:10] <kinglozzer> Yep
487: [14:09:33] <Py5221k> how do you add a lisence to github repo?
488: [14:10:01] <Py5221k> When you make one it gives you an option. Does that just create the repo with a lisence file already in it (like it does with the readme)?
489: [14:10:11] <Py5221k> I htought you could mark a repo (like a tag or something)
490: [14:10:14] <ss-helper> SilverStripe Overiding Template SS3.1.10 - http://stackoverflow.com/questions/28988802/silverstripe-overiding-template-ss3-1-10
491: [14:11:08] <Eliseth> http://breakupwithie8.com/
492: [14:11:35] <muskie9> Eliseth that's the greatest site I've ever seen!
493: [14:11:51] <ss-helper> renderWith being overridden by default template SS3.1.10 - http://www.silverstripe.org/community/forums/template-questions/show/101341
494: [14:21:09] <wmk> Py5221k, yup, creates licence file for you
495: [14:21:48] * arnhoe has joined #silverstripe
496: [14:22:19] <wmk> nontgor, kinglozzer https://packagist.org/packages/wernerkrauss/cdnrewrite
497: [14:22:34] <wmk> kinglozzer, thanks a lot for the requestfilter tip!
498: [14:22:34] <Py5221k> wmk: hmm, I thought it added some kind of marker/tag too :<
499: [14:22:40] <Py5221k> something searchable
500: [14:23:42] <wmk> dunno
501: [14:23:54] <NETim> Any way to stop tinyMCE sanitising iframes?
502: [14:23:54] <wmk> you mark it in your composer.json, so packagist knows aboutit
503: [14:23:56] * Shrike_Finland quit (Quit: Leaving.)
504: [14:24:05] <wmk> NETim, yup. allow them ;)
505: [14:25:11] <kinglozzer> wmk: Sweet!
506: [14:26:19] <swaiba> NTETim: HtmlEditorConfig::get('cms')->setOption('extended_valid_elements' , *tags here* );
507: [14:26:30] <NETim> wmk, how would one achieve this?
508: [14:26:48] <swaiba> I'd paste mine but I don't allow them, just changed it to alow html5
509: [14:27:24] <NETim> cheers swaiba
510: [14:29:37] <Py5221k> no catcher, you're wrong!
511: [14:29:48] <Py5221k> no no no no no
512: [14:29:51] <Py5221k> yes.
513: [14:29:57] <catcher> Py5221k, haha
514: [14:30:24] <Py5221k> the correct answer is that the fool thinks he's pro because codeigderper
515: [14:30:32] <Py5221k> FFFFFFFFFFFFFFFFFF CODEIGDERPER
516: [14:30:51] <Py5221k> and it's randomly shoving shit to output immediately.
517: [14:30:53] <catcher> Py5221k, how do you know?
518: [14:31:31] <Py5221k> catcher: becuase is calling $this->renderWith('template') as if it was $this->load->view('template')
519: [14:31:50] <catcher> ahh
520: [14:31:59] <Py5221k> ie, not $DESIRED_OUTPUT = $this->renderWith('tempalte')
521: [14:32:14] <Py5221k> and of course return $THE_OUTPUT
522: [14:32:41] <Py5221k> but you are correct, should not bedoing that shit in init. Again because codeigderper is too derp for it's own good.
523: [14:32:46] <Py5221k> SUPERGLOBAL ALL THE FUCK'N THINGS
524: [14:32:50] <Py5221k> FFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
525: [14:32:58] * Py5221k is dealing with the igderp today :<
526: [14:33:07] <Py5221k> you migth be able to tell D:
527: [14:33:10] <Py5221k> :C
528: [14:35:30] <catcher> Py5221k, I added a reply that includes a bunch of CI hatred.
529: [14:35:37] <Py5221k> hahahaha
530: [14:35:43] <Py5221k> :<
531: [14:35:52] <Py5221k> probably shouldn't jump to conclusions like I did
532: [14:36:42] <Py5221k> But I appreciate your fervor xD
533: [14:36:57] <catcher> It's important the truth gets indexed.
534: [14:37:39] <UndefinedOffset> anyone know of a plugin for tinymce that will give the cms admin the ability to add font awesome icons in the wysiwyg? only one i can find is for a newer version of tinymce than the one in ss :(
535: [14:38:25] <Py5221k> catcher: you include point to CI hatred, you just string* cirant = &pyroOnIRC;!
536: [14:38:36] <Py5221k> err
537: [14:38:42] <Py5221k> fuck, too many operators
538: [14:38:43] <Py5221k> whatever
539: [14:38:57] <Py5221k> C(++) code, it's been too long :<
540: [14:39:16] <catcher> Py5221k, you're the butt of a linked list.
541: [14:39:52] <catcher> UndefinedOffset, just help me beat the drum of the SS TinyMCE upgrade!
542: [14:41:01] <UndefinedOffset> catcher... ya would be nice unfortunatly that doesn't help in the short term lol
543: [14:41:05] <Py5221k> oh ho ho, this guy!
544: [14:41:07] <Py5221k> xD
545: [14:41:57] <ss-helper> Re: [SOLVED] [FACEPALM] renderWith being overridden by default template SS3.1.10 - http://www.silverstripe.org/community/forums/template-questions/show/101341#post400675
546: [14:41:57] <ss-helper> Re: [SOLVED] [FACEPALM] renderWith being overridden by default template SS3.1.10 - http://www.silverstripe.org/community/forums/template-questions/show/101341#post400674
547: [14:41:57] <ss-helper> Re: [SOLVED] [FACEPALM] renderWith being overridden by default template SS3.1.10 - http://www.silverstripe.org/community/forums/template-questions/show/101341#post400673
548: [14:43:05] <kinglozzer> catcher, UndefinedOffset: https://github.com/Mediaweb/silverstripe-tinymce4
549: [14:43:18] <kinglozzer> I have no idea if everything actually works :P
550: [14:44:23] <catcher> kinglozzer, oooh...
551: [14:46:01] <catcher> kinglozzer, at the very least, hopefully core can use some of it.
552: [14:46:52] <NETim> 2 questions: Filtering members in security and exporting all fields for a member.
553: [14:49:37] <catcher> NETim, magnifying glass, export to csv button.
554: [14:49:43] <catcher> I'll be here all day.
555: [14:49:52] <catcher> ;)
556: [14:50:38] <catcher> doesn't help with all fields.
557: [14:53:01] <NETim> catcher: http://cdn.meme.am/instances/500x/49804408.jpg
558: [14:53:15] <NETim> I take it I'll have to extend the export button for that then?
559: [14:53:32] <catcher> NETim, indeed, then you can setExportColumns
560: [14:53:51] <NETim> Cool, what about enabling filtering of members?
561: [14:55:08] <catcher> NETim, I've hacked around that in the past by adding to summary_fields. There may be a better way.
562: [14:55:47] <NETim> hm... What the customer wants is to be able to filter by group/date added/etc.
563: [14:56:18] <wmk> NETim, subclass SecurityAdmin ;)
564: [14:56:20] <wmk> or extend...
565: [14:56:24] <NETim> Also, can setExportColumns just be told 'all the things'?
566: [14:56:40] <swaiba> NetTim: create a new model admin, for member and then use a DataExtension to set the summary and filters
567: [14:56:50] <wmk> NETim, afaik you have to define all columns
568: [14:56:59] <ss-helper> Re: [SOLVED] [FACEPALM] renderWith being overridden by default template SS3.1.10 - http://www.silverstripe.org/community/forums/template-questions/show/101341#post400676
569: [14:57:08] * r_hector quit (Quit: Leaving.)
570: [14:57:22] <NETim> wmk, damn. Ok.
571: [14:57:23] <wmk> ss-helper, you're funny ;)
572: [14:57:46] <NETim> Where would one start if, let's say, they had no idea how the filters worked in model admin?
573: [14:58:51] <swaiba> NETim: $searchable_fields
574: [14:58:52] <wmk> NETim, ask on irc (oops, you did already), google for it, docs section...
575: [14:58:57] <muskie9> are ->exclude() values AND or OR
576: [14:59:13] <wmk> muskie9, afaik AND
577: [14:59:30] <muskie9> if I want an OR would I do 2 exclude lines?
578: [15:00:23] <muskie9> I have 2 booleans where if either are set to true the record needs to be excluded
579: [15:01:22] <wmk> muskie9, filterAny(Foo:not => 1, Bar:not => 1)
580: [15:01:38] <muskie9> cool, thnx
581: [15:01:52] <wmk> untested...
582: [15:02:15] <catcher> Won't ->exclude(array("Foo" => 1, "Bar" => 1)); perform the OR?
583: [15:02:39] <wmk> catcher, dunno...
584: [15:02:52] <catcher> muskie9, worth testing out that exclude, not sure on it
585: [15:03:21] <NETim> swaiba: I guess I'm not lucky enough for security admin to just scaffold the search form based on member searchable_fields?
586: [15:03:29] <muskie9> I'll give it a go, but if it's like ->filter()... ->filter(array('color' => 'red', 'size' => 'small')) would get things that are red and small iirc
587: [15:03:41] <swaiba> NETim: nope
588: [15:03:51] <wmk> NETim, SecurityAdmin isn't a ModelAdmin :(
589: [15:04:02] <wmk> but you should be able to add another ModelAdmin for exporting
590: [15:04:15] <NETim> Think I'll head down that root.
591: [15:04:27] <swaiba> oh and NETtim for the date ranges we still use http://www.leftandmain.com/uncategorized/2011/02/25/taming-the-beast-remodeling-modeladmin/
592: [15:04:28] <wmk> NETim, did you see my PM?
593: [15:04:38] <swaiba> DateRangeSearchContext, slightly updated for V3
594: [15:04:56] <catcher> muskie9, Yep, an OR is what you're after, so that would be good for exclude, no?
595: [15:05:14] <catcher> exclude if condition1 or condition2
596: [15:05:18] <NETim> wmk: just noticed that.
597: [15:05:47] <muskie9> catcher figured ->exclude(array('color' => 'red', 'size' => 'small')) would exclude red and small rather than red or small
598: [15:06:18] <muskie9> I'll take a quick look at the the filter/exclude functions and see if I can find anything
599: [15:06:27] <catcher> muskie9, that would make it an OR on filter, and an AND on exclude
600: [15:07:01] <catcher> it's possible that's the case..
601: [15:10:13] <Eliseth> My error wasn't caused by the server I did the request on after all.
602: [15:10:41] <Eliseth> Adding RestfulService::set_default_curl_option(CURLOPT_TIMEOUT, 600); to _config.php solved my problem
603: [15:12:02] <ss-helper> Re: Data - http://www.silverstripe.org/community/forums/customising-the-cms/show/101322#post400677
604: [15:12:05] <Eliseth> Turns out SS has CURLOPT_CONNECTTIMEOUT as configurable, but not CURLOPT_TIMEOUT.
605: [15:12:13] <Eliseth> Which are 2 different things :)
606: [15:12:28] <Eliseth> *parameter
607: [15:18:07] * Sander has joined #silverstripe
608: [15:19:01] <Sander> Hey guys. Has anyone had issues with logging into the backend, with SS 3.1.10 . It says password is expired, and asks you to create a new one. Any ideas?
609: [15:22:30] <catcher> Sander, sounds like you have password expiry set
610: [15:22:51] <catcher> Sander, http://api.silverstripe.org/3.1/class-Member.html#_set_password_expiry
611: [15:23:31] <Sander> Hmm maybe. Its just strange that this has never happened before 3.1.10
612: [15:25:28] <catcher> Sander, new install or upgrade?
613: [15:27:32] <Py5221k> good to know Eliseth
614: [15:28:08] <Eliseth> Well, was about time I shared something back in here :P
615: [15:29:43] <Py5221k> :)
616: [15:29:59] <Py5221k> Eliseth: another thing to be wary of is the cache setting
617: [15:30:09] <Py5221k> SS does let you set that one though
618: [15:30:23] <wmk> elgabbu, glad you got it working
619: [15:31:14] <wmk> oh, not elgabbu, i mean Eliseth
620: [15:35:57] * jenniferaslan has joined #silverstripe
621: [15:36:25] * wmk quit (Read error: No route to host)
622: [15:36:40] * wmk has joined #silverstripe
623: [15:38:10] * Sander quit (Ping timeout: 246 seconds)
624: [15:41:29] * arnhoe quit ()
625: [15:45:33] <[Fate]> I've got a given database structure where there is a class Dish and a class CustomDish, where CustomDish contains subsite-specific stuff. so the GridField has to look in both sql tables and I can achieve that with a leftJoin() on the underlying list
626: [15:45:58] <[Fate]> now for adding, I need to implement logic so that both classes are touched. what would be the most elegant way to achieve this?
627: [15:46:36] <wmk> is this DB managed via silverstripe?
628: [15:46:53] <wmk> or just imported / synced?
629: [15:48:19] <NETim> Any way to return all fields for an object?
630: [15:51:56] <[Fate]> completely via silverstripe
631: [15:52:41] <[Fate]> i could monkey-patch ManyManyList::add() of course
632: [15:53:00] <[Fate]> just wondering, if I can influence the "select" part via leftJoin() and the like, if I could likewise influence the sql for adding
633: [15:59:33] <Py5221k> NETim: through the config.
634: [15:59:58] <Py5221k> config get db ALL_INCLUDING_INHERITED_AND_STUFF
635: [16:00:06] <Py5221k> something like that
636: [16:00:16] <Py5221k> docs/code will give you more I think
637: [16:00:30] <NETim> Py5221k: thanks. Was trying to be lazy with getExportFields
638: [16:02:12] <wmk> [Fate], is it a 1:1 relation?
639: [16:02:48] <[Fate]> it's DailyMenuPage <--ManyMany--> Dish <-- 1:1 --> CustomDish
640: [16:02:55] <wmk> ah
641: [16:03:02] <wmk> and you want one form for dish and customdish?
642: [16:03:27] <wmk> [Fate], http://svn.simon.geek.nz/hasoneedit/trunk/README.md is for you
643: [16:03:32] <[Fate]> correct. it works for the gridview, it doesn't work for the AddExistingAutoCompleter yet
644: [16:11:02] <wmk> if you cannot change autocompleter you'd have to subclass it to pass the query to it. dunno
645: [16:12:01] <kinglozzer> NETim: singleton('MyDataObject')->db();
646: [16:12:49] * babak quit (Ping timeout: 265 seconds)
647: [16:13:22] <Py5221k> kinglozzer: D: really?
648: [16:13:23] <Py5221k> :/
649: [16:13:43] <NETim> kinglozzer: thanks. I'll have to remember that. But won't that just be the DB fields? not relations?
650: [16:14:03] <swaiba> NETim: was just about to point that out
651: [16:14:15] <kinglozzer> NETim: Yeah, that's what you asked for :P if you want to include has_one, has_many, many_many you can use those methods too
652: [16:14:19] <swaiba> you can do the same thing for the has many, etc
653: [16:14:28] <kinglozzer> singleton('MyDataObject')->has_one(); singleton('MyDataObject')->has_many(); singleton('MyDataObject')->many_many();
654: [16:14:34] <swaiba> but it becomes infinte if you want all fields if all related fields etc
655: [16:14:51] <kinglozzer> and even singleton('MyDataObject')->many_many_extraFields(); if you're feeling adventurous
656: [16:17:01] <wmk> kinglozzer, but ->many_many() should return all manymanys, event the decorated ones
657: [16:19:26] <kinglozzer> wmk: Yeah but so will Config::inst()->get('class', 'many_many') unless you explicitly pass the Config::EXCLUDE_EXTRA_SOURCES option
658: [16:19:32] * babak has joined #silverstripe
659: [16:20:07] <Py5221k> of course if you already have one of that class, the singleton() call is unnecessary NETim
660: [16:20:51] <wmk> strange
661: [16:20:55] <NETim> So i guess the moral of this story is to not be lazy.
662: [16:21:08] <wmk> on test server i cannot goto admin when in live mode
663: [16:21:15] <wmk> i just see the beautiful ss logo
664: [16:21:22] <wmk> in dev mode admin works
665: [16:23:02] <wmk> m(
666: [16:24:12] * cloph quit (Ping timeout: 246 seconds)
667: [16:26:30] * cloph_away has joined #silverstripe
668: [16:27:07] * cloph_away is now known as cloph
669: [16:42:51] <wmk> is ?isDev=1 saved in session?
670: [16:44:06] <swaiba> wmk - yes
671: [16:44:07] <kinglozzer> wmk: I think so
672: [16:44:44] * wmk wondered why it's in dev mode...
673: [16:44:50] <wmk> i thought its just for the current call
674: [16:46:00] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/Director.php#L1043
675: [16:46:16] <kinglozzer> modify dem globals!
676: [16:48:05] * Guits has joined #silverstripe
677: [16:48:42] <wmk> ouch
678: [16:48:54] <wmk> kinglozzer, how can i determine if i'm frontend or backend?
679: [16:49:05] <Guits> I have a belongs_many_many (on member) how do i get the relations?
680: [16:49:15] <wmk> Guits, how's it called?
681: [16:49:16] <kinglozzer> wmk: I'm not sure, as far as I know the best way is to check if theme is enabled
682: [16:49:23] <kinglozzer> SSViewer.theme_enabled config I think
683: [16:49:29] <Guits> wmk?
684: [16:50:23] <wmk> belongs_many_many ('Foo' => 'MyDO') => $this->Foo() returns a ManyManyList
685: [16:50:33] <wmk> Guits, ^^
686: [16:50:40] <Guits> I have a many_many on channels "ChannelAdmins" => "Member", and $belongs_many_many= array( "ChannelAdmins" => "Channel");
687: [16:50:58] <nontgor> "<wmk> kinglozzer, how can i determine if i'm frontend or backend?" < that sounds like a question porn actors would ask!
688: [16:51:06] <Guits> ok.. thanks. will try
689: [16:51:08] <wmk> nontgor, !!!
690: [16:51:20] <nontgor> *oops*
691: [16:53:08] <nontgor> wmk: From a SilverStripe perspective not sure other than Director:IsLive() method (from top of my head)
692: [16:53:23] <wmk> nontgor, that checks dev/live
693: [16:53:46] <wmk> i want to check if i'm in frontend (generated page) or in backend (cms)
694: [16:54:26] <nontgor> wmk: Good question, never had to do that. Check the current URL perhaps?
695: [16:54:36] <wmk> yup, maybe...
696: [16:54:46] <wmk> if url starts with /admin/...
697: [16:54:51] <kinglozzer> wmk: Controller::curr() instanceof LeftAndMain?
698: [16:54:55] <swaiba> wmk - sounds lame, but I'd check if /Admin/*
699: [16:55:13] <wmk> kinglozzer, Controller::curr() is empty in RequestFilter
700: [16:55:16] <wmk> somehow
701: [16:55:23] <swaiba> but lozzer is more right with "am I in a controller or an admin"
702: [16:55:34] <kinglozzer> Ah, it's probably already finished with it
703: [16:56:44] <kinglozzer> Yeah I'd either go for /admin/ check, or check if theme is enabled (it's disabled in LeftAndMain::init())
704: [16:57:07] <wmk> theme_enabled is also true somehow...
705: [16:57:21] <wmk> i'm currently hanging in admin/pages/treeview
706: [16:58:32] <kinglozzer> wmk: AFAICT the only core code that touches that setting is LeftAndMain::init() and ErrorPage :/
707: [16:59:20] <Guits> wmk : the method 'channeladmins' does not exist on 'Member'
708: [16:59:35] <nontgor> wmk: Now added Google Maps Short Codes to my version of the Mappable version module https://github.com/gordonbanderson/Mappable/blob/docs/docs/en/GoogleMapShortCodes.md - currently trying to sort out documentation but needs a fresh face rebase in the morning before merging into 3.1 branch
709: [17:00:11] <kinglozzer> Guits: Perhaps it's an issue with them both being named the same thing
710: [17:00:29] <kinglozzer> Guits: Try renaming the belongs_many_many to "ChannelsAdministered" => "Channel" or something
711: [17:00:51] <wmk> nontgor, sounds cool...
712: [17:03:00] <nontgor> wmk: Last item to document is points of interest layers, have a working script to extract all the Seven Eleven (convenience store) locations from Open StreetMap and render them on a map, as well as them being editable objects location wise
713: [17:03:15] <nontgor> maybe have to wait until tomorrow, midnight now
714: [17:03:26] <wmk> oh
715: [17:03:28] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
716: [17:03:33] <wmk> gnight then ;)
717: [17:05:22] * UndefinedOffset quit (Quit: Leaving.)
718: [17:07:08] <wmk> kinglozzer, thanks for pointing to theme_enabled...
719: [17:13:57] * Shrike_Finland has joined #silverstripe
720: [17:14:59] * muskie9 is now known as muskie9_afk
721: [17:15:11] * Guits quit (Read error: Connection reset by peer)
722: [17:15:16] * MrGuits has joined #silverstripe
723: [17:22:26] * kinglozzer quit ()
724: [17:23:50] * swaiba quit (Remote host closed the connection)
725: [17:25:56] * stnvh quit (Quit: quit)
726: [17:28:49] * nontgor quit (Read error: Connection reset by peer)
727: [17:41:08] * jedateach has joined #silverstripe
728: [17:41:33] * GioVdK quit (Ping timeout: 246 seconds)
729: [17:42:18] * jedateach has left #silverstripe
730: [17:43:47] * MrGuits quit (Ping timeout: 252 seconds)
731: [17:44:15] * wmk quit (Ping timeout: 256 seconds)
732: [18:04:47] * muskie9_afk is now known as muskie9
733: [18:06:21] * Liquide quit ()
734: [18:30:36] * Colin[pi] has joined #silverstripe
735: [18:32:01] * wmk has joined #silverstripe
736: [18:57:49] <ss-helper> Re: restrict colors in HtmlEditorConfig - http://www.silverstripe.org/community/forums/customising-the-cms/show/101339#post400678
737: [19:00:44] * Stomach has joined #silverstripe
738: [19:05:29] <wmk> gmorning(ugt) Stomach
739: [19:05:35] <Stomach> hey wmk
740: [19:05:45] <Stomach> sorry I ran away last night, my partner came to get me
741: [19:05:50] <wmk> subsites affects grouped cms fields
742: [19:05:52] <wmk> np
743: [19:05:56] <Stomach> did you get the grouped
744: [19:05:57] <Stomach> ahhhh
745: [19:06:05] <wmk> had to merge the two templates
746: [19:06:18] <wmk> and wondered why userswitcher works fine with it
747: [19:06:27] <wmk> that module uses some js magic to add the dropdown
748: [19:07:25] <wmk> subsites also hides some admins (eg ReportAdmin) by default, have to add an extension to see them again
749: [19:10:34] <Stomach> yeah, because of the show_in_subsites_menu thing or whatever?
750: [19:11:54] * gordon__ has joined #silverstripe
751: [19:12:01] * gordon__ is now known as nontgor
752: [19:12:52] <ss-helper> Re: restrict colors in HtmlEditorConfig - http://www.silverstripe.org/community/forums/customising-the-cms/show/101339#post400679
753: [19:14:25] <wmk> Stomach, yup. Subsites expects a method to return true to show it
754: [19:15:48] <Stomach> yeah its a pain
755: [19:24:04] * gelignite has joined #silverstripe
756: [19:25:26] * mobiusnz quit (Quit: Leaving.)
757: [19:32:44] * Chix quit (Remote host closed the connection)
758: [19:35:15] * Colin[pi] quit (Ping timeout: 246 seconds)
759: [19:39:17] * Stomach quit (Quit: zzz)
760: [19:41:27] * Ryan-Toast has joined #silverstripe
761: [19:45:22] * Pyromanik has joined #silverstripe
762: [19:45:48] <Pyromanik> Morena
763: [19:46:22] * Stomach has joined #silverstripe
764: [19:54:10] <adrexia> morning
765: [19:55:24] <adrexia> Stomach -it was worse when it showed all admins whether they were relevant to the subsite or not. Useers thought they were editing a record in sit-x but it actually wasn't from that site at all.
766: [19:55:27] <adrexia> :P
767: [19:55:41] <Stomach> subsites... worse?
768: [19:55:45] <Stomach> impossible!
769: [19:55:59] <adrexia> lol
770: [19:56:21] <adrexia> I made this to make giving modeladmins subsite awareness easier: https://github.com/adrexia/silverstripe-subsite-modeladmins
771: [19:56:59] <adrexia> though, I think perhaps subsites itself should give the reports admin awareness
772: [19:57:08] <adrexia> since its part of core
773: [19:57:12] <wmk> adrexia, stumbled over this today...
774: [19:57:54] <wmk> that ReportAdmin was hidden in menu by subsites
775: [19:58:07] * DimiStripe has joined #silverstripe
776: [19:58:17] <adrexia> yeah - I think that's a "bug"
777: [19:58:23] <adrexia> its certainly a missing feature
778: [19:58:54] <adrexia> though... reports might be somewhat tricky to make subsite speicifc?
779: [19:58:57] <wmk> well, handling admins per subsites as you can define page types per subsite would be neat
780: [19:59:08] * cloph is now known as cloph_away
781: [19:59:16] <adrexia> that would be aweome, yes :)
782: [19:59:37] <adrexia> but would take a rather large core change... or perhaps just a UX change
783: [19:59:46] <adrexia> hmm
784: [19:59:53] <wmk> dunno.
785: [19:59:55] <adrexia> yeah, that might be worth investigating
786: [20:00:02] <wmk> atm i just use subsites to share content over some domains
787: [20:00:05] <adrexia> the issue is that subsites are defined in the admin
788: [20:00:18] <adrexia> if they were defined in config instead it would be much easier
789: [20:01:02] <adrexia> you would know the subsites you were dealing with, rather than having to guess the id or something.
790: [20:01:19] <adrexia> you can, in the admin, disable certain page types
791: [20:01:32] <wmk> i've seen the UI for it, never used it
792: [20:01:51] <wmk> thought it sounds sexy, maybe i can give customers access to their subsites?
793: [20:01:51] <adrexia> wmk - congratulations! You must be one of the few using it as it was originally intended :D
794: [20:02:01] <wmk> omg!
795: [20:02:21] <adrexia> hahaha
796: [20:02:25] * Cramb has joined #silverstripe
797: [20:02:36] <wmk> how do you use it?
798: [20:02:45] <wmk> one codebase for many sites that are totally unrelated?
799: [20:02:46] * Cramb quit (Client Quit)
800: [20:02:56] <adrexia> most actually want multiple sites. They'd be better off with multiple instances
801: [20:03:11] <wmk> yup. most of the time
802: [20:03:13] <adrexia> wmk - unfortunately yes.
803: [20:03:19] <wmk> sharing users between multiple instances would be great
804: [20:03:33] <adrexia> though in many cases the sites share administrators and some authors
805: [20:03:41] <adrexia> so its also a single port of login
806: [20:03:58] <adrexia> wmk - yep. you can do it, its just a bit of work
807: [20:04:06] <wmk> really? how?
808: [20:04:13] <adrexia> writing code that does it ;)
809: [20:04:21] <wmk> hmm...
810: [20:04:36] <wmk> some sort of single sign on authenticator
811: [20:04:48] <adrexia> similar to other login integration (active directory etc)
812: [20:04:54] <adrexia> though probably easier
813: [20:05:05] <adrexia> because they speak the same language
814: [20:05:51] <wmk> https://github.com/hamishcampbell/silverstripe-auth-external sounds cool
815: [20:06:00] * mobiusnz has joined #silverstripe
816: [20:06:20] <adrexia> http://www.silverstripe.org/community/forums/general-questions/show/18708
817: [20:06:31] <adrexia> yep just found that too :D
818: [20:07:21] <wmk> though it's not 3.1 compatbile. but has a PR for it
819: [20:07:32] <adrexia> for some reason README files sans .md always make me think the project is really old.
820: [20:08:44] <wmk> hehe
821: [20:09:46] <wmk> some kind of unmaintained :(
822: [20:12:41] <Pyromanik> adrexia, what's this about *nix equivalent of AD?
823: [20:13:05] <adrexia> huh?
824: [20:13:41] <adrexia> Oh, I think you misunderstood. :)
825: [20:16:51] <Pyromanik> oh. I see.
826: [20:17:19] <Pyromanik> I've been pondering that ever since some windows fanboy came at me with the "CAN YOUR LIE NUX DO THAT!?"
827: [20:18:06] * mobiusnz quit (Quit: Leaving.)
828: [20:18:37] <Pyromanik> And I had to conceed, he had me there :< But then I'm not an IT guy, nor a sysadmin.
829: [20:19:09] <Pyromanik> So been keeping it in the back of my mind since, I'm sure there is something, and it's probably reasonably built in... but IDK.
830: [20:19:12] <Pyromanik> Yet.
831: [20:21:53] <wmk> Pyromanik, LDAP?
832: [20:22:07] <Pyromanik> well... sorta.
833: [20:22:56] * Cramb has joined #silverstripe
834: [20:24:55] <adrexia> Realme? ;)
835: [20:25:50] <adrexia> but yeah, you can write custom stuff that does it. For purpose. What active directory has is inbuilt integration with a lot of MS systems.
836: [20:26:02] <Pyromanik> I thought AD was more than LDAP, but I could be wrong.
837: [20:26:09] <Pyromanik> ahah realme, lolwut
838: [20:26:14] <adrexia> yep ;)
839: [20:26:23] <Pyromanik> I suppose it is in a way
840: [20:26:34] <adrexia> google authenticator too
841: [20:26:37] <Pyromanik> it's SSO, contains info, etc.
842: [20:26:52] <adrexia> if you want a technology agnostic way and don't care about google owning you
843: [20:27:14] <Pyromanik> awf-enticator
844: [20:27:22] <Pyromanik> ie, aweful authenticator
845: [20:27:27] <adrexia> hehe
846: [20:27:33] <Pyromanik> BECAUSE GOOGLE SWALLOWS YOUR SOUL (or something)
847: [20:27:48] <adrexia> from a usability view point - I really like google auth
848: [20:28:06] <ss-helper> Extending the Order class - http://www.silverstripe.org/community/forums/e-commerce-modules/show/101342
849: [20:28:12] <adrexia> even integration is easy
850: [20:28:21] * Hailwood has joined #silverstripe
851: [20:28:42] <wmk> Pyromanik, wtf-auth?
852: [20:28:59] <wmk> the "Gernot Hassknecht" of authenticators
853: [20:29:24] * Cramb has left #silverstripe
854: [20:37:22] <Pyromanik> finally found it
855: [20:37:23] <Pyromanik> https://www.youtube.com/watch?v=VJBwB2g1tyQ
856: [20:39:35] * mobiusnz has joined #silverstripe
857: [20:40:49] <Hailwood> Anyone know why sheadawson/silverstripe-linkable has a dependancy on such an old version of display-logic? (1.0.8)?
858: [20:41:27] * spronk2 has joined #silverstripe
859: [20:43:08] <ss-helper> Re: Is there a link form field? - http://www.silverstripe.org/community/forums/general-questions/show/17939?start=8#post400683
860: [20:43:09] <ss-helper> Re: Is there a link form field? - http://www.silverstripe.org/community/forums/general-questions/show/17939?start=8#post400682
861: [20:43:09] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333#post400681
862: [20:47:52] <Pyromanik> Hmm http://www.reddit.com/r/linux/comments/1hndck/how_can_i_replace_active_directory_with_linux/
863: [20:51:10] * Ryan-Toast quit (Quit: Ryan-Toast)
864: [20:52:38] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
865: [20:52:46] <wmk> Hailwood, maybe some api changes since then? dunno
866: [20:52:57] <wmk> what version of displaylogic do you have?
867: [20:53:14] <wmk> you can checkout a branch as a version, e.g. "dev-master as 1.0.8"
868: [20:54:21] <Hailwood> wmk, Well I'd like to be able to use 1.2.1 of displaylogic if I can.
869: [20:54:51] <wmk> jup, this isn't fine...
870: [20:55:11] <wmk> you can fork the project and use your fork with composer
871: [20:55:18] <wmk> and maybe pr...
872: [20:55:27] <Hailwood> Yeah I might do that.
873: [20:55:55] * spronk2 quit (Quit: I may need a longer sleep timer...)
874: [20:55:58] <wmk> 1.x@stable could do
875: [20:56:15] * spronk2 has joined #silverstripe
876: [20:56:35] <wmk> Hailwood, http://de.slideshare.net/rdohms/composer-the-right-way
877: [20:56:45] <wmk> maybe there are some better ways...
878: [20:58:11] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333?start=8#post400684
879: [21:00:31] <wmk> ~1.1 ...?
880: [21:04:45] <Hailwood> wmk I was thinking of doing ~1.2 but same idea anyway.
881: [21:05:04] <wmk> yup.
882: [21:05:07] <Hailwood> Next question - How do you add an extension on a class via the statics? I believe there is a $extensions property?
883: [21:05:13] <wmk> yup
884: [21:05:54] <wmk> Hailwood, e.g. https://github.com/jonom/silverstripe-focuspoint/blob/1.x/_config/config.yml
885: [21:06:07] <wmk> you can put the extensions in a seperate yml file
886: [21:06:19] <wmk> but that doesn't matter to manifest
887: [21:06:47] <Hailwood> wmk, Yeah I know I can do it through the config file, but in this case I want it on the actual page file
888: [21:07:05] <wmk> ah, via statics. sorry
889: [21:07:14] <wmk> look at SiteTree, this should do it this way
890: [21:07:42] <wmk> L186
891: [21:08:57] <wmk> private static $extensions = array()
892: [21:13:13] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333?start=8#post400687
893: [21:13:14] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333?start=8#post400686
894: [21:13:14] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333?start=8#post400685
895: [21:13:16] * wmk wonders if you can apply extensions to a class using an exension
896: [21:15:56] * Azure quit (Quit: Blue Sky Fish)
897: [21:20:09] * veb has joined #silverstripe
898: [21:28:16] <ss-helper> Re: Is there a link form field? - http://www.silverstripe.org/community/forums/general-questions/show/17939?start=8#post400690
899: [21:28:16] <ss-helper> Re: Is there a link form field? - http://www.silverstripe.org/community/forums/general-questions/show/17939?start=8#post400689
900: [21:28:16] <ss-helper> Re: Russian (cyrillic) URL addresses - http://www.silverstripe.org/community/forums/general-questions/show/101333?start=8#post400688
901: [21:30:41] * muskie9 has joined #silverstripe
902: [21:31:36] * mahfuz has joined #silverstripe
903: [21:37:18] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
904: [21:37:29] * R\w\C has joined #silverstripe
905: [21:37:36] * R\w\C quit (Changing host)
906: [21:37:36] * R\w\C has joined #silverstripe
907: [21:38:20] <R\w\C> hey guys from inside my controller i access a many_many dataobject then inside that dataobject I wish to access a has_one field
908: [21:38:34] <R\w\C> print_r($this->CustomText()->column("ResultType"));
909: [21:38:46] <R\w\C> ResultType being the has_one DataObject
910: [21:39:17] <R\w\C> i have tried GetComponent('ResultType') to no avail
911: [21:39:45] * Azure has joined #silverstripe
912: [21:40:11] <muskie9> R\w\C wouldn't the column be ResultTypeID if it's a has_one to the ResultType dataobject
913: [21:40:42] <catcher> Why not ORM?
914: [21:40:54] <R\w\C> catcher elaborate - how do i?
915: [21:41:02] <muskie9> ORM you'd probably do ->ResultType()
916: [21:41:13] <muskie9> rather than call the column...
917: [21:41:14] <R\w\C> ahhh
918: [21:41:15] <R\w\C> shit
919: [21:41:23] <R\w\C> ok let me try
920: [21:41:31] <R\w\C> then do ->column('name') on that
921: [21:41:44] <R\w\C> you guys are too $&#@ sharp
922: [21:42:46] <catcher> R\w\C, when you hit "method ResultType does not exist on DataList", access just one of the CustomText objects from the list.
923: [21:43:44] <catcher> outski, later guys.
924: [21:43:50] <R\w\C> heh catcher?
925: [21:44:06] <R\w\C> oh do i ->getFirst() ?
926: [21:44:19] <muskie9> ->yourManyMany()->first()
927: [21:44:22] <catcher> If first is correct for you, ->first()
928: [21:44:35] * Otterpocket has joined #silverstripe
929: [21:44:53] * Otterpocket quit (Client Quit)
930: [21:44:54] <catcher> or $this->ResultType()->filter(...)->first(), or $this->ResultType()->byID(...) if you know it.
931: [21:45:03] <muskie9> otherwise ->yourManyMany()->filter(array('Key' => 'Val))->first() to get what you need
932: [21:45:12] <catcher> outski for reals.
933: [21:45:14] <R\w\C> okkok
934: [21:45:15] * catcher quit (Quit: Leaving)
935: [21:45:16] <R\w\C> i see
936: [21:45:19] <R\w\C> muskie :)
937: [21:45:25] <R\w\C> thank you catcher & muskie :)
938: [21:45:53] <R\w\C> i see once I foreach over them the data becomes available
939: [21:46:19] <R\w\C> perfect
940: [21:46:57] * wmk quit (Quit: nice to meet you ;))
941: [21:47:41] * Liquide has joined #silverstripe
942: [22:08:23] * muskie9 is now known as muskie9_afk
943: [22:16:37] <Pyromanik> R\w\C, so basically $this->TheManyManyRel()->First()->TheHasOneRel()->TheField
944: [22:16:38] * UncleCheese has joined #silverstripe
945: [22:16:55] <R\w\C> Pyromanik i got it sorted thanks :)
946: [22:17:08] <Pyromanik> cool :>>
947: [22:19:14] * Colin[pi] has joined #silverstripe
948: [22:19:48] <Colin[pi]> hey all o/
949: [22:19:56] <Pyromanik> 'lo \o
950: [22:32:15] <Hailwood> Hey guys, if we have development.yml that looks like this: https://gist.github.com/hailwood/05aeff1f19a5d7369780 what would the Config::inst()->get(...) end up being to get the NoIndexDomains as an array?
951: [22:32:48] * Shrike_Finland quit (Quit: Leaving.)
952: [22:37:34] <zauberfisch> Hailwood: I am not sure that this is valid
953: [22:37:44] <zauberfisch> because COnfig::inst()->get wants 2 parameters
954: [22:37:48] <zauberfisch> Foo:
955: [22:37:51] <zauberfisch> Bar:
956: [22:37:55] <zauberfisch> - 'yay'
957: [22:37:59] <zauberfisch> 'Foo.Bar'
958: [22:38:32] <Pyromanik> Config::inst()->get('Foo', 'Bar') ?
959: [22:38:36] <Hailwood> Hmm, so Maybe that should read Development: {new line} NoIndexDomains: {new line} - ... ?
960: [22:38:40] <Pyromanik> need to specify class no?
961: [22:38:54] <zauberfisch> Pyromanik: I thought so
962: [22:38:56] <zauberfisch> but not sure
963: [22:38:57] <Pyromanik> Foo: Bar: Baz: - 'yay
964: [22:39:08] <zauberfisch> yeah, I would do something like
965: [22:39:08] <Pyromanik> would be get('Foo', 'Bar.Baz')
966: [22:39:17] <Pyromanik> but... I don't think it's smart enough for that. Unsure.
967: [22:39:23] <zauberfisch> Development:
968: [22:39:27] <zauberfisch> NoIndexDomains:
969: [22:39:28] <Pyromanik> gotta just get the whole config then array access it I think.
970: [22:39:30] <Pyromanik> Unsure.
971: [22:39:31] <zauberfisch> - ...
972: [22:41:26] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
973: [22:41:29] <Pyromanik> either way, end up with $conf[0]=='yay' or $conf['Baz'][0]=='yay'
974: [22:42:12] <Pyromanik> sommih like that.
975: [22:42:20] <Pyromanik> (something)
976: [22:42:44] <Pyromanik> there I'm gaan typing geordie again :<
977: [22:42:50] <Pyromanik> or mackam. Something like that.
978: [22:43:46] <Pyromanik> sometimes it's fun tho :>
979: [22:56:02] * mobiusnz quit (Quit: Leaving.)
980: [22:58:02] * mobiusnz has joined #silverstripe
981: [22:58:36] <MichalKleiner> how do I filter DataList by array of IDs of it's JOIN as well?
982: [22:59:39] <MichalKleiner> I guess I can use IN and implode in custom ->where
983: [22:59:46] <MichalKleiner> just if there is a better way..
984: [23:02:04] * Ryan-Toast has joined #silverstripe
985: [23:04:30] * travis-ci has joined #silverstripe
986: [23:04:31] <travis-ci> tractorcow/silverstripe-cms#26 (pulls/3.1/fix-page-create - e78b7e5 : Damian Mooyman): The build is still failing.
987: [23:04:31] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/f5f3e126067b...e78b7e538c23
988: [23:04:31] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54020673
989: [23:04:31] * travis-ci has left #silverstripe
990: [23:04:58] <Hailwood> Can I modify the output of $MetaTags ? Basically upon certain conditions I want to add an extra meta tag
991: [23:08:54] * mobiusnz quit (Quit: Leaving.)
992: [23:16:31] <adrexia> Hailwood, I think you should just be able to write a MetaTags function on Page ?
993: [23:17:50] * terryapodaca has joined #silverstripe
994: [23:22:26] * Liquide quit ()
995: [23:23:53] <spronk2> ]https://www.youtube.com/watch?v=KHZ8ek-6ccc
996: [23:23:54] <spronk2> lolool
997: [23:24:32] * Pyromanik debugs like a boss
998: [23:25:34] * Ryan-Toast quit (Quit: Ryan-Toast)
999: [23:26:24] * mobiusnz has joined #silverstripe
1000: [23:27:05] <Pyromanik> hahahaha spronk2
1001: [23:27:11] <spronk2> :D :D
1002: [23:27:12] <spronk2> IKR
1003: [23:27:58] <Pyromanik> I thought it was real at first, hahahahahaha
1004: [23:28:57] <spronk2> :D
1005: [23:29:13] <spronk2> NO PORTS!
1006: [23:29:17] <spronk2> Aahahahahahahahahahahahhhahahah
1007: [23:29:20] <Pyromanik> HAHAHAHAHAHAH THE END SO GOOD
1008: [23:29:22] <Hailwood> adrexia, I'm attempting to do it in beforeExtending - so I have this piece of code: https://gist.github.com/hailwood/327062bc0937d3150dda and I know the callback gets called since I can die inside it and that works fine - but for some reason the tags that are printed don't contain my new meta tag.
1009: [23:29:38] <spronk2> LEVEL 5 SALARY!
1010: [23:29:40] <spronk2> ahahahahahhaah
1011: [23:29:47] <Pyromanik> nah, further
1012: [23:30:01] <Pyromanik> the dongle comment right, omg so good
1013: [23:30:06] <adrexia> Hailwood is that code in an extension... ?
1014: [23:30:06] <spronk2> :D
1015: [23:30:07] <Pyromanik> this shit is real?
1016: [23:30:14] <Pyromanik> he talking about the air?
1017: [23:30:18] <spronk2> Pyromanik nah the new Macbook
1018: [23:30:26] <Pyromanik> A FUCKING MACBOOK!?
1019: [23:30:27] <spronk2> with two ports: USB Type C, and 3.5mm headphones
1020: [23:30:31] <Pyromanik> :O
1021: [23:30:41] <Pyromanik> wtf is type C?
1022: [23:30:43] <spronk2> and a $79 dongle with USB3, HDMI, and another USB C
1023: [23:30:46] <Pyromanik> micro?
1024: [23:30:49] <spronk2> the new reversable small usb plug
1025: [23:30:56] <spronk2> C is nice
1026: [23:30:56] <spronk2> but
1027: [23:30:58] <spronk2> ......
1028: [23:30:58] <Pyromanik> spronk2, this is just announced? Or are people lapping this shit up already?
1029: [23:31:15] <Pyromanik> wait, so C makes USB a slow thunderbolt?
1030: [23:31:21] <Pyromanik> LULZ
1031: [23:31:25] <spronk2> announced
1032: [23:31:25] <spronk2> lol sorta
1033: [23:31:27] <spronk2> and does charging too
1034: [23:31:37] <Pyromanik> so... exactly like thunderbolt
1035: [23:31:47] <spronk2> tbolt does charging?
1036: [23:32:03] <Pyromanik> USBC - nerfed thunderbolt. THunderbolt - nerfed PCIE
1037: [23:32:15] <Hailwood> adrexia, No, actually while I am testing this it's in the MetaData function on my main Page class - so it looks like this https://gist.github.com/hailwood/327062bc0937d3150dda (updated gist)
1038: [23:32:18] <Pyromanik> spronk2, thunderbolt carries current... how that doesn't charge IDK.
1039: [23:32:25] <spronk2> hmm
1040: [23:32:28] <Pyromanik> if it was used for charging I mean.
1041: [23:32:40] <Pyromanik> iirc it carries more power than usb
1042: [23:32:40] <spronk2> i dno if tbolt charges laptops etc
1043: [23:32:48] <adrexia> ahh, got it!
1044: [23:32:53] <spronk2> i knoew the laptop can send out power on tbolt
1045: [23:33:00] <spronk2> but this usb c thing can data one way, and charge the other
1046: [23:33:02] <Pyromanik> Oh, it's a double use plug? either USB OR charge laptop?
1047: [23:33:09] <Pyromanik> that's... kinda fuck'n... weird.
1048: [23:33:19] <Pyromanik> spronk2, at the same time?
1049: [23:33:19] <adrexia> can't you just get the value of MetaTags and append to that and then return ?
1050: [23:33:25] <spronk2> both at once
1051: [23:33:26] <spronk2> mm
1052: [23:33:30] <spronk2> well
1053: [23:33:32] <spronk2> i assume o_O
1054: [23:33:32] <Pyromanik> well that's fucked up
1055: [23:33:38] <spronk2> they ahven't really been too explicit about that actually
1056: [23:33:45] <Pyromanik> so plug USB thing into power socket, see what happens
1057: [23:33:45] <terryapodaca> Any designers on here that might have a couple hrs?
1058: [23:33:49] <Hailwood> adrexia, Yeah I could, but then I would lose the ability for any extensions to remove the tag I just added.
1059: [23:34:15] <Pyromanik> spronk2, is this part of USB, or just apple techs using a single plug for 2 purposes?
1060: [23:34:26] <adrexia> Oh, I see
1061: [23:34:40] <spronk2> its new usb standard
1062: [23:34:45] <spronk2> google are using it on their new chromebook pixel too
1063: [23:34:49] <Pyromanik> heh, well I never.
1064: [23:34:53] <spronk2> so in many ways its a big step
1065: [23:34:59] <Pyromanik> mmm.
1066: [23:35:04] <Pyromanik> and at the same time, shit.
1067: [23:35:11] <adrexia> I've never tried that with DB fields before
1068: [23:35:12] * mobiusnz quit (Read error: Connection reset by peer)
1069: [23:35:13] <spronk2> mmlol
1070: [23:35:16] <Pyromanik> pcie getting neglected again :<
1071: [23:35:19] * mobiusnz1 has joined #silverstripe
1072: [23:35:28] <Pyromanik> GIVE ME SPEED, I don't give a fuck about multipurpose :<
1073: [23:35:40] <Pyromanik> tbolt slower than pcie ffs
1074: [23:35:48] <Pyromanik> usb like, retardedly slower than tblot.
1075: [23:35:53] <Pyromanik> I mean, come on.
1076: [23:35:54] <spronk2> of course it is
1077: [23:35:54] <spronk2> massively longer signal path
1078: [23:36:01] <Pyromanik> true I guess.
1079: [23:36:08] <Pyromanik> dem ohms.
1080: [23:36:40] <Pyromanik> wholey fuck though that video right
1081: [23:36:52] <Pyromanik> Never seen it before. I assume it's like the new Downfall scene?
1082: [23:37:21] <Pyromanik> waiting for it next: Hitler buys a new macbook...
1083: [23:37:26] <Hailwood> adrexia, as stumped as I am right?
1084: [23:38:07] <Pyromanik> but really though spronk2 - it's almost like apple are doing a social experiement
1085: [23:38:45] <Pyromanik> on how greedy they can more obviously be before the public goes NOPE. And then what will happen if they shrug, say sorry and go with the original design in the first place
1086: [23:38:45] * travis-ci has joined #silverstripe
1087: [23:38:46] <travis-ci> tractorcow/silverstripe-cms#27 (pulls/3.1/fix-page-create - fba4a7c : Damian Mooyman): The build was fixed.
1088: [23:38:46] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/e78b7e538c23...fba4a7cf1210
1089: [23:38:46] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54025750
1090: [23:38:46] * travis-ci has left #silverstripe
1091: [23:38:53] <Pyromanik> anyway, bedtime.
1092: [23:38:56] * Pyromanik quit (Quit: Leaving)
1093: [23:39:31] <adrexia> Hailwood - can you actually do that with DB field ?
1094: [23:40:59] <adrexia> oh wait nvm its also a function
1095: [23:41:55] <adrexia> yeah, no idea
1096: [23:43:23] * peter_w has joined #silverstripe
1097: [23:43:46] <peter_w> Hey has anyone here had experience using the fluent module?
1098: [23:46:55] <peter_w> I want to know if there is a way I can tell if any given page has a translation
1099: [23:50:43] <MichalKleiner> peter_w: we have it on one project.. but we have all pages translated so don't know about a function for that
1100: [23:51:29] <MichalKleiner> shouldn't be hard to write one.. if you know what languages you have the worst resolution would be to check db whethere the translated column has any value
1101: [23:51:32] <MichalKleiner> just hinking loud
1102: [23:51:36] <MichalKleiner> *thinking
1103: [23:55:03] <Hailwood> adrexia, Ok so it looks like the beforeExtend doesn't work as $tags is a string not an object, if it was an object it could be modified in place, but strings aren't
1104: [23:56:18] <adrexia> right. taht makes sense
1105: [23:57:23] <adrexia> on the plus side, overriding functions on sitetree is pretty easy, so not hard to get around
1106: [23:58:24] <adrexia> you could set a static on the class and check the value of that, maybe?

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