#silverstripe IRC Log

IRC log for 3 May 2013

All timestamps are in UTC.

1: [00:01:00] <spronk> hmm
2: [00:01:00] <spronk> xcache vs apc these dxays?
3: [00:02:00] <FrozenFire> Or O+ if you like living on the edge.
4: [00:02:00] <FrozenFire> :P
5: [00:02:00] <FrozenFire> Hands down
6: [00:02:00] <FrozenFire> xcache
7: [00:03:00] <spronk> xcache hands down? any reason why?
8: [00:03:00] <spronk> hmm
9: [00:03:00] <FrozenFire> Stability. Compatibility. Ongoing maintenance
10: [00:04:00] <FrozenFire> It's also drastically easier to get up and going on Ubuntu Server, I find
11: [00:04:00] <FrozenFire> But that died a quick death
12: [00:04:00] <FrozenFire> There was talks about bundling it for PHP 6, when PHP 6 was still a thing
13: [00:04:00] * Colin[pi] has joined #silverstripe
14: [00:04:00] <FrozenFire> APC isn't part of the PHP project, no.
15: [00:04:00] <spronk> interesting, considering APC is the ... php umbrelal one
16: [00:05:00] <FrozenFire> I think it was 5.4
17: [00:05:00] <spronk> oic? hmm
18: [00:05:00] <spronk> might try out xcache then
19: [00:05:00] <spronk> i'm in the process of upgrading shit to php5.4, so.... good to know!
20: [00:05:00] <FrozenFire> APC had some serious issues getting 5.4-compatible, I recall
21: [00:06:00] <FrozenFire> http://stackoverflow.com/a/10109553/1069833
22: [00:06:00] <FrozenFire> In fact, I think APC for 5.4 is still beta?
23: [00:07:00] <spronk> zend opcache eh
24: [00:07:00] <FrozenFire> Which is pretty bad considering we're already getting 5.5, and already have 5.3 planned for an EOL
25: [00:08:00] <spronk> ja
26: [00:15:00] * mdowton has joined #silverstripe
27: [00:16:00] <FrozenFire> What files do you guys have in every single SS installation? Ordinarily I'd just clone silverstripe/installer, but I'm trimming things down significantly, to avoid cruft.
28: [00:17:00] <simon_w> Oh, assets too
29: [00:17:00] <FrozenFire> Right now, the most basic files/directories I have in my newest project are: cms, framework, themes, composer.json, _ss_environment.php, .gitignore, .htaccess, <project>
30: [00:17:00] <simon_w> From installer? .htaccess, mysite and themes
31: [00:18:00] <FrozenFire> Naturally, though that's created on-the-fly
32: [00:18:00] <simon_w> Well, _ss_environment.php shouldn't be
33: [00:18:00] <FrozenFire> Talking about things which should be versioned
34: [00:19:00] <FrozenFire> I put it in my versioning as a template, but ignore it
35: [00:19:00] <FrozenFire> Basically my question surrounds my attempt to create a template repo which I can clone for new projects
36: [00:19:00] <FrozenFire> Kinda-sorta.
37: [00:20:00] <simon_w> Maybe a robots.txt
38: [00:20:00] <Colin[pi]> if I add() a DO to a many-many ComponentSet that is already associated, do I get a double-up or will it be ignored?
39: [00:21:00] <simon_w> I don't like the mass of 404s from it
40: [00:21:00] <FrozenFire> True
41: [00:21:00] <simon_w> Colin[pi], if there's no extra fields, it'll be treated like an ignore
42: [00:21:00] * Bollig|DesignCty has joined #silverstripe
43: [00:21:00] <FrozenFire> Do you usually use a robots.txt? I never do.
44: [00:21:00] <Colin[pi]> ?
45: [00:21:00] <Colin[pi]> do I need to check if it exists first
46: [00:21:00] <FrozenFire> Not unless there's a reason, that is
47: [00:21:00] <Colin[pi]> I assume it should detect the dupe ID, no?
48: [00:22:00] <mdowton> Hi Looking for advice on how to set Translatable module correctly for 3.0 version?
49: [00:23:00] <FrozenFire> It's pretty cut and dry
50: [00:23:00] <FrozenFire> mdowton, Read the README
51: [00:23:00] <Bollig|DesignCty> mdowton: and use 3.1 I believe there are plenty of i18n fixes
52: [00:24:00] <mdowton> Run through the github readme a few time ......seems more of a setup for 3.1
53: [00:25:00] <FrozenFire> Version 1.0 of the module is 3.0-compatible.
54: [00:25:00] <Pyromanik> Zauberfisch|idle: can uploadfield handle objects that aren't files?
55: [00:25:00] <FrozenFire> Did you read the 3.0 README?
56: [00:26:00] <mdowton> thankyou i will try that
57: [00:33:00] * kerosene has joined #silverstripe
58: [00:38:00] * Extro quit ()
59: [00:48:00] * folibis has joined #silverstripe
60: [00:53:00] <folibis> Hi all! Can anybody say me what is right way to save a record in database?
61: [00:54:00] <FrozenFire> $obj->write()
62: [00:54:00] <folibis> is it good?
63: [00:54:00] <folibis> I do now $obj = new MyDataObject(); $obj->setField('Name',$value);$obj->write();
64: [00:54:00] <FrozenFire> Just do $obj->Name = $value
65: [00:56:00] <FrozenFire> You don't use setField directly unless you need to override the setter behaviour
66: [00:56:00] <FrozenFire> If you have a DB field on a DataObject, you set it using $obj->Name
67: [00:56:00] <FrozenFire> Just change the property
68: [00:56:00] <folibis> it looks like setField()
69: [00:56:00] <FrozenFire> And get it that way, too
70: [00:57:00] <FrozenFire> If a method exists with that name, that is
71: [00:57:00] <folibis> yes this is one of fields
72: [00:57:00] <FrozenFire> Then it'll either set the field, or call setName($val) or getName(), respectively.
73: [00:58:00] <folibis> is call to write(0 method mandatory? Dont it call to write() at object destruction?
74: [00:58:00] <FrozenFire> Yes, a call to write() is mandatory to write the object to the database. It does not call it at destruction.
75: [01:00:00] <folibis> oh, thanks dude i m going to try it
76: [01:04:00] <folibis> eh one more question )) I want to set custom template for one of form field. i use $obj->setTemplate('MyCustomTemplate'); but without result. I placed MyCustomTemplate.ss into mysite/templates/
77: [01:05:00] <simon_w> Bah, calls to get_parent_class() are so slow
78: [01:06:00] * AntiSol has joined #silverstripe
79: [01:06:00] <AntiSol> hi
80: [01:06:00] * mrzero quit (Remote host closed the connection)
81: [01:07:00] * mrzero has joined #silverstripe
82: [01:09:00] <folibis> to flush? do you mean ?flush=1?
83: [01:09:00] <Pyromanik> folibis: you may need to flush the template cache
84: [01:09:00] * SticksM has joined #silverstripe
85: [01:09:00] <Pyromanik> ad ?flush=1 or ?flush=all to the request
86: [01:09:00] <Pyromanik> yes
87: [01:10:00] <Pyromanik> see how they work.
88: [01:10:00] <folibis> ah yeas i did that. nothing helps
89: [01:10:00] <Pyromanik> folibis: if that does not work, look at FormField::FieldHolder() and FormField::Field()
90: [01:10:00] <Pyromanik> and override it in your subclass
91: [01:11:00] <folibis> no it is not subclass. just $field = new TextField("",""); $field->settemplate("");
92: [01:11:00] <Pyromanik> ))
93: [01:12:00] <folibis> I guess I placed it with wrong path but i never found what is right path for custom templates
94: [01:12:00] <Pyromanik> folibis: I do not think textfield uses a template.
95: [01:13:00] <Pyromanik> folibis: in the CMS you will have to place the template in mysite/templates
96: [01:13:00] <Pyromanik> (you do correct)
97: [01:14:00] <Pyromanik> folibis: ah, you want $textfield->setFieldHolderTemplate()
98: [01:14:00] <Pyromanik> http://api.silverstripe.org/3.0/class-TextField.html
99: [01:14:00] <Pyromanik> http://api.silverstripe.org/3.0/class-FormField.html#_setFieldHolderTemplate
100: [01:15:00] <AntiSol> can anyone explain to me how the SpamProtector works? Specifically I want to know how it does validation after posting the spam protected form
101: [01:16:00] <folibis> oh thank you Pyromanik you helped me again )
102: [01:24:00] <Pyromanik> pozhalst
103: [01:36:00] <Pyromanik> so, I want to make objects from (image) uploads that aren't images.
104: [01:37:00] <Pyromanik> what should I be looking at in uploadfield?
105: [01:38:00] <Pyromanik> simon_w, FrozenFire ?
106: [01:39:00] * AntiSol quit (Quit: Leaving)
107: [01:39:00] <FrozenFire> Huh
108: [01:39:00] <Pyromanik> _ItemHandler?
109: [01:40:00] <FrozenFire> Eh, I think you're going to have a hell of a time with that
110: [01:40:00] <Pyromanik> well
111: [01:40:00] <Pyromanik> hopefully not soon.
112: [01:40:00] <FrozenFire> UploadField is definitely for creating File DataObjects
113: [01:40:00] <Pyromanik> probably
114: [01:41:00] <Pyromanik> I still want it to make File DataObjects, but I want it to bindificate them after creation
115: [01:41:00] <Pyromanik> I still haven't figured out the full UI in my headfase, but I'm getting there.
116: [01:52:00] <Pyromanik> never mind
117: [01:52:00] <Pyromanik> https://github.com/colymba/GridFieldBulkEditingTools/tree/0.5
118: [01:52:00] <Pyromanik> thank you silvestripe-dev list
119: [01:53:00] <FrozenFire> Well, probably more than one line
120: [01:53:00] <Pyromanik> love it when shit comes together like that
121: [01:53:00] <FrozenFire> But the bulk is just one line
122: [01:53:00] <FrozenFire> Weee. Doing an extremely loose coupling of this one library I wrote to another module I wrote paid off in the end :D
123: [01:53:00] <Pyromanik> nice
124: [01:53:00] <FrozenFire> Just had to update one line when I decided to namespace my library
125: [01:55:00] <Minizeka> Hi everyone!
126: [01:55:00] * Minizeka has joined #silverstripe
127: [01:56:00] <Pyromanik> right
128: [01:56:00] <Minizeka> ...again
129: [01:56:00] <Pyromanik> Hello
130: [01:56:00] <Pyromanik> huh?
131: [01:56:00] <Minizeka> I have a gridfield in cms/admin
132: [01:56:00] <Pyromanik> yes
133: [01:56:00] <FrozenFire> Perhaps a more specific thing to say is that using factories saved me sooooo much time
134: [01:56:00] <FrozenFire> :P
135: [01:56:00] <Minizeka> which basicaly shows some stats
136: [01:56:00] <Minizeka> is there an option to cast gridfield field to HTML?
137: [01:57:00] <Minizeka> and I have bunch of custom fields
138: [01:57:00] <simon_w> Casting them doesn't work. That's for templates
139: [01:57:00] <Minizeka> how should I do that?
140: [01:57:00] <Minizeka> hm...
141: [01:57:00] <Pyromanik> or return them as HTMLText as simon_w says
142: [01:57:00] <Pyromanik> cast them on the dataobject
143: [01:57:00] <simon_w> Minizeka, your getter functions need to return HTMLText objects
144: [01:57:00] <Pyromanik> ok
145: [01:57:00] <Minizeka> which doesn't exists in database
146: [01:57:00] <Pyromanik> so far.
147: [01:57:00] <Pyromanik> pretty standard gridfield.
148: [01:58:00] <Minizeka> new DataObject(array('Flag' => DBField... ?
149: [01:58:00] <Pyromanik> public static $ca...oh.
150: [01:58:00] <Pyromanik> ok then
151: [01:58:00] <Pyromanik> do what simon_w suggests.
152: [01:58:00] <simon_w> return DBField::create_field('HTMLText', $value);
153: [01:59:00] <Minizeka> good news is that something changed
154: [01:59:00] <simon_w> yeah, that'd work too
155: [02:00:00] <Minizeka> bad news is that instead of html image tag, I now have "HTMLText"
156: [02:01:00] <Pyromanik> try returning an actual object from the getter
157: [02:02:00] <Minizeka> *problem
158: [02:02:00] <Minizeka> I don't have getter, that's the problems
159: [02:08:00] <Minizeka> I now tried to create real HTMLText field, but it still displays as pure text
160: [02:08:00] * howardgrigg has joined #silverstripe
161: [02:09:00] <Pyromanik> try YourGetter.XML
162: [02:09:00] <Minizeka> is there any option to set dataColumn to HTML?
163: [02:09:00] <Pyromanik> Convert::raw2xml(yourGetter())
164: [02:09:00] <Pyromanik> YourGetter()->XML()
165: [02:10:00] <Minizeka> *object
166: [02:10:00] <Minizeka> Call to a member function XML() on a non-objec
167: [02:10:00] <Pyromanik> probably in docs for summary_fields
168: [02:10:00] <Pyromanik> should be in docs I think
169: [02:10:00] <Pyromanik> I think so, not entirely sure.
170: [02:10:00] <Pyromanik> in that case
171: [02:10:00] <Pyromanik> just a string
172: [02:10:00] <Pyromanik> well you're not returning an HTMLText field
173: [02:11:00] <Minizeka> *that
174: [02:11:00] <Minizeka> public function getFlag() { return DBField::create_field('HTMLText', '<img src="/main/images/spacer.gif" class="flag flag-' . strtolower($this->CountryCode) . '" />'); }
175: [02:11:00] <Minizeka> yes, I'm aware if het
176: [02:11:00] <Minizeka> yes, I'm aware if het*that
177: [02:11:00] <Minizeka> and that's what I want to change :)
178: [02:12:00] <Minizeka> btw, I forgot to add () before ->XML()
179: [02:12:00] <Minizeka> this is getter
180: [02:13:00] <Minizeka> &lt;img src=&quot;/main/images/spacer.gif&quot; class=&quot;flag flag-gb&quot; /&gt;
181: [02:13:00] <Minizeka> now it's returning
182: [02:15:00] <Pyromanik> heh, but it's being escaped.
183: [02:15:00] <Pyromanik> interesting.
184: [02:16:00] <Pyromanik> try ->RAW() instead?
185: [02:17:00] <Minizeka> but still HTML
186: [02:17:00] <Minizeka> this time proper HTML
187: [02:17:00] <Minizeka> <img src="/main/images/spacer.gif" class="flag flag-gb" />
188: [02:21:00] <Minizeka> fixed it with
189: [02:21:00] <Minizeka> $dataColumns->setFieldFormatting( array('Flag' => function($val, $obj){ return html_entity_decode($val); }) );
190: [02:21:00] <Minizeka> FML
191: [02:23:00] <Minizeka> FrozenFire: what?
192: [02:23:00] <FrozenFire> That's... one big indication of doing-it-wrong
193: [02:23:00] <FrozenFire> Why are you outputting HTML from your model?
194: [02:23:00] <Minizeka> now I have other problem - when I use those arrows for ordering GF, I lose some of the columns
195: [02:24:00] * FrozenFire is still waiting
196: [02:24:00] <Minizeka> and I didn't want to upload 250+ images for all world's countries
197: [02:24:00] <Minizeka> it's a kind of stats for given model
198: [02:25:00] <FrozenFire> CSS wasn't sufficient?
199: [02:26:00] <Minizeka> found CSS + sprite for all flags
200: [02:26:00] <Minizeka> but I run into troubles when tried to implement it
201: [02:26:00] <Minizeka> that's exactly what I intended
202: [02:29:00] <FrozenFire> At the very least, output that HTML in your field formatting. Not your model.
203: [02:30:00] <FrozenFire> Then format that span accordingly
204: [02:30:00] <FrozenFire> return "<span class=\"flag {$obj->Flag}"></span>";
205: [02:30:00] <FrozenFire> Though simon_w or someone might have an idea as to how you can put a class on a row or column externally
206: [02:30:00] <Minizeka> I think I will dismiss whole GF for now
207: [02:31:00] <FrozenFire> folibis, When you create links in the HTMLEditorField, that's how they're stored.
208: [02:31:00] <Minizeka> since I fix one thing, one or two others appear
209: [02:31:00] <folibis> is there way guys to get lint to page by ID? for example in MODx I can get link to page by intering [~15~] in template
210: [02:32:00] <Minizeka> leaving only three columns
211: [02:32:00] <FrozenFire> folibis, https://github.com/silverstripe/silverstripe-cms/blob/3.0/code/model/SiteTree.php#L369
212: [02:32:00] <Minizeka> but when I click on any up or down arrow to sort GF
213: [02:32:00] <FrozenFire> I think it's [sitetree id=<val>]Link Text[/sitetree]
214: [02:32:00] <Minizeka> I removed that Flag column for a moment
215: [02:33:00] <Minizeka> last column loses its title, and search is displayed instead
216: [02:52:00] * Minizeka quit (Ping timeout: 245 seconds)
217: [02:57:00] <Pyromanik> the fella who made that bulk upload module is an eff'n genius.
218: [02:58:00] <Colin[pi]> inorite?
219: [02:59:00] <Pyromanik> folibis: $Page(url-segment).Link
220: [02:59:00] * seth has joined #silverstripe
221: [03:00:00] <Pyromanik> although I extremely do not recommend.
222: [03:00:00] <Pyromanik> folibis: http://doc.silverstripe.org/framework/en/topics/page-type-templates
223: [03:01:00] <Pyromanik> If you are linking to specific ID's in the template, then if someone deletes the page in the CMS your template doesn't work anymore
224: [03:01:00] <Pyromanik> same with using url-segment
225: [03:02:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
226: [03:02:00] <Pyromanik> folibis: actually it must be <% loop $Page(url) %>$Link<% end_loop %>
227: [03:02:00] <Pyromanik> according to those docs.
228: [03:03:00] <Pyromanik> folibis: if the link is in the $Content area
229: [03:03:00] <Pyromanik> folibis: but a much better idea is to use either the HTMLEditor in the CMS
230: [03:03:00] <simon_w> That should probably be changed to with
231: [03:03:00] * simon_w changes it first!
232: [03:03:00] <Pyromanik> if it is not, make some fields on your page
233: [03:03:00] <Pyromanik> simon_w: I was thinking the same, but don't know for sure
234: [03:04:00] <Pyromanik> 'LinkToPage' => 'Page'
235: [03:04:00] <Pyromanik> and new TreeDropdownField('LinkToPageID', 'Page to link to', 'Page', 'ID', 'MenuTitle')
236: [03:05:00] <Pyromanik> flexibility!
237: [03:05:00] <Pyromanik> then you can use in your template
238: [03:05:00] <Pyromanik> $LinkToPage.Link
239: [03:05:00] <Pyromanik> and it will always work so long as the user has set the page, and if they ever delete they can reset.
240: [03:05:00] <Pyromanik> ))
241: [03:07:00] <SticksM> Hi, is it possible to filter an ArrayList by a many_many table field? Something like how I imagine $MyArrayOfObjects->where("PageID = '$PageID'") would work for a has_many relationship.
242: [03:08:00] <simon_w> SticksM, nope. Need to use DataList for that
243: [03:10:00] <SticksM> Balls. Friday afternoon isn't making these DO relationships easy.
244: [03:12:00] * travis-ci has left #silverstripe
245: [03:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6840251
246: [03:12:00] <simon_w> Woo, green
247: [03:12:00] * travis-ci has joined #silverstripe
248: [03:12:00] <travis-ci> [travis-ci] silverstripe/sapphire#2120 (3.0 - a5d69f2 : Simon Welsh): The build passed.
249: [03:12:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a5dd2434c0a7...a5d69f2bf5b8
250: [03:17:00] <SticksM> Ah, it's a ManyManyList, not an ArrayList. Haven't seen that one before.
251: [03:18:00] <simon_w> It's like a HasManyList but for a ManyMany
252: [03:20:00] * seth quit (Ping timeout: 245 seconds)
253: [03:23:00] <SticksM> It looks like I need to use something more like $MyList->where("MyManyManyTable.PageID = '$PageID'). Am I on the right track with that simon_w?
254: [03:25:00] <simon_w> Nope
255: [03:25:00] <simon_w> $list->filter('RelationName.FieldName:ExactMatch', $value)
256: [03:27:00] <SticksM> Ooh, thanks. I'll give that a shot.
257: [03:34:00] <SticksM> Gah, getting closer. Couldn't find field CustomPageID in any of CustomObject's tables.
258: [03:35:00] * mobiusnz quit (Quit: Leaving.)
259: [03:36:00] <Colin[pi]> should be pretty easy to embed some search results in a 404 yeah? i.e. "didnt find that, but here are some things that may be related
260: [03:38:00] <Colin[pi]> hmm can't I disable that?
261: [03:38:00] <FrozenFire> You can hack it, though
262: [03:38:00] <FrozenFire> You'd have to extend ErrorPage
263: [03:38:00] <FrozenFire> Eh, not really.
264: [03:38:00] <Colin[pi]> :C
265: [03:38:00] <FrozenFire> 404 in SilverStripe is intended to be cached statically
266: [03:39:00] <T8> Hey Guys.. Why when using the DatetimeField in the CMS can I not change the AM to PM... Every time I save changes to AM.
267: [03:39:00] * T8 has joined #silverstripe
268: [03:40:00] <T8> SS_Datetime
269: [03:40:00] <FrozenFire> T8, What is the field type in the $db?
270: [03:40:00] <FrozenFire> Hrmm
271: [03:40:00] <T8> 'DateTime' => 'SS_Datetime',
272: [03:40:00] <FrozenFire> Couldn't tell you, then
273: [03:40:00] <T8> $Date = new DatetimeField('DateTime', 'Date and Time'); $Date->setConfig('datavalueformat', 'YYYY-MM-dd HH:mm'); // global setting $Date->getDateField()->setConfig('showcalendar', 1); // field-specific setting $F->addFieldToTab("Root.Main",$Date);
274: [03:41:00] <T8> even*
275: [03:41:00] <FrozenFire> Nope, you're right. It's retarded.
276: [03:41:00] <FrozenFire> Maybe DatetimeField is indeed just retarded, but I'm pretty sure you have your format wrong?
277: [03:41:00] <T8> was a copy paste from api docs
278: [03:41:00] <FrozenFire> Uhhh
279: [03:41:00] <FrozenFire> Hrmm
280: [03:41:00] <T8> every save it saves AM....
281: [03:41:00] <T8> event if I put in 23:00 or something
282: [03:42:00] <FrozenFire> Nah
283: [03:42:00] <T8> So this is a SS bug?
284: [03:42:00] <T8> I'm using verson 3.0
285: [03:42:00] <FrozenFire> I was just making note of the format... format
286: [03:42:00] <T8> so they intend for times to always and only be in the day?
287: [03:42:00] <T8> oh I see
288: [03:43:00] <FrozenFire> Yeah... I use it, but I've never encountered that
289: [03:43:00] <Pyromanik> s/enough/ever
290: [03:43:00] <FrozenFire> Are you actually setting the datavalueformat in your code?
291: [03:43:00] <Pyromanik> don't use DatetimeField enough, sorry
292: [03:43:00] <T8> So no information at all on this?
293: [03:43:00] * cloph_away has joined #silverstripe
294: [03:44:00] <FrozenFire> Unless you need to, that is
295: [03:44:00] <FrozenFire> No idea whether the code will balk without the seconds?
296: [03:44:00] <T8> Still no luck
297: [03:44:00] <FrozenFire> If so, don't.
298: [03:44:00] <FrozenFire> Default format has the seconds
299: [03:45:00] * cloph quit (Ping timeout: 276 seconds)
300: [03:45:00] <T8> Calendar view is for the date.
301: [03:45:00] <T8> its not
302: [03:45:00] <FrozenFire> Odd
303: [03:45:00] <FrozenFire> I'd never use the calendar view when selecting time
304: [03:45:00] <FrozenFire> Might be a bug
305: [03:46:00] <FrozenFire> Unless it's front-end and I can hack in my own selector
306: [03:46:00] <T8> Time is a separate field.
307: [03:46:00] <FrozenFire> Let me rephrase that. I'd never use anything but a single text field for entering chronological values.
308: [03:46:00] <T8> Datetimefield gives you split fields.
309: [03:48:00] <FrozenFire> Yeah, I'd just use DateField if it works
310: [03:48:00] <FrozenFire> DatetimeField is a custom FormField
311: [03:48:00] <FrozenFire> Instead of extending TextField
312: [03:48:00] <FrozenFire> Without the calendar
313: [03:49:00] * kerosene is now known as OldTom
314: [03:49:00] <T8> The calendar isnt the issue though...
315: [03:50:00] <FrozenFire> Well, I'd be more concerned with how it might be transforming the time part of the field to connect it to the date
316: [03:50:00] <FrozenFire> Might be 24 hour time
317: [03:50:00] <FrozenFire> For instance, are you sure it actually supports am/pm?
318: [03:51:00] <T8> I've tried that. Why would it not support something it forces? it forcefull puts the AM into my field
319: [03:52:00] <T8> or 13:52 however you want to look at it.
320: [03:52:00] <FrozenFire> I'm debugging blind :)
321: [03:52:00] * mdowton quit (Remote host closed the connection)
322: [03:52:00] <T8> for example SS datefields support 'now' as a string being input and they will save as the current date or time depending on the field, When I do this the returned value is 03:52 AM
323: [03:52:00] <T8> It's 03:52 PM currently.
324: [03:53:00] <FrozenFire> So, if it's not working in a reasonable way, that's a bug
325: [03:53:00] <T8> Yeah I assume It is. I'm going to look how dataobjects are saving their last edited dates because they also use SS_Datetime so maybe there will be a solution there.
326: [03:54:00] <FrozenFire> Eh, it's definitely going to be an issue in the DatetimeField
327: [03:54:00] <FrozenFire> SS_Datetime is just a DATETIME field in MySQL
328: [03:54:00] <FrozenFire> Not a whole lot of magic around it
329: [03:55:00] <FrozenFire> There's getter stuff for templates, but that shouldn't be in play, there.
330: [03:59:00] * OldTom is now known as kerosene
331: [04:02:00] <T8> Looks like the DateTimeField doesnt support any PM times...
332: [04:09:00] * T8 quit (Ping timeout: 245 seconds)
333: [04:09:00] <toebu> For a multilingual website we would like to translate the title strings for the Image objects ... how would you go about this ?
334: [04:10:00] <simon_w> With great difficulty. As in, it's a lot easier to just upload different versions for different languages
335: [04:20:00] <FrozenFire> Yeah. There are ways, but you don't want to try them
336: [04:23:00] <Pyromanik> facebook, so bad
337: [04:23:00] <Pyromanik> gawd
338: [04:37:00] * Colin[pi] quit (Ping timeout: 260 seconds)
339: [04:41:00] <Bollig|DesignCty> if you only have a couple of languages you're supporting, you can just add some fields to File for the languages. If the CMS users need to be able to add and remove languages at a whim, or you have a lot of languages, this is obviously not a great approach.
340: [04:41:00] <Bollig|DesignCty> but it is simple??? ;)
341: [04:53:00] * kerosene is now known as hoverbeard
342: [04:54:00] * hoverbeard is now known as kerosene
343: [05:10:00] * nickmolhoek quit (Quit: nickmolhoek)
344: [05:23:00] * willr quit (Quit: willr)
345: [05:29:00] * Colin[pi] has joined #silverstripe
346: [05:40:00] * simon_w quit (Quit: This computer has gone to sleep)
347: [06:07:00] <SticksM> Can I change a search results page title from 'Search Results' to that of the page it was searched from? ie. When you search, the current page title stays the same.
348: [06:19:00] <simon_w|air> SticksM, don't return Title in the array with the results?
349: [06:22:00] <SticksM> Ah, yes. I carried that over from another site with a copy and paste and missed it. Cheers simon_w|air
350: [06:23:00] * Colin[pi] quit (Ping timeout: 245 seconds)
351: [06:26:00] * simon_w has joined #silverstripe
352: [06:26:00] * simon_w|air quit (Quit: This computer has gone to sleep)
353: [06:53:00] * Liquide quit ()
354: [06:58:00] * folibis quit (Quit: Page closed)
355: [07:03:00] * ajshort has joined #silverstripe
356: [07:07:00] * ARNHOE has joined #silverstripe
357: [07:08:00] * ARNHOE quit (Remote host closed the connection)
358: [07:08:00] * ARNHOE has joined #silverstripe
359: [07:28:00] * SticksM quit (Read error: Connection reset by peer)
360: [07:28:00] * simon_w|air has joined #silverstripe
361: [07:30:00] * Zauberfisch has joined #silverstripe
362: [07:30:00] * zfmf has joined #silverstripe
363: [07:31:00] <Zauberfisch> Pyromanik I am pretty sure it can't
364: [07:32:00] * simon_w quit (Ping timeout: 245 seconds)
365: [07:33:00] <Zauberfisch> Pyromanik what are you trying to do?
366: [07:40:00] * simon_w has joined #silverstripe
367: [07:55:00] * kinglozzer has joined #silverstripe
368: [07:57:00] * willmorgan has joined #silverstripe
369: [07:59:00] * kerosene is now known as OldTom
370: [08:02:00] * simon_w|air quit (Quit: This computer has gone to sleep)
371: [08:03:00] * OldTom is now known as kerosene
372: [08:03:00] <toebu> For a multilingual website we would like to translate the title strings for the Image objects ... how would you go about this without having to essentially redo the whole asset management?
373: [08:10:00] <simon_w> toebu, how are you linking the images (and titles) to each page?
374: [08:12:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
375: [08:13:00] * Zauberfisch|idle has joined #silverstripe
376: [08:14:00] * Colin[pi] has joined #silverstripe
377: [08:17:00] * popeshoe quit (Quit: Leaving)
378: [08:21:00] * popeshoe has joined #silverstripe
379: [08:21:00] * guci0 has joined #silverstripe
380: [08:22:00] <guci0> Hello World!
381: [08:24:00] * jcwacky has joined #silverstripe
382: [08:31:00] * osterlaus has joined #silverstripe
383: [08:32:00] * Zauberfisch quit (Read error: Connection reset by peer)
384: [08:33:00] * Zauberfisch has joined #silverstripe
385: [08:35:00] * osterlaus quit (Client Quit)
386: [08:47:00] <toebu> simon_w with has_one and then I am using KickAssets image attachment widget
387: [08:52:00] <Zauberfisch> simon_w do you have the changelog in mind? is throwing date.timezone errors a recent addition to silverstripe?
388: [08:52:00] <toebu> I added extra properties to the Image object using the TranslatableDataObject
389: [08:53:00] <toebu> but then using the add_extension mechanism on KickAssetAdmin to modify the form does not realy take ...
390: [08:53:00] <Zauberfisch> or did my php config mysteriously change?
391: [08:53:00] <Zauberfisch> hmmm
392: [08:53:00] <Zauberfisch> intresting
393: [08:53:00] <simon_w> Zauberfisch, it's a PHP change
394: [08:53:00] <simon_w> 5.4, IIRC
395: [08:54:00] <simon_w> toebu, the way I would do it in this case would be to have something like ImageTitle as a Varchar on the Page, and use that instead of the title on Image
396: [08:54:00] <simon_w> Zauberfisch, may have been that one then
397: [08:54:00] <Zauberfisch> you are right
398: [08:54:00] <Zauberfisch> its a php thing
399: [08:54:00] <Zauberfisch> simon_w I am running on 5.3
400: [08:55:00] <simon_w> The installer has a warning and everything!
401: [08:55:00] <Zauberfisch> simon_w who uses this installer anyway?
402: [08:55:00] <simon_w> No idea
403: [08:55:00] <Zauberfisch> but my dev build is throwing warnings in my face
404: [08:55:00] <simon_w> Yeah, set your date.timezone :p
405: [08:56:00] <Zauberfisch> but well, there is a way to overwrite this hosters php ini
406: [08:56:00] <toebu> simon_w the problem Is that the the images are used on different contexts all over the website and should take their captions along ...
407: [08:56:00] <simon_w> date_default_timezone_set('UTC');
408: [08:56:00] <Zauberfisch> simon_w well, tell that this bloody hoster
409: [08:57:00] <simon_w> toebu, then Bollig|DesignCty's suggestion may be your best bet. Image really isn't designed to be translated
410: [08:58:00] <Zauberfisch> simon_w meh, this hoster has this weird thing: you create a php.ini in your root folder, and they run a cronjob that merges their php.ini with yours^^
411: [08:59:00] <Zauberfisch> just have to wait 15min for that job to run again
412: [08:59:00] <Zauberfisch> ...
413: [08:59:00] <Zauberfisch> simon_w they also display mysql, ssf, sftp and ftp passwords as plaintext once you log into the admin panel
414: [08:59:00] <simon_w> Zauberfisch, it's like they don't realise PHP has a .user.ini setting
415: [09:00:00] * Bollig|DesignCty has left #silverstripe
416: [09:00:00] <Bollig|DesignCty> toebu: seen https://github.com/unclecheese/TranslatableDataObject?
417: [09:00:00] <simon_w> Ooh, I'm liking this host. Try XSSing them using passwords!
418: [09:00:00] * Bollig|DesignCty has joined #silverstripe
419: [09:00:00] <Zauberfisch> simon_w and the best thing: php -v returns 4.4 :D
420: [09:01:00] <toebu> Bollig|DesignCty that is what I am using
421: [09:02:00] <toebu> I was hoping someone might have already solved that particular problem specifically ...
422: [09:02:00] <toebu> At the moment I am stuck at trying to get the KickAssetsAdmin interface to show the additional Title attributes
423: [09:02:00] * Bollig|DesignCty <3 kickassets
424: [09:07:00] <toebu> KickAssetAdmin I man
425: [09:10:00] * unsignedint quit (*.net *.split)
426: [09:11:00] * unsignedint has joined #silverstripe
427: [09:12:00] <zfmf> i have 3 DO with a field Name, when i want to create a form with http://sspaste.com/paste/show/51837f6ec20fb this code i'm getting only one field Name, is there a way to set an alias for other two fields?
428: [09:13:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
429: [09:18:00] * Zauberfisch_ has joined #silverstripe
430: [09:19:00] * gumble has joined #silverstripe
431: [09:19:00] * Zauberfisch_ quit (Read error: Connection reset by peer)
432: [09:19:00] * Zauberfisch quit (Read error: Connection reset by peer)
433: [09:19:00] <cloph_away> he documentation about user-roles/permissions http://3.0.userhelp.silverstripe.org/for-website-administrators/managing-roles-and-permissions/ talks about separating editors from publishers - but the default installation doesn't offer that distinction, or am I blind?
434: [09:20:00] <gumble> hey, I have a complete folder structure and stuff for a new theme and updated the Database. Still I can't select the theme under settings, any clue why?
435: [09:20:00] * cloph_away is now known as cloph
436: [09:25:00] <simon_w> gumble, where did you put the theme? Have you flushed?
437: [09:26:00] <simon_w> yes
438: [09:26:00] <gumble> simon_w, into the theme folder, do I have to flush so the theme appears under CMS -> Settings ?
439: [09:26:00] <gumble> simon_w, oh ok sorry for that
440: [09:27:00] <simon_w> It also can't contain an underscore in the folder name
441: [09:28:00] <gumble> simon_w, ahh damn, I have that too -.- thanks!!
442: [09:48:00] * ARNHOE has joined #silverstripe
443: [09:48:00] * ARNHOE quit (Read error: Connection reset by peer)
444: [09:53:00] * ARNHOE quit (Ping timeout: 245 seconds)
445: [10:00:00] * kinglozzer quit (Remote host closed the connection)
446: [10:03:00] * kinglozzer has joined #silverstripe
447: [10:13:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
448: [10:14:00] <simon_w> Bah, stupid trait conflicts due to using the same trait twice
449: [10:29:00] * ARNHOE has joined #silverstripe
450: [10:39:00] <K2> hey all
451: [10:39:00] * K2 has joined #silverstripe
452: [10:40:00] <K2> just wondering how I could go about splitting the results into days in the template eg.
453: [10:40:00] <K2> Fri May 04
454: [10:40:00] <K2> Event 1
455: [10:40:00] <K2> Event 2
456: [10:40:00] <K2> Sat May 05
457: [10:40:00] <K2> Ive got a datalist of events
458: [10:40:00] <K2> it's ordered by date
459: [10:41:00] <K2> Event 3
460: [10:41:00] <simon_w> use a GroupedList, grouped by that field
461: [10:41:00] <K2> Event 5
462: [10:41:00] <K2> Event 4
463: [10:41:00] <K2> etc. etc.
464: [10:42:00] <K2> awesome! Thanks :)
465: [10:47:00] * jerga has joined #silverstripe
466: [10:48:00] * Shrike_Finland has joined #silverstripe
467: [10:48:00] * webguest has joined #silverstripe
468: [10:49:00] <webguest> http://www.ssbits.com/tutorials/2011/create-an-ajax-auto-complete-member-search-with-silverstripe-and-jquery/
469: [10:49:00] <webguest> im using the autocomplete member form from ssbits, but how do i process this data into a form ? at the moment we only see the name of the member... but when you hit 'go' / 'submit' it should store the member into a form
470: [10:49:00] <webguest> they are using SearchForm instead of form
471: [10:50:00] <webguest> so dont know if this changes anything
472: [10:51:00] <webguest> so how do i create an action for this
473: [10:54:00] * jerga quit (Quit: Leaving.)
474: [10:57:00] * osterlaus has joined #silverstripe
475: [11:08:00] <webguest> anyone please?
476: [11:15:00] * K2 quit (Ping timeout: 245 seconds)
477: [11:17:00] * Colin[pi] quit ()
478: [11:20:00] * gelignite has joined #silverstripe
479: [11:29:00] <kinglozzer> Unit testing is failing to connect to DB, credentials are definitely correct - any ideas?
480: [11:35:00] <webguest> db?flush=1 ?
481: [11:36:00] <webguest> instead of dev/build
482: [11:36:00] <webguest> or do you mean something else with 'unit testing' ?
483: [11:37:00] * kinglozzer quit (Remote host closed the connection)
484: [11:39:00] * kinglozzer has joined #silverstripe
485: [11:41:00] * Error404NotFound has joined #silverstripe
486: [11:50:00] * Shrike_Finland quit (Quit: Leaving.)
487: [11:54:00] * osterlaus1 has joined #silverstripe
488: [11:57:00] * ARNHOE quit (Remote host closed the connection)
489: [11:57:00] * osterlaus quit (Ping timeout: 245 seconds)
490: [11:59:00] * UndefinedOffset has joined #silverstripe
491: [12:44:00] <Marvanni> #ejabberd
492: [12:45:00] <willmorgan> Marvanni: sorry to hear you're having to play with ejabberd ;)
493: [12:46:00] <willmorgan> "This eJabberd config file is wonderful!" said noone, ever
494: [12:47:00] <Marvanni> any alternative?
495: [12:47:00] <Marvanni> hehe, your right...
496: [12:48:00] <willmorgan> I don't think so. I *think* Facebook still runs eJabberd for their chat service, but I may be wrong.
497: [12:49:00] <willmorgan> Not something I'm aware of. I was customising mod_roster
498: [12:49:00] <Marvanni> im stuck on installing the mod_archive module
499: [12:49:00] <Marvanni> build.sh does nothin@all
500: [12:49:00] <willmorgan> I assume you're looking for any old XMPP server that isn't eJabberd?
501: [12:50:00] <willmorgan> Fairly... I don't remember installing mod_roster though.
502: [12:50:00] <Marvanni> but you have experience with installing mods?
503: [12:51:00] <willmorgan> so, I remember editing ejabberd.cfg
504: [12:51:00] <willmorgan> no build steps required
505: [12:51:00] <willmorgan> and then simply restarting the server
506: [12:52:00] <Marvanni> hm. i downloaded the mods from git an followed the 'instructions' ..
507: [12:52:00] <Marvanni> states that I need to generate beam files with build.sh
508: [12:52:00] <Marvanni> http://www.ejabberd.im/ejabberd-contrib
509: [12:54:00] <willmorgan> are those .hrl files?
510: [12:54:00] <Marvanni> .erl
511: [12:54:00] <willmorgan> yeah, I've got nothing then I'm afraid :-/
512: [12:56:00] * lx-berlin_ has joined #silverstripe
513: [12:56:00] <Marvanni> ok. thanks anyway :)
514: [12:57:00] <willmorgan> if you have questions about mod_roster_odbc then don't hesitate to ask :-P
515: [12:57:00] <Marvanni> I will keep that in mind!
516: [13:07:00] <zfmf> can anyone tell me why the method is called two times here: http://sspaste.com/paste/show/5183b62c92bb4 is it because the loop ??
517: [13:10:00] * guci0 quit (Ping timeout: 245 seconds)
518: [13:10:00] * sekjal has joined #silverstripe
519: [13:10:00] * kinglozzer quit (Remote host closed the connection)
520: [13:12:00] <sekjal> the idea would be to allow easy creation of a set of controlled terms, and manage the relationships between those terms
521: [13:12:00] <sekjal> I'm thinking of developing a new module for SS 3.0+; a Thesaurus.
522: [13:13:00] <sekjal> I work in a library, so this is something to which I naturally gravitate, but I think it may have utility for other sites, as well
523: [13:13:00] <sekjal> I just thought I'd pop in and see if the idea resonated with anyone in channel today
524: [13:13:00] * kinglozzer has joined #silverstripe
525: [13:14:00] * lx-berlin_ has left #silverstripe
526: [13:26:00] <zfmf> templates on layout folder are rendered twice with renderWith wtf? why this :D
527: [13:27:00] <zfmf> i'm trying to solve the problem since wednesday :@
528: [13:28:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
529: [13:40:00] * Zauberfisch|idle has joined #silverstripe
530: [13:42:00] <NobrainerWeb> Hi
531: [13:42:00] * NobrainerWeb has joined #silverstripe
532: [13:46:00] <webguest> so how do i create an action for this
533: [13:46:00] <webguest> im using the autocomplete member form from ssbits, but how do i process this data into a form ? at the moment we only see the name of the member... but when you hit 'go' / 'submit' it should store the member into a form
534: [13:46:00] <webguest> http://www.ssbits.com/tutorials/2011/create-an-ajax-auto-complete-member-search-with-silverstripe-and-jquery/
535: [13:46:00] <webguest> they are using SearchForm instead of form
536: [13:55:00] * lx-berlin_ has joined #silverstripe
537: [13:55:00] <webguest> i tried changing new SearchForm to new Form and added $action, but then the autocomplete stops
538: [13:55:00] <willmorgan> what have you tried so far?
539: [13:55:00] <willmorgan> hmm, webguest
540: [13:55:00] <willmorgan> i'm loading that page now
541: [13:55:00] <webguest> thx
542: [13:56:00] <willmorgan> show me your controller
543: [13:57:00] <webguest> http://paste2.org/L9vJUgme
544: [13:57:00] <webguest> its kinda big
545: [13:58:00] <webguest> line 227
546: [13:59:00] <webguest> but i would like to make my own action / NEXT button
547: [13:59:00] <lx-berlin_> has anyone ever build a website with only the SS framework installed (without CMS) ? Is it faster then ? Any problems i should consider ?
548: [13:59:00] <webguest> and store the found member into a bridge, just like the other steps
549: [13:59:00] <webguest> i believe SearchForm comes with a default 'Go' button
550: [14:00:00] <willmorgan> webguest: subclass the form to rename the action or change the action in the controller
551: [14:01:00] <webguest> to what do i need to change the action in the controller?
552: [14:01:00] <willmorgan> i guess you need to look for any members with that name, and if found you want to return the first member
553: [14:01:00] <willmorgan> if not, create and return
554: [14:01:00] <willmorgan> i can't really write the code for you
555: [14:01:00] <willmorgan> it's best if you write it yourself and ask specific questions about it
556: [14:02:00] <webguest> i understand, but do i go like: $action( ?
557: [14:02:00] <willmorgan> oh
558: [14:02:00] <willmorgan> go and read SearchForm.php
559: [14:02:00] <willmorgan> you will see a FormAction with the title of "Go"
560: [14:02:00] <willmorgan> the first param of when that is constructed refers to the name of the funciton that will be executed when that button is pressed and the form is submitted
561: [14:02:00] <willmorgan> does this help you at all?
562: [14:02:00] * toebu quit (Remote host closed the connection)
563: [14:03:00] <webguest> not really, currently the formAction is linked to 'results' ... $form->setFormAction($this->Link('results'));
564: [14:03:00] <willmorgan> i'm not sure i understand you
565: [14:03:00] <webguest> this is needed to get the results
566: [14:03:00] <willmorgan> ahh i see
567: [14:03:00] <webguest> but i want to change the action of the GO button
568: [14:04:00] <willmorgan> and go with a traditional form submission method
569: [14:04:00] <willmorgan> okay
570: [14:04:00] <willmorgan> you'll need to remove that line then
571: [14:05:00] <webguest> do i need to make it a Form?
572: [14:05:00] <webguest> or still use searchForm?
573: [14:05:00] <webguest> https://www.dropbox.com/s/qs34phgtbud8kmf/see.jpg
574: [14:07:00] <webguest> cause when i changed the SearchForm to Form, the auto complete stopped working
575: [14:09:00] <willmorgan> if you're just searching members, it would be better to create your own form
576: [14:10:00] <lx-berlin_> do i understand this right, that the restful server doesnt support to delete records ? https://github.com/silverstripe/silverstripe-restfulserver/
577: [14:16:00] <kinglozzer> lx-berlin_: I've not built a full site with just the framework. I've built a small internal project (holds FTP details etc) with it, haven't noticed any real performance difference. Setting up routes is the main pain, the CMS module handles all of that programatically.
578: [14:16:00] <willmorgan> " * @todo Implement PUT/POST/DELETE for relations" - sounds like records, but not relations
579: [14:16:00] <willmorgan> CTRL+F "delete"
580: [14:16:00] <willmorgan> lx-berlin_: https://github.com/silverstripe/silverstripe-restfulserver/blob/master/code/RestfulServer.php
581: [14:17:00] <willmorgan> lx-berlin_ kinglozzer I've done some work with CMS-less projects, but didn't have much trouble. Main thing is just setting your routing correctly.
582: [14:18:00] * NobrainerWeb quit (Quit: NobrainerWeb)
583: [14:19:00] <cloph> The documentation about user-roles/permissions http://3.0.userhelp.silverstripe.org/for-website-administrators/managing-roles-and-permissions/ talks about separating editors from publishers - but the default installation doesn't offer that distinction, or am I blind? (last time I ask this question here, don't worry)
584: [14:20:00] <kinglozzer> cloph: You're not blind. Default roles are admin and content author. It talks you through setting up other roles, though
585: [14:21:00] <kinglozzer> Ah I see your point - that there's no tickbox in the backend for preventing publishing
586: [14:22:00] <lx-berlin_> thanks willmorgan and kinglozzer
587: [14:24:00] <lx-berlin_> strange, the description of the restful server module says: DELETE /api/v1/(ClassName)/(ID) - deletes a database record (NOT IMPLEMENTED YET)
588: [14:31:00] * Nivery has joined #silverstripe
589: [14:34:00] * lx-berlin_ quit (Ping timeout: 260 seconds)
590: [14:38:00] <webguest> by changing the director link to Step=2
591: [14:38:00] <webguest> willmorgan, i think im almost there : http://paste2.org/6cmP3vJW
592: [14:38:00] <webguest> i know how to link the button to the correct url
593: [14:38:00] <webguest> and i can get the results of the form using $query
594: [14:39:00] <webguest> but i can't figure out how i can do a DataObject::get with that query to get the Member ID
595: [14:40:00] <webguest> or is there an easier way, maybe map the MemberID's in the results, and put it inside query?
596: [14:46:00] * Zauberfisch has joined #silverstripe
597: [14:49:00] * ARNHOE quit (Remote host closed the connection)
598: [14:49:00] * lx-berlin_ has joined #silverstripe
599: [14:49:00] * ARNHOE has joined #silverstripe
600: [14:52:00] * sekjal quit (Quit: Leaving)
601: [15:01:00] <MiniZeka> is there an option to disable filter in GF?
602: [15:01:00] <MiniZeka> ahoy!
603: [15:01:00] * MiniZeka has joined #silverstripe
604: [15:03:00] * r3v3rb has joined #silverstripe
605: [15:04:00] <r3v3rb> hola MiniZeka
606: [15:04:00] <r3v3rb> :)
607: [15:04:00] <r3v3rb> hi everyone
608: [15:04:00] <MiniZeka> aloha r3v3rb
609: [15:05:00] <r3v3rb> i'm trying to figure out a way to report all DO's created in the 'last' calendar month prior to this month - any ideas?
610: [15:06:00] <r3v3rb> for this calendar month I use: $filters['Created:GreaterThan'] = date('Y-m-d', strtotime('-'.$today.' days')); where $today is SS_DateTime::now()->DayOfMonth() -1
611: [15:10:00] * kinglozzer quit (Remote host closed the connection)
612: [15:13:00] <MiniZeka> although you can do strtotime('-1 month')
613: [15:13:00] <MiniZeka> getting last month can be a problem
614: [15:14:00] <MiniZeka> most obvious example is March 31st
615: [15:14:00] <MiniZeka> you wont get right result if called from month that has more days than the previous one
616: [15:15:00] <MiniZeka> strtotime('-1 month') on March 31st will return March 1st
617: [15:17:00] <r3v3rb> and date("Y-m-d", mktime(0, 0, 0, date("m"), -1, date("Y"))) for the start of the month
618: [15:17:00] <r3v3rb> sorry thats the last day of the month, this is the first: date("Y-m-d", mktime(0, 0, 0, date("m")-1, 1, date("Y")))
619: [15:17:00] <r3v3rb> MiniZeka: indeed, I am looking at using created::withinrange
620: [15:18:00] <MiniZeka> try this one
621: [15:18:00] <MiniZeka> date("Y-m-01",strtotime('-1 month', date("Y-m-01")));
622: [15:18:00] <MiniZeka> for first day of prev month
623: [15:18:00] <MiniZeka> and
624: [15:18:00] <MiniZeka> $prev = date("Y-m-t",strtotime('-1 month', date("Y-m-01")));
625: [15:18:00] <MiniZeka> for last day on prev month
626: [15:19:00] <MiniZeka> $prevStart = date("Y-m-01",strtotime('-1 month', strtotime(date("Y-m-01"))));
627: [15:19:00] <MiniZeka> $prevEnd = date("Y-m-t",strtotime('-1 month', strtotime(date("Y-m-01"))));
628: [15:19:00] <r3v3rb> nice, now to find some docs on withinrange filter
629: [15:19:00] <MiniZeka> ... wait
630: [15:20:00] <MiniZeka> that will return correct first and last days of previous month always
631: [15:21:00] <MiniZeka> $filters['Created:GreaterThan'] = date("Y-m-01",strtotime('-1 month', strtotime(date("Y-m-01"))));
632: [15:21:00] <MiniZeka> $filters['Created:LowerThan'] = date("Y-m-t",strtotime('-1 month', strtotime(date("Y-m-01"))));
633: [15:25:00] <r3v3rb> almost it misses the last day of the month in the report :)
634: [15:26:00] <MiniZeka> $filters['Created:LowerThan'] = date("Y-m-01");
635: [15:27:00] <r3v3rb> no its because the filter is less than so I just need the first day of this month :D
636: [15:28:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
637: [15:28:00] <r3v3rb> so yes your answer above but using created::lessthan
638: [15:29:00] <MiniZeka> yup
639: [15:31:00] <willmorgan> webguest sorry my highlight settings failed so I missed your message
640: [15:31:00] * lx-berlin_ quit (Remote host closed the connection)
641: [15:32:00] <willmorgan> line 9 of that paste looks promising
642: [15:32:00] <webguest> no problem
643: [15:33:00] <willmorgan> a dataobject::get will return you either false, or the found member
644: [15:33:00] <willmorgan> sorry, it will return false or a dataobjectset of matching members
645: [15:33:00] <willmorgan> you might want to do DataObject::get_one
646: [15:33:00] <willmorgan> if($Results && $Results->exists()) { return $Results->ID; }
647: [15:36:00] <MiniZeka> does anybody know why does filter in GridField is appearing AFTER sorting it in ASC / DESC, but prior to that - there is no filter?
648: [15:36:00] <MiniZeka> and clears last column title?
649: [15:37:00] * Shrike_Finland1 has joined #silverstripe
650: [15:37:00] * Shrike_Finland has joined #silverstripe
651: [15:38:00] <r3v3rb> MiniZeka: working nicely now, should have thought to use two filters ;)
652: [15:39:00] <popeshoe> hey i have a wierd problem with 2.4 maybe you guys can help with, i'm trying to use the search in the leftandmain bit of the cms, but get errors like 'the method 'markpartialtree' does not exist on 'SiteTree''
653: [15:39:00] <popeshoe> and when i look at the URLs of the ajax requested by the CMS JS, they have &ID=0 in them
654: [15:40:00] <popeshoe> but when i change that value to anything non-zero it doesn't error at all, so that's obviously the problem, but do any of you know why/what might be causing it
655: [15:41:00] * Shrike_Finland quit (Ping timeout: 260 seconds)
656: [15:41:00] * Shrike_Finland1 quit (Ping timeout: 256 seconds)
657: [15:45:00] <ss23> Does this mean it might sometimes be *smaller*?
658: [15:45:00] <ss23> The phrasing of this is weird: $image->resizeByWidth(width) // Maximum width the image resizes to, keeps proportion
659: [15:52:00] <ss23> <img src="$Image.ResizeByWidth(660).CroppedImage(660, 310).URL">
660: [15:52:00] <willmorgan> i would go by what the code does rather than how it's labelled
661: [15:52:00] <willmorgan> yeah, but are you reading the source?
662: [15:52:00] <ss23> I guess
663: [15:53:00] <ss23> Can you not chain like that in templates?
664: [15:53:00] <willmorgan> what version of SS?
665: [15:53:00] <ss23> willmorgan: Haven't yet, figured I would just test
666: [15:53:00] <ss23> This does not work how I want it to. It outputs nothing, I get no output from it
667: [15:53:00] <ss23> 3.0
668: [15:56:00] <willmorgan> hmm
669: [15:56:00] <willmorgan> have you tried maybe chaining with blocks?
670: [15:56:00] <willmorgan> <% with Image.ResizeByWidth(660) %><% with CroppedImage(660,310) %>$URL<% end_with %><% end_with %>
671: [15:57:00] <ss23> Hmm, I could, but seems a little yucky
672: [15:57:00] <ss23> I might just write some PHP in the controller for it
673: [15:58:00] <ss23> That'll let me debug too :O
674: [16:00:00] <ss23> How?
675: [16:00:00] <willmorgan> you can still debug in the template, ss23
676: [16:00:00] <willmorgan> Use the $debug variable in the template :)
677: [16:01:00] <willmorgan> for example: $Image.debug
678: [16:01:00] <ss23> willmorgan: got a link to docs?
679: [16:01:00] <willmorgan> or <% with Image %>$debug<% end_with %>
680: [16:02:00] <willmorgan> under "Debugging techniques" near the end of the page
681: [16:02:00] <willmorgan> ss23: easily googled. I won't patronise you with lmgtfy.com though: http://doc.silverstripe.org/framework/en/topics/debugging
682: [16:03:00] <willmorgan> if you're feeling really leet, you can also inspect the generated PHP code
683: [16:03:00] <willmorgan> actually, I've got to say that the docs have improved SO much since I started 3 years ago
684: [16:03:00] <willmorgan> > You can also use $Debug with ViewableData in templates.
685: [16:03:00] <ss23> ty. I don't bother Googling for SS stuff normally since 9/10 I don't get the relevant docs :<
686: [16:04:00] <ss23> You can also use $Debug with ViewableData in templates.
687: [16:04:00] <ss23> like
688: [16:04:00] <ss23> what does that mean?
689: [16:04:00] <ss23> :S
690: [16:04:00] <willmorgan> Read the source, Luke
691: [16:04:00] <ss23> lol
692: [16:04:00] <ss23> I don't wanna read source!
693: [16:04:00] <willmorgan> then you don't wanna get better?
694: [16:04:00] <ss23> I read the source sometimes, this isn't one of the times :P. Besides, I would rather figure out where the docs are lacking so I can send pull requests
695: [16:04:00] <ss23> willmorgan: Hmm? I have dev mode turned on and everything. Does $debug do something different? These docs don't say anything about what it *is*
696: [16:05:00] <willmorgan> http://api.silverstripe.org/3.0/source-class-ViewableData.html#567-574
697: [16:05:00] <willmorgan> http://api.silverstripe.org/3.0/source-class-ViewableData_Debugger.html#669-723
698: [16:05:00] <ss23> I get SS has bad docs, but can't make them better if it's always just "read the PHP"
699: [16:12:00] * jcwacky quit (Quit: jcwacky)
700: [16:18:00] * osterlaus1 quit (Quit: Leaving.)
701: [16:19:00] * kerosene quit (Quit: leaving)
702: [16:21:00] * Error404NotFound quit (Ping timeout: 245 seconds)
703: [16:25:00] <MiniZeka> does anybody know why does filter in GridField is appearing AFTER sorting it in ASC / DESC, but prior to that - there is no filter?
704: [16:25:00] <MiniZeka> and clears last column title?
705: [16:25:00] * Error404NotFound has joined #silverstripe
706: [16:25:00] * priithansen quit (Quit: priithansen)
707: [16:26:00] * Error404NotFound quit (Read error: Connection reset by peer)
708: [16:30:00] <FrozenFire> Are you setting the display fields?
709: [16:30:00] <FrozenFire> MiniZeka, I've noticed that before, but I couldn't say why it happens.
710: [16:33:00] <MiniZeka> yes
711: [16:34:00] <FrozenFire> Are you making sure all of the columns map to either an actual field, or a setFieldFormatting entry?
712: [16:35:00] <MiniZeka> no
713: [16:35:00] <MiniZeka> should I?
714: [16:36:00] <FrozenFire> Presumably
715: [16:36:00] <FrozenFire> If there's no content for a field, it might cause weird results?
716: [16:36:00] * Nivery quit (Quit: Nivery)
717: [16:37:00] <MiniZeka> There is a content in every single cell of every single row
718: [16:37:00] <FrozenFire> Or some browsers might be like "Eh, no content. Best not to render"
719: [16:38:00] * cloph is now known as cloph_away
720: [16:38:00] <MiniZeka> I did now - but it doesn't change anything
721: [16:38:00] <FrozenFire> So you have made sure each column maps to either an actual field, or a setFieldFormatting entry.
722: [16:39:00] <MiniZeka> I don't think this is PHP-related bug
723: [16:39:00] <MiniZeka> is ok
724: [16:39:00] * r3v3rb has left #silverstripe
725: [16:39:00] <MiniZeka> with proper heading of last column
726: [16:39:00] <MiniZeka> since response I got from server
727: [16:39:00] <MiniZeka> when sorting
728: [16:40:00] <MiniZeka> but somehow it's changed when appended to body
729: [16:43:00] <MiniZeka> http://fotkica.com/slike.php?slika=1_136760300_prior%20to%20sorting.PNG
730: [16:43:00] <MiniZeka> and after sorting
731: [16:43:00] <MiniZeka> http://fotkica.com/slike.php?slika=1_136760300_after%20sorting.PNG
732: [16:43:00] <MiniZeka> *sorting
733: [16:43:00] <MiniZeka> this is before sortinh
734: [16:44:00] <FrozenFire> Yep. We're on the same page. I've seen it before.
735: [16:44:00] <FrozenFire> Just not sure what the solution is
736: [16:45:00] <ss23> $Top.makeNice() works fine though
737: [16:45:00] <ss23> Silverstripe templates have to be one of the worst ideas Silverstripe has
738: [16:45:00] <ss23> Fuck using PHP, lets use something else that's not well documented and is retarded
739: [16:45:00] <FrozenFire> XD
740: [16:45:00] <ss23> $Top.makeNice($Image)
741: [16:45:00] <ss23> Anything wrong with this?
742: [16:45:00] <ss23> $Image works fine, but it doesn't call makeNice like that
743: [16:46:00] <ss23> ...
744: [16:46:00] <ss23> How are you meant to do it then?
745: [16:46:00] <FrozenFire> Well, for one, you wouldn't have $Top.makeNice
746: [16:46:00] <ss23> What would you have instead?
747: [16:46:00] <FrozenFire> You would decorate Image
748: [16:46:00] <ss23> urgh
749: [16:46:00] <ss23> I DON'T WANNA DO THAT
750: [16:46:00] <FrozenFire> Yeah, you can't pass variables as parameters to functions in templates
751: [16:46:00] <ss23> I can though
752: [16:46:00] <ss23> $Top.makeNice("rawr") works fine too
753: [16:47:00] <ss23> Even if they had some basic error reporting instead of silently failing it would be nice
754: [16:47:00] <MiniZeka> FrozenFire response: http://fotkica.com/slike.php?slika=1_71979112_response.PNG and result: http://fotkica.com/slike.php?slika=1_71979112_result.PNG
755: [16:47:00] <MiniZeka> what happens in between?
756: [16:47:00] <ss23> Like that line, $Top.makeNice($Image), it just gives a blank string. Why not a bloody error or something?
757: [16:47:00] <ss23> Though really, if templates weren't fucking retarded in the first place, I wouldn't want to do this
758: [16:48:00] <ss23> rage rage rage
759: [16:49:00] <FrozenFire> Depends on your SS version
760: [16:49:00] <ss23> 3.0
761: [16:49:00] <ss23> FrozenFire: What about $Image.ResizeByWidth(660).CroppedImage(660, 310).URL
762: [16:50:00] <ss23> It doesn't, it gives no output (and no error)
763: [16:50:00] <ss23> FUCK I HATE ISLVERSTRIPE TEMPLATEs
764: [16:50:00] <ss23> Goddam
765: [16:50:00] <ss23> The worst is their lack of error reporting
766: [16:50:00] <FrozenFire> Out of curiosity, why do you need to resize by width first?
767: [16:50:00] <ss23> FrozenFire: Cause if you crop first, it'll crop the side off too
768: [16:50:00] <FrozenFire> CroppedImage will scale to fit in the bounding box
769: [16:50:00] <ss23> oh?
770: [16:50:00] <FrozenFire> Give it a try. I *think* it should work, but I can't be sure
771: [16:51:00] <FrozenFire> Maybe it'll scale to the largest dimension
772: [16:51:00] <FrozenFire> It'll scale it to fit within the view area, first, in at least one dimension
773: [16:51:00] <ss23> But smarty is stupid as fuck
774: [16:51:00] <ss23> Better than smarty, sure
775: [16:51:00] <willmorgan> i've used raw php in other projects. it's fast but bloody verbose
776: [16:51:00] <ss23> willmorgan: Bullshit
777: [16:51:00] <willmorgan> to be honest the templating language is better then using something like smarty, or using raw php
778: [16:51:00] <ss23> wtf
779: [16:51:00] <ss23> $image->croppedImage(width,height) // Crops the image from the centre, to given values.
780: [16:51:00] <FrozenFire> Yeah.
781: [16:51:00] <ss23> >.<
782: [16:51:00] <ss23> I thought it... cropped it, since thats waht it said it di
783: [16:51:00] <FrozenFire> Sfaik
784: [16:52:00] <ss23> Those are the two "verbose" things I can think of in PHP
785: [16:52:00] <ss23> willmorgan: short array syntax + FAD
786: [16:52:00] <willmorgan> how so?
787: [16:52:00] <FrozenFire> willmorgan, If you update to PHP 5.4, it's far better.
788: [16:52:00] <ss23> I should update the docs, and tbh should be renammed from croppedimage >.<
789: [16:52:00] <ss23> kk, FrozenFire
790: [16:52:00] <willmorgan> hey, shh, you're burning down my straw man to make .SS files look good!
791: [16:52:00] <FrozenFire> Then it'll slice off the other dimension starting from centre.
792: [16:52:00] <FrozenFire> Because shorthand echo is available always
793: [16:53:00] <FrozenFire> <?=$var ?>
794: [16:53:00] <FrozenFire> So you can echo variables without echo
795: [16:53:00] <ss23> oh yeah that too
796: [16:53:00] <FrozenFire> But you shouldn't rely on that
797: [16:53:00] <willmorgan> as for array definition, it's debatable whether that should be done in the template anyway
798: [16:53:00] <FrozenFire> You can *if* you have short tags enabled
799: [16:53:00] <willmorgan> but you can do that in 5.3...
800: [16:54:00] <willmorgan> verbose in template
801: [16:54:00] <ss23> I mean, <? is just as verbose as <%...
802: [16:54:00] <ss23> willmorgan: I don't get it. If you weren't talking about those things, what did you mean by "PHP is verbose"?
803: [16:54:00] <FrozenFire> ss23, Probably that you can to call shit like forTemplate directly
804: [16:55:00] <FrozenFire> <?=$Image->CroppedImage(x, y)->forTemplate(); ?>
805: [16:55:00] * willmorgan quit (Quit: Ciao mateys.)
806: [16:55:00] <FrozenFire> How to debug what?
807: [16:55:00] <ss23> Anyawy, how to debug, FrozenFire?
808: [16:55:00] <ss23> You mean you have to use <? when you want to use a variable, intead of not using it?
809: [16:56:00] <FrozenFire> If you want the URL specifically, and you are having issues with chaining, just do <% with Image.CroppedImage(x,y) %> $URL <% end_with %>
810: [16:57:00] <ss23> Like
811: [16:57:00] <FrozenFire> I can't recall all of the limitations of 3.0 in relation to 3.1
812: [16:57:00] <ss23> oh wait
813: [16:57:00] <ss23> Thats right, croppedImage is retarded, I forgot
814: [16:58:00] <ss23> ty FrozenFire
815: [16:58:00] <FrozenFire> Heh. CroppedImage isn't actually retarded.
816: [16:58:00] <FrozenFire> I use it as my go-to image manipulation in 99% of situations
817: [16:59:00] <ss23> I can rephrase to "Is named retardedly and is documented retardly, but implmented in a useful way" if you like
818: [16:59:00] <ss23> :P
819: [17:00:00] <FrozenFire> Heh
820: [17:00:00] <FrozenFire> It crops. It does so with a scale first, to avoid simply throwing a bounding box at a giant image that is far smaller than the image.
821: [17:00:00] <FrozenFire> It's named pretty accurately.
822: [17:01:00] <FrozenFire> If you want to do complex image manipulations, it's goddamn trivial to add stuff to Image
823: [17:01:00] <FrozenFire> Especially with my Image refactor that went into 3.1, I think
824: [17:37:00] * cloph_away is now known as cloph
825: [18:13:00] <cloph> ss23: If you don't like templates, then just don't use them - nobody prevents you from creating all your html in php alone.
826: [18:14:00] <ss23> Nobody prevents me creating my own framework, doesn't make it a good idea, nor does it count as a valid point if someont has probelms with a framework :P
827: [18:17:00] <FrozenFire> Heh. The point is that the SS templating system isn't so tightly bound in that you cannot use PHP for templating
828: [18:18:00] <cloph> ss23: the point is: Use a combination - that's exactly what the framework is meant for.
829: [18:18:00] <cloph> Whether you use the convenience functions that are builtin, or just call your own doesn't really matter.
830: [18:18:00] <cloph> static parts in the templates, the dynamic stuff via the templates.
831: [18:18:00] * ARNHOE has joined #silverstripe
832: [18:20:00] * webguest quit (Ping timeout: 245 seconds)
833: [18:25:00] * pex__ has joined #silverstripe
834: [18:29:00] <pex__> has anyone tried to install 'translatable' module? I get an error message :(
835: [18:35:00] * wmk has joined #silverstripe
836: [18:38:00] * ARNHOE quit (Remote host closed the connection)
837: [18:41:00] <FrozenFire> pex__, Help yourself by providing some actual information.
838: [18:43:00] <pex__> FrozenFire - what do You mean?
839: [18:44:00] <FrozenFire> That would be my question for you.
840: [18:47:00] <FrozenFire> Error message, version, installation method
841: [18:47:00] <FrozenFire> SS version. PHP version.
842: [18:47:00] <cloph> "an error message" doesn't tell very much.
843: [18:48:00] <FrozenFire> So you accidentally installed master, instead of the 1.0 branch
844: [18:48:00] <FrozenFire> Master of translatable is 3.1-only
845: [18:48:00] <pex__> oh :) . After instalation translatable module (from github) on SS 3.0.5 i tried rebuild by dev/build. I got error "Non-static method Object::config() should not be called statically in /home/ux180976/public_html/testy/cmyk/translatable/code/model/Translatable.php on line 270"
846: [18:48:00] <FrozenFire> And the list goes on, of basic troubleshooting information that every question requires.
847: [18:49:00] <pex__> clear enough, thanx
848: [18:53:00] * priithansen has joined #silverstripe
849: [19:05:00] * terryapodaca has joined #silverstripe
850: [19:07:00] * ralf_l has joined #silverstripe
851: [19:10:00] * seth__ has joined #silverstripe
852: [19:15:00] <joko> hello, can anybody help me with the event_calendar module?
853: [19:15:00] * joko has joined #silverstripe
854: [19:21:00] <Zauberfisch> joko depends on the version of silverstripe
855: [19:22:00] <Zauberfisch> I have done enough 2.4 support for this week, can't see it any more
856: [19:22:00] <joko> I'm working with silverstripe 3.0 and the last github instance of the event calendar
857: [19:22:00] <Zauberfisch> good
858: [19:22:00] <Zauberfisch> then I am happy to help
859: [19:22:00] <joko> thank you
860: [19:23:00] <joko> it's: [User Error] Uncaught InvalidArgumentException: Unable to parse string: Unable to parse line 1
861: [19:23:00] <joko> I rebuild my database but get a yaml-error when logging in
862: [19:24:00] <joko> It's a problem with the german translation (I'm from Germany)
863: [19:25:00] <joko> Could it be a problem, that I don't use Silverstripe 3.05?
864: [19:25:00] <Zauberfisch> haha
865: [19:25:00] <Zauberfisch> yea it is
866: [19:25:00] <joko> how do I determine my silverstripe version?
867: [19:25:00] <Zauberfisch> the lang file
868: [19:25:00] <Zauberfisch> epic fail unclecheese
869: [19:25:00] <joko> oh good
870: [19:26:00] <joko> but don't know where to start
871: [19:26:00] <Zauberfisch> https://github.com/unclecheese/silverstripe-event-calendar/edit/master/lang/de.yml
872: [19:26:00] <Zauberfisch> joko no, its not the silverstripe version
873: [19:26:00] <Zauberfisch> its the language yml file
874: [19:26:00] <joko> oh
875: [19:26:00] <joko> yes
876: [19:26:00] <joko> I would like to
877: [19:26:00] <Zauberfisch> joko you feel like fixing it?
878: [19:27:00] <Zauberfisch> do you have a github account?
879: [19:27:00] <joko> yes, but not really using it. Wait a second...
880: [19:27:00] <joko> 404?
881: [19:28:00] * willmorgan has joined #silverstripe
882: [19:29:00] <Zauberfisch> well
883: [19:29:00] <joko> ok, I see the file now
884: [19:29:00] <Zauberfisch> not php
885: [19:29:00] <Zauberfisch> but actually
886: [19:29:00] <joko> ok
887: [19:29:00] <Zauberfisch> I am going to fix it
888: [19:29:00] <Zauberfisch> its suppose to be a yaml file
889: [19:30:00] <Zauberfisch> should only be a few search and replace calls
890: [19:34:00] <joko> Am I supposed to do something?
891: [19:37:00] <Zauberfisch> no
892: [19:38:00] <Zauberfisch> http://paste2.org/0HFpgyh3/followup take this code
893: [19:38:00] <joko> ok
894: [19:38:00] <Zauberfisch> then run ?flush=1
895: [19:38:00] <Zauberfisch> and put it into the silverstripe-event-calendar / lang / de.yml file in your project
896: [19:38:00] <Zauberfisch> now you are
897: [19:38:00] <joko> ok?
898: [19:39:00] <Zauberfisch> yes
899: [19:39:00] <MiniZeka> me again... with never ending issues with GridField :(
900: [19:39:00] <joko> I replace the old de.yml content completely?
901: [19:39:00] <Zauberfisch> and do what you did before when you got that error
902: [19:40:00] <Zauberfisch> good, MiniZeka amuse us
903: [19:40:00] <MiniZeka> previous one was rather amusing
904: [19:40:00] <terryapodaca> Brain Fart!
905: [19:41:00] <joko> Now I get: [User Error] Uncaught InvalidArgumentException: Unable to parse string: Unable to parse line 2 (// Date Templating). GET /?flush=1
906: [19:41:00] <terryapodaca> I have a Contact Form that sends just fine...but I have a tab in my cms for a "Thank You" message...but when I redirect back...how do I display this message?
907: [19:41:00] <MiniZeka> but this one is killing me for over a day
908: [19:41:00] <MiniZeka> :)
909: [19:41:00] <Zauberfisch> MiniZeka good, you made it, I am amused
910: [19:41:00] <MiniZeka> ordering GF in ASC actually puts arrow in desc direction
911: [19:41:00] <MiniZeka> and vice versa
912: [19:42:00] <Zauberfisch> joko try this one http://paste2.org/Njzc2Ww0/followup
913: [19:42:00] <MiniZeka> something happens with response GF receives when sorting rows
914: [19:42:00] * zfmf has left #silverstripe
915: [19:42:00] * wmk quit (Quit: nice to meet you ;))
916: [19:42:00] <MiniZeka> and last column title (th) is replaced with filter
917: [19:43:00] <Zauberfisch> MiniZeka ss version?
918: [19:43:00] <MiniZeka> 3.0.5
919: [19:43:00] <Zauberfisch> MiniZeka are you doing any custom gridfield stuff? any components that are not core?
920: [19:44:00] <MiniZeka> maybe, and no
921: [19:44:00] <Zauberfisch> terryapodaca I usually do:
922: [19:45:00] <joko> Big improvement: I can see the backend again.
923: [19:46:00] <joko> But no calendar and no frontend
924: [19:46:00] <Zauberfisch> terryapodaca http://paste2.org/ACC4dFBx
925: [19:47:00] <MiniZeka> rows I want to show in GF are generated, not pulled directly from database
926: [19:47:00] <Zauberfisch> joko hmmm
927: [19:47:00] <MiniZeka> and no "not-core" components are used
928: [19:48:00] <joko> I get an 324 (net::ERR_EMPTY_RESPONSE):
929: [19:48:00] <MiniZeka> only GridFieldDataColumns, GridFieldPaginator and GridFieldSortableHeader
930: [19:49:00] <Zauberfisch> oh, I see
931: [19:49:00] * r3v3rb has joined #silverstripe
932: [19:49:00] <Zauberfisch> hmmm
933: [19:49:00] <Zauberfisch> never used arrayList with gridfiel
934: [19:49:00] <Zauberfisch> d
935: [19:49:00] <MiniZeka> this is response - screenshot taken from Network tab
936: [19:49:00] <MiniZeka> http://fotkica.com/slike.php?slika=1_71979112_result.PNG
937: [19:49:00] <MiniZeka> and when it gets appended to body
938: [19:49:00] <MiniZeka> I get this
939: [19:50:00] <MiniZeka> http://fotkica.com/slike.php?slika=1_71979112_result.PNG
940: [19:50:00] <Zauberfisch> same image
941: [19:50:00] <Zauberfisch> joko I need more context to go on
942: [19:50:00] <MiniZeka> yes
943: [19:50:00] <MiniZeka> that one is second - resulting code
944: [19:50:00] <MiniZeka> actual response is http://fotkica.com/slike.php?slika=1_71979112_response.PNG
945: [19:51:00] <joko> my apache error_log tells me that the zend_nm_heap is corrupted
946: [19:51:00] <terryapodaca> and setting a success flag of sorts
947: [19:51:00] <terryapodaca> Zauberfisch: that's GREAT! more simple than what I was about to try to do...especially with urlparams, etc
948: [19:53:00] <Zauberfisch> because I don't feel responsible for your corrupted zend_nm_heap
949: [19:53:00] <Zauberfisch> joko was this message adressed to me?
950: [19:54:00] <joko> sorry, yes, this is the context I found. The zend_nm_heap is corrupted, and I'm getting a 324 error when attempting to reach the frontend.
951: [19:54:00] <willmorgan> hey guys. i don't mean to spam, but dhensby and I have been doing some cool stuff with OAuth login and I was wondering if anyone wanted to give the module a try: https://github.com/BetterBrief/silverstripe-opauth
952: [19:54:00] <Zauberfisch> MiniZeka please excuse me, but I am to lazy to even try figure out what you are trying to tell me with those images
953: [19:55:00] <Zauberfisch> MiniZeka at my current state I am not motivated to think, you need to think for me and ask the questions in a way that I only need to answer :P
954: [19:55:00] <joko> ok, I will do that, too.
955: [19:55:00] <willmorgan> we're interested in improving the documentation, fixing any holes in the code and any extra features that other SS devs should be baked in instead of delegated back to you
956: [19:55:00] * simon_w quit (Quit: Leaving)
957: [19:56:00] <joko> I rebuild the database, I flushes=1 and I am in the backend. What should I do, to see the frontend again?
958: [19:56:00] <Zauberfisch> willmorgan I won't be able to test it for you, but I am glad someone is creating a good OAuth lib for silverstripe.
959: [19:57:00] <Zauberfisch> joko remove the module again, and see if the module is the reason for the error
960: [19:57:00] <Zauberfisch> keep it up!
961: [19:57:00] <MiniZeka> Zauberfisch first image (http://fotkica.com/slike.php?slika=1_71979112_response.PNG) - response from server, is HTML code that SHOULD display GridField. Second image (http://fotkica.com/slike.php?slika=1_71979112_result.PNG) is HTML code that IS displaying GridField. Red circles in both images mark pieces of code that SHOULD be the same, but it isn't.
962: [19:59:00] <MiniZeka> not only shows, but completely replaces last TH
963: [19:59:00] <Zauberfisch> ah, so that is just prove for your gridfield filter button that shows up in a row?
964: [19:59:00] <MiniZeka> Something happens between getting the response and adding it to HTML. Content of last TH tag is replaced for some reason.
965: [20:00:00] <Zauberfisch> all gridfield config that is
966: [20:00:00] <Zauberfisch> MiniZeka I want to see all your configs
967: [20:01:00] <Zauberfisch> (what config class, and what components
968: [20:01:00] <Zauberfisch> )
969: [20:02:00] <Zauberfisch> nice
970: [20:02:00] <willmorgan> that's what we're doing with our current client now
971: [20:02:00] <Zauberfisch> uih, thats pretty cool, so you would provide a facebook, google, openID auth module?
972: [20:02:00] <willmorgan> and then optionally add a third step where you add more info to your profile
973: [20:02:00] <willmorgan> Zauberfisch one of my goals is to make it possible to register on a site with a social provider/openid in about 2 clicks
974: [20:03:00] <joko> Zauberfisch: you got me, it's not the module but the line Director::set_environment_type("dev"); in my _config.php
975: [20:03:00] <Zauberfisch> I there are several such modules out there, but I am not sure if they even work
976: [20:04:00] <Zauberfisch> my guess is that if you set live mode the error is still there but its just not displayed
977: [20:04:00] <MiniZeka> Zauberfisch http://sspaste.com/paste/show/51841829b0ed9
978: [20:04:00] <Zauberfisch> are you sure it is that line causing the issue?
979: [20:04:00] <joko> I removed the module, rebuild, reflushed and still got the error.
980: [20:05:00] <joko> When I comment the line, the frontend shows again, when I uncomment I get a 324
981: [20:05:00] <Zauberfisch> MiniZeka find out what component is causing this issue
982: [20:06:00] <Zauberfisch> MiniZeka are you familiar with how to properly configure a gridfield?
983: [20:06:00] <MiniZeka> it seems that I'm not
984: [20:06:00] <MiniZeka> did I miss something?
985: [20:06:00] <Zauberfisch> joko language file fix is merge into the module btw: https://github.com/unclecheese/silverstripe-event-calendar/pull/3
986: [20:06:00] * r3v3rb quit (Quit: r3v3rb)
987: [20:07:00] * ralf_l quit (Remote host closed the connection)
988: [20:10:00] <joko> wow, that was fast!
989: [20:10:00] <Zauberfisch> yeah, I didn't even had to poke him
990: [20:11:00] <joko> I think it's the page type calendar and calendar event?
991: [20:11:00] <joko> I reintegrated the calendar, rebuild, reflushed and still see backend and frontend, but no calendar in backend
992: [20:15:00] <joko> well, it's not that easy: On creating a page of type 'Calendar' my backend dies, I can't see the page-tree, files or data Object Manager
993: [20:17:00] <joko> ok, the system automagically repaired itself, the calendar-page vanished from the site-tree but not from the menus
994: [20:19:00] <joko> I can find it through the filter but when I open it, the backend dies and must bei reloaded
995: [20:20:00] <Zauberfisch> MiniZeka no
996: [20:20:00] <Zauberfisch> but I want you to isolate what component creates this issue
997: [20:20:00] <Zauberfisch> a save start would be to do:
998: [20:21:00] <Zauberfisch> $gridField->getConfig()->removeComponentByType('GridFieldFilterHeader');
999: [20:21:00] <terryapodaca> if I am using customise(); why doesn't return $this->customise(array('Content' => $this->Message, 'ContestForm' => false));
1000: [20:21:00] <joko> So here are my questions: How can I access the calender page types? I once installed the old calender, could I still have remainings in my Database that cause these problems?
1001: [20:21:00] <terryapodaca> which Message is my DB field so the user can specify their own message from the CMS (Message Tab)
1002: [20:22:00] <joko> And how can I get rid of the zombie-calendar page that show up in my menus (frontend) but not in my backend (sitetree)
1003: [20:22:00] <terryapodaca> but it works with 'hard coded' message return $this->customise(array('Content' => 'Thank you for your submission and good luck!', 'ContestForm' => true));
1004: [20:22:00] <Zauberfisch> joko any error message? error logs? also check the firebug console for network errors
1005: [20:23:00] <terryapodaca> it shouldn't be
1006: [20:23:00] <Zauberfisch> terryapodaca my guess is, $this->Message is empty?
1007: [20:24:00] <terryapodaca> i have the message in the CMS
1008: [20:24:00] <Zauberfisch> first, use $this->data()->Message
1009: [20:24:00] <Zauberfisch> its cleaner if you ask me
1010: [20:24:00] <Zauberfisch> 2nd, are you sure you are on the right page?
1011: [20:25:00] <Zauberfisch> do: $this->data()->Message . $this->data()->ID or something
1012: [20:25:00] <Zauberfisch> so you see that it works
1013: [20:27:00] <joko> I got one from the re-working dev-mode (self-healing webservices are so confusing):[User Error] Couldn't run query: SELECT DISTINCT count(DISTINCT "CalendarDateTime"."ID") AS "0" FROM "CalendarDateTime" LEFT JOIN "CalendarAnnouncement" ON "CalendarAnnouncement"."ID" = "CalendarDateTime"."ID" WHERE ("CalendarID" = '43') AND ("CalendarDateTime"."ClassName" IN ('CalendarAnnouncement')) Column 'CalendarID' in where clause is ambiguous
1014: [20:27:00] <terryapodaca> weird, it works with $this->data()->Message
1015: [20:27:00] <terryapodaca> but not $this->Message
1016: [20:28:00] <Zauberfisch> terryapodaca maybe you have Message set on the controller as well
1017: [20:28:00] <joko> Maybe I should just delete the page manually
1018: [20:28:00] <Zauberfisch> so $this->Message access the controller
1019: [20:28:00] <joko> via phpmyadmin?
1020: [20:28:00] <Zauberfisch> $this->data()->Message accesses the model
1021: [20:29:00] <Zauberfisch> joko yes, delete it from SiteTree,SiteTree_Live,SiteTree_Versions,Page,Page_Live,Page_Versions,CaledarPage,CaledarPage_Live,CaledarPage_Versions
1022: [20:31:00] <joko> it's always the same ID?
1023: [20:34:00] * gumble quit (Ping timeout: 246 seconds)
1024: [20:35:00] <joko> Should I create a new page of type calendar?
1025: [20:35:00] <joko> ok, it's gone and I cannot work in dev mode anymore.
1026: [20:36:00] <joko> or is there another way to access the new calendar?
1027: [20:38:00] <Zauberfisch> always same id
1028: [20:38:00] <Zauberfisch> yes
1029: [20:39:00] <Zauberfisch> SELECT DISTINCT count(DISTINCT "CalendarDateTime"."ID") AS "0" FROM "CalendarDateTime" LEFT JOIN "CalendarAnnouncement" ON "CalendarAnnouncement"."ID" = "CalendarDateTime"."ID" WHERE ("CalendarID" = '43') AND ("CalendarDateTime"."ClassName" IN ('CalendarAnnouncement')) Column 'CalendarID' in where clause is ambiguous
1030: [20:39:00] <Zauberfisch> joko well, collect the errors
1031: [20:39:00] <joko> ok, a new page of type calendar recrashes the backend.
1032: [20:39:00] <willmorgan> terryapodaca: the reason why $this->Message doesn't work is because it's preset as a field on that class, iirc
1033: [20:39:00] <Zauberfisch> sounds like a bug in the module
1034: [20:40:00] <Zauberfisch> report it as issue on the github repo
1035: [20:40:00] <terryapodaca> Zauberfisch: makes sense...but it's all working now so I am not going to worry about it anymore...and THANKS for the idea to use a separate Action instead of URLParams/if/else statements in the template
1036: [20:41:00] <terryapodaca> willmorgan: I got it all worked out...works like a charm now
1037: [20:42:00] <joko> ok, I can post an issue, but basically the calendar works in other installations.
1038: [20:50:00] <Zauberfisch> joko different version there?
1039: [20:50:00] <Zauberfisch> how about you copy the code from there?
1040: [20:52:00] <joko> Then I rebuild the database and now I can create a Calendar page. The rest I will see...
1041: [20:52:00] <joko> ok, I fixed it, at least my actual problem: I had to delete the old databases and all the entries in the tables you listed.
1042: [20:59:00] <joko> Do you have any idea, why the dev mode is only working, when there is an error?
1043: [20:59:00] <joko> ok, calendar works and events work. All I have to do is adjust the css.
1044: [20:59:00] * seth__ quit (Ping timeout: 245 seconds)
1045: [20:59:00] <joko> Thank you for your help, Zauberfisch.
1046: [21:00:00] * pex__ has left #silverstripe
1047: [21:04:00] <Zauberfisch> joko hmm?
1048: [21:06:00] * UndefinedOffset quit (Read error: Connection reset by peer)
1049: [21:06:00] <joko> Well, no everything is working and when I unccoment the line Director::set_environment_type("dev"); in my mysite/_config.php the frontend crashes
1050: [21:07:00] <joko> But when there is an error like the one above, the dev mode is very verbose
1051: [21:10:00] <joko> I can live with that but I'm sure it's not normal so maybe a sign of a deeper problem?
1052: [21:20:00] <MiniZeka> I tried $gridField->getConfig()->removeComponentsByType('GridFieldFilterHeader'); already, but no luck
1053: [21:20:00] <MiniZeka> Zauberfisch: I have guest @ my house, so I may respond a little bit slower
1054: [21:21:00] <Zauberfisch> use a GridFieldConfig_Base
1055: [21:21:00] <Zauberfisch> MiniZeka then start from scratch
1056: [21:22:00] <Zauberfisch> there is not even a proper documentation
1057: [21:22:00] <Zauberfisch> MiniZeka no
1058: [21:22:00] <MiniZeka> is there a proper tutorial for GF?
1059: [21:23:00] <Zauberfisch> code is the best docs
1060: [21:23:00] <MiniZeka> (facepalm)
1061: [21:23:00] <MiniZeka> I used one from http://doc.silverstripe.org/framework/en/reference/grid-field
1062: [21:24:00] <MiniZeka> that code below GridFieldConfig header
1063: [21:24:00] <Zauberfisch> MiniZeka paste the newest code again
1064: [21:26:00] <MiniZeka> from where?
1065: [21:27:00] <MiniZeka> it's the same as one on http://sspaste.com/paste/show/51841829b0ed9
1066: [21:27:00] <Zauberfisch> the getCMSFields
1067: [21:28:00] <MiniZeka> it only has $gridField->getConfig()->removeComponentsByType('GridFieldFilterHeader'); below it
1068: [21:29:00] * terryapodaca has left #silverstripe
1069: [21:31:00] <Zauberfisch> MiniZeka http://paste2.org/9peXJk7M
1070: [21:36:00] <Zauberfisch> joko no idea
1071: [21:37:00] <joko> ok, thanks anyway for your heroic efforts in saving my calendar module.
1072: [21:38:00] <joko> I whish you a pleasant day/evening/night (at my place it's 11:38 pm )
1073: [21:39:00] <Zauberfisch> same here
1074: [21:39:00] <Zauberfisch> and same to you
1075: [21:42:00] * joko quit (Ping timeout: 245 seconds)
1076: [21:43:00] * mobiusnz has joined #silverstripe
1077: [21:45:00] * pex__ has joined #silverstripe
1078: [21:46:00] * mobiusnz quit (Client Quit)
1079: [22:01:00] * UncleCheese has joined #silverstripe
1080: [22:01:00] <UncleCheese> Has anyone invented a plugin that allows drag and drop on UploadField?
1081: [22:02:00] <pex__> but when i tried Object::add_extension('SiteConfig','Translatable') dev/build pass
1082: [22:02:00] <pex__> How should enable Translatable module? When I try just as the documentation Siteconfig :: add_extension ('Translatable') and SiteTree :: add_extension ('Translatable') I get the error "Missing argument for two Object :: add_extension"
1083: [22:03:00] <pex__> is this corect way to do this?
1084: [22:04:00] <pex__> is SS3.0.5
1085: [22:13:00] * UncleCheese quit (Quit: UncleCheese)
1086: [22:24:00] * Zauberfisch quit (Read error: Connection reset by peer)
1087: [22:28:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
1088: [22:32:00] * UncleCheese has joined #silverstripe
1089: [22:39:00] <UncleCheese> Object::add_extension() is deprecated.
1090: [22:39:00] <UncleCheese> pex__ Use the config layer for that
1091: [22:44:00] * Zauberfisch|idle has joined #silverstripe
1092: [22:53:00] <pex__> hi UC, can explain? Or drop some doc link?
1093: [22:54:00] * UncleCheese quit (Quit: UncleCheese)
1094: [22:55:00] * pex__1 has joined #silverstripe
1095: [22:55:00] * pex__1 has joined #silverstripe
1096: [22:55:00] * pex__1 has left #silverstripe
1097: [22:57:00] * joko has joined #silverstripe
1098: [22:57:00] * pex__ quit (Ping timeout: 252 seconds)
1099: [22:58:00] <joko> Hello (again), can someone please tell me how to change the language setting for the event calendar in silverstripe 3.x? I simply don't find it.
1100: [23:00:00] * pex__1 quit (Ping timeout: 248 seconds)
1101: [23:03:00] * pex__1 has joined #silverstripe
1102: [23:05:00] <MiniZeka> Zauberfisch|idle: tried that - but without sortable header
1103: [23:05:00] <MiniZeka> GF is pointless in this case
1104: [23:06:00] <MiniZeka> any other ideas? anyone?
1105: [23:06:00] <MiniZeka> and when I add GridFieldSortableHeader, same bug appears again
1106: [23:09:00] * pex__1 quit (Ping timeout: 252 seconds)
1107: [23:12:00] * joko quit (Ping timeout: 245 seconds)
1108: [23:46:00] * sminnee quit (Changing host)
1109: [23:46:00] * sminnee has joined #silverstripe
1110: [23:46:00] * sminnee has joined #silverstripe
1111: [23:57:00] * SightUnseen has joined #silverstripe

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