#silverstripe IRC Log

IRC log for 5 July 2012

Logging kindly sponsored by Stripe The Net: Hosting and Deployment, made simple.

All timestamps are in AET (Australian Eastern Time).

1: [00:14:00] <ocm> ssstuck
2: [00:15:00] <ocm> in the <head></head> ? or before </body>?
3: [00:15:00] <ocm> where do your js get loaded?
4: [00:18:00] <ec8or_> no pictures at all displayed on roman
5: [00:19:00] <ocm> the roman empire?
6: [00:21:00] <ec8or_> wrong window :)
7: [00:22:00] <ocm> haha
8: [00:23:00] <ocm> no matter what I choose
9: [00:23:00] <ocm> btw, anyone else has the tinyMCE bug on image alignment?
10: [00:23:00] <ocm> the image class keeps being left
11: [00:23:00] <ocm> or does it check the css first before adding a class?
12: [00:25:00] * ajshort quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.2.12/20101026201539])
13: [00:25:00] <LePhil> how hard on a scale from 1 to hard is it to implement this: have a dropdown-box in the CMS with values 1-4, and upon changing that value, a number of fields get generated. e.g. choose 3 from dropdownbox --> 3 fields get created
14: [00:26:00] <ocm> it depens on what kind of fields you want
15: [00:26:00] <LePhil> or a button to add another field
16: [00:26:00] <ocm> hm
17: [00:26:00] <ocm> about 474rd
18: [00:26:00] <ocm> :P
19: [00:26:00] <ocm> using 2.4.7 or 3.0 rc2?
20: [00:26:00] <LePhil> pretty hard, then :P
21: [00:27:00] <LePhil> 2.4.7. and textfields
22: [00:27:00] <LePhil> basic stuff
23: [00:27:00] <ocm> get uncle cheese's dataobjectmanager
24: [00:27:00] <ocm> and go for the Complex Table Field
25: [00:27:00] <LePhil> I just did something with that yesterday
26: [00:27:00] <ocm> depending on your skill it is about 4 hardness
27: [00:28:00] <LePhil> uncle cheese's stuff automagically adds +5 to that value
28: [00:28:00] <ocm> without the DOM it adds +ard
29: [00:28:00] <ocm> :P
30: [00:29:00] <LePhil> just don't want to add 4 fields when the user can use only 1 or 2 if he fancies that
31: [00:29:00] <LePhil> I don't need to manage them, really.
32: [00:30:00] <ocm> then you call it managing your fields
33: [00:30:00] <ocm> ;)
34: [00:30:00] <ocm> and also put some content in it
35: [00:30:00] <ocm> and even delete some
36: [00:30:00] <ocm> well, if you need to be able to add more
37: [00:30:00] <LePhil> or 11
38: [00:30:00] <LePhil> or 5
39: [00:30:00] <LePhil> but I want him to have the possibility to go up to 4
40: [00:31:00] <LePhil> true
41: [00:31:00] <LePhil> thanks :)
42: [00:31:00] <LePhil> i'll try it with DOM
43: [00:31:00] <LePhil> hm that's probably not really easier
44: [00:31:00] <ocm> but clear again on f5 :P
45: [00:31:00] <LePhil> but not backend-managing :P
46: [00:31:00] <ocm> messing the view up
47: [00:31:00] <ocm> otherwise you could just write some js code that prompts random fields on click
48: [00:31:00] <LePhil> crap.
49: [00:31:00] <LePhil> yeah
50: [00:32:00] <ocm> np
51: [00:33:00] <ocm> what is the function of these fields?
52: [00:33:00] <LePhil> maybe managing them on the backend isn't that stupid of an idea, actually
53: [00:34:00] <LePhil> just to print 4 texts
54: [00:34:00] <LePhil> especially considering translatability
55: [00:35:00] <LePhil> so no TinyMCE
56: [00:35:00] <LePhil> but with fancy styling
57: [00:36:00] <ocm> print text from the cms into content?
58: [00:39:00] <Arno> Im trying to add a style to tinymce, but for some reason it doesnt show up, im using HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'Name 1=class1;Name 2=class2'); in _config.php
59: [00:39:00] * Arno has joined #silverstripe
60: [00:40:00] <ocm> replace Name with the right dom-element
61: [00:40:00] <ocm> atleast, I think :P
62: [00:40:00] <ocm> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'None=none;Image left=left;Image center=center;Image right=right;Image left alone=leftAlone;Image right alone=rightAlone');
63: [00:40:00] <ocm> like this for img:
64: [00:40:00] <ocm> and you are set arno
65: [00:40:00] * webguest quit (Quit: Page closed)
66: [00:40:00] <LePhil> yes
67: [00:41:00] <Arno> hmpf doesnt show up still, im adding it to editor.css
68: [00:41:00] <Arno> the style
69: [00:42:00] <Arno> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'None=none;Groot Groen=BigGreen');
70: [00:42:00] <Arno> HtmlEditorConfig::get('cms')->setOptions(array('content_css'=>'cms/css/editor.css, '.(SSViewer::current_theme() ? THEMES_DIR . "/" . SSViewer::current_theme() : project()) . "/css/editor.css"));
71: [00:42:00] <LePhil> arno, if you find out, please tell us. I tried that before and didn't get it to work
72: [00:42:00] <Arno> is it possible to do such a set up? or you can only use get once
73: [00:43:00] <Arno> doesnt work ocm
74: [00:44:00] <ocm> I think you should put it in one string all together
75: [00:44:00] <ocm> as a gigantic array or something
76: [00:44:00] <ocm> though I not really worked that much with that
77: [00:45:00] <ocm> I only use the string I just showed, so the right class gets added when a user adds an image
78: [00:46:00] <ocm> maybe it helps a bit
79: [00:46:00] <ocm> what happens if you add the style to typography.css?
80: [00:46:00] <Arno> well thanks anyway
81: [00:46:00] <Arno> aha oke
82: [00:47:00] <LoveDuckie> <% with Fields %>
83: [00:47:00] <LoveDuckie> Anyone know how to loop through fields in a forma
84: [00:47:00] <LoveDuckie> and display them in their own template?
85: [00:48:00] <LoveDuckie> <% end_with %>
86: [00:48:00] <LoveDuckie> ?
87: [00:52:00] <LePhil> what do you mean with "loop through fields"?
88: [00:54:00] <LoveDuckie> lolwat.
89: [00:54:00] <LoveDuckie> but it's outdated apparently.
90: [00:54:00] <ss23> http://www.youtube.com/watch?v=ZvMUlywpYr8
91: [00:54:00] <LoveDuckie> essentially yeah
92: [00:54:00] <ss23> You do the loop'de'loop then pull
93: [00:54:00] <LoveDuckie> I found some documentation on the silverstripe
94: [00:54:00] <ss23> Now your shoes are looking cool.
95: [00:55:00] <ss23> Gets the point across
96: [00:55:00] <LoveDuckie> WOAH OKAY.
97: [00:55:00] <ss23> AND YOUR SHOES ARE LOOKING COOL
98: [00:55:00] <ss23> YOU MAKE A LOOP DE LOP AND PULL
99: [00:55:00] <ss23> wow bad quality
100: [00:55:00] <LoveDuckie> lol still don't get your point.
101: [00:56:00] <LoveDuckie> GAWD DAMMIT
102: [00:56:00] <LoveDuckie> http://pastie.org/4199261
103: [00:56:00] <LoveDuckie> "[Warning] Missing argument 1 for ViewableData::getField(), called in C:\wamp\www\poco\framework\view\ViewableData.php on line 106 and defined"
104: [00:57:00] * xmem quit (Quit: Verlassend)
105: [01:03:00] * oscar_ quit (Ping timeout: 246 seconds)
106: [01:03:00] * OzziNL quit (Ping timeout: 252 seconds)
107: [01:19:00] * EMaster has joined #silverstripe
108: [01:20:00] * EMaster is tired of reading all the entries in the logfile
109: [01:20:00] <EMaster> Is there any documentation on replacing Director::AddRules() with yml?
110: [01:22:00] * EMaster goes back to thinking about Stacey's mom
111: [01:41:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-translatable/master * r319a7fa / code/controller/TranslatableCMSMainExtension.php : Merge pull request #32 from blu42media/patch-1 - http://git.io/yYh4IA
112: [01:41:00] <CIA-12> silverstripe: BLU42 Media silverstripe-translatable/master * r01a61f4 / code/controller/TranslatableCMSMainExtension.php : fixed typo in function call - http://git.io/PAhGeg
113: [01:45:00] * perverse` has joined #silverstripe
114: [01:45:00] * perverse` quit (Read error: Connection reset by peer)
115: [01:47:00] <LePhil> anyone knows how to count the number of items (like $TotalItems) but OUTSIDE of the control?
116: [01:54:00] <Arno> LePhil: mabye two dataobjects? one for control one for count?
117: [01:54:00] <ocm> or by hand
118: [01:54:00] <ocm> javascript
119: [01:55:00] <ocm> anyway
120: [01:55:00] <ocm> I go now
121: [01:55:00] <LePhil> maybe there's a template function
122: [01:55:00] <LePhil> but it doesn't look that way
123: [01:55:00] <ocm> I would prefer counting them manual
124: [01:55:00] <ocm> or on your fingers
125: [01:55:00] <Arno> but mabye he wants to use it dynamically?
126: [01:55:00] <ocm> LePhil, maybe this helps?
127: [01:55:00] <ocm> http://www.wateenspeelgoed.nl/contents/media/houten%20-speelgoed-houten-telraam.jpg
128: [01:55:00] <LePhil> hehe
129: [01:55:00] <Arno> ah oke, loving the trolling
130: [01:55:00] <LePhil> just thought of that too :)
131: [01:56:00] <ocm> and I got to swim
132: [01:56:00] <ocm> before rain starts falling down on me
133: [01:56:00] <ocm> cheers
134: [01:56:00] <LePhil> prefer that one http://i.istockimg.com/file_thumbview_approve/3204474/2/stock-illustration-3204474-counting-on-fingers.jpg
135: [01:58:00] <Arno> one for <% control %> and then one as like $Function.Total
136: [01:58:00] <Arno> LePhil: I wonder if you can use two functions in one
137: [01:58:00] <Arno> hehe
138: [01:58:00] <Arno> and you made the .Total in your function
139: [01:58:00] <Arno> but thats just me talking without having any real php skills :)
140: [01:59:00] <LePhil> hehe
141: [01:59:00] * zfmf has left #silverstripe
142: [01:59:00] <Arno> ah oke :)
143: [01:59:00] <LePhil> seems easier
144: [01:59:00] <LePhil> no we're doing the additional dataObject way now
145: [02:00:00] * ocm quit (Ping timeout: 245 seconds)
146: [02:00:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-translatable/master * r1a4b284 / code/controller/TranslatableCMSMainExtension.php : Fixed deprecated function usage (#33) - http://git.io/H3qCTA
147: [02:00:00] * zfmf has joined #silverstripe
148: [02:07:00] * hormy quit (Ping timeout: 245 seconds)
149: [02:08:00] <CIA-12> silverstripe: jakr sapphire/3.0 * r2069695 / forms/gridfield/GridFieldDataColumns.php : FIX: Ticket #7592 GridFieldDataColumns: Wrong documentation for getFieldCasting Moved documentation to the appropriate function, added note about the two parameter callback function. - http://git.io/Vr5z4A
150: [02:17:00] * elgrodo quit (Read error: Connection reset by peer)
151: [02:18:00] <FrozenFire> Any tips for dealing with SilverStripe being in a subfolder of the webroot?
152: [02:18:00] <CIA-12> silverstripe: jakr sapphire/3.0 * r2b5214b / docs/en/changelogs/3.0.0.md : Summarized 3.0 changes in changelog - http://git.io/YQ_NLw
153: [02:29:00] <Arno> change the webroot of .htaccess to the right subfolders
154: [02:32:00] * webdoc has joined #silverstripe
155: [02:33:00] <webdoc> hi
156: [02:33:00] <webdoc> can some one help with http://www.silverstripe.org/dataobjectmanager-module-forum/show/20185
157: [02:33:00] <FrozenFire> Why hello there, good sir.
158: [02:33:00] <FrozenFire> webdoc, What are the Security permissions for your current user?
159: [02:33:00] <webdoc> giving this error when i use 2nd paragraph line in simpletinymce field
160: [02:34:00] <webdoc> in ss
161: [02:34:00] <webdoc> admin
162: [02:34:00] <FrozenFire> As well, do you have the .htaccess file properly installed?
163: [02:34:00] <webdoc> looking it right now
164: [02:36:00] <EMaster> I know this might sound stupid... but you are definitely still logged into the CMS?
165: [02:36:00] <webdoc> yep
166: [02:36:00] <webdoc> maybe its problem with silverstripe cache
167: [02:37:00] <webdoc> i have installed it in not root folder but in folder called top
168: [02:37:00] <webdoc> and the rewritebase is set to /top/
169: [02:37:00] <webdoc> looks like its ok
170: [02:38:00] <webdoc> <IfModule mod_alias.c> RedirectMatch 403 /silverstripe-cache(/|$) </IfModule>
171: [02:38:00] <webdoc> also have this line
172: [02:38:00] <LoveDuckie> Ergh, OK I am making a template for a custom Form object called ContactForm
173: [02:38:00] <LoveDuckie> HOW do I make one particular field appear?
174: [02:38:00] <LoveDuckie> FieldList()->getField("name")?
175: [02:38:00] <LoveDuckie> Been ripping out my hair here.
176: [02:38:00] <LoveDuckie> I know how to get them all appearing at once
177: [02:38:00] <LoveDuckie> btu that's not what I want.
178: [02:39:00] <FrozenFire> webdoc, If at all possible, modify your vhost configuration to place the webroot at /top/, instead of rewriting the base.
179: [02:39:00] <webdoc> its test web and going up soon on root
180: [02:39:00] <webdoc> but what happens if i remove the silverstripe cache
181: [02:40:00] <EMaster> a new one should magically appear (providing file/dir permissions are right)
182: [02:40:00] <EMaster> but to be safe
183: [02:40:00] <EMaster> just rename it
184: [02:40:00] <zfmf> .
185: [02:41:00] * zfmf quit (Read error: Connection reset by peer)
186: [02:42:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * rde73db9 / docs/en/changelogs/3.0.0.md : Restructured 3.0 changelog - http://git.io/hZp0Dg
187: [02:44:00] <FrozenFire> LoveDuckie, That's... tricky.
188: [02:46:00] <FrozenFire> LoveDuckie, I'm pretty sure that it's all or nothing, in terms of outputting the form. If you only output part of the form, you're liable to cause errors in the form handling.
189: [02:46:00] <FrozenFire> LoveDuckie, The best bet is to hide unwanted fields with CSS.
190: [02:47:00] <FrozenFire> If you need to get a field for another purpose, in your controller, you can do $form->Fields()->fieldByName('name');
191: [02:48:00] * openbees has joined #silverstripe
192: [02:49:00] <LoveDuckie> I mean, I am literally doing it for the sake of positioning.
193: [02:49:00] <LoveDuckie> That's it.
194: [02:50:00] <FrozenFire> LoveDuckie, Best to use CSS
195: [02:50:00] <LoveDuckie> Hmkay.
196: [02:52:00] <LoveDuckie> I managed to get the fields returning separately
197: [02:52:00] <LoveDuckie> I made a function named "returnField($name)"
198: [02:52:00] <openbees> sminnee : need to fix i think ! I was just checking silverstripe.com and on this page "http://www.silverstripe.com/our-work/westpac/" link below "Westpac" title (www.westpac.co.nz) is sending users to "http://www.silverstripe.com/www.westpac.co.nz"
199: [02:52:00] <LoveDuckie> which then calls the forms Fields()->fieldByName
200: [02:52:00] <LoveDuckie> I'll let you know if it works even if called separately.
201: [02:52:00] <FrozenFire> :\ I'd recommend against that, LoveDuckie
202: [02:52:00] <LoveDuckie> Just because of bad standards or?
203: [02:52:00] <FrozenFire> I've hacked at forms pretty intensely, and I can tell you that you're likely to break it ;)
204: [02:53:00] <FrozenFire> LoveDuckie, Keep your presentation in your view.
205: [02:53:00] <LoveDuckie> That's where it is
206: [02:53:00] * EMaster quit (Ping timeout: 245 seconds)
207: [02:53:00] <LoveDuckie> I call $returnField from the template
208: [02:53:00] <LoveDuckie> ContactForm.ss
209: [02:53:00] <LoveDuckie> within the form
210: [02:53:00] <LoveDuckie> that calls "$FormAttributes"
211: [02:54:00] * slith quit (Quit: Leaving.)
212: [02:54:00] <LoveDuckie> I see.
213: [02:54:00] * lx-berlin has left #silverstripe
214: [02:54:00] <FrozenFire> http://ubiquitycorp.com/contact/ There's an example of where I've styled the form nicely.
215: [02:54:00] <FrozenFire> It's actually not very difficult to style forms. Modifying the rendering of the form is a bad idea.
216: [02:54:00] <LoveDuckie> so surely as long as I include the fields within the form and field set, it should be OK?
217: [02:56:00] * PigeonFriend quit ()
218: [02:58:00] * slith has joined #silverstripe
219: [02:59:00] <CIA-12> silverstripe: ARNHOE sapphire/3.0 * rb6c59f2 / (admin/css/screen.css admin/scss/_forms.scss): Restricting input.time width - http://git.io/wazNbw
220: [03:00:00] * LePhil quit (Ping timeout: 245 seconds)
221: [03:00:00] <LoveDuckie> FrozenFire, how do I add labels to a field?
222: [03:02:00] <FrozenFire> LoveDuckie, In the field definition
223: [03:03:00] <FrozenFire> new TextField('fieldname', 'title', 'value')
224: [03:03:00] <FrozenFire> Title being the label contents.
225: [03:03:00] <openbees> sminnee : oops same here "http://www.silverstripe.com/our-work/plunket/" on left side of content area below "Plunket" title !!
226: [03:03:00] * r3v3rb has joined #silverstripe
227: [03:04:00] * theorytank has joined #silverstripe
228: [03:06:00] <LoveDuckie> Yeah, I got those params filled out
229: [03:06:00] <LoveDuckie> but nothing appearing on top.
230: [03:07:00] <FrozenFire> You sure you're not accidentally hiding the label elements?
231: [03:07:00] <FrozenFire> Check the HTML output
232: [03:07:00] <FrozenFire> Also, are you using SS3?
233: [03:09:00] <LoveDuckie> Yeah I am
234: [03:10:00] <FrozenFire> There may be some differences there. I've not done anything more than installed it thusfar
235: [03:10:00] <LoveDuckie> OK
236: [03:11:00] <LoveDuckie> I'll check it out some more
237: [03:11:00] <LoveDuckie> But there's no hidden labels that's for sure.
238: [03:13:00] * chillu quit (Quit: chillu)
239: [03:17:00] <FrozenFire> Anyone have a translated version of this talk?: http://vimeo.com/37216649
240: [03:17:00] <FrozenFire> :P
241: [03:17:00] <FrozenFire> I have a really hard time understanding the New Zealand accent
242: [03:17:00] <FrozenFire> (Grid Field)
243: [03:21:00] * gelignite has joined #silverstripe
244: [03:22:00] * SStuck has left #silverstripe
245: [03:24:00] * openbees quit (Quit: Leaving)
246: [03:26:00] <LoveDuckie> Looks interesting
247: [03:33:00] <webdoc> it still the same
248: [03:36:00] <webdoc> installed in subdomain
249: [03:36:00] <webdoc> and used the same stuff
250: [03:36:00] <webdoc> but still in 2nd paragraph it gives error
251: [03:40:00] * chillu has joined #silverstripe
252: [03:41:00] <FrozenFire> webdoc, It really does sound like an error in routing the requests. That'd be related to have SS installed not in the site root
253: [03:41:00] <FrozenFire> You might need an _ss_environment.php file in your SS root, with a FILE_TO_URL_MAPPING
254: [03:41:00] <FrozenFire> http://doc.silverstripe.org/framework/en/topics/environment-management
255: [03:55:00] * apk26 quit (Ping timeout: 245 seconds)
256: [04:04:00] <webdoc> all ok with it
257: [04:04:00] <webdoc> if i write on line 1 paragraph it lets me save
258: [04:04:00] <webdoc> if i add second it gives error
259: [04:05:00] <webdoc> something with detailform
260: [04:05:00] <FrozenFire> webdoc, Do you have access to your server's error log?
261: [04:05:00] <webdoc> yes
262: [04:06:00] <FrozenFire> Have you checked the contents of that?
263: [04:07:00] * subaru_ has joined #silverstripe
264: [04:08:00] <subaru_> ola senor y senoras
265: [04:08:00] <subaru_> come estas
266: [04:09:00] * subaru_ quit (Client Quit)
267: [04:10:00] <FrozenFire> webdoc, From the looks of the error message you PM'd me, your rewritebase is incorrect
268: [04:10:00] <FrozenFire> .../topseadmed/admin/EditForm/field/...
269: [04:10:00] <FrozenFire> You need a trailing slash on the /top
270: [04:22:00] <FrozenFire> webdoc, Are you sure that your file permissions are correct?
271: [04:23:00] <webdoc> yep
272: [04:34:00] <Arno> chillu: countrydropdownfield is added on master, but not on 3.0 (on github)
273: [04:36:00] * Nemitz has joined #silverstripe
274: [04:37:00] <Nemitz> Hi ppl :o)
275: [04:43:00] <Nemitz> Anyone knows how to make urls like index.php?id=1 fail? I'm trying to use ajshorts module linkmapping, to redirect old links to new pages. Old links are in the format index.php?id=xx and that unfortunately also works in SS.
276: [04:44:00] <Nemitz> Actually that is actually something that should always happen from a SEO perspective (or better redirect with 301 to correct url /page/subpage/)
277: [04:48:00] <FrozenFire> Nemitz, That's actually quite tricky. I had a similar problem, where I needed a page to accept a url=foo parameter
278: [04:48:00] <FrozenFire> But since SS uses the url parameter for its internal redirect, it was... very difficult.
279: [04:49:00] <FrozenFire> And it's still pretty buggy.
280: [04:50:00] <Nemitz> hmm yeah that's also another problem regarding SEO
281: [04:50:00] <Nemitz> so many different urls that will give you the same content
282: [04:50:00] * theorytank quit (Quit: Page closed)
283: [04:52:00] <Nemitz> I hoped there was just somewhere i could ad some check if url contained index.php, if so then fail and thereby go to the method in linkmapping module that handles redirects
284: [04:55:00] <FrozenFire> It might be possible with a rewriterule
285: [04:57:00] <FrozenFire> You'd have to check if it was a first-order request (not an internal request)
286: [04:57:00] <Nemitz> tried messing around with rewrite rules last week for something else - did not work out for me :-) i just don't understand
287: [04:59:00] <FrozenFire> The issue is that if you try to rewrite accesses to index.php, you are interfering with SilverStripe's routing scheme.
288: [04:59:00] <FrozenFire> It directs all requests to index.php
289: [05:05:00] <FrozenFire> Nemitz, I think it may be possible to use something like: RewriteRule ^/index.php?id=(.*) /wherever/linkmapping/is/index.php?id=$1 [NS]
290: [05:06:00] <Nemitz> yeah ok, i guess i'm in over my head here - think i will just try to implement the Legacy URL rewrites from the SS Book
291: [05:06:00] <FrozenFire> [NS] means "no subrequests"
292: [05:08:00] <Nemitz> FrozenFire: must admit i would not know where to start with that stuff, so i will leave it for now. Maybe use the Legacy URL or just do htaccess rewrites
293: [05:09:00] <FrozenFire> Nemitz, It *should* be as simple as placing that rewrite in your .htaccess prior to the SilverStripe rewrites.
294: [05:09:00] <Nemitz> what does /wherever/linkmapping/is mean?
295: [05:09:00] <FrozenFire> (Taking care to make sure RewriteEngine On is called)
296: [05:11:00] <FrozenFire> How are you wanting to map these IDs to your new URLs?
297: [05:12:00] <Nemitz> link mapping module kicks in when no page is found, so if a url is not found in filesystem or as a SS page, the module will look for a "link mapping"
298: [05:13:00] <FrozenFire> You may be able to completely avoid using the linkmapping module for this
299: [05:13:00] <FrozenFire> For instance, if you wanted index.php?id=<x> to map to /yourcontroller/<x>/, you'd use: RewriteRule ^/index.php?id=(.*) /yourcontroller/$1/ [NS]
300: [05:13:00] <Nemitz> https://github.com/ajshort/silverstripe-linkmapping/blob/master/code/controllers/LinkMappingFrontController.php
301: [05:14:00] <FrozenFire> The linkmapping module is for simple mappings, not complex ones like this, where you're wanting to override index.php
302: [05:17:00] <Nemitz> ok, to bad - that form of redirects would be a very common use case, never mind, i will go with the Legacy URL solution from the book, as it seems to be able to handle this
303: [05:22:00] * dospuntocero has joined #silverstripe
304: [05:38:00] <chillu> Arno: We'll merge master back to 3.0 at some point soon
305: [05:39:00] * webdoc quit (Ping timeout: 245 seconds)
306: [05:43:00] <dospuntocero> what do i need to do in templates on SS3 to getting the dates in spanish?
307: [05:43:00] <dospuntocero> hey guys.. quick question
308: [05:44:00] <Nemitz> $Date.Nice if i18n::set_locale is set to Spanish i think
309: [05:47:00] <dospuntocero> mmm Nemitz i think it doesnt work...
310: [05:48:00] <r3v3rb> has fooked up everything, SS doesn't even run on it!
311: [05:48:00] <dospuntocero> but didnt worked either.
312: [05:48:00] <dospuntocero> i tried with .FormatI18N(%A %e de %B de %Y)
313: [05:48:00] <r3v3rb> arggggghhhhhhh stooopid italians wanting to get their own hosting!
314: [05:49:00] <dospuntocero> i know the feeling
315: [05:49:00] <dospuntocero> lol r3v3rb
316: [05:50:00] <r3v3rb> dospuntocero: not funny - test site on my server works perfectly - can't even get their host to run the installer!
317: [05:50:00] <r3v3rb> why they can't just host with me i do not know!
318: [05:50:00] <r3v3rb> tried bypassing by uploading all correct files etc and boom Error 500 Internal Server
319: [05:50:00] <dospuntocero> cant they just change to another italian server?
320: [05:50:00] <dospuntocero> LMAO.
321: [05:51:00] <dospuntocero> or something simliar
322: [05:51:00] <dospuntocero> is it yours free?
323: [05:51:00] <dospuntocero> or awfully cheap?
324: [05:51:00] <r3v3rb> its not like I am even expensive - their hosting cost more than mine
325: [05:51:00] <dospuntocero> then offer the first year free.
326: [05:52:00] <Nemitz> r3v3rb: can it be something with the rewrite path in .htaccess?
327: [05:52:00] <r3v3rb> its already been on there 6 months whilst they fannyed about uploading all their content!
328: [05:52:00] <r3v3rb> well I have the default .htaccess but it bails
329: [05:53:00] <r3v3rb> Nemitz: what might you suggest...
330: [05:53:00] <r3v3rb> the host is weird for a start
331: [05:54:00] <r3v3rb> root -> domainname_as_folder_for_public_html -> files
332: [05:54:00] <Nemitz> Ok, don't know, i juts had problems with server not doing anything, also on my localhost on mac, an i added: RewriteBase /~tn/developer/somesite.com
333: [05:55:00] <Nemitz> hate it when customers wan't to host on some sh.. server, so much problems
334: [05:57:00] <r3v3rb> quatro de julio de 2012
335: [05:57:00] <dospuntocero> damn... i cant put the date in spanish..
336: [05:57:00] <dospuntocero> :C
337: [05:57:00] <r3v3rb> ;)
338: [05:57:00] <dospuntocero> r3v3rb: close
339: [05:58:00] <r3v3rb> cuatro
340: [05:58:00] <dospuntocero> yeah.
341: [05:58:00] <dospuntocero> hehe
342: [05:58:00] <dospuntocero> well i just need to return julio
343: [05:58:00] <r3v3rb> sorry my Galician wife would beat me for that
344: [05:58:00] <dospuntocero> LMAO
345: [05:58:00] <dospuntocero> LMAO
346: [05:59:00] <dospuntocero> yes Nemitz
347: [05:59:00] <dospuntocero> that returns Apr
348: [05:59:00] <dospuntocero> return date('M', strtotime($this->Date));
349: [05:59:00] <dospuntocero> and how many wifes you have?
350: [05:59:00] <dospuntocero> return date('M', strtotime($this->Date)); returns Jun
351: [05:59:00] <dospuntocero> that is almost ok..
352: [05:59:00] <r3v3rb> only one wife thank the lord above!
353: [05:59:00] <Nemitz> dospuntocero: is the field defined as date?
354: [05:59:00] <dospuntocero> haha
355: [06:00:00] <dospuntocero> but no luck.
356: [06:00:00] <dospuntocero> and i need Abr
357: [06:00:00] <dospuntocero> i have this in my config
358: [06:00:00] <dospuntocero> i18n::set_locale('es_ES');
359: [06:00:00] <r3v3rb> dospuntocero: change the default locale
360: [06:00:00] <r3v3rb> pah!
361: [06:00:00] <dospuntocero> and setlocale(LC_ALL, 'es_ES');
362: [06:00:00] <dospuntocero> also
363: [06:00:00] <r3v3rb> but isnt date(… just a php function
364: [06:01:00] <dospuntocero> im following this example
365: [06:01:00] <r3v3rb> nothing to do with SS
366: [06:01:00] <dospuntocero> yes
367: [06:01:00] <dospuntocero> http://doc.silverstripe.org/framework/en/trunk/howto/grouping-dataobjectsets
368: [06:01:00] <r3v3rb> $date = new Date();
369: [06:01:00] <r3v3rb> etc etc
370: [06:01:00] <dospuntocero> because i just needed that for an article module im working on
371: [06:01:00] <r3v3rb> see if when passing the international date it gets transmogrified to es_ES
372: [06:02:00] <dospuntocero> how can i know that?
373: [06:03:00] <r3v3rb> dospuntocero: you could always bash this in there http://snipplr.com/view/3644/
374: [06:03:00] <Nemitz> i18n::set_locale('da_DK');
375: [06:04:00] <Nemitz> that's what you need in config
376: [06:04:00] <Nemitz> ofcourse not da_DK :-)
377: [06:04:00] <r3v3rb> ;)
378: [06:04:00] <r3v3rb> good to know Nemitz
379: [06:04:00] <r3v3rb> not seen LC_TIME before
380: [06:04:00] <Nemitz> setlocale(LC_ALL, 'da_DK');
381: [06:04:00] <Nemitz> setlocale (LC_TIME, "da_DK.UTF-8");
382: [06:05:00] <r3v3rb> i'll shove it in this fooken Italian site - if it ever runs
383: [06:05:00] <dospuntocero> yes but that is scary...
384: [06:06:00] <dospuntocero> lctime is not working either... :C
385: [06:06:00] <dospuntocero> // Set the site locale
386: [06:06:00] <dospuntocero> i18n::set_locale('es_ES');
387: [06:06:00] <dospuntocero> setlocale(LC_ALL, 'es_ES');
388: [06:06:00] <dospuntocero> setlocale(LC_TIME, 'es_ES');
389: [06:06:00] <r3v3rb> sheesh, got to love webmasters!
390: [06:06:00] <r3v3rb> this site is hosted as 'www.twpwines.com'
391: [06:06:00] <Nemitz> well, i just have that in one site where i had to work with dates, remember having big problems also, but with that in config, i can do $StartDate.Nice
392: [06:07:00] <r3v3rb> place SS in there - fail
393: [06:07:00] <r3v3rb> place index.html in there - runs
394: [06:07:00] <r3v3rb> '/ root directory on ftp shows 3 folders
395: [06:07:00] <r3v3rb> one being www.twpwines.com
396: [06:08:00] <r3v3rb> '/web/htdocs/twpwines.com/home/
397: [06:08:00] <r3v3rb> so error log shows this:
398: [06:08:00] <r3v3rb> [Wed Jul 04 21:42:10 2012] [error] [client 88.108.174.191] File does not exist: /web/htdocs/www.twpwines.com/home/$ThemeDir, referer: http://www.twpwines.com/
399: [06:08:00] <dospuntocero> easy then. just export the site in plain html
400: [06:08:00] <r3v3rb> nice
401: [06:08:00] <dospuntocero> haha
402: [06:08:00] <dospuntocero> is it even running php?
403: [06:08:00] <r3v3rb> yeh phpinfo() works and return 5.3.1 or something
404: [06:09:00] <r3v3rb> start over
405: [06:09:00] * r3v3rb is going to delete everything again
406: [06:10:00] <r3v3rb> I wonder if my redirect for Rewritebase should be /twpwines.com/home/
407: [06:11:00] <r3v3rb> hmmm
408: [06:12:00] * dospuntocero stress level up... FormatI18N lost
409: [06:15:00] <Nemitz> maybe this is relevant regarding dates: http://mikenovember.com/blog/why-your-dates-in-silverstripe-pages-never-show-up-as-expected/
410: [06:16:00] <dospuntocero> no luck.. :(
411: [06:17:00] <dospuntocero> lol
412: [06:17:00] <dospuntocero> returns es_ES
413: [06:17:00] <dospuntocero> Debug::show($member->Locale);
414: [06:18:00] * Nemitz quit (Quit: Nemitz)
415: [06:18:00] <r3v3rb> i think you will win the stress game tonight dospuntocero
416: [06:18:00] <dospuntocero> but the damned date still returns in english
417: [06:18:00] <dospuntocero> xD!!!!
418: [06:18:00] <Nemitz> crap, ok i have to go - work early in the morning. Good luck with the problems guys
419: [06:23:00] <irogue> Passengers: no buses 9-2 due to industrial action. Drivers: get to bar early for good seat of strippers, I mean "union delegates" -- AuckTransport
420: [06:27:00] * chillu quit (Quit: chillu)
421: [06:30:00] * dospuntocero damned locales.... :(
422: [06:32:00] * vbeing has joined #silverstripe
423: [06:34:00] * dospuntocero has joined #silverstripe
424: [06:34:00] * dospuntocero quit (Read error: Connection reset by peer)
425: [06:40:00] <FrozenFire> Pyromanik||, http://try.github.com/levels/1/challenges/1 This may interest you
426: [06:40:00] <irogue> damned IE9
427: [06:43:00] <Pyromanik||> LOLSIF
428: [06:43:00] <Pyromanik||> oh yeah FrozenFire
429: [06:43:00] <Pyromanik||> maybe
430: [06:43:00] <ss23> irogue: BET YUO MISS IE6 NOW
431: [06:43:00] <ss23> Wait...
432: [06:43:00] <irogue> no, thats goign too far :P
433: [06:43:00] <Pyromanik||> what's wrong with IE9?
434: [06:43:00] <irogue> i like IE9 cos i don't have to test my sites in it anymore, they tend to just work
435: [06:44:00] <Pyromanik||> apart from the fact that it carries the same bugs as 7 & 8 when it comes to the 2.4 cms?
436: [06:44:00] <irogue> but for some reason it breaks on 50% of router/switch/firewall etc Web UIs, where IE8, FF and Chrome all work fine
437: [06:44:00] <Pyromanik||> FrozenFire: I see a big white screen... is that normal?
438: [06:45:00] <Pyromanik||> irogue: hmm, maybe it's because I'm in opera
439: [06:45:00] <Pyromanik||> ss23: don't say that around MS too loud, they advocate it's awesome HTML5yness
440: [06:45:00] <ss23> IE9 -- Still not HTML5
441: [06:45:00] <irogue> Pyromanik||: thats not what i see!
442: [06:45:00] <Pyromanik||> irogue: yeah. It fixed a hell of a lot of render bugs. All g. But some JS ones still exist, along with shit like that.
443: [06:46:00] <Pyromanik||> well site works in ff
444: [06:46:00] <irogue> yeah, my first question now when someone calls and says "i can't log into my router!" is "are you using IE9?"
445: [06:46:00] <FrozenFire> Pyromanik||, Probably not normal
446: [06:46:00] <Pyromanik||> hmm
447: [06:47:00] <Pyromanik||> after I whitelist cloudfront with noscript
448: [06:47:00] <Pyromanik||> FrozenFire: not in opera
449: [06:47:00] <Pyromanik||> haha, irogue. Wondered why my mouse felt sluggish this morning
450: [06:47:00] <ss23> irogue: Do you guys end up chucking out any working products
451: [06:47:00] <FrozenFire> Pop-up blocker, javascript blocker, etc?
452: [06:48:00] <FrozenFire> Hah, funny thing is, apparently this thing isn't open-sourced on github
453: [06:48:00] <ss23> irogue: Thats cool too! How much non working stuff, and do you know why not working? Like, if I took all the non working stuff, I could fix right? :D
454: [06:48:00] <irogue> FrozenFire: presumably cos its actually made by codeschool not github
455: [06:48:00] <Pyromanik||> lifted it up, wet as fuck. Ran it through a puddle on my desk, lol..
456: [06:48:00] <ss23> ew, Pyromanik|| ;_;
457: [06:48:00] <irogue> ss23: nah, but lots of non-working ones!
458: [06:48:00] <ss23> lol
459: [06:49:00] <ss23> "what if I use this thing with this thing? :O"
460: [06:49:00] <Pyromanik||> gitstatus still works apparently
461: [06:49:00] <ss23> I have a soldering iron, an IRC network that deals with electronics, and some spare time
462: [06:49:00] <irogue> ss23: lol, probably. i'll have to find out what we've got around
463: [06:49:00] <Pyromanik||> lol
464: [06:49:00] <ss23> Well, if you have more than one thing of the same product, that would be best, so I could just like, try mix it all up etc :D
465: [06:50:00] <Pyromanik||> and how fine the point on your soldering iron is
466: [06:50:00] <Pyromanik||> ss23: it really depends on what's wrong with it
467: [06:50:00] <ss23> lol
468: [06:50:00] <ss23> Yeah, true that
469: [06:50:00] <ss23> My soldering iron is crap
470: [06:50:00] <Pyromanik||> along with how good your solder skills are
471: [06:50:00] <Pyromanik||> and how steady your hand is
472: [06:51:00] <FrozenFire> The worst is trying to use a manual solder sucker
473: [06:51:00] <ss23> But hey, not like I have anything to lose?
474: [06:51:00] <ss23> :D
475: [06:51:00] <irogue> yeah, the type of stuff we sell will all be very finely soldered
476: [06:51:00] <Pyromanik||> yeh, true
477: [06:51:00] <ss23> Yeah I know the type, irogue :<
478: [06:51:00] <ss23> Watched a bunch of soldering videos on Youtube once
479: [06:51:00] <ss23> ;_;
480: [06:51:00] <ss23> They make it so easy
481: [06:51:00] <ss23> "and just drag along here etc"
482: [06:51:00] <ss23> I try
483: [06:51:00] <ss23> BLARUGH
484: [06:51:00] <ss23> :<
485: [06:52:00] <FrozenFire> I was trying to replace a module in a plasma TV, and I absolutely could not, due to the way it was mounted on the board.
486: [06:52:00] <ss23> Getting my mother to bring some broken walkie talkies so I can try scavange some RC stuff to put in my RC car project o/
487: [06:52:00] <FrozenFire> It was a 20-pin through-hole, with each pin soldered heavily to the board
488: [06:53:00] <Pyromanik||> git log gives out "Added all the octocat txt files"
489: [06:53:00] <Pyromanik||> LOL this code school shit is fucking hilarious
490: [06:53:00] <Pyromanik||> git commit -m "penis
491: [06:53:00] <Pyromanik||> (sic)
492: [06:53:00] <FrozenFire> I spent days with desoldering wire, a solder sucker, and a bunch of lead solder
493: [06:53:00] <Pyromanik||> git log
494: [06:53:00] <ss23> lol Pyromanik||
495: [06:53:00] <ss23> rm -rf /
496: [06:54:00] <Pyromanik||> I used *
497: [06:54:00] <Pyromanik||> I DIDN"T KNOW THAT WAS A SYNONYM FOR PENIS
498: [06:54:00] <FrozenFire> Heh. Of course it's not an actual environment
499: [06:54:00] <ss23> -no-preserve-root
500: [06:54:00] <FrozenFire> Out of habit, I used git add -A
501: [06:54:00] <FrozenFire> Oddly, it gave me an interesting error
502: [06:54:00] <Pyromanik||> urgh
503: [06:54:00] <Pyromanik||> it wants me to make a github account
504: [06:54:00] <Pyromanik||> this is retarded.
505: [06:54:00] <ss23> tbh should just include jslinux and give us a real enviroment!
506: [06:54:00] <Pyromanik||> I know how to do the easy shit.
507: [06:55:00] <ss23> skip to a higher level, Pyromanik||?
508: [06:55:00] <FrozenFire> ss23, Hah, good luck getting git working on that :P
509: [06:55:00] <Pyromanik||> I was just a bit confused as to how to deal with a conflict, since up until recently I was the sole dev.
510: [06:55:00] <Pyromanik||> on the projects I had in a repo
511: [06:56:00] <Pyromanik||> even a monkey can figure out git commit.
512: [06:56:00] <Pyromanik||> yeah, it's a heap of shit.
513: [06:56:00] <FrozenFire> Yeah, it obviously suffers for tutorialitis.
514: [06:56:00] <FrozenFire> from**
515: [06:56:00] <Pyromanik||> http://try.github.com/levels/2/challenges/1 "the page you're looking for doesn't exist"
516: [06:57:00] <FrozenFire> I've been doing all of his version control for him :P
517: [06:57:00] <FrozenFire> My boss can't
518: [06:57:00] <Pyromanik||> along with add & status
519: [06:57:00] <Pyromanik||> FrozenFire: probably because he's too used to svn.
520: [06:57:00] <FrozenFire> He's the designer on the team, and he's completely confused by version control
521: [06:57:00] <Pyromanik||> this add business sent me out for a little bit.
522: [06:57:00] <FrozenFire> git commit -a -m "DeSoto's shit"
523: [06:58:00] <FrozenFire> He does the HTML/CSS work
524: [06:58:00] <Pyromanik||> FrozenFire: well yeah. Version control doesn't make all that much sense for pictures.
525: [06:58:00] <FrozenFire> Designer/front-end dev
526: [06:58:00] <Pyromanik||> although it does have the advantage of logging it in a nice fashion, but otherwise it's just complete copies of the file
527: [07:00:00] <Pyromanik||> urgh f-balls
528: [07:00:00] <Pyromanik||> php 5.2
529: [07:00:00] <Pyromanik||> no ss3 for me :<
530: [07:01:00] <FrozenFire> Interesting, your mentioning binary files had me doing some digging on ways to manage large binary files in git. I found this: http://git-annex.branchable.com/
531: [07:02:00] <FrozenFire> I think using that, you could feasibly configure your assets as git remote on an S3 bucket
532: [07:02:00] <FrozenFire> (Not SS's type of assets, but rather your theme images or something)
533: [07:10:00] * willr has joined #silverstripe
534: [07:13:00] * UndefinedOffset quit (Quit: Leaving.)
535: [07:14:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
536: [07:21:00] * Ryoken|0D has joined #silverstripe
537: [07:21:00] * Ryoken|Desktop quit (Disconnected by services)
538: [07:21:00] * Ryoken|0D is now known as Ryoken|Desktop
539: [07:24:00] * vbeing quit (Quit: Page closed)
540: [07:42:00] <Pyromanik||> how to .deb repository?
541: [08:01:00] * dospuntocero quit (Remote host closed the connection)
542: [08:03:00] <irogue> *install
543: [08:03:00] <ss23> vim /etc/something.sources
544: [08:03:00] <irogue> /etc/apt/sources.list iirc
545: [08:03:00] <ss23> looks about right
546: [08:03:00] <irogue> Pyromanik||: add a repo to apt, or instakk a .deb file?
547: [08:04:00] <irogue> yup
548: [08:04:00] <irogue> tested!
549: [08:10:00] <Pyromanik||> yeah
550: [08:10:00] <Pyromanik||> but
551: [08:10:00] <Pyromanik||> I know
552: [08:11:00] <Pyromanik||> ss23: derp less please.
553: [08:11:00] <Pyromanik||> Is NOT a repository :(
554: [08:11:00] <ss23> dude
555: [08:11:00] <ss23> Don't they give instructions?
556: [08:11:00] <ss23> http://www.dotdeb.org/instructions/
557: [08:11:00] <ss23> Pyromanik||: ^^
558: [08:11:00] <Pyromanik||> http://archives.dotdeb.org/dists/lenny/
559: [08:12:00] <Pyromanik||> it cannot be used as a repo.
560: [08:12:00] <ss23> ;_;
561: [08:12:00] <Pyromanik||> IS NOT A REPOSITORY
562: [08:12:00] <Pyromanik||> it's just a list of .deb files.
563: [08:12:00] <Pyromanik||> no repo info contained within archive list.
564: [08:12:00] <ss23> I'm so confused
565: [08:13:00] <Pyromanik||> which leads me to my next question... do deb packages still do dependency checks if attempted to manually install>
566: [08:13:00] <Pyromanik||> ?
567: [08:13:00] <irogue> iirc they do dependency checks but no auto resolving
568: [08:14:00] <Pyromanik||> man I so can't be f'd with manually installing packages
569: [08:14:00] <Pyromanik||> ss23: W: Failed to fetch http://archives.dotdeb.org/dists/lenny/all/binary-amd64/Packages 404 Not Found [IP: 88.190.17.153 80]
570: [08:14:00] <Pyromanik||> HAPPY!?
571: [08:14:00] <Pyromanik||> irogue: yeh
572: [08:14:00] <Pyromanik||> but...
573: [08:14:00] <Pyromanik||> only option for ss3 :(
574: [08:15:00] <irogue> Y U LENNY
575: [08:15:00] <Pyromanik||> irogue: IKR
576: [08:15:00] <ss23> NU UH
577: [08:16:00] <Pyromanik||> SO MUCH WINNING
578: [08:16:00] <Pyromanik||> system up and running in as long as it took for me to l2nginx
579: [08:16:00] <Pyromanik||> recently set up a vps with arch for a mate
580: [08:16:00] <Pyromanik||> more importantly, why can't I arch :<
581: [08:17:00] <Pyromanik||> time for a drink
582: [08:18:00] <irogue> would be like that with debian too if you didnt use fuckin old versions :P
583: [08:18:00] <ss23> lol
584: [08:18:00] <Pyromanik||> irogue: nuh uh
585: [08:18:00] <Pyromanik||> god I wish that meant a 'strong' drink, but i'll probably just be tea.
586: [08:19:00] <irogue> aptitude install php5-fpm php5-gd nginx
587: [08:19:00] <irogue> DONE
588: [08:19:00] <irogue> :P
589: [08:20:00] <ss23> apt-get install apache-php
590: [08:20:00] <ss23> wow hipster
591: [08:20:00] <irogue> im too hipster for apache
592: [08:20:00] <ss23> irogue is so hipster he doesn't even like GIRLS
593: [08:21:00] <irogue> lies
594: [08:21:00] <irogue> hipsters are all bi
595: [08:30:00] * howardgrigg quit (Ping timeout: 240 seconds)
596: [08:32:00] * r3v3rb quit (Quit: r3v3rb)
597: [08:38:00] <Pyromanik||> no
598: [08:38:00] * howardgrigg has joined #silverstripe
599: [08:38:00] <Pyromanik||> no
600: [08:38:00] <Pyromanik||> no
601: [08:39:00] <ss23> mega hipster
602: [08:39:00] <Pyromanik||> hipsters are all over the rails
603: [08:39:00] <Pyromanik||> no even
604: [08:39:00] <Pyromanik||> psh
605: [08:39:00] <ss23> I'm surprised you're not using django
606: [08:39:00] <ss23> mariadb too
607: [08:39:00] <Pyromanik||> pacman -S nginx mariadb php-fpm php-gd
608: [08:39:00] <ss23> yes!
609: [08:40:00] <Pyromanik||> they love getting railed
610: [08:40:00] <Pyromanik||> by ruby
611: [08:40:00] * howardgrigg quit (Client Quit)
612: [08:40:00] <ss23> lol
613: [08:40:00] <Pyromanik||> GOSH
614: [08:40:00] <Pyromanik||> it's so non-conformist
615: [08:53:00] <Pyromanik||> ah, show
616: [08:53:00] <Pyromanik||> irogue: how to get package info from apt?
617: [09:04:00] * dospuntocero has joined #silverstripe
618: [09:05:00] * Zauberfisch_ has joined #silverstripe
619: [09:05:00] * lenix- has joined #silverstripe
620: [09:06:00] * lenix quit (Read error: Connection reset by peer)
621: [09:08:00] * Zauberfisch quit (Ping timeout: 264 seconds)
622: [09:17:00] * SticksM has joined #silverstripe
623: [09:38:00] * Arno quit (Quit: Instantbird 1.1)
624: [09:51:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * r1dfc722 / dependent-modules.default : Added frameworktest to demo site (+16 more commits...) - http://git.io/TvJF2g
625: [09:56:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * r4c00b45 / tools/deploy-demo-site : Added demo site deploy script - http://git.io/MzONTw
626: [09:56:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * raeb279b / .gitignore : Ignore git subcheckouts - http://git.io/pgVo0Q
627: [09:57:00] <Pyromanik||> omg
628: [09:57:00] <Pyromanik||> just came across a site
629: [09:58:00] <Pyromanik||> customer login form is inside a div id'd as "AdArea"
630: [09:58:00] <Pyromanik||> anyone running an adblocker cannot log in.
631: [09:58:00] <Pyromanik||> GW CHAPS
632: [09:58:00] <spronk> lool
633: [10:00:00] <matt_____> hello
634: [10:00:00] * matt_____ has joined #silverstripe
635: [10:03:00] <ss23> Hai2u
636: [10:03:00] <Pyromanik||> sup
637: [10:07:00] <spronk> cool story auckland _b
638: [10:07:00] <spronk> fog..
639: [10:35:00] <Pyromanik||> didn't stop me landing last time I flew into aucks
640: [10:35:00] <Pyromanik||> ikr
641: [10:36:00] <Pyromanik||> I coudln't even see the wing tip. Even though it had red flashy light on the tip.
642: [10:37:00] <spronk> awesome
643: [10:41:00] * isense_daniel has joined #silverstripe
644: [10:43:00] * dospuntocero quit (Remote host closed the connection)
645: [10:43:00] <isense_daniel> G'day everyone, I want to add a poll to a site. Need history of poll results and need to be able to create new poll form in CMS backend. Could someone suggest a good tutorial or module for this?
646: [10:47:00] <spronk> isense_daniel: http://doc.silverstripe.org/framework/en/tutorials/3-forms
647: [10:47:00] * Bollig|DesignCty has joined #silverstripe
648: [10:47:00] <spronk> start here
649: [10:48:00] <spronk> http://www.silverstripe.org/user-forms-module/
650: [10:48:00] * dospuntocero has joined #silverstripe
651: [10:48:00] <spronk> and here
652: [10:49:00] * dospuntocero quit (Remote host closed the connection)
653: [10:51:00] <isense_daniel> Hi Spronk, I had a look at this tut. So you think I should be able to build on top of this the functionality to make it more dunamic and adjustable through the back end? Are there any examples or tutorials our there of someone useing an Ajax poll with silverstipe to do this?
654: [10:52:00] <spronk> userforms module probably gets you like.. 90% of the way there on its own
655: [10:52:00] <Pyromanik||> iirc
656: [10:52:00] <Pyromanik||> isense_daniel: there's actually a poll module.
657: [10:52:00] <Pyromanik||> silverstripe.org/modules
658: [10:52:00] * howardgrigg has joined #silverstripe
659: [10:53:00] <spronk> really O_o
660: [10:53:00] <isense_daniel> Ok spronk I'll have a look at using userforms.
661: [10:53:00] <Pyromanik||> would pay to check it's compatiblity though
662: [10:53:00] <spronk> 2.2.2+
663: [10:53:00] <Pyromanik||> yeah
664: [10:53:00] <spronk> could be worth a look for reference anyway
665: [10:53:00] <Pyromanik||> but I also don't imagine it to be the most complex thing
666: [10:53:00] <Pyromanik||> yeah
667: [10:54:00] <Pyromanik||> where to go for warrant?
668: [10:54:00] <isense_daniel> Hi Pyromanik, I looked into that and there did not seem to be a lot of confidence in the module. Could someone restore my confidence by telling me they have used it and it worked fine?
669: [10:55:00] <Pyromanik||> well no, because polls are pretty rare.
670: [10:55:00] <Pyromanik||> isense_daniel: just test it.
671: [10:55:00] <Pyromanik||> if it works it works.
672: [10:56:00] <isense_daniel> Ok, well I've got two options to look into further. Yeah might give it a go. Thanks all.
673: [10:56:00] <Pyromanik||> if it doesn't, don't worry. No loss.
674: [11:02:00] <sminnee> That's the new ORM at work.
675: [11:02:00] <howardgrigg> sweet :)
676: [11:02:00] <sminnee> Efficient query, in SS3.
677: [11:02:00] <howardgrigg> sminnee: If I have a function that returns a datalist and in the template I use $FunctionName.Count does that do an efficient query or does it query the whole list?
678: [11:03:00] <howardgrigg> I'm having fun :p
679: [11:26:00] <willr> thats always a positive while developing :)
680: [11:27:00] * willr has left #silverstripe
681: [11:27:00] * willr has joined #silverstripe
682: [11:40:00] * howardgrigg quit (Ping timeout: 248 seconds)
683: [11:43:00] * LoveDuckie quit (Read error: Connection reset by peer)
684: [12:36:00] * BaronGrivet has joined #silverstripe
685: [12:38:00] <BaronGrivet> Hello chaps. We've run into one of "those" issues. Something that runs fine on another devs machine isn't running on mine - even though we're both working off the same repo. On my machine an add_extension doesn't seem to be registering. Is there a good way I can check it?
686: [12:39:00] * matt_____ quit (Quit: Page closed)
687: [12:39:00] <willr> BaronGrivet done a dev/build / a flush?
688: [12:40:00] * howardgrigg has joined #silverstripe
689: [12:41:00] <BaronGrivet> willr - yup
690: [12:42:00] * robinm has joined #silverstripe
691: [12:42:00] <willr> if you put a var_dump() or something in add_extension() is it being added?
692: [12:43:00] <robinm> I'm not sure if anyone can help
693: [12:43:00] <robinm> Hi, I have a question about ZendSearchLuceneSearchable
694: [12:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event'); Object::add_extension( 'Event', "ZendSearchLuceneSearchable('Body')");
695: [12:44:00] <robinm> but when I these lines to my config
696: [12:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event');
697: [12:44:00] <robinm> it always gives an error
698: [12:44:00] <robinm> "I don't know the default search columns for class 'Event'"
699: [12:44:00] * SightUnseen has joined #silverstripe
700: [12:45:00] <robinm> whenever the index is built
701: [12:45:00] * SightUnseen quit (Client Quit)
702: [12:45:00] * SightUnseen has joined #silverstripe
703: [12:46:00] <BaronGrivet> It's definitely reading the _config.php file the add_extension is in.
704: [12:46:00] <willr> what should the extension do?
705: [12:46:00] <BaronGrivet> willr - I'm not sure I've got the var_dump/ add_extension syntax correct. What would you suggest?
706: [12:47:00] <willr> there is a bug in SS3.0 with extension fields / methods not being called.
707: [12:47:00] <willr> paste your extension to sspaste.org or something
708: [12:47:00] <BaronGrivet> We are using symbolic links so is it possible that the order could be out?
709: [12:47:00] <BaronGrivet> It adds another field onto a custom image class. It's SS 2.4
710: [12:48:00] * SightUnseen has left #silverstripe
711: [12:52:00] <BaronGrivet> Pasted: http://www.sspaste.com/paste/show/4ff504f1887c7
712: [12:52:00] <BaronGrivet> Sorry, willr: http://www.sspaste.com/paste/show/4ff504f1887c7
713: [12:54:00] <Pyromanik||> might be $searchable_fields
714: [12:54:00] <Pyromanik||> public static $search_fields = array('Title', 'foo', 'bar');
715: [12:54:00] <Pyromanik||> I think
716: [12:54:00] <irogue> my office smells fishy!
717: [12:54:00] <Pyromanik||> robinm: you haven't defined any search fields.
718: [12:55:00] <willr> irogue I had fish for lunch!
719: [12:55:00] <Pyromanik||> but fish and chip wednesday was yesterday willr!
720: [12:55:00] <Pyromanik||> oic
721: [12:55:00] <Pyromanik||> well, irogue works at snapper
722: [12:55:00] <Pyromanik||> ...
723: [12:55:00] <Pyromanik||> must be related!
724: [12:55:00] <willr> snapper we caught ourselves
725: [12:56:00] <willr> BaronGrivet CustomImage? is that another extension
726: [12:58:00] <Pyromanik||> subclass I'd guess
727: [13:03:00] <howardgrigg> somewhere i remeber seeing documentation on how to divide up a datalist such as list all members grouped by the first letter of their name - but now I can't find it… anyone know?
728: [13:04:00] <BaronGrivet> Soz, got called away on something...
729: [13:05:00] <BaronGrivet> CustomImage is a separate dataobject.
730: [13:05:00] <BaronGrivet> The weird thing is it's working on a computer running almost identical setups 3 metres from me.
731: [13:07:00] <howardgrigg> sminnee: has ->groupBy('Lastname') been implemented yet?
732: [13:09:00] <BaronGrivet> Ah-ha! A related file hadn't been updated from the repo. Thanks willr
733: [13:12:00] <irogue> willr: my coworker had fish
734: [13:13:00] <irogue> it was just strange cos it made my ham and cheese toastie taste like fish
735: [13:13:00] <willr> Everyone complains when I have fish. Harden up
736: [13:13:00] <irogue> im not complaining!
737: [13:13:00] <irogue> i like fish
738: [13:13:00] <willr> mmm toastie
739: [13:17:00] <spronk> wooow
740: [13:17:00] <spronk> fucking.. two days worth of work
741: [13:18:00] <spronk> and the bug is a braindead backward ternary operator in php-amqplib
742: [13:18:00] <spronk> https://github.com/videlalvaro/php-amqplib/pull/23
743: [13:19:00] * cloph_away1 quit (Read error: Operation timed out)
744: [13:20:00] * cloph_away has joined #silverstripe
745: [13:22:00] <howardgrigg> oh cool - I'll give it a go
746: [13:22:00] <Pyromanik||> howardgrigg: if it's anything like DataObjectSet then it'll be .GroupedBy(Field) in the template
747: [13:22:00] <Pyromanik||> <% loop MyDatalist.GroupedBy(FirstName) %>
748: [13:22:00] <Pyromanik||> although...
749: [13:23:00] <Pyromanik||> that'll give you groups of names, not first letters
750: [13:23:00] <Pyromanik||> but i'm sure you can find a way to figure that out now that you can group.
751: [13:24:00] <howardgrigg> yea - i'm kinda working it out, thanks
752: [13:44:00] * BaronGrivet has left #silverstripe
753: [13:46:00] <howardgrigg> If I'm right this returns objects that have either a updated time or created time greater than $oldtime yea? http://pastie.org/4202356
754: [13:47:00] <howardgrigg> each works on it's own but together returns an empty list...
755: [13:51:00] <howardgrigg> sminnee: are you lurking around?
756: [13:54:00] <willr> howardgrigg is it doing an OR instead of an AND (or the converse)
757: [13:55:00] <howardgrigg> does this mean you can't do an OR?
758: [13:55:00] <howardgrigg> yea something like that… I just read in the docs "You can specify as many filters as you like, and they all must be true"
759: [13:57:00] <willr> can't see anything in the docs about or
760: [13:57:00] <howardgrigg> how would you do a FirstName = Bob OR Lastname = Smith?
761: [13:58:00] <howardgrigg> yea
762: [13:58:00] <howardgrigg> you can easily do FirstName = Bob OR John...
763: [13:58:00] <willr> well at least OR over columns
764: [13:59:00] <willr> You can go back to the 'old' method for now
765: [13:59:00] <willr> perhaps needs a orFilter() function
766: [13:59:00] <willr> file a ticket.
767: [14:00:00] <irogue> HOLIDAY
768: [14:00:00] <howardgrigg> nice :)
769: [14:00:00] <howardgrigg> I might just wait to see if sminnee has already thought of it - if not I'll file it
770: [14:00:00] <willr> I assume he's packing for his holiday
771: [14:01:00] <irogue> :P
772: [14:01:00] <willr> I hope they're all taking separate flights. Can't put all the assets in 1 location
773: [14:01:00] <willr> Not sure how SS is going to cope with everyone away!
774: [14:01:00] <irogue> redirect the phones to auckland
775: [14:02:00] <howardgrigg> willr: looks like there is a whereAny
776: [14:03:00] <willr> Because that's obvious :P
777: [14:03:00] <willr> RTFS
778: [14:03:00] <willr> Also not documented
779: [14:03:00] <howardgrigg> lol
780: [14:04:00] * Colin[pi] has joined #silverstripe
781: [14:04:00] <Colin[pi]> hai guise
782: [14:05:00] <howardgrigg> it errors saying whereAny doesn't exist on 'DataList' - but it exists on DataQuery. Am I doing it wrong?
783: [14:08:00] <howardgrigg> yea it's not on DataList… :( What's the role of DataQuery?
784: [14:09:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
785: [14:11:00] <Colin[pi]> *does
786: [14:11:00] <Colin[pi]> goes Email::getAdminEmail() work in SS3?
787: [14:12:00] <willr> yep still there Colin.
788: [14:13:00] <willr> howardgrigg take a look at DataList.php, it doesn't actually expose that. Only used in exclude
789: [14:14:00] <howardgrigg> yea - bummer, how hard would it be to do?
790: [14:14:00] <Colin[pi]> do I need to set it separately from the admin member acct?
791: [14:14:00] <Colin[pi]> willr: hmm but it's giving me string(0) "" when I call it
792: [14:15:00] <Colin[pi]> ahhh ok, so I need to set it in config first
793: [14:15:00] <willr> well theres a addFilter on DataList that takes an array of where statements. Perhaps we need a bool option to use where() vs whereAny()
794: [14:15:00] <willr> Colin[pi] where did you set it?
795: [14:15:00] <howardgrigg> Colin[pi]: yup Email::setAdminEmail(string $adminemail)
796: [14:16:00] * howardgrigg doesn't know how to do what willr suggests :p
797: [14:16:00] <Colin[pi]> would be cool if the installer added it to the config file from the admin account details -_-
798: [14:16:00] <willr> howardgrigg I'm half talking with myself.
799: [14:18:00] <howardgrigg> hah cool - let me know if you get something working but ill just try doing it merging multiple lists
800: [14:18:00] * openbees has joined #silverstripe
801: [14:22:00] <howardgrigg> gah - "Can't call DataList::merge() because its data comes from a specific query."
802: [14:23:00] <Colin[pi]> ok my next question, does getCMSValidator() work in the CMS for SS3?
803: [14:23:00] <howardgrigg> how do I do it then?
804: [14:24:00] <willr> edit DataList::addFilter to take a second argument for $or (bool) then check for $or to swap where() with whereAny() ? Might want to play around with that
805: [14:26:00] <howardgrigg> probably shouldn't do this on the live site...
806: [14:28:00] <howardgrigg> lol im going for it - what could go wrong
807: [14:28:00] * peter_W has joined #silverstripe
808: [14:28:00] <Colin[pi]> howardgrigg: if I had a dollar for the number of times I've said that.. ;)
809: [14:29:00] <peter_W> i.e. i want the first checkbox on the hasmanyCTF selected
810: [14:29:00] <Colin[pi]> *BOOOOM*
811: [14:29:00] <peter_W> Hey SS...can anyone help use populateDefault to automatically set a has_many relationship
812: [14:30:00] <Pyromanik||> set the YourObjectID on the relevant related object.
813: [14:32:00] <willr> openbees - email support@silverstripe.org
814: [14:32:00] <openbees> please fix this ! I was just checking silverstripe.com and on this page "http://www.silverstripe.com/our-work/westpac/" link below "Westpac" title (www.westpac.co.nz) is sending users to "http://www.silverstripe.com/www.westpac.co.nz" and same here "http://www.silverstripe.com/our-work/plunket/" on left side of content area below "Plunket" title !!
815: [14:32:00] <willr> sorry support@silverstripe.com
816: [14:33:00] <peter_W> pyromanik...sorry correction many_many relationship
817: [14:34:00] <howardgrigg> willr: i think i've changed addFilter but I don't get what is going on in filter which is checking the number of arguments passed http://pastie.org/4202517
818: [14:36:00] * Motoservo has joined #silverstripe
819: [14:39:00] * ajshort has joined #silverstripe
820: [14:43:00] <howardgrigg> that's what im doing :)
821: [14:43:00] <willr> howardgrigg addFilter()
822: [14:47:00] * openbees quit (Quit: Leaving)
823: [14:49:00] <howardgrigg> http://pastie.org/4202566
824: [14:49:00] <howardgrigg> willr: was this what you had in mind?
825: [14:51:00] * openbees has joined #silverstripe
826: [14:56:00] <peter_W> anyone?
827: [14:56:00] <willr> howardgrigg just tried whereAny() still uses conjunction
828: [14:57:00] <willr> will need a fix.
829: [14:57:00] <howardgrigg> :(
830: [14:58:00] <willr> Theres a useDisjunction() but it's never called. So I'm assuming an unfinished API
831: [14:58:00] <howardgrigg> yea - how can i just merge two querys then?
832: [14:59:00] <willr> LIke I said earlier, I'd just use the good old DataObject::get() if you just want it towkr
833: [15:01:00] <howardgrigg> oh i missed that - swt ill give it a go
834: [15:03:00] <Colin[pi]> guys does CMS validation work correctly in SS3?
835: [15:05:00] <willr> it's a project that didn't quite make 3.0
836: [15:05:00] <Colin[pi]> all? because if I use an EmailField, it will turn red without a valid email
837: [15:05:00] <Colin[pi]> anyone?
838: [15:05:00] <willr> all js validation has been removed
839: [15:05:00] <Colin[pi]> however then when I try to save, I get a blank page :(
840: [15:05:00] <willr> Colin[pi] doubt it
841: [15:05:00] <Colin[pi]> :(
842: [15:06:00] <Colin[pi]> this is fine for me, but we all know what will happen when I hand over the keys to a client
843: [15:07:00] <Colin[pi]> ahhhh l
844: [15:07:00] <willr> check open.silverstripe.org for a ticket / fix, make one if it doesn't exist
845: [15:07:00] <willr> and its the email field causing the blank page?
846: [15:07:00] <Colin[pi]> if I go to save and it's not a valid email (i.e. field border turns red), I get a blank page yes
847: [15:07:00] <howardgrigg> Colin[pi]: i have a feeling that that validation is the built in html5 validation
848: [15:07:00] <ajshort> Colin[pi]: There's already a ticket. Validation is completely broken in SS3
849: [15:07:00] <Colin[pi]> *k
850: [15:08:00] <Colin[pi]> that would explain why I got a funky Windows 7 style error popup in the frontend
851: [15:08:00] <willr> ajshort fix it!
852: [15:08:00] <ajshort> it works in modeladmin and a few other places, but not in the main cms
853: [15:09:00] <howardgrigg> hmm yea...
854: [15:09:00] <Colin[pi]> I get twitchy to hand over a site to a client with little to no validation
855: [15:09:00] <Colin[pi]> unless I charge for fixing ;)
856: [15:09:00] <howardgrigg> front end validation? or CMS?
857: [15:09:00] <Colin[pi]> CMS
858: [15:09:00] <Colin[pi]> because you know.. "I BROEK IT!!1
859: [15:09:00] <ajshort> it shouldnt be too hard to fix
860: [15:10:00] <ajshort> http://open.silverstripe.org/ticket/7537
861: [15:10:00] <Colin[pi]> ajshort: do you have a link to the existing ticket?
862: [15:10:00] <Colin[pi]> k thanks
863: [15:11:00] <ajshort> yep
864: [15:11:00] <Colin[pi]> no cms validation, eek
865: [15:11:00] <Colin[pi]> I mean I can educate clients, but... clients
866: [15:12:00] <Colin[pi]> was the getCMSValidator() functionality working in the 2.4 branch?
867: [15:12:00] <ajshort> it'd probably be easier to just fix it :)
868: [15:12:00] <ajshort> yes
869: [15:13:00] <Colin[pi]> it went from RC1, 2, 3 to stable in about a week I thought? hehe
870: [15:13:00] <Colin[pi]> hmmm I know it's a new release and all but now I've having doubts about diving straight into 3.0.0 :\
871: [15:13:00] <Colin[pi]> however
872: [15:13:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
873: [15:13:00] <Colin[pi]> playing with it will at least yield fixes
874: [15:13:00] <willr> 3.0 is still very much new ground
875: [15:13:00] <Colin[pi]> seems maybe a bit of a rushed release?
876: [15:14:00] <willr> totally.
877: [15:15:00] <Colin[pi]> ok, $64k question, are you guys using it for production yet?
878: [15:16:00] <willr> I am for a couple small projects and ones which require the framework only
879: [15:16:00] <willr> but 3.0 currently has a couple performance glitches as well
880: [15:17:00] <Colin[pi]> related to a specific part of the system? just so I know to avoid
881: [15:17:00] <willr> Well the config system
882: [15:18:00] <willr> http://www.silverstripe.org/general-questions/show/20162
883: [15:18:00] <FrozenFire> If anyone's interested
884: [15:18:00] <FrozenFire> http://www.reddit.com/r/PHP/comments/w2bre/php_mentoring_were_seeking_both_experienced/
885: [15:19:00] <Colin[pi]> willr: thanks
886: [15:20:00] <willr> We have to start using ss3 otherwise it'll just never get the issues ironed out. Considering most the community gets paid to build client sites and not work on the framework the best way is to kill 2 birds with 1 stone!
887: [15:21:00] <willr> thats my view anyway.
888: [15:22:00] <Colin[pi]> yeah that's what I decided the other day
889: [15:22:00] <Colin[pi]> that's my SS3 guinea pig
890: [15:22:00] <Colin[pi]> yeah I have one site I'm doing which is just content, gallery and contact page, so pretty simple
891: [15:22:00] <willr> still not deploying 3 out to those clients who push the CMS, just the small easy going ones.
892: [15:23:00] <Colin[pi]> but I'm still relatively new to SS, and I thought well if I continue down the SS2 path it's kinda an evolutionary dead end
893: [15:24:00] <Colin[pi]> yep
894: [15:24:00] <willr> completely. Now that I'm using some of the 3.0 API's and templating it shows how much of improvement it has been. Just needs a ton more time and energy from awesome people.
895: [15:25:00] <Colin[pi]> or I hope, anyway lol
896: [15:25:00] <Colin[pi]> and I know the SS guys are not just sitting around idle :)
897: [15:26:00] * willr quit (Quit: willr)
898: [15:37:00] * Motoservo has joined #silverstripe
899: [15:39:00] <howardgrigg> anyone know how to use a SS_DateTime in a sql query? this is what I'm trying http://pastie.org/4202705
900: [15:41:00] * Zauberfisch_ is now known as Zauberfisch
901: [15:44:00] <ajshort> howardgrigg: quotes
902: [15:45:00] <ajshort> (around the date)
903: [15:45:00] <ajshort> also you should quote your db columns
904: [15:46:00] <howardgrigg> i tried http://pastie.org/4202728
905: [15:52:00] <howardgrigg> ajshort: thanks i'm not getting errors now but also it's not returning any results, is NOW() not in the same format as SS_DateTime?
906: [15:52:00] <ajshort> single quotes
907: [15:52:00] <howardgrigg> yea
908: [15:53:00] <howardgrigg> I swapped them :)
909: [15:53:00] <ajshort> wouldn't you want where created > $oldtime?
910: [15:55:00] <howardgrigg> say $oldtime is 3 days ago I want to select anything that has been created since then...
911: [15:55:00] <ajshort> so created would be greater
912: [15:55:00] <ajshort> yep
913: [16:02:00] <howardgrigg> hmm it's returning all of them...
914: [16:02:00] <howardgrigg> seems to be ignoring the filter
915: [16:03:00] <howardgrigg> well not ignoring it because if I swap the > or < you either get all or nothing
916: [16:03:00] <howardgrigg> and yet i just checked the db and there are definatly values on either side
917: [16:07:00] <howardgrigg> ajshort: any ideas? not sure what could be going on
918: [16:08:00] <howardgrigg> bummer...
919: [16:08:00] <ajshort> not sure sorry
920: [16:16:00] <howardgrigg> weird it was fixed by removing the single quotes from the column name
921: [16:17:00] <howardgrigg> thanks for pointing me in the right direction though :)
922: [16:17:00] * howardgrigg should learn sql statements
923: [16:17:00] <ajshort> double quotes for column names, single for scalars
924: [16:34:00] <peter_W> hey can anyone explain the I can't handle sub-URLs of a error
925: [16:35:00] <peter_W> however if i die() immediately after the $feed->outputToBrowser() then i dont get the error
926: [16:35:00] <peter_W> i am creating an rss feed and i am getting this error
927: [16:38:00] * isense_daniel quit (Ping timeout: 245 seconds)
928: [16:40:00] <openbees> how to retrive multiple rows from one dataobject class into page type class ... but its showing just one row in template .. i think m missing some template logic here .. please help .. code is here http://www.sspaste.com/paste/show/4ff53a1c2b5f6
929: [16:42:00] <peter_W> your return is inside your foreach statement
930: [16:43:00] <ajshort> peter_W: Generally it occurs if there is still more parts of the URL left to process, but no controller to handle it
931: [16:44:00] <ajshort> e.g. if you visit /MyForm/field/another, you might find a matching controller for /MyForm/field, but nothing to handle /another
932: [16:45:00] <peter_W> yeah thats pretty much what i am doing...how can i make url/field/another/dynamicallyincreasing/ all be handled by /url/field
933: [16:46:00] <peter_W> actually all be handled by index
934: [16:48:00] * willr has joined #silverstripe
935: [16:55:00] * xmem has joined #silverstripe
936: [16:56:00] <peter_W> any ideas ajshort ?
937: [16:57:00] <ajshort> is there a limit on the number of url parts?
938: [16:58:00] <peter_W> no there isnt
939: [16:59:00] * Pyromanik has joined #silverstripe
940: [17:00:00] <ajshort> maybe in your index method call $this->request->shift(999);
941: [17:01:00] <ajshort> bit hacky but should work
942: [17:01:00] * openbees quit (Quit: Leaving)
943: [17:01:00] <peter_W> since i am ouputing the rss feed to the browser is it much worse to just die() at the end
944: [17:02:00] <ajshort> yes
945: [17:03:00] <ajshort> a neater solution might be while(!$request->allParsed()) $request->shift();
946: [17:04:00] * zfmf has joined #silverstripe
947: [17:05:00] <peter_W> ok thanks a lot
948: [17:12:00] <Bollig|DesignCty> I have never seen that error before.
949: [17:12:00] <Bollig|DesignCty> hmmmm -> ERROR [Notice]: Object of class Image could not be converted to int
950: [17:14:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
951: [17:15:00] * SticksM quit (Read error: Connection reset by peer)
952: [17:23:00] <Pyromanik> Bollig|DesignCty, probably because you haven't tried to use an Image as a number before...
953: [17:24:00] <Bollig|DesignCty> well that just shows how little you know me.
954: [17:40:00] * LePhil has joined #silverstripe
955: [18:04:00] * chillu has joined #silverstripe
956: [18:07:00] <howardgrigg> I got my notifications working properly :)
957: [18:09:00] * peter_W quit (Quit: Page closed)
958: [18:11:00] <LePhil> yay!
959: [18:12:00] <howardgrigg> http://f.cl.ly/items/2f0j312s0I0W3Q2Y2z45/Screen%20Shot%202012-07-05%20at%206.01.29%20PM.jpeg
960: [18:13:00] <LePhil> looks fancy
961: [18:14:00] <howardgrigg> it's good cause when lectures or readings are added they often just appear and are easy to miss
962: [18:21:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
963: [18:25:00] * xmem quit (Ping timeout: 248 seconds)
964: [18:27:00] * lx-berlin has joined #silverstripe
965: [18:32:00] * OzziNL has joined #silverstripe
966: [18:33:00] <Pyromanik> yeh I know right
967: [18:33:00] <LePhil> dengue fever
968: [18:33:00] <Pyromanik> what's a dengue?
969: [18:34:00] <LePhil> http://en.wikipedia.org/wiki/Dengue_fever
970: [18:34:00] <howardgrigg> that's handy
971: [18:34:00] <LePhil> awesome, our hoster just switched our fileserver off...
972: [18:34:00] <LePhil> :)
973: [18:35:00] <LePhil> it's not like clients would like to acces their stuff on them...
974: [18:35:00] <LePhil> not really
975: [18:37:00] <howardgrigg> dengue: ORIGIN early 19th cent.: from West Indian Spanish, from Kiswahili dinga (in full kidingapopo), influenced by Spanish dengue ‘fastidiousness’ (with reference to the dislike of movement by affected patients).
976: [18:41:00] * xmem has joined #silverstripe
977: [18:45:00] <Pyromanik> howardgrigg, is that the name of your course manager thing, or is that the name of your course?
978: [18:49:00] * oscar_ has joined #silverstripe
979: [18:50:00] * simon_w has joined #silverstripe
980: [18:51:00] <howardgrigg> thats the case of the week - dengue fever, im studying medicine
981: [18:54:00] <CIA-12> silverstripe: TeamCity sapphire/translation-staging * r9460a0a / lang/es_MX.yml : MINOR Updated translations - http://git.io/DF9LQA
982: [18:54:00] <Pyromanik> oic, cool
983: [19:01:00] <LePhil> I'm having difficulties with custom javascript
984: [19:02:00] <LePhil> anyone knows their way around jquery and silverstripe?
985: [19:02:00] <howardgrigg> i know a little bit...
986: [19:04:00] <LePhil> jQuery(document).ready(function() {
987: [19:04:00] <LePhil> jQuery("#StartSlider").bxSlider();
988: [19:04:00] <LePhil> );
989: [19:04:00] <LePhil> });'
990: [19:04:00] <LePhil> in myStartpage_Controller in init() I have this:
991: [19:04:00] <LePhil> Requirements::javaScript("http://code.jquery.com/jquery-latest.js");
992: [19:04:00] <LePhil> Requirements::javaScript("mysite/code/javascript/bxslider/source/jquery.bxSlider.js");
993: [19:04:00] <LePhil> Requirements::customScript('
994: [19:04:00] <LePhil> $.noConflict();
995: [19:04:00] <LePhil> console.log("loading...");
996: [19:05:00] <LePhil> console works perfectly
997: [19:05:00] <LePhil> the path to the plugin .js is also correct, inspector shows no 404s
998: [19:06:00] <LePhil> but the console says "Uncaught TypeError: Object #<Object> has no method 'bxSlider'"
999: [19:06:00] <LePhil> I'm starting to think that the plugin isn't that well-written
1000: [19:09:00] <howardgrigg> im not sure where it loads customScript - it needs to be after its loaded the plugin
1001: [19:09:00] <howardgrigg> LePhil: is the site live so we can see it?
1002: [19:11:00] <LePhil> howardgrigg yes it's live: http://silverstripe.pubdeville.ch/
1003: [19:12:00] <LePhil> the images that are now floating somewhere should be in the slider
1004: [19:13:00] <howardgrigg> three times actually
1005: [19:13:00] <howardgrigg> you're including jquery twice
1006: [19:15:00] <LePhil> removed the third one
1007: [19:15:00] <LePhil> i'll look into why there's a second one
1008: [19:15:00] <LePhil> but that shouldn't be huge problem
1009: [19:15:00] <LePhil> I know, once the latest, I figured that maybe SS uses an older version and the slider plugin needs a newer one
1010: [19:16:00] <LePhil> hm.I could put it in a different JS and load this with require::javascript after the plugin
1011: [19:20:00] <LePhil> same result, dammit
1012: [19:24:00] <howardgrigg> you still have 2 jquerys
1013: [19:24:00] <LePhil> it includes jquery, bxslider and startpage.js where I have the jQuery(document).ready(...)
1014: [19:25:00] <LePhil> yes, I don't know where the second one gets included
1015: [19:26:00] <LePhil> the first one is in Page's init()
1016: [19:26:00] <howardgrigg> you can call requirements::block
1017: [19:30:00] <LePhil> holy fuckshit
1018: [19:30:00] <LePhil> that was the problem
1019: [19:33:00] <LePhil> I thank you, kind sir
1020: [19:34:00] <howardgrigg> no worries
1021: [19:35:00] <LePhil> why would 2 jquery includes mess up a plugin?
1022: [19:35:00] <howardgrigg> cause everything is defined twice
1023: [19:36:00] <LePhil> doesn't it just get redefined?
1024: [19:36:00] <LePhil> hehe
1025: [19:36:00] * AshKyd quit (Remote host closed the connection)
1026: [19:36:00] * howardgrigg doesn't pretend to know what's going on
1027: [19:40:00] <CIA-12> silverstripe: Ingo Schommer sapphire/pull/deprecate-profiler * raffc34d / (9 files in 7 dirs): API Deprecated Profiler class, removed related debug GET params - http://git.io/HSS2uQ
1028: [19:42:00] <Zauberfisch> howardgrigg LePhil jquery should just overwrite the previous jquery
1029: [19:43:00] <Zauberfisch> unless the 2nd jquery you include is a different version of jquery, and not compatible with the plugin
1030: [19:43:00] <Zauberfisch> so there should be no issues with the plugin
1031: [19:44:00] <LePhil> ah I should have looked at the jquery files
1032: [19:44:00] <LePhil> I see
1033: [19:44:00] <howardgrigg> yea they were 1.4 & 1.7
1034: [19:44:00] <LePhil> that could cause problems
1035: [19:51:00] <Pyromanik> to avoid the problem I generally use the packaged jquery from sapphire
1036: [19:51:00] <Pyromanik> LePhil, yes, it gets redefined, meaning that it loses all plugin info associated with the first object.
1037: [19:52:00] <howardgrigg> i usually turn off front end validation and do it with jquery.validate
1038: [19:52:00] <Pyromanik> the second copy gets included whenever you have userforms or something else that uses it on a page.
1039: [19:53:00] <Pyromanik> at the moment the script filename just gets used as the id
1040: [19:53:00] <Pyromanik> I think unique IDs should be required. That way you can define a file and an ID, if it's already included then it skips adding it again.
1041: [19:53:00] <Pyromanik> one of these days I'm gonna stop being lazy and overhaul the requirements engine.
1042: [19:53:00] <howardgrigg> gets rid of prototype and other yuck stuff
1043: [19:54:00] <Pyromanik> plus there's no real concept of inclusion order.
1044: [19:54:00] <Pyromanik> and it's not required.
1045: [19:54:00] <Pyromanik> just first in first out
1046: [19:54:00] * Becci_ has joined #silverstripe
1047: [19:55:00] <Becci_> Hello there! I suppose it may not be entirely uncommon for somebody to hop in and ask stupid questions (that are likely covered by a FAQ somewhere), but... I was hoping I could do just that.
1048: [19:57:00] <Pyromanik> you do that
1049: [19:57:00] <Pyromanik> ok
1050: [19:57:00] <Pyromanik> so question away
1051: [19:57:00] <Pyromanik> by announcing yourself you've just saved yourself from a berating :D
1052: [19:58:00] <Becci_> Basically, I work for a company to create content for their webpage. They've asked me to figure out how to gain access to analytics for the page - and overview of pagehits for the various sections etc. I've been checking out the forums and FAQ and found a number of modules that allow google analytics integration, but since I'm not actually a site admin and just a content monkey, I can't exactly install or change anything (even i
1053: [19:58:00] <Becci_> -illiterate as it is). So... do I have any other options to gain analytics for my page?
1054: [19:59:00] <Pyromanik> check the web server logs?
1055: [19:59:00] <LePhil> Becci_ nah, I ask stupid questions all the time
1056: [19:59:00] <Becci_> Yay!
1057: [19:59:00] <Pyromanik> use something like awstats to extract statistics?
1058: [19:59:00] <Pyromanik> nup.
1059: [19:59:00] <Becci_> Guh
1060: [20:00:00] <Pyromanik> :P
1061: [20:00:00] <Becci_> :(
1062: [20:00:00] <LePhil> Pyromanik: still pissed about your car? :)
1063: [20:00:00] <Pyromanik> "No."
1064: [20:00:00] <Becci_> Hum. Web server logs. This is where being semi-PC-illiterate kinda kicks in.
1065: [20:00:00] <Pyromanik> well
1066: [20:00:00] <Becci_> (use small words, please)
1067: [20:00:00] <Pyromanik> ok
1068: [20:00:00] <howardgrigg> Becci_: who has access to the actual files that make up your website?
1069: [20:00:00] <Becci_> Got that bit!
1070: [20:00:00] <Pyromanik> "No analytics for you!"
1071: [20:01:00] <Becci_> I have access to the cms, but I actually have no idea who has access to the... coding?
1072: [20:01:00] <Pyromanik> LePhil, nope. He said use simple terms!
1073: [20:01:00] <Pyromanik> Becci_, there are 2 ways you could go about this.
1074: [20:01:00] <LePhil> ah, ok
1075: [20:01:00] <Pyromanik> 1: find some redundant module.
1076: [20:01:00] <Pyromanik> analytics requires that something tracks clicks and things. Only code can do that, so if the site doesn't do it already... someone needs to change it so it does.
1077: [20:01:00] <Pyromanik> if this is not you, then you cannot do it.
1078: [20:02:00] <Pyromanik> and hope that that's the only major page template (generally is).
1079: [20:02:00] <LePhil> sounded a little pissed there
1080: [20:02:00] <Pyromanik> 2: copy and paste the google code into "themes/<yourtheme>/templates/Page.ss
1081: [20:03:00] <Becci_> hence "semi". :> I know where to look for things, its the implementation my brain shuts off at.
1082: [20:03:00] <Pyromanik> so stop being such a girl :P
1083: [20:03:00] <Pyromanik> either way you have to edit template code, the only thing a module does is make it easier for a content monkey to change the code stuff.
1084: [20:03:00] <Pyromanik> also, as for being PC illiterate, you managed to find this channel easily enough!
1085: [20:04:00] <Pyromanik> sure it is!
1086: [20:04:00] <Becci_> Thats... something I can#t exactly help.
1087: [20:04:00] <Pyromanik> nah, you just gotta copy and paste code
1088: [20:04:00] <Pyromanik> just be a human rather than one of those icky squeely things.
1089: [20:04:00] <howardgrigg> but yea Becci_ unfortunately you'll need someone to make the easy edit to the actual files of your website - usually whoever made your website will know
1090: [20:05:00] <Pyromanik> but you need to get access to the code one way or another.
1091: [20:05:00] <Pyromanik> Becci_, we can talk you through the changes, since you don't squeal much.
1092: [20:05:00] <Pyromanik> it*
1093: [20:05:00] <Becci_> I'll see if I can figure out who set this thing up in the first place.
1094: [20:05:00] <Pyromanik> Becci_, do you have any idea what FTP is or if you have access to i?
1095: [20:05:00] <howardgrigg> also presumably your company is paying someone a monthly fee to host it - that might be a good place to start
1096: [20:05:00] <Becci_> Alright.
1097: [20:05:00] <Becci_> I'll have you know I squeal very rarely.
1098: [20:06:00] <Pyromanik> some hosts give you a control panel that has a module to let you edit file content
1099: [20:06:00] <Pyromanik> Becci_, if you have someone to email
1100: [20:06:00] <Pyromanik> otherwise you'll need FTP or some other way to upload changed files.
1101: [20:06:00] <Becci_> (its the only way, believe me)
1102: [20:06:00] <Becci_> I think I may be able to gain access, but it'll likely require some emailing back and forth to get somebody to give me access or make the changes themselves. I'll go see if I can throw sticks at somebody til they listen to me.
1103: [20:07:00] <Pyromanik> better yet
1104: [20:07:00] <Pyromanik> or
1105: [20:07:00] <Pyromanik> just get the google analytics code and get them to paste it in
1106: [20:07:00] <Pyromanik> I think you misunderstand
1107: [20:07:00] <Pyromanik> no
1108: [20:07:00] <Pyromanik> and check that there isn't already a tracking code in the source
1109: [20:07:00] <Pyromanik> before you go and do that, press CTRL(or command)+u
1110: [20:07:00] <Becci_> I don't think we have that. Or at least I can't see anything, I've clicked my way through the majority of visible tabs and links on the webpage and cms.
1111: [20:08:00] <Becci_> Right.
1112: [20:08:00] <Becci_> .. Oh. Yes, I misunderstood.
1113: [20:08:00] <Pyromanik> get someone to add it to the site
1114: [20:08:00] <howardgrigg> Becci_: what is the website address - ill check it for you
1115: [20:08:00] <Pyromanik> it will spit out some code and tell you to add it to your site
1116: [20:08:00] * willr quit (Quit: willr)
1117: [20:08:00] <Pyromanik> and ask it for an analytics account
1118: [20:08:00] <Pyromanik> you log in to google
1119: [20:08:00] <Pyromanik> you don't paste it in like content :P
1120: [20:10:00] <Pyromanik> google.com/analytics
1121: [20:10:00] <Pyromanik> probably
1122: [20:10:00] <Becci_> Can I send whispers in the webclient?
1123: [20:10:00] <Pyromanik> oh
1124: [20:10:00] <Pyromanik> logging?
1125: [20:10:00] <Becci_> Whoops. Mmh, tiny bit nervous about the logging and such.
1126: [20:11:00] <Pyromanik> or type /msg username your message goes here
1127: [20:11:00] <Becci_> Not that its all supersecret and stuff, but still.
1128: [20:11:00] <Pyromanik> right click a user name
1129: [20:12:00] <Becci_> Oh dear. D:
1130: [20:12:00] <howardgrigg> Becci_: that already has tracking added to it
1131: [20:12:00] <Pyromanik> ha!
1132: [20:12:00] <Becci_> Oh?
1133: [20:13:00] <Becci_> Now I feel extra stupid. But yes!
1134: [20:13:00] <Pyromanik> good thing I thought for you to check first!
1135: [20:13:00] <Pyromanik> now all you need is the person who registered it to remember that they registered it
1136: [20:13:00] <Pyromanik> Becci_, you told us you're not a weby person, so it's all good. No feeling stupid allowed!
1137: [20:14:00] <Pyromanik> the person who asked you to do something that has already been done however... different story :P
1138: [20:14:00] <Becci_> Alright. And to figure out who that person was. So they should be able to see the tracking on the website somewhere and either give me access to that or at least give me the numbers.
1139: [20:14:00] <Pyromanik> it won't be on the website
1140: [20:15:00] <Pyromanik> google.com/analytics
1141: [20:15:00] <Pyromanik> it'll be there.
1142: [20:15:00] <Pyromanik> (assuming that it was a google tracking code howardgrigg?)
1143: [20:15:00] <howardgrigg> oh yea
1144: [20:15:00] <Becci_> I'll just pretend I meant that website. Sorry I'm being dense. I'm still trying to work out how to find out who ended up setting this up and hoping they're not in a different department now.
1145: [20:15:00] <howardgrigg> UA-24947160-1
1146: [20:16:00] <Pyromanik> righto, well have fun now Becci_!
1147: [20:16:00] <Pyromanik> I think it's time for bed :< Have to get up early!
1148: [20:17:00] <Pyromanik> :P
1149: [20:17:00] <Pyromanik> partytime
1150: [20:17:00] <LePhil> wubwubwub?
1151: [20:17:00] <Becci_> Thanks for the help you two. :)
1152: [20:17:00] <LePhil> sleep('well');
1153: [20:17:00] <Becci_> Oh! Three. :>
1154: [20:17:00] <Becci_> And good night!
1155: [20:17:00] <Pyromanik> hah LePhil
1156: [20:17:00] * LePhil wasn't helpful at all, but thanks :P
1157: [20:17:00] <LePhil> g'night
1158: [20:18:00] <Pyromanik> mmm
1159: [20:18:00] <Pyromanik> ciao
1160: [20:18:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.)
1161: [20:20:00] <LePhil> howardgrigg: in case you want to see it in action, my slider works now. Good times :)
1162: [20:20:00] <LePhil> even IE7 supports it :3
1163: [20:21:00] <LePhil> minus a smallish JS error
1164: [20:26:00] <LePhil> which I just fixed
1165: [20:34:00] <Marvanni> the method I mean
1166: [20:34:00] <SphereSQL> GridField Add existing
1167: [20:34:00] <SphereSQL> SS3: No searchable fields could be found for class "Member"
1168: [20:34:00] <ajshort> Marvanni: no
1169: [20:34:00] <Marvanni> Question, If a Form is sumbitted, but the Form won't validate, does it reach the submitAction?
1170: [20:34:00] * SphereSQL has joined #silverstripe
1171: [20:34:00] <SphereSQL> Can anybody help me?
1172: [20:35:00] <Becci_> Alright, sent out my emails and will hop off for now, thanks again for the help! :) Have a good one.
1173: [20:35:00] * Becci_ quit (Quit: Page closed)
1174: [20:38:00] <Marvanni> ajshort, thanks.
1175: [20:39:00] <LePhil> SphereSQL I haven't used SS3 yet, and can't really help you. But you did state the searchable fields, right?
1176: [20:43:00] * Ryoken|Desktop quit (Read error: Connection reset by peer)
1177: [20:43:00] <Marvanni> ajshort, just to be sure. I use FrontendForm extends Form, so I can us a different template. The submitFormMethod is not in the Form class itself but on the PageController. Should the Form still not reach the submitFormMethod on validation fail?
1178: [20:44:00] <Marvanni> ke, ty
1179: [20:44:00] * Ryoken|Desktop has joined #silverstripe
1180: [20:44:00] <ajshort> yes
1181: [20:45:00] <SphereSQL> LePhil, it's default in the Member-class: Searchable_fields = first/last & email
1182: [20:45:00] <SphereSQL> but appearantly, the GridFieldAddRelatedSearch function only works on Title
1183: [20:49:00] <ajshort> SphereSQL: The setSearchFields method may be of use
1184: [20:59:00] * xmem quit (Ping timeout: 245 seconds)
1185: [21:06:00] <LePhil> SphereSQL, did it work?
1186: [21:06:00] <LePhil> I have no idea about Grids
1187: [21:06:00] <LePhil> omnomnomming
1188: [21:06:00] <LePhil> oh
1189: [21:06:00] <LePhil> brb
1190: [21:13:00] <SphereSQL> LePhil, ajshort, extend Member with a Title-field solves it.
1191: [21:30:00] <Colin[pi]> hey, isn't $summary_fields able to have a method in place of a field name?
1192: [21:31:00] <howardgrigg> Colin[pi]: is that what you use casting for?
1193: [21:32:00] <Colin[pi]> ah, basically I want a gridfield to show a method result instead of a field value
1194: [21:32:00] <Colin[pi]> i need to use casting then?
1195: [21:34:00] <Colin[pi]> yep casting, thanks
1196: [21:35:00] <ajshort> Colin[pi]: Your problem is probably that by default $summary_fields also rolls over to $searchable_fields
1197: [21:36:00] * mightycoco quit (Quit: reboot)
1198: [21:36:00] <Colin[pi]> well it seems gridfield is only happy with field names in $summary_fields
1199: [21:36:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * r9ce0c9a / thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php : Relative include path for RailsYAML PHPUnit tests - http://git.io/BwOCBw
1200: [21:37:00] <Colin[pi]> column = component
1201: [21:37:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r8687891 / (4 files): Enforce flush on CI test runs - http://git.io/WQOR3A
1202: [21:37:00] <SphereSQL> Colin[pi], that sounds pretty much the same as my problem...
1203: [21:37:00] <Colin[pi]> but I can setFieldCasting on the GridFieldDataColumns column and achieve what I want to do
1204: [21:38:00] <Colin[pi]> did you sort it out?
1205: [21:39:00] <Colin[pi]> arrrgh but now if I use a different name for the column in the gridfield the casting dies -_-
1206: [21:43:00] * xmem has joined #silverstripe
1207: [21:53:00] <SphereSQL> I was having a fight with searchable_fields not being searched by add existing gridfield search
1208: [21:57:00] * lx-berlin has left #silverstripe
1209: [22:01:00] <Colin[pi]> derp I fixed it, pebkac error
1210: [22:05:00] <Colin[pi]> hmmm I wonder why data columns in gridfield is not pulling $casting from the model?
1211: [22:10:00] <Nemitz> Hi :-)
1212: [22:10:00] * Nemitz has joined #silverstripe
1213: [22:11:00] <Nemitz> Is it possible to decide how the pages returned from TreeMultiselectField is sorted? I would like to return them in the order they where added
1214: [22:14:00] * UndefinedOffset has joined #silverstripe
1215: [22:18:00] <LePhil> anyone knows how to disable the automatic creation of a start page?
1216: [22:21:00] <Colin[pi]> a start page?
1217: [22:22:00] <LePhil> yes. I have defined a myPage page as start page for my domain, but upon a /dev/build, a startpage of the type page gets created with the standard text "this is your silverstripe yadda yadda yadda"
1218: [22:23:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r66a267c / (4 files): Enforce flush on CI test runs - http://git.io/afXnYg
1219: [22:23:00] <howardgrigg> LePhil: SilverStripe needs a page with the url 'home'
1220: [22:24:00] <LePhil> hm
1221: [22:24:00] <LePhil> can I change that?
1222: [22:24:00] <LePhil> ah, not start.
1223: [22:26:00] <howardgrigg> yea the url field is just below the title
1224: [22:26:00] <LePhil> heh, no, I mean this dependency on a "home" page
1225: [22:26:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * rb3e8696 / (4 files): Enforce flush on CI test runs - http://git.io/Dsnk_g
1226: [22:27:00] <howardgrigg> oh - i dunno, the home doesnt get shown
1227: [22:27:00] <Nemitz> it's just something that needs to be there
1228: [22:27:00] <Nemitz> You will never actually see the url home
1229: [22:28:00] <LePhil> but it needs to exist in the page overview
1230: [22:29:00] <howardgrigg> yea problem solved
1231: [22:29:00] <LePhil> thanks!
1232: [22:29:00] <LePhil> it works now :)
1233: [22:29:00] <LePhil> not that big of a deal
1234: [22:29:00] <LePhil> I deleted the newly created page now and changed the url-part of *my* start page to "home" instead of "start"
1235: [22:36:00] <SphereSQL> IS there a MultiselectField for SS3?
1236: [22:37:00] <Nemitz> TreeMultiselectField?
1237: [22:37:00] * howardgrigg quit (Quit: howardgrigg)
1238: [22:49:00] <SphereSQL> Ah, yes
1239: [22:49:00] <SphereSQL> but it breaks on jQuery
1240: [22:50:00] <SphereSQL> It seems to simply refuse to work on the frontend?
1241: [22:50:00] <SphereSQL> Ah, no, it's not that
1242: [22:50:00] <Nemitz> Ohh, don't know about SS3, working with the field on SS 2.4 now and it's ok, except no option for sorting
1243: [22:50:00] <Nemitz> Is it possible to decide how the pages returned from TreeMultiselectField is sorted? I would like to return them in the order they where added
1244: [22:57:00] <SphereSQL> I don't think so, you could extend it with a sort-static
1245: [23:05:00] * SphereSQL quit (Read error: Connection reset by peer)
1246: [23:14:00] <LePhil> gtg... thanks for everything
1247: [23:14:00] * LePhil quit (Quit: Page closed)
1248: [23:14:00] * Arno has joined #silverstripe
1249: [23:15:00] * howardgrigg has joined #silverstripe
1250: [23:23:00] * ajshort quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.2.12/20101026201539])
1251: [23:26:00] <Arno> Hello, I would like to generate a Yes/No in the summaryfields, GridField SS3.. but this doesnt seem to work anymore
1252: [23:26:00] <Arno> http://www.sspaste.com/paste/show/4ff599c84a4b5
1253: [23:27:00] <Zauberfisch> Arno there is a nicer way to do this than a isPublished function
1254: [23:28:00] * SphereSQL has joined #silverstripe
1255: [23:28:00] <Zauberfisch> you can use fieldcasting
1256: [23:28:00] <SphereSQL> hmmmm, the chained $object->many_many_relation()->Title
1257: [23:28:00] <Arno> Zauberfisch: hey, do you have a example of that?
1258: [23:29:00] <howardgrigg> SphereSQL: im pretty sure a patch for that has been submitted for 3.0.1
1259: [23:29:00] <SphereSQL> doesn't work anymore?
1260: [23:30:00] <Nemitz> SphereSQL: "you could extend it with a sort-static" do you have an example or something for me regarding this?
1261: [23:30:00] <Zauberfisch> Arno try this http://paste2.org/p/2066338
1262: [23:31:00] <SphereSQL> that's what I'm trying to do
1263: [23:31:00] <Arno> Zauberfisch: http://paste2.org/p/2066339 is my current setup, it seems out to date compared to yours?
1264: [23:31:00] <SphereSQL> UserFunction::get()->filter(array('Title' => 'Projectmanager'))->Member()->map('ID', 'Title')
1265: [23:33:00] <Zauberfisch> Arno http://paste2.org/p/2066341
1266: [23:33:00] * instabil has joined #silverstripe
1267: [23:34:00] <Arno> zauberfisch: thanks man, learned something again, its working great
1268: [23:35:00] <howardgrigg> i just had a look for it - ill look harder
1269: [23:35:00] <SphereSQL> howardgrigg, do you know where that patch is supposed to be?
1270: [23:36:00] <SphereSQL> I'm browsing github like it's my job :P
1271: [23:37:00] <howardgrigg> this is the one i was thinkking of https://github.com/silverstripe/sapphire/commit/cd0a1ff623c259af8478558369ec5281ba3aa9c8
1272: [23:39:00] <SphereSQL> Nope, that's not it, unless I need to revert that change....
1273: [23:43:00] <SphereSQL> Hmmm, seems chaining doesn't work at all. That sucks
1274: [23:45:00] * openbees has joined #silverstripe
1275: [23:50:00] * openbees quit (Ping timeout: 245 seconds)
1276: [23:56:00] <Nemitz> SphereSQL: did you have any pointers for adding sorting functionality to the TreeMultiselectField?
1277: [23:59:00] * openbees has joined #silverstripe

Logging kindly sponsored by Stripe The Net: Hosting and Deployment, made simple.

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