#silverstripe IRC Log

IRC log for 17 June 2013

All timestamps are in UTC.

1: [00:00:01] <Pyromanik> blah has_many foo
2: [00:00:07] <Pyromanik> then foo needs to has_one blah
3: [00:00:17] <Pyromanik> and if you don't, it breaks.
4: [00:00:18] * mattybalaam quit (Quit: mattybalaam)
5: [00:00:25] <Pyromanik> with ParentID's and the like
6: [00:00:54] <Pyromanik> when something tries to traverse back and can't guess correctly what the relation name is
7: [00:00:54] <Pyromanik> it defaults to parent
8: [00:01:24] <SphereSilverNL> thus, if "ParentID" is not in the table, things go boom
9: [00:02:18] <SphereSilverNL> Can someone please tell my cat she wont get anymore food tonight?
10: [00:02:54] <Peavers> So MeetingAgenda has_one 'Meeting' => 'MeetingAgenda', and Meeting has_one 'MeetingAgenda' => 'Meeting',>
11: [00:02:57] <Peavers> ?
12: [00:05:45] * chillu quit (Quit: chillu)
13: [00:06:51] * pevjan has joined #silverstripe
14: [00:07:20] <SphereSilverNL> no
15: [00:07:34] <SphereSilverNL> MeetingAgenda => has many
16: [00:07:46] <SphereSilverNL> MeetingAgendaOwner => has one
17: [00:07:58] <SphereSilverNL> or vice versa, depending on what you want
18: [00:13:16] * nickmolhoek quit (Ping timeout: 264 seconds)
19: [00:13:59] * Bollig|DesignCty has joined #silverstripe
20: [00:19:59] * joelpittet quit (Read error: Connection reset by peer)
21: [00:20:28] * joelpittet has joined #silverstripe
22: [00:32:11] <mobiusnz> hey, is there an easy way to make a SS form that allows for many fields added by javascript?
23: [00:32:50] * DigNZ quit (Quit: DigNZ)
24: [00:36:27] <zippy__> use the user forms module
25: [00:37:57] <mobiusnz> zippy__: does it allow forms with arbitrary numbers of fields? I'm meaning a web user will enter in details, click a plus, and enter in more details, and again and again if need be. So each time a form is submitted it has 1 or more entries
26: [00:39:13] * pex quit (Remote host closed the connection)
27: [00:58:12] * joelpittet quit (Remote host closed the connection)
28: [00:59:50] * pevjan quit (Remote host closed the connection)
29: [01:01:36] * MrJeremy quit (Quit: MrJeremy)
30: [01:10:42] * spronk has left #silverstripe
31: [01:11:05] * spronk has joined #silverstripe
32: [01:13:21] <Pyromanik> SphereSilverNL's cat, you are not getting any more food tonight.
33: [01:13:36] <spronk> man
34: [01:13:39] <spronk> wet as fuck
35: [01:13:55] <spronk> hmm, is it just me or is the number of participants in this channel shrinking
36: [01:14:58] * simon_w has joined #silverstripe
37: [01:14:59] <Pyromanik> spronk: comes and goes
38: [01:17:13] <simon_w> Aww, I might need a new IRC client
39: [01:18:50] * simon_w quit (Remote host closed the connection)
40: [01:19:49] <Pyromanik> why?
41: [01:20:55] * nickmolhoek has joined #silverstripe
42: [01:20:56] * nickmolhoek quit (Remote host closed the connection)
43: [01:21:10] * nickmolhoek has joined #silverstripe
44: [01:22:18] <spronk> Pyromanik: central city flooding much?
45: [01:22:27] * unsignedint has joined #silverstripe
46: [01:24:26] * Colin[pi] bangs head against table repeatedly
47: [01:34:35] * Pyromanik loads canterburyhockey.org.nz, sees spronk's mug on the homepage
48: [01:35:26] <Pyromanik> spronk: dunno, at work on second level.
49: [01:35:42] * pevjan has joined #silverstripe
50: [01:35:50] <Pyromanik> 'carpark' (backfilled empty lot with tow away signs and rope) has a HUGE puddle in it though.
51: [01:36:02] <Pyromanik> prolly at least 50cm in the middle.
52: [01:36:34] * pevjan quit (Remote host closed the connection)
53: [01:38:37] <Pyromanik> but actual streets aren't too bad from what I saw at lunch
54: [01:52:01] * MrJeremy has joined #silverstripe
55: [01:53:08] <spronk> mm
56: [02:03:31] * pevjan has joined #silverstripe
57: [02:24:16] * simon_w has joined #silverstripe
58: [02:31:32] <simon_w> Oh man, xchat azure didn't copy my colours across
59: [02:31:36] <simon_w> this looks horrible
60: [02:34:46] <spronk> lol
61: [02:34:47] <spronk> ?
62: [02:35:10] <spronk> xchat...
63: [02:35:12] <spronk> on osx
64: [02:35:12] <spronk> le sigh
65: [02:35:51] <simon_w> xchat aqua is the best IRC client I've used
66: [02:35:56] <spronk> i dno
67: [02:35:57] <simon_w> Sadly, it doesn't play nice with beta OSs
68: [02:35:59] <spronk> its pretty ugly
69: [02:36:09] <simon_w> its pretty ugly what?
70: [02:36:23] <spronk> to look at
71: [02:36:24] <spronk> :P
72: [02:36:31] <simon_w> That still doesn't make sense :p
73: [02:37:12] <spronk> the ui is ugly
74: [02:37:15] <spronk> this matters on osx :P
75: [02:38:17] * SphereSilverNL quit (Remote host closed the connection)
76: [02:38:37] <simon_w> azure's definitely is
77: [02:38:48] <simon_w> aqua's is nice
78: [02:39:29] <Pyromanik> spronk: hockey canned
79: [02:39:46] <spronk> :(
80: [02:39:58] <spronk> simon_w: screenie?
81: [02:40:09] <Pyromanik> yes, screeny all the things
82: [02:40:19] <simon_w> Hangon, will try to clear the old colours
83: [02:40:22] * simon_w has left #silverstripe
84: [02:40:22] * simon_w has joined #silverstripe
85: [02:40:31] <simon_w> Eh, will take too long
86: [02:40:47] <simon_w> http://swng.it/23IuNj is what I'm having to deal with
87: [02:41:36] <simon_w> If you wait until I get home, I can show you how I have aqua set up
88: [02:41:41] <spronk> lawl
89: [02:41:44] <spronk> also, those buttons D:
90: [02:42:00] <spronk> where are the nice safa-style tabs :(
91: [02:44:17] <simon_w> Where's my growl notifications :(
92: [02:44:39] <spronk> lol growl
93: [02:44:41] <spronk> didn't that like
94: [02:44:43] <spronk> die?
95: [02:45:06] <simon_w> Nope
96: [02:45:08] <spronk> hmm.. i wonder if you can remove notification centre
97: [02:45:34] <simon_w> Nope
98: [02:45:39] <spronk> :(
99: [02:46:09] <simon_w> Growl's one of the few things I've actually seen take the number 1 spot on top paid in the MAS
100: [02:46:47] <spronk> interesting
101: [02:46:56] <spronk> i found it a bit nasty that they decided to make it a paid app
102: [02:50:39] <simon_w> It's something I use a lot. I'm fine with them getting some money from it.
103: [02:51:43] <spronk> yeah, but it was more that growl were setting themselves up to be the de facto notification system
104: [02:51:58] * DigNZ has joined #silverstripe
105: [02:51:59] <spronk> so they get critical mass, then start charging for the privilege
106: [02:53:39] <simon_w> http://growl.info/documentation/developer/growl-source-install.php
107: [02:53:43] <simon_w> Build it yourself then
108: [02:54:07] <simon_w> And it even works without you having the app installed
109: [02:54:11] <spronk> yeah i know
110: [02:54:30] <spronk> but it does seem like they cut their head off
111: [02:55:05] <spronk> also stuff like hardwaregrowler that was always a free plugin suddenly starts costing 2x the average cheap little app
112: [02:55:31] <simon_w> So it's actually reasonably priced
113: [02:55:41] <spronk> well
114: [02:55:42] <spronk> not really
115: [02:56:16] <spronk> source code is pretty freakin lightweight
116: [02:58:43] <spronk> what i used to have was growl + tunes + hardware . That's like.. $3.99 + $2.99 + $1.99 now !
117: [02:58:55] <simon_w> So?
118: [02:59:02] <spronk> that's like $12!
119: [02:59:34] <simon_w> $9, and so?
120: [03:00:01] <spronk> (nzd)
121: [03:00:09] <spronk> i can't remember the last time i paid $12 for an app :p
122: [03:00:12] <spronk> actually i can, prompt
123: [03:00:27] <spronk> actually that was only $10
124: [03:00:46] <simon_w> I would be more than willing to pay $15 for Growl itself
125: [03:01:38] <spronk> man, i don't have that much money to spend on nice to haves :P
126: [03:03:25] <spronk> maybe back when i had disposable income and no responsibilities..
127: [03:03:45] * joelpittet has joined #silverstripe
128: [03:03:47] <spronk> but $15, that's like two days of food!
129: [03:04:42] <spronk> aanyway. i just thought bit of a dick move after their original strategy
130: [03:04:58] <spronk> they're entitled of course
131: [03:15:00] * KayTwo has joined #silverstripe
132: [03:15:11] <KayTwo> hey all
133: [03:15:15] <KayTwo> probably a simple one
134: [03:15:26] <KayTwo> index.php is being inserted into my image links
135: [03:15:31] <KayTwo> any idea how to get rid of it?
136: [03:16:07] <spronk> is it inserted into normal page links?
137: [03:17:05] <KayTwo> nope
138: [03:17:18] <spronk> hmm
139: [03:21:22] <KayTwo> I think it might be because i'm doing a leftjoin() on the dataobject
140: [03:24:15] <KayTwo> http://www.silverstripe.org/general-questions/show/13550
141: [03:25:38] <spronk> hmm
142: [03:25:41] <spronk> i've never seen that before
143: [03:29:38] * nickmolhoek quit (Ping timeout: 276 seconds)
144: [03:30:52] <KayTwo> looks like it was something to do with mod_reqrite
145: [03:30:55] <KayTwo> *rewrite
146: [03:31:08] <KayTwo> I renamed the index.php file in the root directory and that seemed to fix it
147: [03:31:47] <spronk> o_O
148: [03:32:12] <KayTwo> haha yeah
149: [03:32:23] <Colin[pi]> I delete index.php from my standard installs
150: [03:32:31] <Colin[pi]> if it's there, it interferes with the URL rewriting
151: [03:32:40] <KayTwo> just a band aid fix - going to look through my .htaccess and php.ini and see if I can identify something wrong or missing
152: [03:32:55] * pevjan quit (Remote host closed the connection)
153: [03:33:22] <spronk> that's surely a bug
154: [03:35:12] <simon_w> It's an Apache thing. Sometimes, it looks for a default file before doing the mod_rewrite stuff (which is really annoying)
155: [03:35:36] <Colin[pi]> yep that'd be it
156: [03:35:46] <guzzlefry> Does the admin login have some sort of fail2ban thing going on?
157: [03:36:01] <simon_w> Not by default
158: [03:36:05] <guzzlefry> All I see is a SilverStripe logo in the middle of the page.
159: [03:36:16] <guzzlefry> redirects me to http://localhost/~gus/admin/pages
160: [03:36:57] <simon_w> Getting a javascript error?
161: [03:38:39] * simon_w guesses not in dev mode and assets folder isn't writable by the server
162: [03:40:49] <guzzlefry> Wonder where Firefox hides it's Error Console these days. :P
163: [03:42:15] <Colin[pi]> Web Developer menu?
164: [03:43:09] <guzzlefry> bunch of warnings, one error
165: [03:43:21] <guzzlefry> Error: ReferenceError: jQuery is not defined Source File: http://localhost/~gus/framework/thirdparty/jquery-ui/datepicker/i18n/jquery.ui.datepicker-en.js?m=1370274122
166: [03:45:10] <guzzlefry> simon_w: How do I put it in dev mode? Tutorial doesn't mention this afaik. :P
167: [03:45:54] * nickmolhoek has joined #silverstripe
168: [03:45:55] * nickmolhoek quit (Remote host closed the connection)
169: [03:46:09] * nickmolhoek has joined #silverstripe
170: [03:48:01] <simon_w> guzzlefry, personally, I'd first make sure the server has write access to assets
171: [03:48:14] <simon_w> otherwise, Director::set_environment_type('dev');
172: [03:54:01] <mobiusnz> why does SS hide form errors some times?
173: [03:54:05] <mobiusnz> "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
174: [03:55:19] <simon_w> CSRF token didn't match
175: [03:57:20] <mobiusnz> yeah, just found that
176: [03:57:37] <mobiusnz> I first get a empty response upon form submission
177: [03:57:48] <mobiusnz> then if I try and resubmit then it gives that
178: [03:58:35] <mobiusnz> any clues as to why it might be sending no response? It should be doing Debug::show($data)
179: [03:59:04] * cloph quit (Ping timeout: 240 seconds)
180: [03:59:40] <simon_w> Because you're not in dev mode?
181: [04:00:47] <mobiusnz> I'm localhost
182: [04:00:54] <mobiusnz> everything else shows dev
183: [04:01:15] <mobiusnz> hmm, stepping through the debugger it looks like this kills it: $required->appendRequiredFields(array("FirstName[$x]", "Surname[$x]"));
184: [04:03:52] * cloph_away has joined #silverstripe
185: [04:04:57] <mobiusnz> ok, splitting that out into $required->addRequiredField("FirstName[$x]") seems to work
186: [04:08:13] * zippy__ quit (Quit: zippy__)
187: [04:11:42] * Hippieee has joined #silverstripe
188: [04:18:23] * mobiusnz quit (Quit: Leaving.)
189: [04:23:13] <guzzlefry> simon_w: thanks, it needed to be set to dev.
190: [04:24:44] * dospuntocero has joined #silverstripe
191: [04:26:12] <tankr> anyone know how to get ipc support working with php54 using macports?
192: [04:43:26] <willr_> ipc?
193: [04:44:22] <spronk> interprocess comms?
194: [04:45:33] * gordon has joined #silverstripe
195: [04:45:37] * gordon is now known as elgrodo
196: [04:48:21] * mobiusnz has joined #silverstripe
197: [04:48:23] * Shrike_Finland quit (Quit: Leaving.)
198: [04:50:42] * DigNZ quit (Quit: DigNZ)
199: [04:53:02] <guzzlefry> Has anyone gotten Vim to properly handle template files?
200: [04:55:11] <spronk> i just use xml syntax highlighting for them
201: [04:55:48] <guzzlefry> Does it auto-indent well?
202: [04:56:10] <guzzlefry> err, guess that would be difficult.
203: [04:56:22] <spronk> it... auto indenbts like xml :p
204: [04:57:07] <guzzlefry> Not smart enough to match <% if true %> and <% end_if %> :/
205: [04:57:51] <spronk> no, unfortunately
206: [05:00:57] * DigNZ has joined #silverstripe
207: [05:09:03] <guzzlefry> gah, the template files seem to have changed a lot since that tutorial was written. :P
208: [05:10:31] * nickmolhoek quit (Quit: nickmolhoek)
209: [05:10:39] * Peavers quit (Ping timeout: 246 seconds)
210: [05:18:01] * DigNZ quit (Quit: DigNZ)
211: [05:33:22] <trent001> Bye all
212: [05:33:38] * trent001 quit (Remote host closed the connection)
213: [05:35:47] * Shrike_Finland has joined #silverstripe
214: [05:36:07] <spronk> hmm
215: [05:36:12] <spronk> can you use userforms for in-template forms/
216: [05:36:12] <spronk> ?
217: [05:50:44] * mobiusnz quit (Quit: Leaving.)
218: [05:56:21] * willmorgan1 has joined #silverstripe
219: [06:18:10] <ss23> simon_w: *any* of them?
220: [06:26:49] * Colin[pi] quit (Ping timeout: 268 seconds)
221: [06:40:01] * guci0 has joined #silverstripe
222: [06:40:11] <guci0> Morning!
223: [06:42:41] <ss23> moin guci0
224: [06:43:27] * zfmf1 has joined #silverstripe
225: [06:55:23] * hubertusanton has joined #silverstripe
226: [07:02:17] * Colin[pi] has joined #silverstripe
227: [07:03:00] * guzzlefry quit (Quit: Leaving.)
228: [07:08:38] * willmorgan1 quit (Read error: Connection reset by peer)
229: [07:11:50] * SightUnseen has joined #silverstripe
230: [07:11:52] * SightUnseen has left #silverstripe
231: [07:16:52] * dospuntocero quit (Remote host closed the connection)
232: [07:21:34] * DigNZ has joined #silverstripe
233: [07:22:14] * DigNZ quit (Client Quit)
234: [07:34:31] * PigeonFriend has joined #silverstripe
235: [07:36:17] * PigeonFriend quit (Client Quit)
236: [07:40:49] * PigeonFriend has joined #silverstripe
237: [07:41:57] * simon_w|air has joined #silverstripe
238: [07:44:56] * g4b0_ has joined #silverstripe
239: [07:44:57] <simon_w|air> ss23, if you're on the right side of the street, yes. The 18 means you need to walk a tiny bit further, but any of them will do.
240: [07:47:52] * dospuntocero has joined #silverstripe
241: [07:53:50] * sam___ has joined #silverstripe
242: [07:53:56] <sam___> Hi all
243: [07:54:06] <simon_w|air> evening
244: [07:54:14] <sam___> Please help me on datepicker field to chose only year and month
245: [07:54:22] <sam___> I am using data object manager
246: [07:56:20] <simon_w|air> Why can't you just use two DropdownFields?
247: [07:56:57] * dospuntocero quit (Ping timeout: 245 seconds)
248: [07:58:46] * osterlaus has joined #silverstripe
249: [07:59:39] * chillu has joined #silverstripe
250: [08:00:01] <sam___> ok... not a bad idea
251: [08:00:12] * wmk has joined #silverstripe
252: [08:00:22] <sam___> but the jquery is not worlink
253: [08:00:35] * popeshoe has joined #silverstripe
254: [08:00:40] <g4b0_> hi all
255: [08:01:10] <wmk> good morning
256: [08:03:19] <sam___> morning
257: [08:12:45] <hubertusanton> good morning
258: [08:13:15] <hubertusanton> and a nice morning it is (over here)
259: [08:13:17] * kinglozzer has joined #silverstripe
260: [08:19:39] * priithansen has joined #silverstripe
261: [08:20:43] * lobarvaz has joined #silverstripe
262: [08:25:00] <wmk> html-mail source snippet of the day: <img src="http://domain.tld/images/icons/countries/Icons_Schweiz.jpg" alt="** PLEASE DESCRIBE THIS IMAGE **" >
263: [08:28:36] * openbees has joined #silverstripe
264: [08:29:17] * sam___ quit (Ping timeout: 250 seconds)
265: [08:35:14] <openbees> Hello Guys this is my first try with 3.1 and I am finding very hard to setup configs from config.yml :( here is the setting I am trying and none seems to work http://www.sspaste.com/paste/show/51bec9baaa0e3
266: [08:37:00] <hubertusanton> How to setLeftTitle on CheckBoxField?
267: [08:37:08] <hubertusanton> anyone did that bfore?
268: [08:37:42] <MrJeremy> new netbeans is out
269: [08:38:27] <MrJeremy> 7.3.1
270: [08:40:27] <willmorgan> openbees: are you flushing after yuo modify the config files
271: [08:42:34] <openbees> willmorgan : atleast 10 times and getting warning actually "Invalid argument supplied for foreach() line 624 object.php"
272: [08:42:44] <willmorgan> hmm
273: [08:42:51] <willmorgan> your extra_requirements_* seem a bit weird
274: [08:42:54] <willmorgan> check your syntax
275: [08:43:15] <openbees> added a debug in object nothing found there .. its passing an empty array in foreach
276: [08:43:21] <willmorgan> your extra_requirements_* seem a bit weird
277: [08:43:22] <willmorgan> check your syntax
278: [08:43:27] <openbees> I updated code in comment
279: [08:44:18] <willmorgan> me too
280: [08:46:41] <openbees> ahh so I was missing a '-' .. not mentioned in changelogs though :D
281: [08:46:58] <openbees> thanks willmorgan it worked now :)
282: [08:50:22] * DigNZ has joined #silverstripe
283: [08:52:14] * DigNZ quit (Client Quit)
284: [08:53:05] * mattybalaam has joined #silverstripe
285: [08:56:25] * zippy__ has joined #silverstripe
286: [08:57:27] <hubertusanton> http://www.sspaste.com/paste/show/51becf1f39c2a
287: [08:57:52] <hubertusanton> is it posible to do a setLeftTitle on a checkbox?
288: [09:02:19] <openbees> hubertusanton : API says its possible never tried though http://api.silverstripe.org/3.0/class-FormField.html#_setLeftTitle , http://api.silverstripe.org/3.0/class-FormField.html#_setRightTitle
289: [09:05:21] <openbees> hubertusanton : try updated code may be .
290: [09:05:33] <hubertusanton> yep, i did setLeftTitle but no effect ill check out further, if anyone has a tip let me know
291: [09:05:56] <hubertusanton> ty, im using 3.1 master branch :)
292: [09:08:26] <hubertusanton> think im close, checkboxfield does not use FormField_holder.ss form template :)
293: [09:26:56] <hubertusanton> it can only be done by changing the template in framework FormFIeld_holder.ss no way to override ...
294: [09:28:30] <kinglozzer> hubertusanton: You can set a form field to render with a custom template
295: [09:28:50] <kinglozzer> http://api.silverstripe.org/3.1/class-FormField.html#_setTemplate
296: [09:29:06] <kinglozzer> Ah sorry, field holder, hang on
297: [09:29:14] <kinglozzer> http://api.silverstripe.org/3.1/class-FormField.html#_setFieldHolderTemplate
298: [09:29:17] <kinglozzer> That one :)
299: [09:29:55] <kinglozzer> Then just copy the contents of FormField_holder.ss into a new template, modify it and tell it to use that one
300: [09:37:32] <hubertusanton> i did copy CheckboxField_holder in themes/<websitetheme>/templates/ but it didnt get picked up
301: [09:38:10] <hubertusanton> when editing CheckboxField_holder.ss in framework it does, but thats not the way to go ...
302: [09:38:26] <hubertusanton> so where should i put the copy to get picked up?
303: [09:38:42] <hubertusanton> i already tried zzz_admin/templates/ also no success
304: [09:40:26] <guci0> ss23: :)
305: [09:40:40] <guci0> My brain blows up from ideas :)
306: [09:40:48] * osterlaus quit (Quit: Leaving.)
307: [09:41:32] <guci0> how to get wildcard with SS ? *.domain.tld/controller/...
308: [09:43:22] <simon_w|air> That's got nothing to do with SS
309: [09:43:32] <guci0> I konow :)
310: [09:44:10] <simon_w|air> DNS A/CNAME record for * pointing to the right place, web server set up to handle it
311: [09:44:28] <guci0> Hmm...
312: [09:44:31] <guci0> It's works
313: [09:44:48] <guci0> I have wildcard at server. Sec.
314: [09:45:36] <guci0> <base href="http://test.dtl.pl/"><!--[if lte IE 6]></base><![endif]--> :)
315: [09:45:42] <guci0> Hmm...
316: [09:48:08] <simon_w|air> In most case, you usually don't want to serve the same content, so have a 301 redirect to a single domain
317: [09:48:13] <simon_w|air> but now, I sleep
318: [09:49:21] <guci0> Karaluchy pod poduchy :)
319: [09:52:07] * Hippieee quit (Quit: Leaving)
320: [09:56:17] <hubertusanton> kinglozzer: ty! i did it!
321: [09:56:54] <kinglozzer> Cool :)
322: [09:57:10] * jcwacky has joined #silverstripe
323: [09:58:58] * travis-ci has joined #silverstripe
324: [09:58:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#316 (3.1 - ff26491 : Ingo Schommer): The build passed.
325: [09:58:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/04c337dc8242...ff264919185c
326: [09:58:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8154660
327: [09:58:59] * travis-ci has left #silverstripe
328: [10:00:41] <jcwacky> How can I set a simple configuration variable for a custom module?
329: [10:01:55] * supernovah has joined #silverstripe
330: [10:02:01] * mattybalaam quit (Quit: mattybalaam)
331: [10:02:20] * gumble has joined #silverstripe
332: [10:02:56] * MrJeremy quit (Quit: MrJeremy)
333: [10:06:14] <willmorgan> jcwacky: the config API?
334: [10:06:49] <jcwacky> yep, I'm a bit confused by the page at http://doc.silverstripe.org/framework/en/topics/configuration
335: [10:06:58] <jcwacky> and also need to know how to do it on 2.4
336: [10:07:02] <willmorgan> oh
337: [10:07:06] <willmorgan> for 2.4, you can just use constants
338: [10:07:27] <jcwacky> just need to set a default variable, that can be overridden in the config file if required.
339: [10:07:35] <hubertusanton> kinglozzer: had to put the holder template in mysite/templates
340: [10:07:36] <jcwacky> oh, so just define()?
341: [10:07:49] <willmorgan> yeah
342: [10:07:52] <willmorgan> oh
343: [10:08:00] <jcwacky> ok cool
344: [10:08:02] <willmorgan> if it needs to be overridden, then maybe attach it as a static to your module class
345: [10:08:09] <willmorgan> you cannot override constants in PHP
346: [10:08:16] <willmorgan> kind of defies their nature ;)
347: [10:08:18] <kinglozzer> Yeah it can be tricky to know where to put them, sometimes they need to go in /includes as well
348: [10:08:34] <willmorgan> well, you could have a static function called "configure" on your module class
349: [10:08:37] <jcwacky> true, I can just check if global set then, and choose to use default or global
350: [10:08:59] <willmorgan> MyModule::configure(array('someParam' => true, 'anotherParam' => false, 'enabled' => true)); etc
351: [10:09:52] * simon__w|air has joined #silverstripe
352: [10:10:00] <jcwacky> Ah ok, and then just that in _config.php?
353: [10:10:07] <willmorgan> pretty much
354: [10:10:12] <willmorgan> add in some defaults
355: [10:10:17] <jcwacky> cool, I'll have a play, cheers!
356: [10:10:23] <willmorgan> have fun :)
357: [10:10:36] * simon_w|air quit (Ping timeout: 240 seconds)
358: [10:20:55] <supernovah> If I want to have a form called directly as a string, and not have a CSRF error, how can I do that?
359: [10:21:03] <supernovah> Not called sorry, but "produced"
360: [10:22:49] <supernovah> As in I want to go to mysite.com/URLSegment/form and see it, but still have the action it calls under /action
361: [10:24:17] <supernovah> Oh I see, $myform->disableSecurityToken();
362: [10:29:13] * mattybalaam has joined #silverstripe
363: [10:30:24] <ss23> simon__w|air: Sounds scary still... but okay, I will take your word for it... if I turn up late tomorrow because the bus manages to avoid courtenay place, I blame you!
364: [10:31:12] <supernovah> How do I point a form to a custom template
365: [10:31:18] <supernovah> Sorry that might seem rather basic
366: [10:31:35] <supernovah> Or does that void the whole routing thing in SS
367: [10:34:39] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
368: [10:37:01] <kinglozzer> supernovah: http://api.silverstripe.org/3.1/class-Form.html#_setTemplate
369: [10:37:09] <kinglozzer> Or am I misunderstanding you? :P
370: [10:37:13] <supernovah> Using 2.4 again
371: [10:37:24] <supernovah> I'll have a look at that I'm actually finding out how to do it slightly differently anyway
372: [10:41:53] * KayTwo quit (Ping timeout: 250 seconds)
373: [10:42:31] <supernovah> I
374: [10:43:26] <supernovah> I'm just wondering why my allowed actions have the form I want to access via a different name, then I have that function return an instance of my form, but it still uses the main controllers template, not the one named for the form
375: [10:45:08] <supernovah> Lol forgot a capital A
376: [10:45:13] <supernovah> *facepalm*
377: [10:49:52] * supernovah quit (Ping timeout: 264 seconds)
378: [10:53:54] * cloph_away is now known as cloph
379: [10:58:47] * dospuntocero has joined #silverstripe
380: [10:59:52] * lobarvaz quit (Ping timeout: 248 seconds)
381: [10:59:52] * lobarvaz_ has joined #silverstripe
382: [10:59:54] * chillu quit (Quit: chillu)
383: [11:01:20] * dospuntocero quit (Remote host closed the connection)
384: [11:17:54] * chillu has joined #silverstripe
385: [11:23:51] <kinglozzer> 47.05s Receiving
386: [11:23:57] <kinglozzer> Yeah.. that request needs some work
387: [11:24:02] * mattybalaam quit (Quit: mattybalaam)
388: [11:55:19] * nepgear is now known as shakesoda
389: [11:55:38] * shakesoda is now known as nepgear
390: [12:01:34] * dospuntocero has joined #silverstripe
391: [12:05:58] * dospuntocero quit (Ping timeout: 240 seconds)
392: [12:11:33] * dospuntocero has joined #silverstripe
393: [12:14:06] * dospuntocero quit (Remote host closed the connection)
394: [12:14:31] * Hippieee has joined #silverstripe
395: [12:14:58] * dospuntocero has joined #silverstripe
396: [12:24:41] * zippy__ quit (Ping timeout: 264 seconds)
397: [12:25:53] * IainKay quit (Ping timeout: 264 seconds)
398: [12:27:48] * IainKay has joined #silverstripe
399: [12:32:21] * UndefinedOffset has joined #silverstripe
400: [12:35:46] * gumble quit (Ping timeout: 261 seconds)
401: [12:47:19] * spronk quit (Ping timeout: 252 seconds)
402: [12:51:20] * dospuntocero quit (Remote host closed the connection)
403: [12:51:59] * dospuntocero has joined #silverstripe
404: [13:09:47] * wmk quit (Quit: nice to meet you ;))
405: [13:12:08] * kinglozzer quit (Remote host closed the connection)
406: [13:15:04] * kinglozzer has joined #silverstripe
407: [13:15:41] * Colin[pi] quit (Ping timeout: 240 seconds)
408: [13:20:43] * jcwacky quit (Quit: jcwacky)
409: [13:31:03] * Shrike_Finland quit (Quit: Leaving.)
410: [13:50:06] * svandragt has joined #silverstripe
411: [13:52:09] <svandragt> Made a basic module PageRequirements that helps speed up your site, feedback welcome: https://github.com/svandragt/silverstripe-pagerequirements
412: [13:55:53] * wmk has joined #silverstripe
413: [14:00:32] <UndefinedOffset> i'm hopeing that something like themedCSS will be introduced in templates that does combined files on atleast css
414: [14:04:21] <svandragt> well well this composer / packagist stuff is finally paying off :)
415: [14:05:21] <kinglozzer> It's awesome once you get into it :)
416: [14:05:25] <svandragt> UndefinedOffset: yeah I have moved all my css / js calls to init controllers.
417: [14:05:39] <kinglozzer> Especially with the 3.1.x-dev
418: [14:06:22] <UndefinedOffset> nice
419: [14:07:48] <svandragt> 20 pages of silverstripe tagged packages!
420: [14:10:36] * PigeonFriend quit ()
421: [14:15:17] <openbees> svandragt : I had a debate with other devs telling them to not put css file in every init() .. I hope they won't see this module :D
422: [14:15:27] <openbees> sorry JS files
423: [14:16:08] * ocm has joined #silverstripe
424: [14:16:10] <ocm> howdy!
425: [14:19:28] <svandragt> openbees: hehe well if the best practice is to put them in theme files then I'm happy to try to make something that works with that.
426: [14:19:33] * Miika-- has joined #silverstripe
427: [14:20:45] * martimiz has joined #silverstripe
428: [14:21:48] <martimiz> Hi all
429: [14:22:06] <openbees> svandragt : I Like to put them all in Page.php init .. My own Bad practice :D but easy to maintain though :)
430: [14:22:45] <martimiz> Has anyone experienced the ss3.1 assets section crashing on ss3.1? This is on MacOS
431: [14:23:20] <Miika--> Hello, how can I use SilverStripe Framework to build my own app, unrelated to SilverStripe CMS?
432: [14:24:22] <martimiz> On fresh ss3.1 installs the server keeps reporting a segmentation fault when I try to open an image...
433: [14:25:07] <kinglozzer> martimiz: Haven't experienced that before. What exactly are you doing?
434: [14:25:32] <martimiz> Installing fresh 3.1 cms, framework, installer
435: [14:26:02] <martimiz> then go to assets, open an image and crash :(
436: [14:26:54] <martimiz> this has been happening since a couple of weeks on MacOS Mountain Lion, MAMP PRO, PHP 5.3.6
437: [14:27:52] <kinglozzer> Works fine for me
438: [14:28:21] <kinglozzer> 10.7.5, PHP 5.4
439: [14:28:26] <kinglozzer> File permissions perhaps?
440: [14:29:38] <martimiz> don't think so - same setup as always...
441: [14:29:44] <ocm> how can I overcome this:
442: [14:29:55] <ocm> my javascript is loaded from pageclasses using Requirements::
443: [14:30:03] <ocm> however, no javascript is loaded into my pages
444: [14:30:11] <ocm> does it need an anchor or something?
445: [14:30:35] <openbees> ocm any code we can see ?
446: [14:30:49] <ocm> currently not, workspace is building :P
447: [14:30:54] <ocm> in a few you could
448: [14:30:57] * Miika-- quit (Quit: Page closed)
449: [14:31:05] <kinglozzer> Doesn't need a tag or anything that I know if
450: [14:31:06] <kinglozzer> of*
451: [14:31:08] <ocm> funny thing is, when I put an <Script></script> somewhere in my page template
452: [14:31:10] <kinglozzer> Is the path definitely correct?
453: [14:31:14] <ocm> yes
454: [14:31:25] <ocm> it works when I have a <script></script> in my page
455: [14:31:33] <ocm> but when I get all my js from my template to the page controller
456: [14:31:35] <ocm> it wont load
457: [14:31:54] <kinglozzer> Where are you putting it in your controller?
458: [14:31:55] <kinglozzer> init() ?
459: [14:32:10] <openbees> Requirements::javascript('mysite/javascript/myJSjs'); in init() should enough to load a js
460: [14:32:27] <kinglozzer> .js ^^. But yeah it should work
461: [14:32:27] <openbees> myJS.js *
462: [14:32:28] <ocm> yes
463: [14:32:29] <kinglozzer> :P
464: [14:32:38] <kinglozzer> Calling parent::init() as well?
465: [14:32:38] <openbees> Corrected :P
466: [14:33:22] <ocm> ssnippets doesn exsist anymore?
467: [14:33:29] <ocm> or am I failing in writing the url correct?
468: [14:33:36] <openbees> use sspaste.com
469: [14:33:41] <ocm> (I have one arm/hand in a case, so it sucks)
470: [14:33:48] <ocm> that was what i was looking for openbees :D
471: [14:34:20] <ocm> http://sspaste.com/paste/show/51bf1e24ae1d2
472: [14:34:23] <ocm> that is what I got
473: [14:35:01] <ocm> and yes, all files exists :P
474: [14:35:06] <kinglozzer> Is it being loaded in the footer and you just haven't noticed? ;)
475: [14:35:22] <ocm> haha, I was expecting it to show up in the footer
476: [14:35:24] <ocm> but it doesnt
477: [14:35:37] <ocm> firebug, ctrl + f functions.js
478: [14:35:41] <ocm> doesnt give results :p
479: [14:35:50] <kinglozzer> ocm: Try moving parent::init() after the Requirements calls
480: [14:35:54] <kinglozzer> You never know
481: [14:35:57] <openbees> 'theme/SomeThemeName/js' ?
482: [14:35:58] * Nivery has joined #silverstripe
483: [14:36:01] <ocm> strange thing is, as soon as I put some <script src="somescript.js"></script> anywhere in my template
484: [14:36:09] <ocm> it gets loaded without problem above the tag
485: [14:36:27] <ocm> openbees, I have everything in theme/
486: [14:36:37] <ocm> theme/code, theme/templates, theme/js
487: [14:36:41] <ocm> never had any problem with that so far
488: [14:36:43] <ocm> untill today
489: [14:36:55] <openbees> he he not a good practice though ;)
490: [14:36:57] <kinglozzer> ocm: Tried calling parent::init() last?
491: [14:37:19] <ocm> trying so now
492: [14:37:25] <ocm> not good practice why?
493: [14:37:40] <ocm> still nothing kinglozzer :(
494: [14:39:48] <kinglozzer> ocm: No idea then :/ I'd go through Requirements_Backend->includeInHTML() line by line and see if you can work out where it's getting stuck
495: [14:40:28] <ocm> well thanks for having a look with me :)
496: [14:40:41] <openbees> ocm .. m sorry I don't really know .. but themes folder means to contain many theme I guess .! Try putting them in mysite/js may be
497: [14:40:56] <ocm> it is not themes
498: [14:40:57] <ocm> it is theme
499: [14:40:58] <ocm> :P
500: [14:41:26] <ocm> @kinglozzer and @openbees, apperantly silverstripe needs a </body> to get the js write to body right
501: [14:41:37] <UndefinedOffset> then your paths to include the js is wrong you should be themes/theme/js/myfile.js
502: [14:41:45] * openbees facepalm
503: [14:42:07] <ocm> not my fault, was checking the commits from before the weekend and apperantly one of my collegues decided </body> was too much in there
504: [14:42:33] <ocm> why undefinedoffset? my config file points to my project as 'theme'
505: [14:42:40] <UndefinedOffset> ah ok
506: [14:42:43] <UndefinedOffset> nvm then :)
507: [14:43:00] <UndefinedOffset> i was assuming you had your theme folder inside themes/ :)
508: [14:43:10] <ocm> ah no :) theme is in the root
509: [14:43:21] <ocm> appreciate it though, thinking along :)
510: [14:48:18] * openbees quit (Quit: Leaving)
511: [14:52:23] * micmania1 has joined #silverstripe
512: [14:53:04] * martimiz quit (Quit: martimiz)
513: [14:59:03] * zfmf1 has left #silverstripe
514: [15:01:06] * martimiz has joined #silverstripe
515: [15:15:38] * guzzlefry has joined #silverstripe
516: [15:25:23] <kinglozzer> Any other petrolheads here? :)
517: [15:25:39] <Nivery> has anyone else had a problem with flltering (magnifying glass icon) not working on a grid field? not getting an error message, but no actual filtering is occurring for a record editor or a relation editor
518: [15:38:11] <svandragt> I know this doesn't work at present, but logically the following should produce one css link right? Requirements::themedCSS("layout");
519: [15:38:11] <svandragt> Requirements::themedCSS("typography");
520: [15:38:11] <svandragt> Requirements::themedCSS("form");
521: [15:38:11] <svandragt> Requirements::set_combined_files_enabled(true);
522: [15:41:15] <guzzlefry> It seems I've broken the Tree View in the CMS. :/
523: [15:44:47] * dospuntocero quit (Remote host closed the connection)
524: [15:44:50] <guzzlefry> http://bpaste.net/show/107885/ Any ideas?
525: [15:45:34] * dospuntocero has joined #silverstripe
526: [15:46:04] <Nivery> no error message?
527: [15:46:41] <guzzlefry> nope
528: [15:47:32] <guzzlefry> Just a blank area where the site tree and content should be.
529: [15:47:46] <Nivery> you've checked the headers of what gets sent back in something like the Chrome dev tools?
530: [15:48:01] <Nivery> does $db need to be private? i honestly don't know
531: [15:49:54] <guzzlefry> http://www.bpaste.net/show/DkK7jpoHx6EPweFa2vQC/ Not seeing anything bad in there.
532: [15:50:19] <guzzlefry> Nivery: The page isn't completely blank, I still get the surrounding menus.
533: [15:51:08] <Nivery> do you need to dev/build? or flush the cms cache?
534: [15:51:20] <guzzlefry> did that
535: [15:51:35] <martimiz> I did finally get the ss3.1 assets section to stop crashing by upgrading to MAMP PRO 2.1.4 and php 5.3.20. Still no idea what caused it, so if anyone else stumbles into this… :)
536: [15:52:01] <Nivery> do you have a silverstripe-cache folder in your site root?
537: [15:52:05] <Nivery> with appropriate permissions?
538: [15:52:26] <Nivery> if you don't, maybe make one, if you do, clear it out and let it be rebuilt
539: [15:53:11] <guzzlefry> http://i44.tinypic.com/15mjsk5.png What I'm looking at.
540: [15:53:29] * dospuntocero quit (Remote host closed the connection)
541: [15:57:57] <guzzlefry> cache file created
542: [15:57:59] * hubertusanton quit (Read error: Connection reset by peer)
543: [15:58:05] * g4b0_ quit (Quit: Sto andando via)
544: [15:58:10] <guzzlefry> Nivery: This happened after adding that tutorial code.
545: [15:58:29] * svandragt quit (Read error: Connection reset by peer)
546: [15:59:32] <Nivery> ah, so that code is straight out of the tutorial?
547: [16:00:14] <guzzlefry> unless I mistyped something
548: [16:00:17] <guzzlefry> but it doesn't look like it
549: [16:02:07] <Nivery> if you comment out the new code, do you see the site tree again?
550: [16:02:46] * Shrike_Finland has joined #silverstripe
551: [16:02:54] * joelpitt_ has joined #silverstripe
552: [16:03:54] <guzzlefry> hm...nope
553: [16:03:56] <guzzlefry> must be something else
554: [16:06:23] * joelpittet quit (Ping timeout: 256 seconds)
555: [16:21:49] <Nivery> guzzle, do you have php error reporting turned on? and are you in dev mode?
556: [16:24:27] <guzzlefry> Should be.
557: [16:25:47] <guzzlefry> okay
558: [16:25:59] <guzzlefry> Removing the ArticleHolder.php and ArticlePage.php fixed it.
559: [16:28:11] <guzzlefry> Isolated it to ArticleHolder.php :P
560: [16:29:13] <guzzlefry> http://bpaste.net/show/107902/
561: [16:30:01] <guzzlefry> oh, the $allowed_pages is breaking it.
562: [16:30:32] <kinglozzer> guzzlefry: Remove the space after 'array', make it 'public static $allowed_children' as well
563: [16:31:00] * oleze has joined #silverstripe
564: [16:31:16] * kinglozzer quit (Quit: Ciao)
565: [16:31:33] <oleze> Anyone using ModelAdmin for translatable SiteTree Objects in SS3?
566: [16:32:02] <oleze> Seems the "New Translation" Button (Action) isn't working
567: [16:37:42] * lobarvaz_ quit (Remote host closed the connection)
568: [16:42:05] * Shrike_Finland quit (Quit: Leaving.)
569: [16:42:15] * martimiz quit (Quit: martimiz)
570: [16:45:31] <FrozenFire> oleze, There's a trick to making the translatable stuff in a ModelAdmin
571: [16:45:41] <FrozenFire> I'll see about grabbing you the code when I get a chance
572: [16:48:21] <oleze> FrozenFire, Thank you, would be really nice. Found nothing specific on the web
573: [16:50:35] <FrozenFire> Nor will you. It's a bitch. :P
574: [16:52:28] * oleze quit (Quit: Page closed)
575: [16:54:06] * osterlaus has joined #silverstripe
576: [16:54:17] * oleze has joined #silverstripe
577: [16:54:46] <oleze> It really is.
578: [16:59:33] * AlphaCactus has joined #silverstripe
579: [17:01:48] <wmk> what's the best way to handle has_many in a frontend form?
580: [17:02:36] * chillu quit (Quit: chillu)
581: [17:02:58] <wmk> gridfield?
582: [17:05:00] * chillu has joined #silverstripe
583: [17:11:07] * chillu quit (Quit: chillu)
584: [17:12:55] * sam____ has joined #silverstripe
585: [17:12:58] <sam____> hi all
586: [17:13:09] <sam____> I am in trouble with date picker field
587: [17:13:23] <sam____> Its been easy to choose year and month in drop down field but wondering, if the calender format could have been given to user (frontend) to select month and year. I am using Dataobject_manager's datepicker field.
588: [17:14:53] * willmorgan quit (Ping timeout: 245 seconds)
589: [17:23:06] <sam____> is there anybody to help me
590: [17:23:09] <sam____> ?
591: [17:23:10] <sam____> please
592: [17:23:57] <AlphaCactus> i think its sleepy time for most ss folks right now.
593: [17:24:13] * gelignite has joined #silverstripe
594: [17:41:37] <guzzlefry> How do I use a page outside of the site's tree?
595: [17:42:08] <guzzlefry> I more or less need a link to open up a new window with a form inside.
596: [17:42:24] <guzzlefry> And I don't want that listed in the navigation areas.
597: [17:44:56] <wmk> guzzlefry, just untick "show in menus" and the page isn't listed
598: [17:45:42] <wmk> do you use UserForm for generating the form? Otherwise if you make a custom controller with your form you don't have a page for it in CMS at all
599: [17:48:20] <guzzlefry> It's a method in the HomePage_Controller at the moment. The form that is.
600: [17:49:00] <guzzlefry> public method FormMagic() { return new Form(yada yada); }
601: [17:49:07] <guzzlefry> well, with more stuff in there.
602: [17:53:34] * RojoD has joined #silverstripe
603: [17:53:34] * RojoD quit (Changing host)
604: [17:53:34] * RojoD has joined #silverstripe
605: [17:55:40] * sam____ quit (Ping timeout: 250 seconds)
606: [17:59:05] * lx-bln has joined #silverstripe
607: [18:02:52] * guzzlefry quit (Quit: Leaving.)
608: [18:10:35] * Motoservo quit (Quit: Motoservo)
609: [18:14:10] * lx-bln quit (Remote host closed the connection)
610: [18:16:22] * Motoservo has joined #silverstripe
611: [18:22:52] * willmorgan has joined #silverstripe
612: [18:32:18] <oleze> FrozenFire: Any progress with the code?
613: [18:46:28] * chillu has joined #silverstripe
614: [19:00:44] * micmania1 quit (Ping timeout: 250 seconds)
615: [19:01:32] * guci0 quit (Ping timeout: 250 seconds)
616: [19:10:45] * pex has joined #silverstripe
617: [19:18:08] * chillu quit (Quit: chillu)
618: [19:18:22] * osterlaus quit (Quit: Leaving.)
619: [19:27:52] <simon__w|air> ss23, the 10, 11, 18 and 21 go along Taranaki instead of Courtenay. For all of them, you want the stop after Briscoses, then walk from the 18 or cross the road from the other three
620: [19:27:58] * simon__w|air is now known as simon_w|air
621: [19:29:03] * gumble has joined #silverstripe
622: [19:29:15] <gumble> I am getting error 500 on every page without silverstripe or php errors
623: [19:36:24] * chillu has joined #silverstripe
624: [19:41:25] <wmk> gumble, 500 is forbidden. do you log ss_errors to file? did you check apache error.log?
625: [19:45:35] <AlphaCactus> Is it possible to disable entire row clicking in GridField so user has to click on the edit icon
626: [19:47:49] <gumble> wmk, i checked the one which is set in the php.ini
627: [19:48:06] <gumble> I look up apaches
628: [19:48:11] <gumble> yes i log them to a file
629: [19:55:33] * micmania1 has joined #silverstripe
630: [20:00:44] <simon_w> gumble, which 500 page? SilverStripe's or Apache's?
631: [20:02:02] * azureKnight has joined #silverstripe
632: [20:03:57] <azureKnight> Quick question. Has anybody done some recurring date functionality?
633: [20:04:12] <azureKnight> Like, setting something to show up on Mondays, weekly, and that will recur?
634: [20:05:30] <AlphaCactus> yeah we've done some minimal stuff manually
635: [20:07:20] <azureKnight> AlphaCactus , are you using the datefield to assign the weekday?
636: [20:08:27] <AlphaCactus> no, just start and end dates. we use a separate dropdown for weekday or monthday recurrence.
637: [20:09:34] <AlphaCactus> actually a ListboxField for multiselect
638: [20:14:35] <azureKnight> Interesting. I hadn't thought of that. Thanks. :)
639: [20:17:50] <gumble> wmk, thanks it was in the apache error logs
640: [20:17:59] <wmk> np
641: [20:18:29] <gumble> whats the difference between Member::currentMember and ::currentUser?
642: [20:19:16] * tankr has left #silverstripe
643: [20:19:44] <simon_w> gumble, one works, one doesn't
644: [20:19:57] <gumble> currentMember doesn't right?
645: [20:20:02] <simon_w> Yes
646: [20:20:11] <gumble> ok
647: [20:20:14] <gumble> damn you tutorial
648: [20:21:16] * azureKnight quit (Ping timeout: 250 seconds)
649: [20:28:02] * mobiusnz has joined #silverstripe
650: [20:33:45] * nickmolhoek has joined #silverstripe
651: [20:33:46] * nickmolhoek quit (Remote host closed the connection)
652: [20:34:00] * nickmolhoek has joined #silverstripe
653: [20:36:22] <simon_w> ss23, look, I even made you a map showing where the bus stops are for the buses through Newtown: http://swng.it/36ol7http://swng.it/36ol7
654: [20:36:26] <simon_w> bah
655: [20:36:32] <simon_w> ss23, look, I even made you a map showing where the bus stops are for the buses through Newtown: http://swng.it/36ol7
656: [20:37:49] <simon_w> Oh, forgot to stick the 47 with the 18
657: [20:39:26] <unsignedint> Newtown is a shit of a place if you're in a car and its sunday lunchtime
658: [20:40:20] * UndefinedOffset quit (Quit: Leaving.)
659: [20:43:17] <simon_w> That's what you get for going to Newtown
660: [20:44:06] * zippy__ has joined #silverstripe
661: [20:46:11] <ss23> simon_w: :D
662: [20:46:25] <AlphaCactus> its all a resort compared to here
663: [20:46:35] <ss23> simon_w: <3
664: [20:55:22] * travis-ci has joined #silverstripe
665: [20:55:22] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#421 (3.1 - a136170 : Ingo Schommer): The build passed.
666: [20:55:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/4bc942df7619...a136170f5566
667: [20:55:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/8174936
668: [20:55:22] * travis-ci has left #silverstripe
669: [20:55:24] <simon_w> ss23, so, you figured out how to bus then?
670: [20:55:34] <ss23> simon_w: I think, I'm nervous
671: [20:55:39] <ss23> simon_w: Is that like the final stop for all those busses?
672: [20:55:43] <ss23> As in, do I need to press button?
673: [20:56:06] <simon_w> You need to press the button
674: [20:56:09] <ss23> Hmm kk
675: [20:56:27] <simon_w> Second stop on Courtenay Place, after Briscoses for the others
676: [20:56:28] <ss23> I took one of the ones that basically went straight all the way to courtenay place then turned into it, so I could easily be like "k I press button now"
677: [20:57:36] <simon_w> For those, you press the button once you're past my window
678: [20:58:00] * Kolin quit (Read error: Operation timed out)
679: [21:00:52] <ss23> lol
680: [21:01:11] * Kolin has joined #silverstripe
681: [21:01:12] <ss23> I think if I just don't do 18, I should be okay...
682: [21:01:36] <ss23> Just coming from Taranaki St isn't something I'm used to, so will have to try make sure I don't mess up
683: [21:01:58] <simon_w> Well, the next stop's just up Manners
684: [21:02:09] <simon_w> So, if you're past Burger Fuel, you've gone too far
685: [21:02:33] <FrozenFire> oleze, http://www.sspaste.com/paste/show/51bf791e4f8b2
686: [21:03:16] <FrozenFire> Then, in your ModelAdmin, in the EditForm method override, get the GridField and set the GridFieldDetailForm's ItemRequestClass to that
687: [21:03:26] <ss23> looks like we'll go straight on Taranaki for ages, so I should just be like "hmm we haven't turned for 2 mins, must be on taranaki" thne press button when I get close to something
688: [21:04:26] <ss23> briscoes or capaital city ford... mmk
689: [21:06:10] <oleze> FrozenFire: Thank you very very much. I'll give it a try, tomorrow and report if it's working.
690: [21:07:11] <FrozenFire> Sorry for the delay. Had a long-ass phone call with a government agency client. :P
691: [21:07:17] <ss23> lol
692: [21:08:48] <oleze> Don't know what's even worse, government agency client or delay ;-).
693: [21:08:53] * oleze quit (Quit: Page closed)
694: [21:11:59] * coldblooded01 has joined #silverstripe
695: [21:13:42] * micmania1 quit (Ping timeout: 250 seconds)
696: [21:17:42] * MrJeremy has joined #silverstripe
697: [21:28:17] * wmk quit (Quit: nice to meet you ;))
698: [21:33:28] <mobiusnz> is there any way to make the form scaffolder exclude one or two fields?
699: [21:34:12] * Nivery quit (Quit: Nivery)
700: [21:34:13] <mobiusnz> $do->scaffoldFormFields(array('restrictFields' => array('foo')) seems to do the opposite
701: [21:37:24] <mobiusnz> $this->scaffoldFormFields(array('restrictFields' => array_diff(array_keys($this->db()), array('foo')))); seems overly complicated, but works
702: [21:39:00] <FrozenFire> Scaffold then remove?
703: [21:39:17] <mobiusnz> yeah, that's basically what I'm doing in the second example
704: [21:39:30] <simon_w> Except you're also skipping all relation fields
705: [21:39:36] <FrozenFire> Indeed
706: [21:39:40] <mobiusnz> true that
707: [21:39:51] <FrozenFire> Just scaffold, then remove the ones you don't want.
708: [21:40:03] <mobiusnz> seems very backwards
709: [21:40:10] <FrozenFire> Not particularly
710: [21:40:22] <mobiusnz> I'd hate to watch you build a house
711: [21:41:11] <FrozenFire> Taking an existing building template and removing bits that aren't necessary?
712: [21:41:44] <mobiusnz> you mean, build a building, then demolish the bits that aren't necessary
713: [21:42:39] <FrozenFire> A scaffolded fieldset isn't equivalent to a built building. :p
714: [21:42:57] <FrozenFire> Nor is building a home a useful analogy
715: [21:43:15] <FrozenFire> Scaffolding those additional fields isn't computationally expensive
716: [21:45:34] <mobiusnz> ah well
717: [21:45:40] <mobiusnz> this works in one line of code
718: [21:45:46] <FrozenFire> And is hacky
719: [21:45:56] <FrozenFire> And broken, really.
720: [21:46:09] <FrozenFire> Since there are many field which might not be created using the database fields.
721: [21:46:16] <mobiusnz> it's hacky one way or another
722: [21:46:25] <FrozenFire> Nope
723: [21:46:45] <FrozenFire> Scaffolding then eliminating un-needed fields is pretty solid.
724: [21:46:53] * gumble quit (Ping timeout: 264 seconds)
725: [21:47:05] <mobiusnz> it's a pointless argument
726: [21:47:31] <FrozenFire> Then don't ask if you don't want an answer that's different from your existing solution. :P
727: [21:48:25] <mobiusnz> Asking got me an alternative solution that may well suit better in another situation - I'm happy with that
728: [22:05:59] <AlphaCactus> how is it that ppl say github is easier to use than svn. just trying to figure out how to submit a pull request i've used more individual commands than I I've ever used with svn.
729: [22:07:17] <mobiusnz> yeah, people say git is good for offline use, but that's bollocks. It's completely useless without access to google
730: [22:08:19] * gelignite quit (Quit: http://bit.ly/nkczDT)
731: [22:13:20] <simon_w> AlphaCactus, it's easier for maintainers, not submitters
732: [22:13:49] <ss23> Though tbh, the "edit and fork and submit pull request" in one button is awesome
733: [22:14:21] <simon_w> Until you have to write tests :p
734: [22:17:36] <AlphaCactus> i tried that button, but it made a fork, which I wasn't given a chance to name, and then it allowed me to create a pull request for that branch, but "patch-1" isn't a very good branch name. and I'm assuming it put that into my existing fork cause I had already forked.
735: [22:18:02] <simon_w> yeah, that's how it works
736: [22:18:55] <Pyromanik> work at Plato Design: get dared $500 to eat the spag bol that's been in the fridge for at least a month.
737: [22:19:01] <AlphaCactus> and now i'm trying to rebase cause I'm noob and my branch or fork wtf ever it is has 5 commits which it says over here need to be squashed, but the vim editor that comes up just says "noop" instead of showing commit picks. and I think i've learned about 50 new terms today and still haven't successfully sent in a good pull request yet....
738: [22:19:28] <irogue> Pyromanik: did you do it?
739: [22:19:57] <Pyromanik> irogue: account manager claims it's too steep, but is willing to part with $350 today.
740: [22:20:16] <Pyromanik> so then we flipped it, now he's considering $350 for him to do it.
741: [22:21:20] <Pyromanik> probably the best part is it spent all last night on the bench, and the sun is reaming down on it this morning
742: [22:23:18] <ss23> simon_w wanna help me with an SS question? To do with gridfield
743: [22:23:29] <Pyromanik> ss23: what is it?
744: [22:24:32] <simon_w> ss23, you're the one working for SilverStripe. You should be answering my questions! :p
745: [22:24:41] <ss23> lol
746: [22:25:04] <ss23> the betterbuttons module does a "save and go to next record", which uses https://github.com/unclecheese/silverstripe-gridfield-betterbuttons/blob/master/code/GridFieldBetterButtonsItemRequest.php#L325
747: [22:25:16] <ss23> I' not really familiar with gridfield though. I see the paginatedcomponent thingy
748: [22:25:32] <ss23> Where do I look for a way to get the *real* next record (instead of this hacky get manipulated list)
749: [22:25:53] <ss23> Almost like... get the *real* list of records and find the next one, before applying tha paginated component (but applying all the other ones, like sorted)
750: [22:26:18] <simon_w> Just drop the limit from the manipulated list
751: [22:26:50] <ss23> Then re-apply it after, because the list still needs to display fine in the rest of the U?
752: [22:26:53] <ss23> UI*?
753: [22:27:16] <ss23> Or conceptually is it fine not to since this is only going to be called from a single dataobject's page, so whether the internal gridfield is paginated *here* doesn't matter?
754: [22:27:39] <simon_w> You're on 3.1, so you're not changing the list used by the grid field
755: [22:27:53] <ss23> I'm not on 3.1
756: [22:27:59] <simon_w> Well, you should be
757: [22:28:01] <ss23> lol
758: [22:28:12] <simon_w> So clone the list before changing it
759: [22:28:18] <ss23> okay, that will work :D
760: [22:28:31] <ss23> Is there a silverstripe specific COW clone, or just PHP clone the class
761: [22:28:52] <simon_w> just clone it
762: [22:28:55] <ss23> kk
763: [22:28:57] <ss23> ty simon_w <3
764: [22:29:00] <ss23> I will try this
765: [22:29:01] <ss23> :D
766: [22:29:04] <Pyromanik> lol betterbuttons
767: [22:29:13] <ss23> They're better.
768: [22:29:22] <Pyromanik> doesn't sound like it
769: [22:29:32] <Pyromanik> 10:24 < ss23> Where do I look for a way to get the *real* next record (instead of this hacky get manipulated list)
770: [22:29:38] <Pyromanik> (instead of this hacky get manipulated list)
771: [22:29:42] <ss23> lol
772: [22:29:42] <Pyromanik> hacky
773: [22:29:45] <ss23> It seems hacky
774: [22:29:47] <ss23> idk if it is
775: [22:29:50] <Pyromanik> it probably is.
776: [22:30:02] * SphereSilverNL has joined #silverstripe
777: [22:30:04] <ss23> Even with this bug, still 999% better to experience this every page break than to not have a save and go to next button
778: [22:30:05] <Pyromanik> https://github.com/unclecheese/silverstripe-gridfield-betterbuttons/blob/master/code/GridFieldBetterButtonsItemRequest.php#L325
779: [22:30:12] <ss23> Pyromanik: I think you're just jealous of how l33t cheese is
780: [22:30:13] <Pyromanik> https://github.com/unclecheese/
781: [22:30:15] <ss23> you're jelly of his mad PHP skillz
782: [22:30:19] <Pyromanik> unclecheese
783: [22:30:20] <SphereSilverNL> BetterButtons fails on my site :'(
784: [22:30:21] <ss23> :3
785: [22:30:34] <ss23> I think Pyromanik is just jealous~ :3 :3 :3
786: [22:30:34] <Pyromanik> SphereSilverNL: probably because hacky.
787: [22:30:42] <SphereSilverNL> was afraid so :'(
788: [22:30:43] <Pyromanik> I think ss23 is a troll
789: [22:30:45] <ss23> "wah unclecheese has 9999x modules and people like him"
790: [22:30:46] <ss23> lol
791: [22:30:54] <Pyromanik> yeh, pretty much.
792: [22:30:55] * willmorgan quit (Read error: Connection reset by peer)
793: [22:30:56] <ss23> How many modules have *you* made that lots of people use?
794: [22:31:00] <ss23> cheese is just too good
795: [22:31:00] <ss23> :d
796: [22:31:01] <ss23> :d
797: [22:31:03] <ss23> fff
798: [22:31:03] <ss23> :D
799: [22:31:13] <SphereSilverNL> ss23 ehm, I think I stopped counting at 2
800: [22:31:24] <SphereSilverNL> who gives a crap actually?
801: [22:31:26] <Pyromanik> ss23: Aphache2.0 requirement for SS.
802: [22:31:26] <ss23> lol
803: [22:31:27] <SphereSilverNL> ah well
804: [22:31:28] <simon_w> ss23, eh, screw modules. I just make SS :p
805: [22:31:28] <Pyromanik> everyone uses that
806: [22:31:30] <ss23> hahah Pyromanik
807: [22:31:35] <ss23> XD
808: [22:31:37] <ss23> Granted
809: [22:31:43] <ss23> Hey I removed magic_quotes, that counts too right?
810: [22:31:44] <Pyromanik> BOOM
811: [22:31:46] <SphereSilverNL> iOS 7 O-)
812: [22:31:47] <ss23> simon_w: HAHA ME TOO (kind of)
813: [22:31:48] <Pyromanik> sure
814: [22:32:08] * T8 has joined #silverstripe
815: [22:32:14] <SphereSilverNL> You're not convinced, are ya?
816: [22:32:14] <ss23> Using the api.silverstripe, is there a way to see which versions of SS this class exists in?
817: [22:32:18] <ss23> (short of checking yourself)
818: [22:33:02] <simon_w> Check yourself
819: [22:33:13] <SphereSilverNL> diff
820: [22:35:12] <ss23> hmm, so as for removing the pagination / limit of the gridfield, there's a setconfig and a getcomponents, do I get the pagination component and set it's limit to infinity, or what exactly? Can I just *remove* a component?
821: [22:35:16] <ss23> simon_w: ^
822: [22:35:29] <AlphaCactus> u can
823: [22:35:32] <SphereSilverNL> Or.... ehm... try.... ehm....
824: [22:35:45] <ss23> I am bad with Silverstripe <:
825: [22:35:45] <ss23> :<
826: [22:35:51] <ss23> I will learn and eventaully I'll be like ss23_w
827: [22:35:53] <SphereSilverNL> GridFieldPaginatorWithShowAll?
828: [22:35:57] * RojoD quit (Ping timeout: 256 seconds)
829: [22:35:58] <T8> I have a question people. Is anyone interested in helping me out with routes?
830: [22:36:00] <irogue> simon_w: before you wreck yourself?
831: [22:36:10] <ss23> T8: Sure, ask the question and someone will try help if they can ^.^
832: [22:36:19] <ss23> irogue: check yoself before yo SHREK yourself, donkey.
833: [22:36:32] <SphereSilverNL> Don't talk to irogue like that.
834: [22:36:35] <ss23> SphereSilverNL: How does that work exactly?
835: [22:36:43] <SphereSilverNL> step 1: download
836: [22:36:49] <SphereSilverNL> step 2: flush
837: [22:36:54] <T8> I have SS framework installed and I have made a routes.yml to direct to a custom controller but when I try to dev build i get an error.
838: [22:36:55] <ss23> Bro, bro, bro. You should hear how irogue talks to me. I had to sit in a car with him for like 6 hours the other day
839: [22:36:58] <SphereSilverNL> step 3: enjoy Paginator with Show All
840: [22:36:58] <ss23> *hell*
841: [22:37:07] <simon_w> ss23, $list->setLimit(INT_MAX, 0);
842: [22:37:18] <ss23> simon_w: $list == ??
843: [22:37:22] <T8> I have extended Name: myroutes After: framework/routes#coreroutes
844: [22:37:28] * nickmolhoek quit (Ping timeout: 268 seconds)
845: [22:37:29] <simon_w> $list = $gf->getManipulatedList()
846: [22:37:39] <ss23> Oh I see, fancy. Thank you very much, simon_w
847: [22:37:43] <T8> but still get The action 'dev' does not exist in class custom_controller
848: [22:38:32] <T8> anyone?
849: [22:38:58] <simon_w> T8, you can either add 'dev': 'DevelopmentAdmin' to your routes, or rename yours to rootroutes and have it after framework/routes#rootroutes
850: [22:39:54] * MrJeremy has left #silverstripe
851: [22:41:40] <T8> @simon_w I would really like to steer clear of doubling up on routes 'putting devadmin in my routes' and the renaming and having it after framework/routes#rootroutes doesn't seem to work either...
852: [22:42:46] <simon_w> Did you flush?
853: [22:43:43] <SphereSilverNL> GitFlow is becoming more and more awesomesauce everytime I use it.
854: [22:43:58] <T8> Yes I did flush, lol
855: [22:46:08] * cloph is now known as cloph_away
856: [22:46:25] * T8 quit (Quit: Page closed)
857: [22:49:26] <SphereSilverNL> Any clue why "return(Permission::checkMember($member, 'CMSACCESSNewsAdmin'));" is returning false?
858: [22:50:34] <SphereSilverNL> nevermind.
859: [22:50:56] <SphereSilverNL> You are free to throw a large trout at me.
860: [22:53:02] * Pyromanik throws a large trout at SphereSilverNL
861: [22:53:16] <SphereSilverNL> *splat*
862: [22:53:25] <ss23> I rebooted and now my "port" command is gone ;_;
863: [22:53:32] <Pyromanik> bro there's a fish on your fase.
864: [22:53:43] <Pyromanik> ss23: lol, alias
865: [22:53:44] <ss23> simon_w: I broke macports. port: command not found ;___;
866: [22:53:48] <ss23> How 2 fix
867: [22:53:52] <ss23> It was working before I rebooted
868: [22:53:54] <ss23> I HATE OSX ;___;
869: [22:53:55] <Pyromanik> ss23: so you're at work then?
870: [22:53:58] <ss23> Yeah, Pyromanik
871: [22:53:58] <simon_w> You didn't add it to your path?
872: [22:54:01] <Pyromanik> ss23: try clicking
873: [22:54:06] <ss23> simon_w: It was in my path before I rebooted
874: [22:54:10] <ss23> Pyromanik: Jokes on you, I got a Microsoft mouse
875: [22:54:10] <ss23> o/
876: [22:54:15] <Pyromanik> ss23: probably a one off
877: [22:54:17] <simon_w> ss23, so you didn't add it permanently
878: [22:54:17] <Pyromanik> alias
879: [22:54:19] <Pyromanik> or something
880: [22:54:22] * spronk has joined #silverstripe
881: [22:54:24] <Pyromanik> add it to profile.
882: [22:54:25] <Pyromanik> duh
883: [22:54:29] <irogue> ss23: so did they gave you a powerpc mac like i requested? :-P
884: [22:54:31] <ss23> Oh, I didn't realise it was added by default
885: [22:54:33] <ss23> lol
886: [22:54:38] <Pyromanik> it's pertty much just a derp'd out GNU system.
887: [22:54:39] <ss23> Thankfully not...
888: [22:54:52] <ss23> simon_w: where is it? locate port gives too many results
889: [22:55:01] <Pyromanik> /usr/bin probably
890: [22:55:07] <simon_w> Probably /usr/local/bin
891: [22:55:12] <Pyromanik> or that
892: [22:55:17] <Pyromanik> try running it and find out
893: [22:55:48] <ss23> Why would that not be in your path...
894: [22:56:33] <simon_w> Because it usually doesn't exist
895: [22:56:33] <ss23> not in /usr/bin
896: [22:56:55] * atmos has joined #silverstripe
897: [22:57:08] <ss23> /usr/local/bin doesn't exist
898: [22:57:20] <simon_w> How about /opt/bin?
899: [22:57:21] <atmos> hey guys, can anyone help me with getting UrlOverride to read double quotes?
900: [22:57:43] <ss23> A+ simon_w :D ty, /opt/local/bin
901: [23:00:20] <atmos> at the moment, if I try the same URL in URLOverride - remove the double quotes and use %22 it works obviously. How could I implement this with code?
902: [23:01:16] <ss23> Okay, now to try remember how to install crap with composser easily...
903: [23:01:34] <simon_w> atmos, rawurlencode
904: [23:01:46] * Colin[pi] has joined #silverstripe
905: [23:02:03] <spronk> POWER MAC
906: [23:02:14] * joelpitt_ quit (Remote host closed the connection)
907: [23:02:23] <spronk> always reminded me of some kind of shitty superhero
908: [23:02:31] * joelpittet has joined #silverstripe
909: [23:02:40] <Pyromanik> spronk: like powergirl?
910: [23:03:28] * ss23 runs composer create-project --keep-vcs --dev silverstripe/installer . 3.0.x-dev and *hopes*
911: [23:03:34] <ss23> git-pray
912: [23:04:12] * spronk lulz
913: [23:04:13] <SphereSilverNL> 3.0??????
914: [23:04:27] <ss23> REPPIN' IT HARD
915: [23:04:31] <FrozenFire> I don't think --keep-vcs is necessary for create-project
916: [23:04:31] <ss23> Client is using 3.0, that's all I care about
917: [23:04:42] <ss23> FrozenFire: I want it on git
918: [23:04:45] <FrozenFire> create-project is already a glorified git clone
919: [23:04:54] <ss23> Oh, I see what you mean
920: [23:04:57] <ss23> Someone said it was required
921: [23:05:00] <ss23> Better safe than sorry!
922: [23:05:13] <atmos> <@simon_w> thanks - my php isn't great but could you tell me how to assign this to my URLOverride field?
923: [23:05:17] * metanat has joined #silverstripe
924: [23:05:31] * DigNZ has joined #silverstripe
925: [23:05:32] * DigNZ quit (Remote host closed the connection)
926: [23:05:46] * DigNZ has joined #silverstripe
927: [23:06:28] <simon_w> atmos, if this is just for use in a template, just use $URLOverride.ATT
928: [23:07:44] * DigNZ quit (Client Quit)
929: [23:08:00] <metanat> Hi all. Sorry if this is a silly question, but how are people managing has one relationships in the CMS in SilverStripe 3. With the absence of HasComplexTableField (and DOM) and no clear replacement that I can see in GridField, what are people using (aside from a dropdown)?
930: [23:08:13] <Pyromanik> metanat: there isn't.
931: [23:08:33] <Pyromanik> there never was, there still isn't. You just can't hack around it with HasOneCTF anymroe.
932: [23:08:33] <SphereSilverNL> the dropdown kinda manages that?
933: [23:08:48] <ss23> Yay, I figured out how to fix another bug. ss23 is support *master*, closing tickets like a baws.
934: [23:08:52] <simon_w> Well, there's my GridField component if you need scale and to add new things
935: [23:08:56] <Pyromanik> metanat: and ItemSetField isn't updated.
936: [23:09:01] <Pyromanik> although you could try that if you wanted.
937: [23:09:22] <Pyromanik> simon_w: oh you've already made one? I was thinking to do that recently
938: [23:10:01] <simon_w> https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler/
939: [23:10:04] * chillu quit (Quit: chillu)
940: [23:10:09] <metanat> Interesting. Isn't this causing troubles for people?
941: [23:10:24] <metanat> Hi simon_w I have see your module, thanks :)
942: [23:10:28] <metanat> seen*
943: [23:10:35] <SphereSilverNL> simon_w do you really have to look that angry on your photo?
944: [23:11:00] <simon_w> SphereSilverNL, that's not angry
945: [23:11:04] <atmos> <$simon_w> not sure I follow - check http://jsfiddle.net/yXjaK/ for the getting the link function
946: [23:11:13] <SphereSilverNL> Looks angry to me :P
947: [23:11:39] <irogue> that's a particularly happy looking simon_w
948: [23:11:57] <atmos> :p
949: [23:11:59] <Pyromanik> metanat: not really. Most people don't has_one
950: [23:12:09] <Pyromanik> urgh jsfiddle
951: [23:12:11] <Pyromanik> please
952: [23:12:15] <ss23> You should see simon_w IRL...
953: [23:12:17] <Pyromanik> jsfiddle is for jsfiddl'n.
954: [23:12:19] <ss23> I said hi and he almost punched me in the face
955: [23:12:20] <simon_w> atmos, for that, you'll need to provide a correctly escaped value to start with
956: [23:12:32] <SphereSilverNL> Pyromanik: Ehm, a "has_many" on the object "girlfriend" can cause a lot of trouble :P
957: [23:12:50] <Pyromanik> SphereSilverNL: well, depends on how you manage the relation :P
958: [23:13:16] <metanat> Pyromanik: Pretty sure that isn't the case. I have been building SS sites for around 6 years and see has one relations used all the time...
959: [23:13:17] <SphereSilverNL> :D
960: [23:13:51] <SphereSilverNL> metanat: what are you expecting from a one-to-many relation??
961: [23:14:07] <simon_w> metanat, most of the time, a has_one is only used due a has_many and you manage the has_many instead of the has_one
962: [23:14:12] <simon_w> Or has_one to a File
963: [23:15:09] <Pyromanik> metanat: ^^
964: [23:15:30] <Pyromanik> metanat: Even with itemsetfield I often used it for many_many rather than has_one
965: [23:15:33] * priithansen quit (Quit: priithansen)
966: [23:15:43] <metanat> Yep. I agree simon_w, often it is to an File and in SS3 UploadField handles that, but there are still many cases where the relationship is primarily 1-1, that is, the has many isn't what you are using it for
967: [23:15:59] <Pyromanik> there aren't many usecases for has_one, and often is an indicator of doing it wrong.
968: [23:16:07] <Pyromanik> (ie people try to make objects to store info that should probably be in $db)
969: [23:16:07] <metanat> ...
970: [23:16:19] <Pyromanik> I'm not saying there aren't usecases
971: [23:16:31] <Pyromanik> just putting my arguement forward
972: [23:16:44] <SphereSilverNL> It's most often just an object linked to a page
973: [23:16:56] <SphereSilverNL> or a file/image etc. linked to an object
974: [23:17:03] <metanat> Cool. Heard it. Think it is relevant in many case but not all.
975: [23:17:10] * mobiusnz quit (Quit: Leaving.)
976: [23:18:04] <SphereSilverNL> Managing the has_one is very rare (although I got an example where it isn't :P )
977: [23:18:26] <AlphaCactus> I use has_one fairly often with custom objects. but, the built in dropdown seems fine?
978: [23:18:38] <metanat> If it was relevant in all cases you would hardly see Dropdowns used for managing has one relations, but i imagine you have seen them a lot
979: [23:18:44] <metanat> AlphaCactus: Yep, definitely
980: [23:19:16] <SphereSilverNL> I usually hide the has_one dropdown... way easier.
981: [23:19:27] <AlphaCactus> i mean, with the filter it provides. just a dropdown alone would be a nightmare in some cases.
982: [23:20:17] <metanat> AlphaCactus: this use case is for a situation where managing the available dataobjects is not suitable in ModelAdmin. It would be bad CMS experience for an Content Author
983: [23:20:50] <AlphaCactus> ah, you want to create as well you mean
984: [23:20:51] <SphereSilverNL> Why?
985: [23:20:52] <AlphaCactus> ?
986: [23:21:05] <ss23> Hmm, conceptual issue here. I have an array of pictures the user can enter in the CMS for a slider. They can then be 'archived' if they want them in that list, but not displayed on the slider for now. So, the template is like "<if not $archived>" then for the slider item, "<div class=<if first>first</end if>", however there's an obvious issue where if the first item is archived, no item will ever get a proper first tag. Is there a solution to this in tem
987: [23:21:09] <SphereSilverNL> Why create has-one relations if you can admin them
988: [23:21:32] <Pyromanik> we talkd about this in length just yesterday
989: [23:21:39] <ss23> Pyromanik: About my issue?
990: [23:21:45] <metanat> The user would need to navigate to another section of the CMS just to make the record available, Then they would need to navigate back to where they want the relation
991: [23:21:56] <SphereSilverNL> ss23: Create a custom method to get all live images
992: [23:22:01] <simon_w> ss23, you got cut off. Get a better client :p
993: [23:22:03] <SphereSilverNL> and just use <div class=
994: [23:22:04] <Pyromanik> simon_w: is there a link to your module?
995: [23:22:07] <ss23> Sorry simon_w
996: [23:22:08] <SphereSilverNL> "$FirstLast"
997: [23:22:19] <Pyromanik> ss23: no, about managing has_one items.
998: [23:22:21] <ss23> simon_w: Issue is that window sizing on OSX is really stupid, so it's hard
999: [23:22:22] <ss23> :P
1000: [23:22:23] <simon_w> [11:09:25] <simon_w> https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler/
1001: [23:22:38] <ss23> however there's an obvious issue where if the first item is archived, no item will ever get a proper first tag. Is there a solution to this in templating? (I would obviously be able to solve it with a variable if it was pure PHP)
1002: [23:22:39] <Pyromanik> oh sweet ta
1003: [23:22:58] <Pyromanik> ss23: I don't follow
1004: [23:23:11] <Pyromanik> if it's archived, don't put it in your list.
1005: [23:23:12] <simon_w> ss23, filter the list given to the slider
1006: [23:23:17] <ss23> Yep yep
1007: [23:23:31] <ss23> Wasn't sure if there was a template solution (since it looks like they implmented this in a template
1008: [23:23:34] <ss23> )
1009: [23:23:54] <Pyromanik> <% loop List.filter(lolwut) %>
1010: [23:23:55] <SphereSilverNL> ss23: as I said, create a function that gets all LIVE items, then loop those in template.
1011: [23:23:57] <simon_w> ss23, also, how does a window size prevent your client from either automatically splitting messages that are too long or not letting you put one in? :p
1012: [23:24:22] <SphereSilverNL> filter is better option, thank you Pyromanik
1013: [23:24:25] <metanat> Thanks for the model simon_w. It looks useful :)
1014: [23:24:32] <metanat> *module
1015: [23:25:48] <ss23> simon_w: SUSH
1016: [23:25:51] * ss23 coughs
1017: [23:25:52] <ss23> It just does
1018: [23:26:03] <ss23> Wait uh
1019: [23:26:05] <ss23> When you say 'filter'
1020: [23:26:10] <ss23> You mean filter in the code.php file right?
1021: [23:26:13] <ss23> Which is the same as a function?
1022: [23:26:20] <ss23> Like, I'll create a "getLiveImages" right?
1023: [23:26:23] <ss23> and do a filter in there?
1024: [23:26:35] <AlphaCactus> you ever check your email at geek.nz simon? I never got a response to my question.
1025: [23:26:36] <SphereSilverNL> no
1026: [23:26:40] <Pyromanik> well yes
1027: [23:26:59] <SphereSilverNL> <% loop Object.filter('live' == 1) %> should work too, right?
1028: [23:27:00] <ss23> Is there a template filter?
1029: [23:27:00] <simon_w> AlphaCactus, geek.nz isn't a valid domain name
1030: [23:27:05] <simon_w> SphereSilverNL, no
1031: [23:27:18] <simon_w> Also, horrible practice
1032: [23:27:22] <simon_w> Stick the logic in the code
1033: [23:27:25] <Pyromanik> SphereSilverNL: no.
1034: [23:27:30] <SphereSilverNL> Really? Ok, in that case, revert to my original reaction ;)
1035: [23:27:34] <ss23> lol
1036: [23:27:34] <Pyromanik> and yeah, you shouldn't do it, hence 'lolwut'
1037: [23:27:38] <Pyromanik> in my example
1038: [23:27:39] <AlphaCactus> simon_w: lol. didn't get a bounce or anything. anyway, Is it possible to set a filter on it so that it doesn’t show all objects of the class when using a GridFieldManyRelationHandler?
1039: [23:27:41] <SphereSilverNL> Never used it, but thought it was :D
1040: [23:27:55] <Pyromanik> but .filter(Property, Value) might
1041: [23:28:00] <Pyromanik> but still don't do it :P
1042: [23:28:15] <simon_w> AlphaCactus, if you filter the ManyManyList you pass in, that filter should stick
1043: [23:28:29] <SphereSilverNL> public function getLiveThingys(){ return Object::get()->filter(array('DBRecordThatShouldBeOne' => 1)); }
1044: [23:29:06] * mobiusnz has joined #silverstripe
1045: [23:29:20] <Pyromanik> simon_w: is that the module you were saying works in 3.0.5 and 3.1.x ?
1046: [23:29:21] <SphereSilverNL> Pyromanik: I was roughly guessing if it should work, but it's indeed bad practice, it would move function to the template, which can get scary.... fast.
1047: [23:29:30] <simon_w> Pyromanik, yup
1048: [23:29:36] <Pyromanik> simon_w: cool man, cheers.
1049: [23:29:43] <Pyromanik> That saves me some time :p
1050: [23:30:34] <Pyromanik> except
1051: [23:30:34] <Pyromanik> hmm
1052: [23:30:40] <Pyromanik> no search to add, and just list the one?
1053: [23:31:04] <Pyromanik> I like the way uploadfield works for editing a has_one image.
1054: [23:31:09] <Pyromanik> / file
1055: [23:31:09] * DigNZ has joined #silverstripe
1056: [23:31:35] <SphereSilverNL> simon_w: who's in charge of the GridField stuff?
1057: [23:31:52] <simon_w> SphereSilverNL, whoever merges the change
1058: [23:32:11] <SphereSilverNL> Dodging responsibility, aren't we? :P
1059: [23:32:18] <Pyromanik> nope
1060: [23:32:21] <Pyromanik> that's really just how it is
1061: [23:32:28] <Pyromanik> open source 'n all
1062: [23:32:36] <SphereSilverNL> Pyromanik: hence the " :P " ;)
1063: [23:33:48] <SphereSilverNL> Anyway, I guess I'm gonna work on the GridFieldHeaderField than. It's missing a few features :P
1064: [23:36:14] <SphereSilverNL> Hey simon_w, can you explain the discussion going on? I feel Andrew and Damian are discussing something completely different... https://github.com/silverstripe/silverstripe-framework/pull/2105
1065: [23:37:21] <simon_w> SphereSilverNL, I have a feeling tractorcow thought it was a different pull request
1066: [23:37:58] <SphereSilverNL> Exactly what I was thinking. The discussion doesn't match the actuall request indeed.
1067: [23:45:06] * spronk has left #silverstripe
1068: [23:45:48] * mobiusnz quit (Quit: Leaving.)
1069: [23:46:23] * simon_w quit (Ping timeout: 260 seconds)
1070: [23:48:15] * spronk has joined #silverstripe
1071: [23:48:28] <AlphaCactus> simon_w: i tried to set a different list on the gridfield with setList but GridFieldManyRelationHandler seems to ignore it. I mean, it is alerady filtered automatically by the object I am on anyway.
1072: [23:49:06] <SphereSilverNL> What are you trying to do???
1073: [23:50:24] <AlphaCactus> I have a list of Students each of which have many_many guardians. A student will write a letter, and then guardians can be assigned to that letter. It doesn't make sense to select from all guardians in the system, only the guardians on that student.
1074: [23:51:16] <SphereSilverNL> MultiSelect or CheckboxSet
1075: [23:51:27] <SphereSilverNL> Should do the trick for you
1076: [23:51:49] <SphereSilverNL> Or, I misunderstand what you are trying to do.
1077: [23:52:40] <AlphaCactus> yes, that could probably work too, although I'm not real clear on how that will automatically handle the relationship management.
1078: [23:52:58] <AlphaCactus> the PickerField module is what I'm currently using.
1079: [23:53:01] <SphereSilverNL> the many_many/belongs_many_many does that for you
1080: [23:54:04] <AlphaCactus> this is all being done in getCMSFields. So if I used a CheckboxSet, its smart enuf to take the results of that and update the relationships?
1081: [23:54:21] * SightUnseen has joined #silverstripe
1082: [23:57:34] <SphereSilverNL> updating a record should do that by itself
1083: [23:57:48] * mobiusnz has joined #silverstripe
1084: [23:59:14] <Pyromanik> what am I do wrong?
1085: [23:59:16] <Pyromanik> http://www.sspaste.com/paste/show/51bfa28084ca3
1086: [23:59:31] <Pyromanik> [User Error] Uncaught SSTemplateParseException: Parse error in template on line 11. Error was: Unknown open block "loop" encountered. Perhaps you missed the closing tag or have mis-spelled it?
1087: [23:59:34] <AlphaCactus> hm, looks like it does work. still, it only works in this case beacuse there will never be more than a couple options. but would still like to filter on GridFieldManyRelationHandler for cases that might have hundreds of records to choose from which have been filtered down from thousands.
1088: [23:59:49] <SphereSilverNL> You're doubling the else

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