#silverstripe IRC Log

IRC log for 5 June 2013

All timestamps are in UTC.

1: [02:20:50] * GoTest has joined #silverstripe
2: [02:21:53] <willr> :) timing was just too perfect
3: [02:21:54] <helenclarko> Pyromanik: I will look into other versions. Just strange that it was able to create products and set up the checkout, accounts and cart pages with the /dev/task buttons
4: [02:22:47] <Pyromanik> helenclarko: doesn't mean that 2.4 branch isn't still getting updated
5: [02:24:31] * pbts quit (Quit: Page closed)
6: [02:29:58] <helenclarko> True
7: [02:40:52] <helenclarko> Hey pyromanik, thanks for your time once again!
8: [02:42:06] * willr_ has joined #silverstripe
9: [02:42:36] * willr quit (Ping timeout: 248 seconds)
10: [02:42:36] * willr_ is now known as willr
11: [02:51:40] * gumble quit (Read error: Operation timed out)
12: [02:58:30] * willr quit (Quit: willr)
13: [03:04:07] * cloph_away1 has joined #silverstripe
14: [03:04:14] * cloph_away quit (Ping timeout: 252 seconds)
15: [03:27:44] * zauberfisch has joined #silverstripe
16: [03:28:24] <Pyromanik> helenclarko: you're welcome :)
17: [03:29:28] * willr has joined #silverstripe
18: [03:32:15] * zauberfisch quit (Ping timeout: 246 seconds)
19: [03:40:29] * helenclarko quit (Quit: Page closed)
20: [03:42:02] * nikrolls quit (Read error: Connection reset by peer)
21: [03:42:33] * nikrolls has joined #silverstripe
22: [03:52:00] <MrJeremy> anyone know how to clone a git repo without pulling down any submodules (e.g. ignoring them)
23: [03:55:37] * Hippiee quit (Quit: Leaving)
24: [04:03:18] * cloph_away has joined #silverstripe
25: [04:03:54] * cloph_away1 quit (Ping timeout: 260 seconds)
26: [04:06:18] <Pyromanik> MrJeremy: submodules are ignored.
27: [04:06:24] <Pyromanik> you must init before they pull in.
28: [04:07:42] <MrJeremy> Pyromanik: that will make some things a little more simpler
29: [04:17:14] * dospuntocero quit (Remote host closed the connection)
30: [04:18:23] <Peavers> Does anyone know the ID of the metadata accordion menu (in order to hide it from the cms) off the top of their head?
31: [04:28:40] * spronk quit (Ping timeout: 264 seconds)
32: [04:30:25] * spronk has joined #silverstripe
33: [04:35:13] <willr> Peavers inspect element.
34: [04:37:16] <Peavers> Yeah I tried that, but surely the ID isn't "ui-accordion-Form_EditForm_Metadata-header-0"?
35: [04:41:34] <willr> inspect element should show you the ID.
36: [04:41:51] <willr> wouldn't be surprised if the ID looked something like that
37: [04:41:57] <willr> automatically generated
38: [04:42:33] <unsignedint> hey does anyone know how to "embed" a dataobject in a has_one relationship in a CMS tab and have it get updated on page save? eg http://pastebin.com/YVU2THqH
39: [04:42:41] <unsignedint> kinda like GridEditor but without the grid
40: [04:43:22] <unsignedint> sorry http://pastebin.com/266c3kh5
41: [04:45:38] <unsignedint> im having difficulty getting the values to save, probably because I dont think im displaying the fields correctly
42: [04:49:19] <Pyromanik> nothing worse in this world than spam.
43: [04:50:03] <unsignedint> except aids and religious people
44: [04:50:24] <Pyromanik> same thing
45: [04:51:22] <Pyromanik> Peavers: $fields->removeByName('Metadata'(
46: [04:51:34] <unsignedint> SYNTAX ERROR
47: [04:52:22] * MrJeremy has left #silverstripe
48: [04:52:29] <Pyromanik> yes.
49: [04:52:50] <Pyromanik> also unsignedint, you cannot.
50: [04:53:04] <Pyromanik> 16:42 < unsignedint> hey does anyone know how to "embed" a dataobject in a has_one relationship in a CMS tab
51: [04:53:08] <Pyromanik> ^^
52: [04:53:10] <unsignedint> really? thats dumb
53: [04:53:17] <Pyromanik> you're dumb.
54: [04:53:20] <unsignedint> how can I edit the associated has_one dataobjects then?
55: [04:53:21] <Pyromanik> your fase is dumb.
56: [04:53:25] <unsignedint> OH SNAP
57: [04:53:30] <Colin[pi]> fase
58: [04:53:31] <Pyromanik> you're fase
59: [04:53:45] <unsignedint> fase - its like vase but with an f
60: [04:53:50] <unsignedint> and mine is pretty dumb
61: [04:53:57] <Pyromanik> no
62: [04:54:08] <Pyromanik> pronounced completely differently
63: [04:54:23] <Pyromanik> unsignedint: how do you edit a has one? You edit the object.
64: [04:54:47] <Pyromanik> model admins or something
65: [04:54:59] <Pyromanik> it's a bit dumb, yes.
66: [04:55:23] <Pyromanik> a bit stink
67: [04:55:28] <Pyromanik> a bit of a downer
68: [04:55:30] <unsignedint> Pyromanik: so how do I set this up, is it described in the docs somewhere? Like how do I create a button or something that trigger sthis
69: [04:55:31] <Pyromanik> a pain in the arse
70: [04:55:32] <Pyromanik> et
71: [04:55:32] <Pyromanik> c
72: [04:55:43] <Pyromanik> unsignedint: how did you has_one?
73: [04:55:52] <Pyromanik> how you assign is usually how you edit.
74: [04:56:04] <Pyromanik> you just can't put them both on the same form.
75: [04:56:23] <unsignedint> its assigned in the page class
76: [04:56:32] <unsignedint> http://pastebin.com/266c3kh5
77: [04:56:32] <Pyromanik> how so?
78: [04:56:49] * MrJeremy has joined #silverstripe
79: [04:56:57] * DigNZ quit (Quit: DigNZ)
80: [04:57:13] <unsignedint> I basically want the LeftBanner and RightBanner's that are associated with the page to be editable, from the page
81: [04:57:48] <Pyromanik> you're doing it wrong
82: [04:57:51] <Pyromanik> $db
83: [04:58:03] <unsignedint> LeftBanner and RightBanner may be a 'TextBanner' or subclass of TextBanner
84: [04:58:28] <Pyromanik> then you probably want a BannerAdmin extends ModelAdmin
85: [04:59:33] <Pyromanik> You can't embed fields like that, otherwise you've pretty much just made a bunch of $db fields that aren't $eb
86: [04:59:36] <Pyromanik> db
87: [04:59:37] <Pyromanik> *
88: [04:59:50] <unsignedint> oh right, yes I realise that now
89: [05:00:09] <Pyromanik> so either make them $db
90: [05:00:27] <unsignedint> ok so how can I trigger BannerAdmin from the BannerPage? WHat kind of field do I need to add to the getCMSFields()?
91: [05:00:32] <Pyromanik> or write some kind of magic stuff taht lets someone select an existing banner
92: [05:01:01] <Pyromanik> link to /admin/banners/#/edit
93: [05:01:09] <Pyromanik> where # is <ID>
94: [05:01:15] <Pyromanik> probably easiest
95: [05:01:27] <Pyromanik> use literal field
96: [05:01:32] <Pyromanik> it's a bit of a hack, yeah.
97: [05:01:44] <Pyromanik> but there aren't really any nice ways to manage a has_one
98: [05:01:48] <Pyromanik> excepting dropdownfield
99: [05:01:59] <Pyromanik> which lets you type in the CMS iirc
100: [05:02:03] <Pyromanik> but yeah
101: [05:02:04] <Pyromanik> not that great
102: [05:02:07] <Pyromanik> 5pm
103: [05:02:08] <Pyromanik> time to go
104: [05:02:11] <Pyromanik> good luck
105: [05:02:12] <unsignedint> thanks for the info
106: [05:02:12] * Pyromanik quit (Quit: leaving)
107: [05:02:24] <Colin[pi]> annnnnnd he's gone
108: [05:02:31] <unsignedint> yep
109: [05:02:43] <unsignedint> wouldnt want to work a second more than he has to! 5pm knock off
110: [05:03:07] <Colin[pi]> i miss those jobs sigh
111: [05:03:31] * nickmolhoek has joined #silverstripe
112: [05:03:31] * nickmolhoek quit (Remote host closed the connection)
113: [05:03:46] * nickmolhoek has joined #silverstripe
114: [05:15:17] * Peavers quit (Ping timeout: 264 seconds)
115: [05:28:05] * kerosene quit (Ping timeout: 256 seconds)
116: [05:33:58] * spronk quit (Ping timeout: 260 seconds)
117: [05:34:00] * willr quit (Quit: willr)
118: [05:37:36] * kerosene has joined #silverstripe
119: [05:41:52] <MrJeremy> I have a File, is there an easy way to make it into an Image? (Image extends File)
120: [05:43:16] <MrJeremy> I could go new Image() make a copy of the image etc but Im hoping ss already does it
121: [05:46:09] <MrJeremy> $myFile->newClassInstance("Image"); perhaps
122: [05:49:26] * jayden909090 has joined #silverstripe
123: [05:50:48] <jayden909090> Anyone know of the easiest way to allow custom order of files in an UploadField?
124: [05:56:40] * spronk has joined #silverstripe
125: [06:08:28] * nickmolhoek quit (Quit: nickmolhoek)
126: [06:25:36] * MichaelDesignerX has joined #silverstripe
127: [06:26:33] * DesignerX quit (Ping timeout: 246 seconds)
128: [06:33:37] * SamMargalit has joined #silverstripe
129: [06:33:52] <SamMargalit> hiya, anyone used https://github.com/bluehousegroup/silverstripe-contact-form
130: [06:34:34] <SamMargalit> I keep getting an error "[User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'ContactForm'"
131: [06:47:19] <ss23> SamMargalit: Running 3.0?
132: [06:47:23] <ss23> I don't know though, sorry
133: [06:48:08] <SamMargalit> yeah 3.0
134: [06:48:39] * Motoservo_ has joined #silverstripe
135: [06:48:55] * Motoservo quit (Ping timeout: 245 seconds)
136: [06:49:57] * Motoservo_ is now known as Motoservo
137: [06:57:20] <MrJeremy> SamMargalit: does ContactForm.ss exist somewhere?
138: [06:57:30] * Liquide quit ()
139: [07:04:35] <SamMargalit> All good, I've sorted it out. Needed to extend ContactPage into a Page
140: [07:04:41] <SamMargalit> thanks anyway
141: [07:05:02] * chillu has joined #silverstripe
142: [07:16:57] <MrJeremy> Anyone know a simple way of turning a "File" into an "Image"
143: [07:26:13] * jayden909090 quit (Ping timeout: 250 seconds)
144: [07:30:59] * SamMargalit quit (Quit: Page closed)
145: [07:36:46] * mento has joined #silverstripe
146: [07:50:49] * dendeffe has joined #silverstripe
147: [07:57:53] * kinglozzer has joined #silverstripe
148: [08:03:37] * willmorgan has joined #silverstripe
149: [08:10:46] * Hippiee has joined #silverstripe
150: [08:23:09] * priithansen has joined #silverstripe
151: [08:28:02] * willr_ has joined #silverstripe
152: [08:28:02] * willr_ quit (Changing host)
153: [08:28:02] * willr_ has joined #silverstripe
154: [08:32:28] * willr_ quit (Ping timeout: 248 seconds)
155: [08:32:43] * Sjohn has joined #silverstripe
156: [08:33:37] * Shrike_Finland has joined #silverstripe
157: [08:44:35] * Shrike_Finland quit (Quit: Leaving.)
158: [08:47:16] * wotaen has joined #silverstripe
159: [08:48:11] <wotaen> Hi All...I've got a Image+Template related question, it's for SS 3.0. My SQL query is quite complex, so I'm using SQLQuery to fetch the data and passing it to the template as arraylist
160: [08:48:42] <wotaen> in the template itself, I'd like to use $Image.crop()...but obviously the image is not the dataobject...
161: [08:48:54] <wotaen> how would you suggest to get the thumbnails?
162: [08:51:45] * Mark- has joined #silverstripe
163: [08:51:57] * openbees has joined #silverstripe
164: [08:55:00] <openbees> Is there any way to enable fulltextsearch for custom field in Page Class ?
165: [09:00:37] * Shrike_Finland has joined #silverstripe
166: [09:01:53] <kinglozzer> wotaen: foreach ($sqlQueryRows as $image) { $image = new Image($image); }
167: [09:02:05] <kinglozzer> Almost certainly won't work. but you get the idea
168: [09:06:18] <kinglozzer> wotaen: I'm assuming that you're probably fetching DataObjects, not Images. Here's a code snippet I use: http://pastie.org/8009159. You can then treat it as if you'd done DataObject::get();
169: [09:06:52] <wotaen> hey kinglozzer
170: [09:09:18] <wotaen> hmm...that Pastie actually worked
171: [09:09:44] <kinglozzer> Cool :)
172: [09:09:45] <wotaen> wow, thanks a lot :)
173: [09:30:37] * FrozenFire quit (*.net *.split)
174: [09:31:14] * FrozenFire has joined #silverstripe
175: [09:34:06] * Colin[pi] quit ()
176: [09:37:04] * anujit has joined #silverstripe
177: [09:37:09] <anujit> Hi
178: [09:37:29] <anujit> Is there anybody to help me on dataobjectmanager datepicker field?
179: [09:37:41] <anujit> I want it to align left
180: [09:37:53] <anujit> Very new to jquery
181: [10:08:53] * Kolin_ is now known as Kolin
182: [10:17:57] * tomspeak has joined #silverstripe
183: [10:24:05] <MrJeremy> Uncaught ReflectionException is very annoying!
184: [10:38:45] * WillM has joined #silverstripe
185: [10:40:01] * Colin[pi] has joined #silverstripe
186: [10:40:34] * FrozenFire quit (*.net *.split)
187: [10:40:46] * mento quit (Quit: Page closed)
188: [10:45:32] * FrozenFire has joined #silverstripe
189: [10:57:37] * chillu quit (Quit: chillu)
190: [10:57:38] * tomspeak quit ()
191: [10:58:09] * willr_ has joined #silverstripe
192: [10:58:09] * willr_ quit (Changing host)
193: [10:58:09] * willr_ has joined #silverstripe
194: [11:01:24] * dendeffe quit (Quit: dendeffe)
195: [11:02:18] * martimiz has joined #silverstripe
196: [11:02:21] * willr_ quit (Ping timeout: 246 seconds)
197: [11:04:41] <martimiz> Hi, is there anyone out there who'd know how to dynamically change HTMLEditorConfig in the CMS (ss3.0)?
198: [11:05:00] * openbees quit (Ping timeout: 248 seconds)
199: [11:05:05] <martimiz> It works when reloading the page, but not on AJAX requests
200: [11:05:30] * Sjohn quit (Ping timeout: 250 seconds)
201: [11:06:12] <martimiz> I put HTMLEditorConfig::set_active('xxx') in getCMSFields, but that doesn't seem to be the way
202: [11:10:08] * chillu has joined #silverstripe
203: [11:10:16] <Colin[pi]> martimiz: last time I tried to dynamically change the editor I had a world of hurt too
204: [11:10:23] <Colin[pi]> with ajax especially
205: [11:10:35] * willr_ has joined #silverstripe
206: [11:10:35] * willr_ quit (Changing host)
207: [11:10:35] * willr_ has joined #silverstripe
208: [11:11:19] <martimiz> Colin: that doesn't make me feel much better :)
209: [11:11:24] <Colin[pi]> sorry lol :(
210: [11:11:38] <Colin[pi]> someone much smarter than I might be able to assist
211: [11:11:40] <Colin[pi]> :D
212: [11:11:40] <martimiz> But did you manage?
213: [11:12:04] <Colin[pi]> I think in the end I could get it working on page load but not ajax, like you
214: [11:12:19] <martimiz> pity :(
215: [11:13:39] <Colin[pi]> anything is possible :)
216: [11:13:44] <Colin[pi]> but my ajax fu is weak
217: [11:14:57] * willr_ quit (Ping timeout: 246 seconds)
218: [11:17:40] * openbees has joined #silverstripe
219: [11:22:46] * willr_ has joined #silverstripe
220: [11:22:46] * willr_ quit (Changing host)
221: [11:22:46] * willr_ has joined #silverstripe
222: [11:32:35] * wmk has joined #silverstripe
223: [11:42:26] * Shrike_Finland quit (Quit: Leaving.)
224: [11:42:31] * dangerdan has joined #silverstripe
225: [11:44:28] * osterlaus has joined #silverstripe
226: [11:45:11] <osterlaus> hi there. is permission checking in $allowed_actions still supported?
227: [11:45:54] <osterlaus> having
228: [11:45:54] <osterlaus> private static $allowed_actions = array (
229: [11:45:54] <osterlaus> "List" => "ADMIN"
230: [11:45:54] <osterlaus> );
231: [11:45:54] <osterlaus> allows a user who is not logged in at all to perform the action List :(
232: [11:46:20] <dangerdan> how can i do routing like this in silverstripe: http://symfony.com/doc/2.0/book/routing.html#adding-requirements ?
233: [11:46:29] <dangerdan> I want to be able to route to different controller actions depending on the url, determined by a regex preferably... i cant seem to find any documentation or tutorials for doing this in silverstripe, that is the closest thing i have found so far.
234: [11:46:41] <dangerdan> I can't seem to figure out how to line up what the symphony documentation says to silverstripe routes... that link is exactly what i want to do.
235: [11:52:41] * MichaelDesignerX quit (Ping timeout: 245 seconds)
236: [11:57:20] <willmorgan> osterlaus: you can use the "->" syntax
237: [11:57:38] <willmorgan> public function isAdmin() { return Permission::check('ADMIN'); }
238: [11:57:55] <willmorgan> private static $allowed_actions = array(
239: [11:57:55] <willmorgan> 'List' => '->isAdmin',
240: [11:57:55] <willmorgan> );
241: [11:58:04] <osterlaus> willmorgan: yeah, thats what i do without success
242: [11:58:50] <osterlaus> callin isAdmin returns false
243: [11:59:37] <osterlaus> but i have a template that is rendered now through that action, and doing a second permission check there (if ( !Permission::check('ADMIN') ) return Security::permissionFailure($this);) results in the permission failure i already expected in the first step
244: [11:59:46] <osterlaus> fyi: i'm using the latest 3.1 beta
245: [11:59:56] <willmorgan> hmm, strange. i'm also using 3.1
246: [12:00:10] <willmorgan> i've seen it used in my current project's codebase
247: [12:00:19] <osterlaus> and, do you get the proper errorß
248: [12:00:20] <osterlaus> ?
249: [12:01:17] <willmorgan> we're using an ->isAjax check
250: [12:01:19] <willmorgan> and it seems to work
251: [12:03:02] <dangerdan> to bump, i want to do something like this: https://github.com/silverstripe/silverstripe-framework/pull/1816#issuecomment-17913963 doesnt work in my case though
252: [12:08:31] * nikrolls quit (Ping timeout: 245 seconds)
253: [12:09:42] * openbees quit (Quit: Leaving)
254: [12:09:46] * MrJeremy quit (Ping timeout: 245 seconds)
255: [12:10:42] * willr_ quit (Quit: willr_)
256: [12:11:48] * wotaen quit (Ping timeout: 250 seconds)
257: [12:16:06] * UndefinedOffset has joined #silverstripe
258: [12:16:50] * Error404NotFound has joined #silverstripe
259: [12:19:54] * nikrolls has joined #silverstripe
260: [12:21:13] * Shrike_Finland has joined #silverstripe
261: [12:22:26] * dendeffe has joined #silverstripe
262: [12:29:30] * MrJeremy has joined #silverstripe
263: [12:31:10] * FrozenFire quit (*.net *.split)
264: [12:35:48] * FrozenFire has joined #silverstripe
265: [12:36:49] * Error404NotFound quit (Read error: Connection reset by peer)
266: [12:40:22] * travis-ci has joined #silverstripe
267: [12:40:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#410 (3.0 - d2105ef : Ingo Schommer): The build passed.
268: [12:40:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/46d62efd81c6...d2105ef7a635
269: [12:40:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7804158
270: [12:40:23] * travis-ci has left #silverstripe
271: [12:48:23] * osterlaus quit (Quit: Leaving.)
272: [12:48:28] * travis-ci has joined #silverstripe
273: [12:48:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#228 (3.0 - 1d01347 : Ingo Schommer): The build passed.
274: [12:48:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/95a206290fc7...1d01347fd31a
275: [12:48:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7804164
276: [12:48:28] * travis-ci has left #silverstripe
277: [12:52:30] * osterlaus has joined #silverstripe
278: [12:54:48] * WillM quit (Quit: Ciao mateys.)
279: [13:11:12] * osterlaus quit (Quit: Leaving.)
280: [13:13:27] <willmorgan> is there any way I can disable sessions while using RestfulServer?
281: [13:14:12] * travis-ci has joined #silverstripe
282: [13:14:13] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#229 (3.0 - d3a4161 : Ingo Schommer): The build passed.
283: [13:14:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1d01347fd31a...d3a4161a9458
284: [13:14:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7804901
285: [13:14:13] * travis-ci has left #silverstripe
286: [13:16:31] * osterlaus has joined #silverstripe
287: [13:17:37] * UndefinedOffset1 has joined #silverstripe
288: [13:17:38] * UndefinedOffset quit (Disconnected by services)
289: [13:17:49] * UndefinedOffset1 is now known as UndefinedOffset
290: [13:20:44] * dangerdan quit (Quit: Page closed)
291: [13:21:37] <kinglozzer> Anyone know if there's any way to mock filesize() with PHPUnit? I'm guessing not
292: [13:22:16] <kinglozzer> Oh actually I don't think I even need that method, never mind
293: [13:23:36] * Shrike_Finland quit (Quit: Leaving.)
294: [13:24:18] * ooystein_ has joined #silverstripe
295: [13:26:22] * ajmitch_ has joined #silverstripe
296: [13:26:29] * abitran_ has joined #silverstripe
297: [13:27:38] * travis-ci has joined #silverstripe
298: [13:27:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#230 (3.1 - 7791f20 : Ingo Schommer): The build passed.
299: [13:27:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/358988e9c605...7791f20f4957
300: [13:27:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7805432
301: [13:27:39] * travis-ci has left #silverstripe
302: [13:27:39] * lewellyn quit (Ping timeout: 264 seconds)
303: [13:27:41] * osterlaus quit (Quit: Leaving.)
304: [13:31:00] * travis-ci has joined #silverstripe
305: [13:31:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#411 (3.1 - df1836a : Ingo Schommer): The build passed.
306: [13:31:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/347f2232f47d...df1836add2cb
307: [13:31:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7805441
308: [13:31:00] * travis-ci has left #silverstripe
309: [13:31:11] * ajmitch quit (*.net *.split)
310: [13:31:14] * ooystein quit (*.net *.split)
311: [13:31:18] * ss-log quit (*.net *.split)
312: [13:31:22] * abitran quit (*.net *.split)
313: [13:31:44] * IainKay quit (*.net *.split)
314: [13:34:51] * Hippiee quit (Write error: Connection reset by peer)
315: [13:34:51] * Hippiee has joined #silverstripe
316: [13:34:52] * Colin[pi] quit (Read error: Connection reset by peer)
317: [13:34:53] * Colin[pi] has joined #silverstripe
318: [13:34:55] * spronk quit (Ping timeout: 261 seconds)
319: [13:34:55] * cloph_away quit (Ping timeout: 261 seconds)
320: [13:35:02] * [lewellyn] has joined #silverstripe
321: [13:35:03] * cloph_away has joined #silverstripe
322: [13:37:39] * dendeffe_ has joined #silverstripe
323: [13:37:44] * dendeffe quit (Read error: Connection reset by peer)
324: [13:37:44] * dendeffe_ is now known as dendeffe
325: [13:38:23] * IainKay has joined #silverstripe
326: [13:39:41] * Mark- quit (Ping timeout: 264 seconds)
327: [13:40:13] <IainKay> anybody managed to get tabs working on "settings" page?
328: [13:41:36] * Zauberfisch|idle quit (Read error: Connection reset by peer)
329: [13:41:54] * Colin[pi] quit ()
330: [13:41:55] * Zauberfisch|idle has joined #silverstripe
331: [13:43:52] <kinglozzer> IainKay: Yeah
332: [13:44:41] <kinglozzer> $fields->addFieldToTab('Root.TabName', $field);
333: [13:45:51] <IainKay> strange, im pretty sure i tried that and it didnt work. would i need to run /dev/build after adding that?
334: [13:46:09] <kinglozzer> Nope, should just work straight away
335: [13:49:52] * [lewellyn] is now known as Guest48741
336: [13:50:16] <IainKay> okay i will try again
337: [13:50:21] <IainKay> kinglozzer must be due u a coupla beers now
338: [13:50:32] <kinglozzer> :P
339: [13:50:47] <IainKay> if i had more coins just now would offer u some BTC or LTC
340: [13:53:03] * Guest48741 is now known as lewellyn
341: [13:53:23] * lewellyn quit (Changing host)
342: [13:53:23] * lewellyn has joined #silverstripe
343: [13:53:28] <IainKay> it works
344: [13:54:07] * rved has joined #silverstripe
345: [13:55:09] <IainKay> and capitalisation of a word inserts a space in the title displayed, sexy
346: [13:55:28] <kinglozzer> IainKay: BTC is bitcoins right? I've never used it
347: [13:55:34] <IainKay> yeah
348: [13:55:39] <IainKay> ive got 4x AMD 7970s mining away in my bedroom
349: [13:55:45] <IainKay> making ~$400/month
350: [13:55:47] <kinglozzer> Haha cool
351: [13:55:54] <IainKay> its roughly double coming in compared to power costs
352: [13:56:08] <IainKay> when that hits 0 im gonna turn to using the rig to password crack
353: [13:58:23] <IainKay> not for any dodgy purposes of course, mostly to test how secure my db's and passwords really are
354: [14:00:37] <rved> im using a function to map my drop down menu's , but i want to add a value in between the DOS and the Please select http://paste2.org/vH5k9wCH
355: [14:00:40] <rved> how do i do this
356: [14:08:48] * anujit quit (Ping timeout: 250 seconds)
357: [14:10:04] <priithansen> DropDownField->->setEmptyString('(Select one)');
358: [14:10:12] <priithansen> one -> too many
359: [14:14:15] * wmk quit (Ping timeout: 240 seconds)
360: [14:14:16] * wmk has joined #silverstripe
361: [14:18:43] * Nivery has joined #silverstripe
362: [14:19:43] * Shrike_Finland has joined #silverstripe
363: [14:25:17] * Werner_2_ has joined #silverstripe
364: [14:25:36] * rved has left #silverstripe
365: [14:30:59] * wmk quit (Ping timeout: 240 seconds)
366: [14:30:59] * dendeffe quit (Ping timeout: 240 seconds)
367: [14:33:26] * mento has joined #silverstripe
368: [14:36:58] * FrozenFire quit (*.net *.split)
369: [14:47:47] * nikrolls quit (Ping timeout: 245 seconds)
370: [14:49:02] <mento> Hi guys, does anyone of you have any experiences with multilingual sites in ss 3.0.5 ?
371: [14:49:13] * FrozenFire has joined #silverstripe
372: [14:49:29] <mento> I can't get my .YML language files to work it seems...
373: [14:51:54] * g4b0 has joined #silverstripe
374: [14:53:01] <mento> Placed my language file in mysite/lang/en_US.yml -> http://www.sspaste.com/paste/show/51af50a0b2dc6
375: [14:53:27] <AlphaCactus> lainKay: did you flush after adding the tabs?
376: [14:56:02] <AlphaCactus> rved: can you just save your map to a variable and array_unshift another item onto the front of it
377: [14:56:07] * MrJeremy quit (Ping timeout: 245 seconds)
378: [15:02:12] * chillu quit (*.net *.split)
379: [15:07:25] * chillu has joined #silverstripe
380: [15:08:56] <martimiz> Hi all, in SS3, can you still add customScript in, say, getCMSFields without it getting lost on AJAX calls?
381: [15:10:09] <martimiz> I'm trying to change some options on a single instance of HTMLEditorField
382: [15:10:47] <martimiz> in the GridField edit form
383: [15:13:06] * lewellyn quit (Ping timeout: 260 seconds)
384: [15:15:27] <AlphaCactus> martimiz: you can set options on an HTMLEditorField without ajax, unles you want to make dynamic changes client side
385: [15:16:13] * MrJeremy has joined #silverstripe
386: [15:16:27] <martimiz> yes, thanks, I know - it works on page reloads, but not on Ajax calls
387: [15:17:24] <martimiz> I wanted to use the default on a page, then different options in the GridField detailsform
388: [15:19:44] * osterlaus has joined #silverstripe
389: [15:20:01] * osterlaus has left #silverstripe
390: [15:20:11] <AlphaCactus> ah, hm. don't have a quick answer to that
391: [15:20:35] <martimiz> Thanks just the same :)
392: [15:24:52] <kinglozzer> martimiz: Any customScript you add in getCMSFields() should stick around, it just won't be reloaded by the browser on each ajax request
393: [15:26:08] <kinglozzer> Unless I'm misunderstanding what you need to do, you can use entwine and an onmatch event to execute specific JS each time
394: [15:27:12] <martimiz> kinglozzer: if you add it to a dataobjects getCMSField, it will only be present if you reload the Detail form it's on.
395: [15:27:32] <martimiz> Not if you navigate there from a page...
396: [15:28:22] * MrJeremy quit (Quit: MrJeremy)
397: [15:28:23] <kinglozzer> Are you sure? I've used getCMSFields() to add additional javascript with Requirements::javascript() before and it worked fine for me.
398: [15:29:09] <AlphaCactus> I don't get what you mean by "navigate there from a page"
399: [15:29:37] <kinglozzer> I think he meant editing a page that has a has_many/many_many GridField, then editing one of those GridField items
400: [15:29:56] <martimiz> Yes something like that :)
401: [15:31:18] <martimiz> Reload the GridField detail form and it's there, open it from the gridfield list and it's not.
402: [15:32:28] <kinglozzer> Strange, an alternative solution would be too add the javascript to your Page::getCMSFields()
403: [15:32:40] <martimiz> I suppose so...
404: [15:32:41] <kinglozzer> Should guarantee it's loaded, even if it's loaded early
405: [15:33:54] <martimiz> Still you cannot load two HTMLEditorConfigs, because they both get the same uniqueID
406: [15:41:30] * discorpia quit (Ping timeout: 256 seconds)
407: [15:41:33] * aragonne quit (Ping timeout: 256 seconds)
408: [15:41:37] * discorpia has joined #silverstripe
409: [15:49:43] * g4b0 quit (Ping timeout: 264 seconds)
410: [15:49:44] * IainKay quit (Ping timeout: 264 seconds)
411: [15:50:21] * IainKay has joined #silverstripe
412: [15:54:08] * catcher has joined #silverstripe
413: [15:57:56] * chillu quit (*.net *.split)
414: [15:58:00] * Nivery quit (*.net *.split)
415: [15:58:02] * cloph_away quit (*.net *.split)
416: [15:58:02] * Hippiee quit (*.net *.split)
417: [15:59:37] * kinglozz_ has joined #silverstripe
418: [16:01:14] * aragonne has joined #silverstripe
419: [16:01:16] * priithansen quit (Ping timeout: 246 seconds)
420: [16:01:58] * kinglozzer quit (Ping timeout: 246 seconds)
421: [16:02:20] * kinglozz_ is now known as kinglozzer
422: [16:02:36] * cloph_away has joined #silverstripe
423: [16:13:46] * chillu has joined #silverstripe
424: [16:13:46] * Nivery has joined #silverstripe
425: [16:13:46] * Hippiee has joined #silverstripe
426: [16:14:01] * Hippiee quit (Ping timeout: 257 seconds)
427: [16:15:44] * kinglozzer quit (Remote host closed the connection)
428: [16:15:45] * travis-ci has joined #silverstripe
429: [16:15:45] <travis-ci> [travis-ci] chillu/sapphire#167 (pulls/uploadfield-cols - d2c30c1 : Ingo Schommer): The build failed.
430: [16:15:45] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/7bcaf90e2ac4^...d2c30c120018
431: [16:15:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7810903
432: [16:15:45] * travis-ci has left #silverstripe
433: [16:16:42] <mento> Managed to get my translation to work in SS 3.0.5 -> some strange differences in the document though: http://www.silverstripe.org/template-questions/show/23919
434: [16:21:21] * mento quit (Quit: Page closed)
435: [16:24:54] * Werner_2_ quit (Quit: nice to meet you ;))
436: [16:32:34] * robert_ has joined #silverstripe
437: [16:32:35] * robert_ quit (Changing host)
438: [16:32:35] * robert_ has joined #silverstripe
439: [16:57:38] * Liquide has joined #silverstripe
440: [17:01:30] * onre_ has joined #silverstripe
441: [17:05:54] * onre quit (*.net *.split)
442: [17:05:56] * pippy quit (*.net *.split)
443: [17:05:56] * Kapdap quit (*.net *.split)
444: [17:05:57] * unsignedint quit (*.net *.split)
445: [17:05:59] * cloph_away quit (*.net *.split)
446: [17:06:00] * IainKay quit (*.net *.split)
447: [17:06:01] * catcher quit (*.net *.split)
448: [17:08:27] * cloph_away has joined #silverstripe
449: [17:08:28] * catcher has joined #silverstripe
450: [17:08:28] * IainKay has joined #silverstripe
451: [17:08:28] * pippy has joined #silverstripe
452: [17:08:28] * Kapdap has joined #silverstripe
453: [17:08:28] * unsignedint has joined #silverstripe
454: [17:10:20] * cloph_away quit (Excess Flood)
455: [17:31:10] * martimiz quit (Ping timeout: 250 seconds)
456: [17:47:31] * gelignite has joined #silverstripe
457: [18:34:36] * anujit has joined #silverstripe
458: [18:35:18] <anujit> Hi please anybody help me for showing data from memberdecorator in cms area
459: [18:51:31] * zfmf1 has joined #silverstripe
460: [18:51:52] <anujit> getting error Call to undefined method MemberDecorator::has_one() in C:\wamp\www\SilverStripe\sapphire\forms\ComplexTableField.php on line 451
461: [19:07:08] * cloph_away has joined #silverstripe
462: [19:09:35] * Nivery quit (Quit: Nivery)
463: [19:12:18] * ooboo has joined #silverstripe
464: [19:12:21] <ooboo> hello
465: [19:12:43] <ooboo> is there anyway to make dev/build from the commnadline read from the SS_DATABASE_NAME env variable?
466: [19:14:46] * RojoD has joined #silverstripe
467: [19:16:22] * Nivery has joined #silverstripe
468: [19:19:25] * ooboo quit (Quit: Page closed)
469: [19:24:14] * chillu quit (Remote host closed the connection)
470: [19:31:57] * discorpia quit (Ping timeout: 256 seconds)
471: [19:33:00] * SightUnseen has joined #silverstripe
472: [19:33:00] * SightUnseen has left #silverstripe
473: [19:33:11] * discorpi1 has joined #silverstripe
474: [19:44:57] * Peavers has joined #silverstripe
475: [19:56:46] * anujit quit (Ping timeout: 250 seconds)
476: [20:02:54] * zfmf1 quit (*.net *.split)
477: [20:08:22] * zfmf1 has joined #silverstripe
478: [20:13:44] <irogue> morning y'all!
479: [20:13:48] <ss23> moin moin
480: [20:17:43] * zfmf1 quit (Ping timeout: 240 seconds)
481: [20:18:11] * RojoD quit (Changing host)
482: [20:18:12] * RojoD has joined #silverstripe
483: [20:24:28] * UndefinedOffset quit (Quit: Leaving.)
484: [20:34:02] * martimiz has joined #silverstripe
485: [20:37:37] * Pyromanik has joined #silverstripe
486: [20:38:36] * martimiz quit (Client Quit)
487: [20:39:39] * RojoD quit (Ping timeout: 256 seconds)
488: [20:48:28] * gelignite quit (Quit: http://bit.ly/nkczDT)
489: [20:54:44] * zippy__ has joined #silverstripe
490: [20:54:51] <zippy__> Morning
491: [20:55:16] <ss23> moin
492: [20:56:38] * DigNZ has joined #silverstripe
493: [20:59:53] <catcher> anyone have some .htaccess magic handy to redirect all front-end requests to a 'construction' page while allowing CMS access?
494: [21:00:40] <ss23> I just put a password on while it's all under construction
495: [21:00:49] <ss23> Password with a "Under Construction" works well enough I think
496: [21:02:31] <catcher> ss23, you mean a general permission check/failure in Page_Controller init() or something?
497: [21:04:34] * Nivery has left #silverstripe
498: [21:04:46] <zippy__> There is a basic auth setting you can set to protect the entire site, somewhere
499: [21:04:56] <ss23> catcher: No, .htaccess
500: [21:06:37] * SightUnseen has joined #silverstripe
501: [21:06:45] <catcher> Ah, I see test mode & BasicAuth::protect_entire_site(), thansk
502: [21:06:45] <zippy__> BasicAuth::protect_entire_site(); in your _config I think
503: [21:06:47] <catcher> thanks*
504: [21:06:55] <zippy__> not sure if still there in SS3
505: [21:07:49] <zippy__> Is there a way to re-route a request internally, without redirecting?
506: [21:08:16] <zippy__> Say I have, /contact and /contact/1 and /contact/2 - if the user hits /contact I check a certain param on the request, and serve the content for /contact/1 instead.
507: [21:08:21] <zippy__> but I don't want to redirect
508: [21:08:49] * SightUnseen has left #silverstripe
509: [21:10:25] <catcher> zippy__, you can render custom data with Customise()
510: [21:10:45] <catcher> render with* custom data, I should say
511: [21:12:00] * shakesoda has joined #silverstripe
512: [21:13:05] <zippy__> Interesting
513: [21:13:36] * lewellyn has joined #silverstripe
514: [21:13:37] <zippy__> so I "should" just be able to look up the other page, then pass that to the render
515: [21:13:39] <zippy__> thanks :)
516: [21:14:00] <zippy__> ps, is your site currently live and indexed in google and people visiting it?
517: [21:14:20] <catcher> zippy__, unfortunately, yes
518: [21:14:51] <catcher> I have a mountain of changes to push requiring tasks to run, etc. that will surely break the site for a bit.
519: [21:16:30] <zippy__> ok, I would probably then create a maintainance.php file, which had a 503 status code and a short message saying your down for maintaince.
520: [21:17:31] <zippy__> then either a) in the htaccess, if the IP is not your own map the request to the maintaince.php (don't 301 or 302)
521: [21:17:35] <catcher> so I'm back to the .htaccess question :) I need CMS access during this
522: [21:18:06] <zippy__> or b) in the main-silverstripe.php (check which php it is in the htaccess) do a php check on IP, and if it's not yours include that php file and die
523: [21:18:59] <zippy__> If I came to a site I usually visit, and it started poping up auth dialog I would be pretty puzzled
524: [21:19:00] <catcher> wish I could - my organization shares a public-facing IP, and the internal viewers are actually more important.
525: [21:19:51] <zippy__> ok, just check if isAdmin or RequestURI starts with /admin or /Security
526: [21:20:05] <zippy__> or /dev :)
527: [21:20:17] <zippy__> nm, isAdmin will sort that /dev
528: [21:21:43] <zippy__> you could do most of it with htaccess, but I think you really should look at the front end of your site as well, hence the isadmin check
529: [21:23:41] <zippy__> RewriteCond %{REQUEST_URI} !^/admin
530: [21:23:41] <zippy__> RewriteCond %{REQUEST_URI} !^/Security
531: [21:23:42] <zippy__> RewriteCond %{REQUEST_URI} !^/dev
532: [21:23:43] <zippy__> RewriteRule .* maintainance.php [L]
533: [21:24:00] <catcher> zippy__, much appreciated
534: [21:24:01] <zippy__> just do it before the just put before framework/main.php?url=%1&%{QUERY_STRING} [L] block
535: [21:24:07] <zippy__> "should" work, or get you close~
536: [21:24:20] <catcher> it will indeed, thanks
537: [21:24:29] <zippy__> make sure to drop a 503 so search engines know to come back
538: [21:25:16] <zippy__> Interseting, no ops in the channel
539: [21:25:52] <catcher> ddos has been splitting irc a lot, nobody can stay parked it seems
540: [21:26:13] <irogue> yeah, and no services
541: [21:26:55] <zippy__> reminds me of the good old days
542: [21:27:15] <shakesoda> is it possible to get the visibility section of page settings and add stuff to it, or do I have to add stuff to the bottom?
543: [21:27:52] <shakesoda> I was looking through the docs and the file and I didn't see an obvious way
544: [21:27:56] <zippy__> bots and wars, warez channels, massive splits, perm bans and all sorts
545: [21:28:20] <zippy__> anyway, suppose I better go bill some time out
546: [21:28:31] * Peavers quit (Ping timeout: 246 seconds)
547: [21:28:44] * Peavers has joined #silverstripe
548: [21:29:05] <shakesoda> freenode gets lots of ddos attacks. it's almost like someone thinks they are getting something done by it.
549: [21:29:13] <shakesoda> heh
550: [21:31:55] * pex has joined #silverstripe
551: [21:32:17] <zippy__> DALnet - thats the network I used to hang out in, that got some massive DDoS attacks
552: [21:33:03] * zippy__ remeniss
553: [21:38:47] * chillu has joined #silverstripe
554: [21:42:46] <zippy__> catcher: success?
555: [21:43:07] <catcher> zippy__, getting close!
556: [21:43:19] <zippy__> sweet
557: [21:43:42] <zippy__> you may need to allow the themes folder, for css/img/js etc
558: [21:45:54] * Stomach has joined #silverstripe
559: [21:51:30] * priithansen has joined #silverstripe
560: [21:52:20] * willr_ has joined #silverstripe
561: [22:12:11] * cloph_away quit (Ping timeout: 260 seconds)
562: [22:12:14] * nikrolls has joined #silverstripe
563: [22:13:08] * cloph_away has joined #silverstripe
564: [22:42:22] <irogue> ah yes, dalnet
565: [22:42:24] <irogue> those were the days
566: [22:44:48] * Jayden909090 has joined #silverstripe
567: [22:45:46] <irogue> http://www.silverstripe.org/help-and-support/ <-- wonder if the mailing list thing should be amended to make it clear it's not a suitable place to ask for help?
568: [22:46:41] <irogue> at the moment it's really not clear, so it's understandable that non-English speakers end up posting there
569: [22:47:25] <catcher> hrm, no luck
570: [22:48:09] <catcher> willr_, do I recall you having .htaccess cond/rule for redirecting all requests except admin & Security?
571: [22:48:39] <zippy__> catcher: What is it doing?
572: [22:48:42] <willr_> RewriteCond %{REQUEST_URI} !^/yourfolder/.*
573: [22:49:45] <zippy__> you need to make sure you are putting these rules above the block which sends requests to silverstipe - otherwise they won't be hit
574: [22:49:55] <catcher> zippy__, willr_, /admin also redirects with those.
575: [22:50:02] <catcher> It's above the main SS block
576: [22:50:12] <zippy__> paste bin your htaccess
577: [22:53:11] <catcher> here's the basic version (without 503, css/js): http://pastebin.com/sDfL9bfD
578: [22:57:48] <zippy__> what do urls look like in your browser?
579: [22:58:09] <zippy__> http://local.Mysite/admin/ ?
580: [22:58:27] <catcher> yepyep
581: [22:58:38] <zippy__> or - http://soething.local/local.MySite/admin/
582: [22:59:04] <catcher> oh - localhost/local.Mysite/admin
583: [22:59:37] <catcher> that messing with the URI?
584: [23:00:45] <zippy__> try moving that base down to above " # MAIN SS REWRITE RULES"
585: [23:01:03] <zippy__> and try with RewriteCond %{REQUEST_URI} !^/local.Mysite/admin
586: [23:01:08] <zippy__> it shouldn't matter, but just to see
587: [23:02:58] * Jayden909090 quit (Quit: Page closed)
588: [23:03:05] <zippy__> or you might find going to admin is taking you to another page, which is then getting caught up and sending you to maintaince mode - check the network tab on the browser, or do a curl to see where it's going
589: [23:03:57] <catcher> good thoughts, though curl looks like it's requesting local.Mysite/admin as expected
590: [23:04:10] * sminnee has joined #silverstripe
591: [23:04:10] * sminnee quit (Changing host)
592: [23:04:10] * sminnee has joined #silverstripe
593: [23:04:13] <catcher> no luck with adding local.Mysite to the cond either.
594: [23:05:05] * joelpittet has joined #silverstripe
595: [23:05:11] <zippy__> hm
596: [23:11:29] * MichaelDesignerX has joined #silverstripe
597: [23:20:01] * nickmolhoek has joined #silverstripe
598: [23:20:01] * nickmolhoek quit (Remote host closed the connection)
599: [23:20:16] * nickmolhoek has joined #silverstripe
600: [23:21:56] * thiemen has joined #silverstripe
601: [23:24:18] <thiemen> hey everyone - jut a quick question - does anyone know how to add a custom SQL Query to a Datalist? In case stuff like ->filter() is not sufficient???
602: [23:24:27] * thiemen is now known as nicolaas
603: [23:27:08] <willr_> nicolaas what type of SQL?
604: [23:27:37] <ss23> https://jira.mongodb.org/browse/PYTHON-532 ahahahaha, best bug report I have seen in recent times
605: [23:28:38] <nicolaas> hi Will: SQLQuery class I guess.
606: [23:30:59] <unsignedint> ss23: haha thats awesome
607: [23:31:12] <nicolaas> Doing $DataList->setDataQuery($mySQLQuery) did not seem to do it (the expected argument is an DataQuery rather than an SQLQuery
608: [23:31:56] <irogue> ss23: omg epic
609: [23:32:02] <ss23> XD
610: [23:34:07] <nicolaas> ss23: comments are worth a read ;-)
611: [23:34:18] * catcher quit (Quit: Leaving)
612: [23:34:29] <ss23> nicolaas: Yeah, noticed the "They actually do have a liscence!"
613: [23:34:29] <ss23> :P
614: [23:34:58] <AlphaCactus> Jibbers McGee added a comment: Apologies to anyone offended by this report. Thanks for your effort!
615: [23:35:03] <unsignedint> hey does anyone know how to get a list of a class/classes suitable for a DropdownField. I essentially want to provide these as options for a use to change the ClassName of my custom DataObject
616: [23:35:35] <unsignedint> (provide a class name, get a list of itself and all subclasses)
617: [23:35:44] * Colin[pi] has joined #silverstripe
618: [23:35:51] <AlphaCactus> unsignedint: you could try using an interface if you don't want to hardcode.
619: [23:36:30] <unsignedint> I dont want to hardcode because im lazy more than anything :P but thats a good suggestion, I didnt think of that
620: [23:36:41] <AlphaCactus> and then ClassInfo::subclassesFor(baseclass);
621: [23:37:17] <AlphaCactus> oops I confused myslf, that is just inheritance based not interface based.
622: [23:37:26] <unsignedint> Actually, ClassInfo::subclassesFor was exactly what I needed
623: [23:37:29] <unsignedint> thanks
624: [23:39:49] <AlphaCactus> great. the interface way is ClassInfo::implementorsOf(). I use both in one project so got misdirected a little.
625: [23:43:47] <Peavers> Question time..
626: [23:44:31] <Peavers> no nevermind ;)
627: [23:54:22] * pex quit (Quit: pex)
628: [23:54:57] * zippy__ quit (Quit: zippy__)

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