#silverstripe IRC Log

IRC log for 14 February 2013

All timestamps are in UTC.

1: [00:01:00] <chrisrio> hey does anyknow know what "sort order" is just "the order they sit in the sitetree" (eg the way theyre ordered in the CMS by the user)
2: [00:02:00] <simon_w> chrisrio, Sort
3: [00:02:00] <Pyromanik> works fine
4: [00:02:00] <Pyromanik> simon_w: yeh, DATE_ISO8601 :D
5: [00:03:00] <Pyromanik> catcher: $default_sort = 'Sort ASC, Created DESC'
6: [00:03:00] * liam has joined #silverstripe
7: [00:05:00] * liam quit (Read error: Connection reset by peer)
8: [00:06:00] <simon_w> Pyromanik, date('blah', strtotime('+1 day'))
9: [00:06:00] <Pyromanik> simon_w: how to date('now+1day') ?
10: [00:07:00] <Pyromanik> ta
11: [00:09:00] <spronk> sigh
12: [00:09:00] <spronk> in 2013, you'll be able to scroll a chrome web page while javascript is stuck in a loop.
13: [00:10:00] <Pyromanik> lol
14: [00:10:00] <Pyromanik> HOW ABOUT KILLING THE STUCK SCRIPT
15: [00:11:00] * catcher quit (Quit: Leaving)
16: [00:23:00] <Pyromanik> something no jsvm does atm
17: [00:24:00] <Pyromanik> afaik
18: [00:29:00] * Stomach has joined #silverstripe
19: [00:36:00] <pippy> hm, linux + SilverStripe + postgres = very slow
20: [00:37:00] <blindMoe> hehe you mean your linux setup
21: [00:37:00] <pippy> yes
22: [00:37:00] <pippy> are there tweaks i can use to speed it up?
23: [00:37:00] <blindMoe> do you ahve opcode cache enabled?
24: [00:38:00] <Pyromanik> nope
25: [00:38:00] <ss23> Is it postgres, or apache, or php, or network, or what?
26: [00:38:00] <blindMoe> I would recommend breaking it down to see where your bottleneck is
27: [00:38:00] <ss23> ^^
28: [00:38:00] <Pyromanik> apache, postgres, xcache?
29: [00:38:00] <ss23> pippy: Hard to know how to speed it up without knowing which part is slow
30: [00:38:00] <blindMoe> well I would hardly think to blame that on linux
31: [00:38:00] <pippy> vs on windows 1 sec or less
32: [00:38:00] <blindMoe> nice
33: [00:38:00] <pippy> it's taking 3 seconds + to generate a page
34: [00:39:00] <ss23> :D
35: [00:39:00] <Pyromanik> how much ramz?
36: [00:39:00] <ss23> 9999999x ramz
37: [00:39:00] <Pyromanik> etc
38: [00:39:00] <pippy> what profiler do you recomend?
39: [00:39:00] <pippy> php 5.4.*
40: [00:39:00] <blindMoe> what version of php are you running?
41: [00:39:00] <Pyromanik> so run a profiler
42: [00:39:00] * liam has joined #silverstripe
43: [00:39:00] <pippy> apache responds fast
44: [00:39:00] <Pyromanik> what, over 9000!?
45: [00:40:00] <Pyromanik> site/profielr or whatever (I think there's one built in isn't there simon_w?)
46: [00:40:00] <blindMoe> +t
47: [00:40:00] <blindMoe> brb
48: [00:40:00] * Colin[pi] quit (Ping timeout: 276 seconds)
49: [00:40:00] <blindMoe> hrmm.. well I only use silverstripe on a few sites now but on all of them I use static cache so page loads are instan
50: [00:41:00] <pippy> 24 1420.9950 ms (40.88 %) SSViewer::process
51: [00:41:00] <pippy> ?debug_profile=1
52: [00:41:00] <pippy> 1 709.5530 ms (20.41 %) all_execution
53: [00:42:00] <Pyromanik> lol
54: [00:42:00] <Pyromanik> are you flushing on every call?
55: [00:42:00] <pippy> no flushing takes longer
56: [00:42:00] <pippy> it seems every db call takes a 100ms +
57: [00:43:00] <pippy> is there some sort of postgres pre-cache
58: [00:43:00] <pippy> 108.2678 ms (3.11 %) obj.Content
59: [00:43:00] <pippy> it must be php -> postgres
60: [00:43:00] <FrozenFire> Where is your database?
61: [00:43:00] <Pyromanik> time to look at postgres then
62: [00:43:00] <Pyromanik> swap db backend
63: [00:43:00] <Pyromanik> test
64: [00:43:00] <Pyromanik> find otu
65: [00:43:00] <Pyromanik> out*
66: [00:43:00] <FrozenFire> The disk is the slowest part of systems nowadays.
67: [00:43:00] <pippy> the database is localhost
68: [00:43:00] <pippy> it's in a vm
69: [00:44:00] <pippy> i noticed on my win machine i'm using a newer version of postgres
70: [00:44:00] <FrozenFire> Huh
71: [00:44:00] <FrozenFire> Most caching that will benefit a database is kernel caching of disk contents
72: [00:45:00] * chillu quit (Quit: chillu)
73: [00:45:00] <FrozenFire> If you're running your database on a shitty spinny disk, you're going to have a slow time
74: [00:45:00] <FrozenFire> Especially if you have little memory
75: [00:45:00] <Pyromanik> oi
76: [00:45:00] <Pyromanik> spinny disks are good!
77: [00:46:00] <Pyromanik> strtotime("$mydate +1 day") ?
78: [00:46:00] <FrozenFire> $date->add(new DateInterval("P1D"));
79: [00:46:00] <FrozenFire> $date = new DateTime($stamp);
80: [00:46:00] <Pyromanik> what do/
81: [00:46:00] <Pyromanik> FrozenFire: I have a date
82: [00:46:00] <Pyromanik> it exists
83: [00:46:00] <Pyromanik> I want to add a day
84: [00:47:00] <Pyromanik> ok, sounds legit.
85: [00:47:00] <Pyromanik> do, or do not. There is no try.
86: [00:47:00] <FrozenFire> The good old college try
87: [00:47:00] <Pyromanik> no, maybe not the last one.
88: [00:47:00] <Pyromanik> a try
89: [00:47:00] <Pyromanik> a blast
90: [00:47:00] <Pyromanik> I'll give it a go
91: [00:48:00] <Pyromanik> and that's why Yoda can't play Rugby.
92: [00:48:00] <Pyromanik> ok I'm done.
93: [00:48:00] <FrozenFire> Yes there is.
94: [00:48:00] <Pyromanik> ball sport athletes tend to be exceptional, because they're good at catching
95: [00:49:00] <pippy> I'm using 8.4.13
96: [00:49:00] <pippy> pg_buffercache is not built in PostgreSQL 8.3 in Debian
97: [00:49:00] <pippy> that must be it
98: [00:49:00] <pippy> but pretty much the same thing
99: [00:50:00] <FrozenFire> pippy, Sfaik, pg_buffercache is just a debugging tool
100: [00:50:00] <FrozenFire> pippy, If you need special modules to make an application run without being shit, then you're doing something wrong.
101: [00:51:00] <FrozenFire> Do you have an opcode cache?
102: [00:51:00] <FrozenFire> And yes, I realize I just made a complete hypocrite of myself.
103: [00:51:00] <FrozenFire> :P
104: [00:51:00] <FrozenFire> Opcode cache is more important than some special database cache
105: [00:52:00] <BabySuperman> What is opcode cache vs special database cache?
106: [00:53:00] <FrozenFire> xcode?
107: [00:53:00] <Pyromanik> one caches database stuff, the other cashes opcodes.
108: [00:53:00] <Pyromanik> caches*
109: [00:53:00] <pippy> yeah, xcode is working
110: [00:53:00] <pippy> checked phpinfo()
111: [00:54:00] <Pyromanik> lol
112: [00:54:00] <FrozenFire> Then it'll use the default
113: [00:54:00] <pippy> it's commented out
114: [00:54:00] <pippy> i noticed in postgresql.conf i have #effective_cache_size = 128MB
115: [00:54:00] <Pyromanik> xcode?
116: [00:54:00] <Pyromanik> "I just added a text editor to my php.ini"
117: [00:54:00] <irogue> xcode?
118: [00:54:00] <Pyromanik> can't be very effective then can it :P
119: [00:54:00] <FrozenFire> Good.
120: [00:54:00] <pippy> xcache sorry
121: [00:54:00] <Pyromanik> xcache!
122: [00:54:00] <pippy> cache
123: [00:54:00] <FrozenFire> xcache?
124: [00:55:00] <FrozenFire> You should probably use about half of your total memory as an effective cache size
125: [00:56:00] <Pyromanik> that's... quite a bit.
126: [00:57:00] <FrozenFire> The application just uses that value to weight its caching algorithms
127: [00:57:00] <FrozenFire> No it's not
128: [00:57:00] <FrozenFire> But it'll *decide* whether to cache based on how much it thinks it has left.
129: [00:57:00] <Pyromanik> oic
130: [00:57:00] <FrozenFire> It'll use as much or as little memory as it needs to
131: [01:02:00] <pippy> hm, i enabled the postgres caching. Still no luck
132: [01:02:00] <pippy> 10 235.5747 ms (8.76 %) obj.Link
133: [01:02:00] <pippy> 1 123.7171 ms (4.60 %) DB::connect
134: [01:02:00] <pippy> 1 622.3869 ms (23.15 %) all_execution
135: [01:02:00] <pippy> 13 1407.8844 ms (52.37 %) SSViewer::process
136: [01:03:00] <FrozenFire> It is, so far as I'm aware, completely and totally equivalent.
137: [01:03:00] <Pyromanik> there's about half as many as control characters
138: [01:03:00] <pippy> i think it's the db connection object
139: [01:03:00] <Pyromanik> obj.link?
140: [01:03:00] <Pyromanik> FrozenFire: why is datetime's format string so retarded compared to date() ?
141: [01:03:00] <FrozenFire> Pyromanik, It is not
142: [01:04:00] <FrozenFire> Hehe
143: [01:04:00] <FrozenFire> http://www.php.net/manual/en/datetime.format.php
144: [01:04:00] <Pyromanik> not according to docs :<
145: [01:04:00] <Pyromanik> unless I'm confused about whatformat does
146: [01:04:00] <FrozenFire> format: Format accepted by date().
147: [01:04:00] <Pyromanik> oh
148: [01:04:00] <Pyromanik> oh
149: [01:04:00] <Pyromanik> that'd about do it
150: [01:04:00] <Pyromanik> dateinterval.format
151: [01:04:00] <Pyromanik> gg tabs, you win this round.
152: [01:05:00] <FrozenFire> When in doubt, you're wrong.
153: [01:05:00] <Pyromanik> yes
154: [01:10:00] <simon_w> pippy, that's calling Link from the template. The inbuilt profiler is shit. Don't use it.
155: [01:11:00] <Pyromanik> cool
156: [01:11:00] <simon_w> (it's even going aways)
157: [01:11:00] <Pyromanik> oh yeh
158: [01:12:00] * Emil_Blume quit (Quit: Leaving.)
159: [01:14:00] <Pyromanik> how to do it without datetime?
160: [01:14:00] <Pyromanik> FrozenFire: that question I asked before about datetime add a day
161: [01:15:00] <Pyromanik> (PHP 5 >= 5.3.0)
162: [01:15:00] <Pyromanik> date_add
163: [01:15:00] <Pyromanik> DateTime::add
164: [01:15:00] <simon_w> strtotime('+1 day', $stamp)
165: [01:15:00] <Pyromanik> wtb, wampserver module for 5.3
166: [01:15:00] <Pyromanik> mad
167: [01:15:00] <Pyromanik> that isn't 5.3.1
168: [01:16:00] <Pyromanik> oh cool thanks simon_w
169: [01:16:00] <FrozenFire> That'd be the procedural way of doing it, yes.
170: [01:16:00] <FrozenFire> Relative timestamps
171: [01:17:00] <Pyromanik> oh god
172: [01:17:00] <Pyromanik> strtotime all the things!~
173: [01:17:00] <Pyromanik> strtotime('+1 day', strtotime('datestring'))
174: [01:18:00] <FrozenFire> Just do it OOP. :P
175: [01:18:00] <FrozenFire> What's so hard about OOP?
176: [01:18:00] <FrozenFire> Good god, man.
177: [01:20:00] <Pyromanik> I'm updating an old site
178: [01:20:00] <Pyromanik> php5.2
179: [01:21:00] <Pyromanik> but local dev does :<
180: [01:21:00] * liam quit (Quit: liam)
181: [01:21:00] <Pyromanik> production no longer runs 5.2
182: [01:21:00] <FrozenFire> :|
183: [01:21:00] <Pyromanik> can't be arsed updating
184: [01:22:00] <FrozenFire> I hate you out of principle.
185: [01:23:00] <Pyromanik> OK!
186: [01:29:00] <BabySuperman> How do I check if a many_to_many relation already exists for an object?
187: [01:29:00] <FrozenFire> Why would you do that to the world?
188: [01:30:00] <simon_w> BabySuperman, first, if it does resist the join just gets updated, second $obj->rel()->find('ID', $otherObj->ID)
189: [01:30:00] <BabySuperman> i.e. before i add something to inventory, check that it doesn't already exist
190: [01:31:00] <BabySuperman> appreciate it
191: [01:31:00] <BabySuperman> simon_w, tyvm :)
192: [01:32:00] <BabySuperman> ah
193: [01:37:00] * liam__ has joined #silverstripe
194: [01:44:00] * priithansen quit (Quit: priithansen)
195: [01:49:00] * SightUnseen1 has joined #silverstripe
196: [01:50:00] * Pyromanik quit (Ping timeout: 256 seconds)
197: [01:50:00] * SightUnseen1 has left #silverstripe
198: [02:23:00] * tankr quit (Ping timeout: 256 seconds)
199: [02:25:00] * Pyromanik has joined #silverstripe
200: [02:29:00] * willr has joined #silverstripe
201: [02:29:00] * tankr has joined #silverstripe
202: [02:30:00] * markeaston has left #silverstripe
203: [02:33:00] <pippy> simon_w: why are are they removing the profiler? my co worker was very impressed when i showed it to him
204: [02:34:00] <Pyromanik> more, commas, in, my, sentence.
205: [02:34:00] <Pyromanik> it's a useful tool, but as far as profilers go, it's not a very good one, is what I think he means pippy
206: [02:34:00] <simon_w> *see
207: [02:34:00] <simon_w> pippy, seem comment about it being shit :)
208: [02:34:00] <pippy> and it helped me figure out what was wrong with it
209: [02:34:00] <pippy> will it be replaced, or removed all together
210: [02:34:00] <Pyromanik> removed I'd imageine.
211: [02:35:00] <simon_w> Removed
212: [02:35:00] <pippy> aw :(
213: [02:40:00] <simon_w> Home time!
214: [02:42:00] <FrozenFire> pippy, Have you tried xdebug?
215: [02:45:00] <pippy> nop
216: [02:46:00] <FrozenFire> Its profiler is the standard for PHP profiling.
217: [02:47:00] <FrozenFire> You can also do cumulative profiling, instead of just profiling one request.
218: [02:47:00] <FrozenFire> Enormously more powerful than anything an application can provide internally
219: [02:50:00] <Pyromanik> xdebug has a profiler?
220: [02:50:00] * chrisrio quit (Ping timeout: 245 seconds)
221: [02:51:00] <Pyromanik> (by that I mean it truncates long strings with "...")
222: [02:51:00] <Pyromanik> I just thought it made my var_dumps pretty (and useless if they're long)
223: [02:52:00] <Pyromanik> makes easier to read same way syntax highlighting and indents make code easier to read
224: [02:52:00] <ss23> Seriously hate that it messes with var_dump by default
225: [02:52:00] <ss23> It makes var_dump's impossible to read
226: [02:53:00] <ss23> The stack trace part is nice, but because of the weird places I do var_dumps, more often than not all that extra formatting is a hinderance
227: [02:54:00] <Pyromanik> sometimes I don't agree with ti's indentation
228: [02:54:00] <Pyromanik> and it really winds me up when I'm wanting to read a long string or some other object info (big object) and it truncates the info
229: [02:57:00] * liam__ quit (Quit: liam__)
230: [03:00:00] <FrozenFire> ss23, xdebug.overload_var_dump = 0
231: [03:01:00] <ss23> Hence: 15:53:07 < ss23> Seriously hate that it messes with var_dump by default
232: [03:01:00] <ss23> Yeah, I turned it off
233: [03:01:00] <FrozenFire> It's not like it's hardcoded on. :P
234: [03:01:00] <FrozenFire> http://xdebug.org/docs/display
235: [03:02:00] <FrozenFire> :P
236: [03:02:00] <ss23> If they're not, they're shit.
237: [03:02:00] <ss23> ^.^
238: [03:02:00] <ss23> Defaults should be exactly how I like them
239: [03:02:00] <FrozenFire> That sort of person probably likes having that feature.
240: [03:02:00] <FrozenFire> Defaults are for the sort of person who doesn't know how to change them.
241: [03:03:00] <Pyromanik> ah, brilliant.
242: [03:04:00] <FrozenFire> The data one can be a tad annoying when trying to debug some content
243: [03:04:00] <Pyromanik> max_children, max_data & max_depth
244: [03:04:00] <Pyromanik> turn that shit off
245: [03:04:00] <FrozenFire> Heh
246: [03:04:00] <FrozenFire> Those are some things that I both cherish and hate
247: [03:04:00] <Pyromanik> mmm
248: [03:05:00] <FrozenFire> But at the same time, nothing's worse than an accidental dump of a binary file 1MB in length
249: [03:06:00] <pippy> still havn't figured out why the latency is so high
250: [03:06:00] <Pyromanik> pippy: because no datas?
251: [03:06:00] <Pyromanik> err, ramos?
252: [03:08:00] <FrozenFire> And how much memory is the server allotted?
253: [03:08:00] * markeaston has joined #silverstripe
254: [03:08:00] <FrozenFire> pippy, What type of disk is it loading from?
255: [03:08:00] <Pyromanik> RAMos!
256: [03:10:00] <markeaston> Hi - a couple of weeks back I submitted a widget and haven't had any feedback at all. Anyone know how long these things usually take
257: [03:10:00] <Pyromanik> forever.
258: [03:10:00] <Pyromanik> no one uses widgets.
259: [03:10:00] <Pyromanik> markeaston: what was it?
260: [03:11:00] <markeaston> ok - that's easy then
261: [03:11:00] <Pyromanik> perhaps try tweeting @silverstripe to see what the go is
262: [03:11:00] <Pyromanik> it should still be put on the ss.org website thoguh
263: [03:11:00] <Pyromanik> hehe
264: [03:11:00] <markeaston> Was simply a newsletter sign up form so nothing particularly amazing
265: [03:12:00] <markeaston> Sure - this was a blog site
266: [03:12:00] <Pyromanik> Blog is the only thing that uses widgets. Not many people that I know of use them in normal pages.
267: [03:13:00] <Pyromanik> yeh
268: [03:14:00] <Pyromanik> by newsletter signup do you mean newsletter module, or a link off to a mailchip subscribe form?
269: [03:14:00] <Pyromanik> I feel that most people who use SS don't contribute much and stockpile their own personal resources
270: [03:14:00] <markeaston> You'd hope with the whole of Govt stuff that might get a little better.
271: [03:14:00] <Pyromanik> markeaston: yeh. We'll see.
272: [03:15:00] <Pyromanik> FrozenFire: yeh, sometimes.
273: [03:15:00] <FrozenFire> Pyromanik, Suppose it depends on what you mean by stockpile
274: [03:15:00] <Pyromanik> people love reinventing the wheel!
275: [03:15:00] <pippy> Pyromanik: I have heaps of little things i want to opensource
276: [03:15:00] <markeaston> No simply created records in the members table in a 'Newsletter group'
277: [03:15:00] <FrozenFire> They're usually design patterns, implemented the "SS way"
278: [03:15:00] <FrozenFire> There are a great many things which simply don't make sense to make into a module
279: [03:15:00] <Pyromanik> esp. when it comes to propietary business practice. Every manager wants to think they can offer something others don't.
280: [03:16:00] <Pyromanik> other times when a new feature gets released (like widgets) people go crazy and release a buttload of redundant and rubbish things that no one would ever use.
281: [03:16:00] <Pyromanik> iirc
282: [03:16:00] <Pyromanik> as what happened when 2.3 introduced widgets
283: [03:16:00] <markeaston> I was musing about releasing a single page website module also but when you don;t get response from submission it's a bit offputting
284: [03:17:00] <Pyromanik> markeaston: generally people do things over github these days
285: [03:17:00] <Pyromanik> just slam up a repo, done.
286: [03:17:00] <Pyromanik> also, SS.org is in a state of flux atm.
287: [03:17:00] <Pyromanik> it's being redesigned.
288: [03:17:00] <markeaston> Good call - well done for the widget anyway
289: [03:18:00] * markeaston has left #silverstripe
290: [03:21:00] * Stomach quit (Quit: Leaving.)
291: [03:26:00] * SightUnseen has joined #silverstripe
292: [03:27:00] * SightUnseen has left #silverstripe
293: [03:35:00] * Colin[pi] has joined #silverstripe
294: [03:39:00] * liam__ has joined #silverstripe
295: [03:40:00] * aznain has joined #silverstripe
296: [03:42:00] <aznain> I have has_many image in dataobject .. when i upload multiple images in UploadField, then while uploading thumbnail are getting disappeared after upload ...
297: [03:42:00] <aznain> how to show thumbnail of uploaded image in dataobject form
298: [03:44:00] <aznain> ???
299: [03:45:00] <tankr> aznain: you will probably need a function on your DO to return FirstImage or something like that to use in summary_fields
300: [03:51:00] <Pyromanik> because you're dragging and dropping
301: [03:51:00] <Pyromanik> but it doesn't exist
302: [03:51:00] <aznain> So what is the solution
303: [03:51:00] <Pyromanik> then when it's uploaded it tries to get the image you just uploaded
304: [03:51:00] <Pyromanik> browser is generating it's own thumbnail
305: [03:51:00] <Pyromanik> yes
306: [03:51:00] <aznain> tanker: I am not taking about summary_fields ... I am taking about uploadfield ... http://i.imgur.com/QMI8LOv.png
307: [03:51:00] <Pyromanik> aznain: you cannot
308: [03:51:00] <aznain> thumbnail are appearing for few seconds then are getting disappear
309: [03:52:00] <Pyromanik> has_many stores the relation on the target object
310: [03:52:00] <Pyromanik> ie, Image.
311: [03:52:00] <Pyromanik> if you're not setting the has_one there, it won't work.
312: [03:52:00] * markeaston has joined #silverstripe
313: [03:52:00] <aznain> hmmm
314: [03:52:00] <Pyromanik> so you need to either decorate image
315: [03:52:00] <Pyromanik> don't has_many
316: [03:52:00] <Pyromanik> because image doesn't has_one yourDataObject
317: [03:53:00] <aznain> yea subclass is better solution then ...
318: [03:53:00] <Pyromanik> or subclass it
319: [03:53:00] <Pyromanik> or wrap it in a data object like what Uncle Cheese used to do with the DataObject Manager
320: [03:57:00] <Pyromanik> aznain: if you subclass, how will you add existing images?
321: [03:57:00] * perverse quit (Ping timeout: 255 seconds)
322: [03:57:00] * perverse has joined #silverstripe
323: [04:01:00] * tankr quit (Quit: Leaving.)
324: [04:06:00] * Zauberfisch_ has joined #silverstripe
325: [04:09:00] * Zauberfisch quit (Ping timeout: 256 seconds)
326: [04:15:00] * Stomach has joined #silverstripe
327: [04:22:00] * DigNZ quit (Quit: DigNZ)
328: [04:22:00] * Pyromanik has left #silverstripe
329: [04:29:00] * cloph_away1 has joined #silverstripe
330: [04:30:00] * Stomach quit (Quit: Leaving.)
331: [04:30:00] * cloph_away quit (Ping timeout: 240 seconds)
332: [05:07:00] * dendeffe has joined #silverstripe
333: [05:07:00] * markeaston has left #silverstripe
334: [05:09:00] * tankr has joined #silverstripe
335: [05:10:00] * Luke1988 has joined #silverstripe
336: [05:11:00] * tankr has left #silverstripe
337: [05:11:00] <Luke1988> long time no see
338: [05:11:00] <Luke1988> Hello everyone.
339: [05:13:00] <Luke1988> question? my first time using SS3 and i have a swf file i need to put on a page. it will upload but i think something is very wrong i.e. it does not work
340: [05:35:00] * liam__ quit (Quit: liam__)
341: [05:40:00] * liam__ has joined #silverstripe
342: [05:46:00] * Colin[pi] quit (Ping timeout: 256 seconds)
343: [06:30:00] * howardgrigg has joined #silverstripe
344: [06:31:00] <aznain> Pyromanik: Sorry! I went away from work ... I have not add real images yet ... just testing around
345: [06:34:00] * SightUnseen has left #silverstripe
346: [06:34:00] * SightUnseen has joined #silverstripe
347: [06:40:00] * aznain quit (Ping timeout: 245 seconds)
348: [06:44:00] * dendeffe quit (Quit: dendeffe)
349: [06:46:00] * priithansen has joined #silverstripe
350: [06:59:00] * liam__ quit (Quit: liam__)
351: [07:05:00] * liam__ has joined #silverstripe
352: [07:08:00] * willr_ has joined #silverstripe
353: [07:08:00] * willr_ has joined #silverstripe
354: [07:08:00] * willr_ quit (Changing host)
355: [07:19:00] * dendeffe has joined #silverstripe
356: [07:19:00] <ss23> Happy Valentines, simon_w <3
357: [07:22:00] <ajshort> simon_w: you are a hard taskmaster
358: [07:22:00] * ajshort has joined #silverstripe
359: [07:27:00] <willr_> a little power goes to the head
360: [07:29:00] * liam__ quit (Read error: Connection reset by peer)
361: [07:32:00] <ss23> lol
362: [07:37:00] * guci0 has joined #silverstripe
363: [07:37:00] <guci0> MOrning
364: [07:38:00] <ss23> moin moin
365: [07:53:00] * chillu has joined #silverstripe
366: [07:55:00] <ajshort> simon_w: you can merge pull requests now?
367: [08:01:00] * dendeffe quit (Quit: dendeffe)
368: [08:02:00] <ajshort> in that case I have some work for you :)
369: [08:03:00] <travis-ci> [travis-ci] silverstripe/sapphire#1380 (3.1 - be8482a : Simon Welsh): The build has errored.
370: [08:03:00] * travis-ci has joined #silverstripe
371: [08:03:00] * travis-ci has left #silverstripe
372: [08:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4787667
373: [08:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/54237d5b103d...be8482aa7372
374: [08:06:00] * hschippe has joined #silverstripe
375: [08:07:00] * howardgrigg quit (Remote host closed the connection)
376: [08:08:00] * iwanvdw has joined #silverstripe
377: [08:10:00] * hschippe quit (Client Quit)
378: [08:13:00] * howardgrigg has joined #silverstripe
379: [08:14:00] * iwanvdw quit (Quit: Page closed)
380: [08:15:00] * g4b0 has joined #silverstripe
381: [08:18:00] * howardgrigg quit (Remote host closed the connection)
382: [08:19:00] * howardgrigg has joined #silverstripe
383: [08:23:00] * howardgrigg quit (Ping timeout: 256 seconds)
384: [08:38:00] * Liquide has joined #silverstripe
385: [08:43:00] * Colin[pi] has joined #silverstripe
386: [08:57:00] * willr_ quit (Quit: willr_)
387: [09:00:00] * zfmf has joined #silverstripe
388: [09:12:00] * ARNHOFF has joined #silverstripe
389: [09:14:00] * kinglozzer has joined #silverstripe
390: [09:19:00] * Colin[pi] quit (Ping timeout: 256 seconds)
391: [09:23:00] * dendeffe has joined #silverstripe
392: [09:36:00] * liam has joined #silverstripe
393: [09:38:00] * lx-berlin has joined #silverstripe
394: [09:46:00] * Colin[pi] has joined #silverstripe
395: [09:53:00] <lx-berlin> ajshort: i found out that the GridFieldOrderableRows only works for has_many lists, if the existing records have different SortOrder values. But when i add new records, they always get a value of sortOrder=3 by default. Then they all have a value of 3 and sorting is no more possible. I fixed this by changing the SortOrder in onAfterWrite. But maybe the module itself should set the value to a higher number with each added record
396: [09:54:00] <ajshort> lx-berlin: it works for me currently
397: [09:54:00] * dendeffe quit (Quit: dendeffe)
398: [09:54:00] <ajshort> what db type are you using?
399: [09:54:00] <lx-berlin> ok
400: [09:54:00] <lx-berlin> hmm
401: [09:55:00] <lx-berlin> just a second
402: [09:56:00] <lx-berlin> ok, the default of 3 was probably my bad :) public static $db = array('Priority' => 'Int(3)'
403: [09:57:00] <ajshort> that would be an issue
404: [09:57:00] <lx-berlin> i though Int(3) means -999 to 999 but now i see its the default
405: [09:57:00] <ajshort> you'll probably need to set that column to 0 to get it to work
406: [09:58:00] <lx-berlin> ok, i will try it now
407: [09:58:00] <ajshort> only when you sort things
408: [09:58:00] <lx-berlin> and then SortOrder will be set to a higher number automatically with each added record ?
409: [09:58:00] <ajshort> if you want it to be done on create, you need to populate the values in onBeforeWrite
410: [09:59:00] <lx-berlin> i did in on afterWrite because in onBeforeWrite i didnt get the assigned TeamPage
411: [10:00:00] <ajshort> why does that matter?
412: [10:01:00] <lx-berlin> I did: When i add a new Team, i check in onAfterWrite all other Team that already belong to this TeamPage and check which has the highest Priority so far, then do a db::query to update the priority of the new added item (highest_so_far+1)
413: [10:02:00] <ajshort> do it in onBeforeWrite and set it globally
414: [10:02:00] <lx-berlin> but you say, that its no problem that each new added record gets Priority=0. Sorting is still prossible . right ?
415: [10:04:00] <ajshort> the sort values are populated before a sort is performed
416: [10:04:00] <ajshort> yep
417: [10:04:00] <lx-berlin> i will check this by setting all priorityies to 0 in phpmyadmin now
418: [10:06:00] * Luke1988 quit (Ping timeout: 257 seconds)
419: [10:09:00] <lx-berlin> haha, now it works. If you have 3 records, each with a priority of 0, sorting works fine. But if you have all (accidentally) with a value of 3, sorting is no more possible
420: [10:10:00] <lx-berlin> thanks
421: [10:11:00] * Luke1988 has joined #silverstripe
422: [10:12:00] * ivoba has joined #silverstripe
423: [10:15:00] * Emil_Blume has joined #silverstripe
424: [10:21:00] <Zauberfisch_> hey ajshort
425: [10:21:00] <Zauberfisch_> you created a gridfield sorting component, right?
426: [10:22:00] <lx-berlin> yes
427: [10:24:00] <lx-berlin> https://github.com/ajshort/silverstripe-gridfieldextensions
428: [10:24:00] <Zauberfisch_> ajshort have you also taken a look at https://github.com/UndefinedOffset/SortableGridField ?
429: [10:24:00] <Zauberfisch_> it appears we have 2 modules both trying to do the same thing
430: [10:25:00] <lx-berlin> (i like the one from ajshort, because this module is a bundle of many extensions for the grid)
431: [10:26:00] <lx-berlin> i guess he is trying to find the bug, why sorting in has_many doesnt work if some records have the same priority
432: [10:27:00] <liam> I have a custom leftandmain but it is not showing for my users in the cms menu??? it must be to do with permissions. any ideas how to specify permissions or automatically show a leftandmain?
433: [10:28:00] <lx-berlin> noob question: is getCMSFields_forPopup still used anywhere in SS3 ?
434: [10:34:00] * SightUnseen has joined #silverstripe
435: [10:38:00] <lx-berlin> i see a couple of google search results for "GridFieldPopupForms". It sounds interesting? But does it still exist or was it maybe replaced by GridFieldDetailForm ?
436: [10:39:00] <lx-berlin> *dont like
437: [10:39:00] <Zauberfisch_> lx-berlin no, i don't think so
438: [10:39:00] <Zauberfisch_> the gridfield uses getCMSFields()
439: [10:39:00] <lx-berlin> yes, thats what i dont link for many_many edit buttons :)
440: [10:41:00] <lx-berlin> so i guess GridFieldPopupForms and getCMSFields_forPopup are history
441: [10:42:00] <lx-berlin> ok, time to install some windows updates :)
442: [10:44:00] <Zauberfisch_> liam I think there should be an additional checkbox for permission in the securty admin
443: [10:46:00] <liam> Zauberfisch_: thanks I managed to work it out??? By default LeftAndMain checks for the permission "CMS_ACCESS_LeftAndMain" but you can specify your own for individual implementations with the $required_permission_codes array
444: [10:47:00] * lx-berlin has left #silverstripe
445: [10:47:00] * Unlearned has joined #silverstripe
446: [10:47:00] * SightUnseen quit (Ping timeout: 256 seconds)
447: [10:50:00] * lx-berlin has joined #silverstripe
448: [11:05:00] * dendeffe has joined #silverstripe
449: [11:08:00] <ajshort> Zauberfisch_: yes I have seen it
450: [11:09:00] <ajshort> lx-berlin: i don't see two records having the same priority as a bug - it shouldn't happen
451: [11:09:00] <Zauberfisch_> ajshort stupid question, have you tried the other one, and which one is better?
452: [11:10:00] <ajshort> yes
453: [11:10:00] <ajshort> mine :)
454: [11:11:00] <ajshort> I prefer the way mine is implemented
455: [11:11:00] <ajshort> but i may be biased
456: [11:12:00] * Luke1988 quit (Quit: Leaving)
457: [11:12:00] * SightUnseen has joined #silverstripe
458: [11:13:00] * k2h has joined #silverstripe
459: [11:17:00] <Zauberfisch_> ajshort ay, then I should take a look at yours in future
460: [11:17:00] <lx-berlin> ajshort: i guess thats correct
461: [11:18:00] <Zauberfisch_> I was unaware of your module until recently someone pointed it out here in irc
462: [11:19:00] <ajshort> it's quite recent
463: [11:25:00] * SightUnseen quit (Ping timeout: 260 seconds)
464: [11:27:00] <k2h> i have trouble using silverstripe-translatable module
465: [11:27:00] <k2h> hey guys
466: [11:28:00] <k2h> becouse it's not working
467: [11:28:00] <k2h> i can't use it on DataObject's
468: [11:28:00] <k2h> can't create new translation for custom dataobject
469: [11:29:00] <k2h> it looks like the "Create" button has the "name" attribute: action_createtranslation
470: [11:29:00] <k2h> I think I found the problem,
471: [11:29:00] <k2h> but when you press it nothing happens
472: [11:30:00] <k2h> i included manualy translatable/javascript/CMSMain.Translatable.js to my DO
473: [11:30:00] <k2h> still not working
474: [11:31:00] <k2h> maybe it's not posible to use this translation module on custom DataObjects?
475: [11:33:00] * liam quit (Quit: liam)
476: [11:35:00] <k2h> this issue is registered on https://github.com/silverstripe/silverstripe-translatable/issues/55 and closed but no solution given
477: [11:39:00] <ajshort> it's not closed
478: [11:40:00] <k2h> but there is some issue with custom dataobject
479: [11:41:00] <k2h> because i dont know if im doing something wrong or it's not posible to use translation on data object's
480: [11:42:00] <k2h> in _config.php i use Object::add_extension('MyDataObject', 'Translatable');
481: [11:43:00] * k2h_ has joined #silverstripe
482: [11:43:00] <lx-berlin> k2h: We used to do the same thing in some ss2.4 projects and it worked. But i dont know if there is a problem in ss3
483: [11:44:00] * k2h quit (Changing host)
484: [11:44:00] * k2h quit (Disconnected by services)
485: [11:44:00] <k2h> hm im using 3.0.3
486: [11:44:00] * k2h_ is now known as k2h
487: [11:44:00] * k2h has joined #silverstripe
488: [11:45:00] <lx-berlin> Object::add_extension('SiteConfig', 'Translatable');
489: [11:45:00] <lx-berlin> this is from a 2.4 project: Object::add_extension('SiteTree', 'Translatable');
490: [11:45:00] <lx-berlin> then i dont know
491: [11:45:00] <k2h> 'News' is dataobject
492: [11:45:00] <lx-berlin> worked without problems
493: [11:45:00] * Colin[pi] quit (Ping timeout: 276 seconds)
494: [11:45:00] <lx-berlin> Object::add_extension('Download', 'Translatable');
495: [11:45:00] <lx-berlin> Object::add_extension('Downloadkategorie', 'Translatable');
496: [11:45:00] <lx-berlin> Object::add_extension('Teaser', 'Translatable');
497: [11:45:00] <lx-berlin> Object::add_extension('News', 'Translatable');
498: [11:46:00] <lx-berlin> what do you mean?
499: [11:46:00] <k2h> and how it looks maybe you cant paste source
500: [11:46:00] <lx-berlin> News, teaser, ... were DataObjects
501: [11:46:00] <k2h> can*
502: [11:47:00] <k2h> News dataobject looks like any other right?
503: [11:47:00] <k2h> ok
504: [11:47:00] <k2h> functions similar onBeforeWrite
505: [11:47:00] <lx-berlin> no
506: [11:47:00] <k2h> no special lines needed
507: [11:48:00] <lx-berlin> so probably its just not working for ss3
508: [11:49:00] <k2h> for create new translations
509: [11:49:00] <k2h> there is tab
510: [11:49:00] <k2h> i see tables are created
511: [11:49:00] <k2h> yep
512: [11:50:00] <k2h> just Create button dont work
513: [11:51:00] <k2h> when i include it manualy
514: [11:51:00] <k2h> becouse there is no CMSMain.Translatable.js included
515: [11:51:00] * SightUnseen has joined #silverstripe
516: [11:52:00] <k2h> and press Create button i got error 404 Not Found
517: [11:55:00] <lx-berlin> k2h: i guess you want to build a multilanguage website
518: [11:56:00] <lx-berlin> do you need to add new languages in the cms ? if you know which languages you need you could also add a column for each language to the dataobjects
519: [11:56:00] <lx-berlin> do you really need this module?
520: [11:57:00] <lx-berlin> so not one record for each language, but one additional column for each property that must be translated
521: [11:58:00] <lx-berlin> anyway, i need to leave
522: [11:59:00] * jcwacky has joined #silverstripe
523: [11:59:00] <lx-berlin> i really love firephp, but try to fb::log($grid); its just not possible. it kills your firefox. too bad
524: [12:02:00] <k2h> yes i can do this manualy by hand
525: [12:02:00] <k2h> and set different locale
526: [12:02:00] <k2h> create records in db
527: [12:03:00] <k2h> langs working only on sitetree and siteconfig
528: [12:03:00] <k2h> website has 3 langs
529: [12:03:00] <jcwacky> What's the correct way to remove a field using the updateCMSFields method?
530: [12:04:00] * SightUnseen quit (Ping timeout: 264 seconds)
531: [12:23:00] <priithansen> k2h: https://github.com/bummzack/translatable-dataobject < that is quite useful extension if You plan on going the horizontal route with translatable dataobjects
532: [12:29:00] <k2h> i can say it's very messy
533: [12:29:00] <k2h> i tried this
534: [12:30:00] * SightUnseen has joined #silverstripe
535: [12:31:00] <priithansen> well yeah that's the point of that module
536: [12:31:00] <k2h> it create multiple fields like Title__en_US Content__en_US Title__ru_RU etc..
537: [12:31:00] <k2h> hard to use later
538: [12:32:00] <k2h> no need module to do that i cant put several fields with different names and get same results
539: [12:33:00] <k2h> i was hoping to fix translatable module
540: [12:33:00] <priithansen> true the module just makes managing that simpler and adds preview fields to show original translation, bits like that
541: [12:34:00] <k2h> for now i found that when you press Create new translate javascript post parent form
542: [12:34:00] <priithansen> that would be cool
543: [12:35:00] <k2h> on sitetree EditForm
544: [12:35:00] <k2h> and i think form name must be EditForm becouse if other name is passed i get error 404 not found
545: [12:35:00] <k2h> on data object ItemEditForm
546: [12:36:00] <k2h> maybe this is the catch
547: [12:36:00] <priithansen> hmhm i'm not terribly familiar with the inner workings of translatable sorry
548: [12:37:00] <k2h> me2 =]
549: [12:43:00] * SightUnseen quit (Ping timeout: 252 seconds)
550: [13:06:00] * EPIK quit (Ping timeout: 276 seconds)
551: [13:10:00] * SightUnseen has joined #silverstripe
552: [13:11:00] * UndefinedOffset has joined #silverstripe
553: [13:23:00] * SightUnseen quit (Ping timeout: 255 seconds)
554: [13:28:00] * travis-ci has joined #silverstripe
555: [13:28:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/be8482aa7372...fc16810e9a68
556: [13:28:00] <travis-ci> [travis-ci] silverstripe/sapphire#1381 (3.1 - fc16810 : Julian Seidenberg): The build passed.
557: [13:28:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4792510
558: [13:28:00] * travis-ci has left #silverstripe
559: [13:35:00] * travis-ci has joined #silverstripe
560: [13:35:00] * travis-ci has left #silverstripe
561: [13:35:00] <travis-ci> [travis-ci] silverstripe/sapphire#1382 (3.1 - f931b8d : Julian Seidenberg): The build passed.
562: [13:35:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fc16810e9a68...f931b8d3264e
563: [13:35:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4792519
564: [13:41:00] * ec8or quit (Ping timeout: 248 seconds)
565: [13:44:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/e249799e9a95^...10199f908a07
566: [13:44:00] * travis-ci has joined #silverstripe
567: [13:44:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4792810
568: [13:44:00] * travis-ci has left #silverstripe
569: [13:44:00] <travis-ci> [travis-ci] chillu/sapphire#58 (pulls/augment-lazy-versioned - 10199f9 : Julian Seidenberg): The build passed.
570: [13:47:00] <jcwacky> Is it possible to remove a field from within the updateCMSFields method of an extended page type?
571: [13:47:00] <jcwacky> removeFieldFromTab doesn't seem to work.
572: [13:50:00] * SightUnseen has joined #silverstripe
573: [13:52:00] <priithansen> jcwacky: $fields->removeByName('Content');
574: [13:53:00] <jcwacky> Tried that too.
575: [13:53:00] <jcwacky> I have a page type NewsArticle, which is extended using CustomNewsType.
576: [13:53:00] <priithansen> then you must have something else wrong in your code
577: [13:54:00] <jcwacky> in updateCMSFields in CustomNewsArticle, I can successfully remove fields that come from Page.php such as Title & Content
578: [13:54:00] <jcwacky> sorry, * CustomNewsArticle
579: [13:55:00] <jcwacky> actually, I mean fields from SiteTree I think.
580: [13:55:00] <jcwacky> it's a field in Page.php that I'm trying to remove.
581: [13:56:00] <jcwacky> unless the remove line is actually in that file.
582: [13:56:00] <priithansen> let me try
583: [13:56:00] <jcwacky> and it won't let me.
584: [13:56:00] <jcwacky> I can't seem to remove fields from NewsArticle either.
585: [13:57:00] <kinglozzer> Wow, we just got a website lead from the SilverStripe showcase page!
586: [13:58:00] <priithansen> jcwacky: field defined in Page.php can be removed in NewsArticle.php getCMSFields method without a problem here
587: [13:59:00] <jcwacky> I'm frying to remove it from updateCMSFields in CustomNewsArticle which is an extension of NewsArticle.
588: [13:59:00] <jcwacky> yep, that works fine.
589: [13:59:00] <jcwacky> *trying
590: [14:02:00] <jcwacky> so I've got a BannerImage added in Page.php, which I'm trying to remove in CustomNewsArticle.php
591: [14:02:00] * SightUnseen quit (Ping timeout: 244 seconds)
592: [14:04:00] <priithansen> and butting this in CustomNewsArticle http://www.sspaste.com/paste/show/511ceed613c82 < does not work?
593: [14:08:00] <kinglozzer> jcwacky: Just wondering, why are you using updateCMSFields() instead of getCMSFields() if it's not a DataExtension?
594: [14:10:00] <jcwacky> it is a DataExtension.
595: [14:11:00] <k2h> public function getCMSFields() {
596: [14:11:00] <k2h> try using
597: [14:11:00] <k2h> $fields = parent::getCMSFields();
598: [14:11:00] <jcwacky> priithansen: Nope, fraid not.
599: [14:12:00] <k2h> then $fields->removeByName('Content');
600: [14:12:00] <ajshort> jcwacky: the extension is called in the parent::getCMSFields() method, so when it's called the bannerimage field has not yet been added
601: [14:12:00] <ajshort> the solution is to call ->extend('updateCMSFields', $fields) yourself at the end of your getCMSFields method
602: [14:13:00] <jcwacky> ahh
603: [14:16:00] <jcwacky> sorry, which getCMSFields should I call ->extend in? Page.php NewsArticle.php or CustomNewsArticle.php ?
604: [14:18:00] <kinglozzer> jcwacky: IN whichever one you want to remove the field from
605: [14:19:00] <jcwacky> and I understand why, so thanks for your help!
606: [14:19:00] <jcwacky> $this->extend('updateCMSFields', $fields); at the end of getCMSFields in Page.php did the trick.
607: [14:19:00] <jcwacky> Ah bingo, got it!
608: [14:22:00] * irogue quit ()
609: [14:23:00] * PigeonFriend quit (Ping timeout: 260 seconds)
610: [14:24:00] * PigeonFriend has joined #silverstripe
611: [14:30:00] * SightUnseen has joined #silverstripe
612: [14:37:00] * ajshort quit (Quit: Leaving)
613: [14:43:00] * SightUnseen quit (Ping timeout: 256 seconds)
614: [15:08:00] <g4b0> $field = new DatetimeField('CreationDate');
615: [15:08:00] <g4b0> I'm having an issue with DatetimeField
616: [15:08:00] <g4b0> $field->setConfig('datavalueformat', 'dd/MM/YYYY HH:mm:ss'); // global setting
617: [15:08:00] <g4b0> $field->getTimeField()->setConfig('showdropdown', true);
618: [15:08:00] <g4b0> $field->getDateField()->setConfig('showcalendar', 1); // field-specific setting
619: [15:08:00] <g4b0> it simply doesn't save the time
620: [15:08:00] <g4b0> it just works fine with the date...
621: [15:08:00] <g4b0> hao can I solve?
622: [15:08:00] <g4b0> how*
623: [15:10:00] * SightUnseen has joined #silverstripe
624: [15:12:00] <ARNHOFF> do you have DateTime as db?
625: [15:24:00] * SightUnseen quit (Ping timeout: 255 seconds)
626: [15:29:00] <g4b0> I'm using a 3.1.0-beta1
627: [15:29:00] <g4b0> yes
628: [15:29:00] <g4b0> I think I've solved...
629: [15:30:00] <g4b0> and it works
630: [15:30:00] <g4b0> now I've sync'd it with the lastest development release
631: [15:30:00] * ivoba quit (Quit: Leaving)
632: [15:33:00] * catcher has joined #silverstripe
633: [15:36:00] * BabySuperman quit (Ping timeout: 255 seconds)
634: [15:50:00] * SightUnseen has joined #silverstripe
635: [15:57:00] <jcwacky> Ok, here's an interesting one, when I create a new user on my site, they are unable to login until they have their password reset.
636: [15:57:00] <jcwacky> It just says "That doesn't seem to be the right e-mail address or password." despite using the exact e-mail and password that was just used to create their account.
637: [15:58:00] <jcwacky> Any ideas?
638: [15:58:00] <jcwacky> This happens both with accounts created through the front end register form, and via Security in the CMS.
639: [16:00:00] * Colin[pi] has joined #silverstripe
640: [16:04:00] * SightUnseen quit (Ping timeout: 264 seconds)
641: [16:06:00] <priithansen> I think maybe it is platform dependent or something
642: [16:06:00] <jcwacky> and very annoying!
643: [16:06:00] <jcwacky> interesting
644: [16:06:00] <priithansen> jcwacky: this has come up here before http://open.silverstripe.org/ticket/8195
645: [16:07:00] <jcwacky> let me try on a different site on the same server.
646: [16:07:00] * catcher quit (Remote host closed the connection)
647: [16:08:00] <jcwacky> ah
648: [16:08:00] <jcwacky> so you're right does look like it's to do with the platform.
649: [16:08:00] <jcwacky> but it works locally
650: [16:08:00] <jcwacky> it's not working on a completely separate site.
651: [16:10:00] * k2h has left #silverstripe
652: [16:10:00] <priithansen> One thing that has always been the case with my sites is that after coping them from local osx mamp to my production server I have to reset all passwords because they no longer work
653: [16:10:00] <jcwacky> oh, I've never had that, I use MAMP too.
654: [16:11:00] * Nivery has joined #silverstripe
655: [16:14:00] * catcher has joined #silverstripe
656: [16:14:00] <isidro> hello
657: [16:14:00] * isidro has joined #silverstripe
658: [16:14:00] * dendeffe quit (Quit: dendeffe)
659: [16:15:00] <isidro> I can put you a question?
660: [16:16:00] <isidro> what field type should I use in a Dataobject in SS?
661: [16:16:00] <isidro> I'm working in a mobile app that needs to synchro with a SS database. My data in client uses guid (globally unique identifier)
662: [16:21:00] <zfmf> isidro: http://doc.silverstripe.org/framework/en/topics/data-types
663: [16:25:00] <isidro> I can't see a direct address to this type of fields
664: [16:25:00] <isidro> thank's, I've already studied this resource
665: [16:26:00] <isidro> In your experience would you suggest using chars to store guids? Is it possible to change the regular ID (int) to ID (guid) in SS
666: [16:28:00] * zfmf has left #silverstripe
667: [16:30:00] * SightUnseen has joined #silverstripe
668: [16:39:00] * isidro quit (Ping timeout: 245 seconds)
669: [16:40:00] * Emil_Blume quit (Ping timeout: 252 seconds)
670: [16:44:00] * SightUnseen quit (Ping timeout: 245 seconds)
671: [16:59:00] * kinglozzer quit (Remote host closed the connection)
672: [17:01:00] * g4b0 quit (Quit: Sto andando via)
673: [17:11:00] <jcwacky> It was a bug in Uncle Cheese's Dashboard module
674: [17:11:00] <jcwacky> priithansen: Finally got to the bottom of the unable to login until change password issue.
675: [17:11:00] * SightUnseen has joined #silverstripe
676: [17:11:00] <priithansen> :)
677: [17:11:00] <jcwacky> that actually appears to have been fixed a couple of weeks ago!
678: [17:12:00] <jcwacky> it was encrypting the password twice.
679: [17:13:00] <priithansen> And you didn't have the dashboard installed in local machine when tested?
680: [17:14:00] <jcwacky> it is installed. chance it may have been a newer version.
681: [17:14:00] <jcwacky> I'll check
682: [17:21:00] <priithansen> :)
683: [17:21:00] <priithansen> sounds like fun times
684: [17:21:00] <jcwacky> strange, the local version of dashboard didn't have the bug fix in it, but when I downloaded the version which I did have the bug with and overwrote it, the issue started happening locally.
685: [17:22:00] <jcwacky> oh well, glad I got it sorted!
686: [17:22:00] <jcwacky> and found a bug in 3.1 during it all too I think.
687: [17:24:00] <priithansen> http://open.silverstripe.org/
688: [17:24:00] * SightUnseen quit (Ping timeout: 256 seconds)
689: [17:51:00] * SightUnseen has joined #silverstripe
690: [17:53:00] * lx-berlin has left #silverstripe
691: [17:54:00] * lx-berlin has left #silverstripe
692: [17:54:00] * lx-berlin has joined #silverstripe
693: [18:02:00] * Nivery quit (Quit: Nivery)
694: [18:03:00] <FrozenFire> Well that's an interesting bug...
695: [18:04:00] <FrozenFire> Somehow a method that has a very clearly defined output is producing an UnsavedRelationList that doesn't want to be mapped.
696: [18:04:00] * jcwacky has joined #silverstripe
697: [18:04:00] * jcwacky quit (Read error: Connection reset by peer)
698: [18:05:00] * SightUnseen quit (Ping timeout: 252 seconds)
699: [18:09:00] <priithansen> How can i get last five images to theme? $images = Image::get()->limit(5); \\ return $this->customise($images)->renderWith('addimagescTooltip'); should be right? what do I loop in the addimagescTooltip theme?
700: [18:19:00] <catcher> priithansen, you can use renderwith alone, 2nd arg is an array for Customise.
701: [18:20:00] * gelignite has joined #silverstripe
702: [18:20:00] <catcher> priithansen, then that data array should be associative - array('MyImages' => $images)
703: [18:20:00] <catcher> Then you can <% loop MyImages %> in the template
704: [18:23:00] * Shrike_Finland quit (Quit: Leaving.)
705: [18:25:00] <priithansen> for some reason I cannot seem to make it work
706: [18:32:00] * SightUnseen has joined #silverstripe
707: [18:37:00] <priithansen> If I understand correctly my problem is that the fatalist never makes it's query
708: [18:42:00] <priithansen> catcher: $data['Images']= new ArrayList(Image::get()->limit(5)->toArray()); \\ return $this->renderWith('addimagescTooltip', $data); < should this work?
709: [18:43:00] * Shrike_Finland has joined #silverstripe
710: [18:44:00] <FrozenFire> priithansen, I'm a bit confused about what you're trying to do.
711: [18:44:00] <FrozenFire> That'd be wrong
712: [18:44:00] <FrozenFire> "return $this->customise($images)->renderWith('addimagescTooltip');"
713: [18:45:00] <FrozenFire> return $this->customise(array("Images" => $images))->renderWith('addimagescTooltip'); maybe
714: [18:45:00] <priithansen> In my form I want to make and ajax request to the method and have it return list of images rendered with template
715: [18:46:00] * SightUnseen quit (Ping timeout: 252 seconds)
716: [18:46:00] * SightUnseen has joined #silverstripe
717: [18:48:00] * SightUnseen has left #silverstripe
718: [18:49:00] <priithansen> and now It works :S thanks FrozenFire and catcher $images['Images'] = Image::get()->limit(5); \\ return $this->renderWith('addimagescTooltip', $images); seems to do the trick for me
719: [18:49:00] <catcher> renderWith's 2nd arg is an array passed to Customise.
720: [18:50:00] <catcher> priithansen, a slightly cleaner way would be: $images = Image::get()->limit(5); return $this->renderWith(array('addimagescTooltip'), array('Images' => $images));
721: [18:51:00] <catcher> but you're doing the same thing there.
722: [18:52:00] <priithansen> ah thanks for the tip
723: [18:53:00] * Shrike_Finland quit (Quit: Leaving.)
724: [19:01:00] * C10ne has joined #silverstripe
725: [19:10:00] <Kolin> Is there any way i can render a set of data with a template and get the resulting html as a string?
726: [19:12:00] <Kolin> More specificly in a controller I want to take a dataobject, render it with a template then return the html as a string.
727: [19:13:00] <FrozenFire> Kolin, $dataObject->renderWith(array("Template", "FallbackTemplate"))
728: [19:14:00] <Kolin> Thanks!
729: [19:14:00] <FrozenFire> Usually only one template, but if you are, for instance, rendering it as a page, then you would specify the second template as "Page", so you get the normal site layout
730: [19:14:00] <FrozenFire> Anything that extends ViewableData can be rendered using a template
731: [19:37:00] * irogue has joined #silverstripe
732: [19:41:00] * travis-ci has left #silverstripe
733: [19:41:00] * travis-ci has joined #silverstripe
734: [19:41:00] <travis-ci> [travis-ci] silverstripe/sapphire#1384 (3.1 - f406837 : Ingo Schommer): The build passed.
735: [19:41:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f931b8d3264e...f4068371fc13
736: [19:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4800664
737: [19:42:00] * DigNZ quit (Remote host closed the connection)
738: [19:42:00] * DigNZ has joined #silverstripe
739: [19:43:00] * DigNZ has joined #silverstripe
740: [19:45:00] * Pyromanik has joined #silverstripe
741: [19:47:00] * Shrike_Finland has joined #silverstripe
742: [19:49:00] * C10ne_ has joined #silverstripe
743: [19:51:00] * C10ne quit (Ping timeout: 245 seconds)
744: [19:51:00] * C10ne_ is now known as C10ne
745: [19:53:00] <C10ne> how do I improve processed image quality? I've tried to set GD::set_default_quality and $gd->setQuality, but the images are still bad...
746: [19:54:00] <FrozenFire> Also, what version of SS?
747: [19:54:00] <FrozenFire> Bad how?
748: [19:55:00] <FrozenFire> If you're using 3.1, it'll have my modifications to the Image class, which allows you to switch to the Imagick backend
749: [19:57:00] <C10ne> SS3.0, they have a lot of "artifacts" on transparent pngs
750: [19:57:00] <C10ne> like blurry edges
751: [19:58:00] <Pyromanik> poidh
752: [19:58:00] <pippy> FrozenFire: it's anoying because on mac os x scaled pngs look good :[
753: [19:58:00] <FrozenFire> Yeah, I'd recommend against scaling transparent PNGs using the Image functions
754: [19:58:00] <FrozenFire> Re-anti-aliasing everything will be a bitch.
755: [19:59:00] <C10ne> I have to give the clients as much control as I can, so I have to process the images before outputing them
756: [19:59:00] * mobiusnz has joined #silverstripe
757: [19:59:00] <FrozenFire> It's for simple, minor modification of JPEGs and the like.
758: [19:59:00] <FrozenFire> GD will produce the same level of shittiness regardless of operating system
759: [20:00:00] <C10ne> I had a nice class somewhere, but have to go now... Thanks for the answers, there isn't a simple solution.
760: [20:01:00] <C10ne> I'll extend the class for custom image processing. TTYL
761: [20:02:00] <FrozenFire> Yeah, probably your best bet.
762: [20:02:00] <FrozenFire> As mentioned, I rewrote the Image class for 3.1+ so you can completely rewrite the backend for how it processes images, and easily expose your own image processing functions as well
763: [20:03:00] <FrozenFire> Includes a sample ImagickBackend implementation, though if you want to get really nitty-gritty, you could write your own, better stuff and contribute it back to the project.
764: [20:05:00] * Stomach has joined #silverstripe
765: [20:14:00] <catcher> UndefinedOffset, which code runs when you click 'allow drag & drop'?
766: [20:15:00] <catcher> UndefinedOffset, I need to run a BuildTask on a bunch of items that need to have their sortOrder initialized, but I don't want to affect the sortOrders if they've already been set.
767: [20:16:00] <UndefinedOffset> catcher: fixSortColumn() line 121
768: [20:17:00] <UndefinedOffset> it will run this every time the gridfield is displayed, it ensures that the sort order is initialized for all objects in the datalist
769: [20:20:00] * ec8or has joined #silverstripe
770: [20:35:00] <Pyromanik> FrozenFire: image_backend has no greyscale definition!
771: [20:35:00] <Pyromanik> D:
772: [20:36:00] * stereofi has joined #silverstripe
773: [20:37:00] <FrozenFire> I don't think it's supposed to
774: [20:38:00] <Pyromanik> image cached is made by Image, not GD
775: [20:38:00] <Pyromanik> yeah... maybe not.
776: [20:38:00] <FrozenFire> greyscale doesn't actually create an Image_Cached
777: [20:38:00] <FrozenFire> I created the Image_Backend interface based on the actual narrowest requirements such that any other backend would be required to do what GD has available in the template
778: [20:38:00] <FrozenFire> Just greyscales the resource
779: [20:38:00] <Pyromanik> nope
780: [20:38:00] <Pyromanik> but extending image so it does will.
781: [20:39:00] <Pyromanik> but
782: [20:39:00] <FrozenFire> This is true
783: [20:39:00] <Pyromanik> where the actual greyscaling is handled by the backend (GD atm)
784: [20:39:00] <FrozenFire> Aha, that's why I didn't.
785: [20:39:00] <FrozenFire> Because Image doesn't call it
786: [20:39:00] <Pyromanik> the method has always been there, just never expsoed to image directly :<
787: [20:39:00] <Pyromanik> yeah
788: [20:39:00] <FrozenFire> Yep
789: [20:40:00] <Pyromanik> I want image to call it :<
790: [20:40:00] <FrozenFire> :D
791: [20:40:00] <Pyromanik> TOO MUCH WORK, IT WAS ALREADY BUILT IN, WHY U FORSAKE ME LIEK DIS?
792: [20:40:00] <Pyromanik> :P
793: [20:40:00] <FrozenFire> :D
794: [20:40:00] <FrozenFire> That is, add an extension
795: [20:40:00] <Pyromanik> yeah yeah, I know, extend backend
796: [20:40:00] <Pyromanik> :"(
797: [20:40:00] <FrozenFire> So extend Imagick_Backend
798: [20:40:00] <FrozenFire> Okay
799: [20:41:00] <Pyromanik> any other image handlers for php?
800: [20:41:00] <Pyromanik> fair comment
801: [20:41:00] <FrozenFire> :P
802: [20:41:00] <FrozenFire> Probably because I was tired of rewriting GD methods in Imagick
803: [20:41:00] <Pyromanik> how does one write a php module?
804: [20:41:00] <FrozenFire> Ask #php.pecl on EFNet
805: [20:41:00] <FrozenFire> PHP extension?
806: [20:41:00] <Pyromanik> expose dem libs
807: [20:42:00] <FrozenFire> If you have one in mind, might suggest it to mfrost503 in #phpmentoring
808: [20:43:00] <FrozenFire> Exposing libraries is actually *fairly* trivial in PHP extensions
809: [20:43:00] <Pyromanik> oh
810: [20:43:00] <FrozenFire> He was looking for a project to do as an apprentice to auroraeosrose, who is a prolific extension-er
811: [20:43:00] <Pyromanik> I don't have one in mind
812: [20:44:00] <FrozenFire> I think Imagick is typically considered the best available PHP-linked one
813: [20:44:00] <Pyromanik> I'm of two minds.
814: [20:44:00] <Pyromanik> but good
815: [20:44:00] <Pyromanik> annoy
816: [20:44:00] <Pyromanik> but like memory limits and shit
817: [20:44:00] <FrozenFire> Yep
818: [20:44:00] <Pyromanik> so was GD
819: [20:44:00] <Pyromanik> I know
820: [20:44:00] <FrozenFire> Err, Imagick *is* an external code library
821: [20:44:00] <Pyromanik> I just like the idea of executing native speed shit from PHP
822: [20:45:00] <Pyromanik> I don't even know what I'm thinking
823: [20:45:00] <FrozenFire> That's an entirely separate concern. ;)
824: [20:45:00] <FrozenFire> That'd be a case where you'd want to spawn child processes to external utilities
825: [20:45:00] <Pyromanik> yes
826: [20:45:00] <Pyromanik> maybe
827: [20:45:00] <Pyromanik> unsure
828: [20:45:00] <FrozenFire> It's premature optimization, though. :P
829: [20:45:00] <Pyromanik> nah
830: [20:45:00] <Pyromanik> ALL THE SPEEDS
831: [20:46:00] <Pyromanik> mm
832: [20:46:00] <Pyromanik> SPEEEEEEEEEEEEEEEEEEEEEEEEEEEEEED
833: [20:46:00] <Pyromanik> :<
834: [20:46:00] <FrozenFire> They're just interfaces to the code library
835: [20:46:00] <FrozenFire> It'll result in the same amount of memory/CPU usage.
836: [20:46:00] <FrozenFire> And same speed
837: [20:46:00] <Pyromanik> I'm aware
838: [20:46:00] <FrozenFire> Both the imagick utility and the Imagick extension use the same code
839: [20:46:00] <Pyromanik> give your php the amphetamines.
840: [20:47:00] <FrozenFire> libgimp
841: [20:47:00] <Pyromanik> just for lols
842: [20:47:00] <FrozenFire> Then you're being silly.
843: [20:47:00] <Pyromanik> yush
844: [20:47:00] * FrozenFire dons his bowler hat and clubs Pyromanik with a cane
845: [20:47:00] <Pyromanik> they rock them on Ripper Street, and look boss.
846: [20:47:00] <Pyromanik> bowler hats
847: [20:47:00] <Pyromanik> wicked
848: [20:47:00] <Pyromanik> I was wondering if one could hook the gimp up.
849: [20:50:00] <FrozenFire> If you're using a TabSet, put it in a tab
850: [20:50:00] <FrozenFire> Yes
851: [20:50:00] <stereofi> hi guys, my UploadField works with $fields->addFieldToTab($uploadField) but not $fields->push($uploadField), is that normal?
852: [20:50:00] <FrozenFire> GEGL, actually
853: [20:51:00] <FrozenFire> If you're not, don't.
854: [20:51:00] <stereofi> $fields->addFieldToTab('Root.Main', $uploadField)
855: [20:52:00] <Pyromanik> well yeah
856: [20:52:00] <stereofi> $fields = parent::getCMSFields(); $fields->push($uploadField); shows the upload field by selecting a file from the operating system does nothing
857: [20:52:00] <stereofi> *but
858: [20:52:00] <stereofi> it only works if I change it to $fields->addFieldToTab('Root.Main', $uploadField)
859: [20:52:00] <FrozenFire> So use a tab.
860: [20:52:00] <Pyromanik> duh
861: [20:52:00] <FrozenFire> "Doctor, it hurts when I do this!" "So stop doing that"
862: [20:52:00] <Pyromanik> Page is a tabbed interface
863: [20:53:00] <Pyromanik> the first parameter to addFieldToTab is the tab name
864: [20:53:00] <Pyromanik> FrozenFire: but you can (at least used to) be able to push fields into the root fieldset
865: [20:53:00] <Pyromanik> I'm surprised it doesn't just bomb out with an error
866: [20:53:00] <FrozenFire> Everything in the CMS should be considered a tabbed interface.
867: [20:53:00] <Pyromanik> not the field
868: [20:54:00] <Pyromanik> just as a tabset is a field
869: [20:54:00] <Pyromanik> "Root" is the 'root' tabset, yes.
870: [20:54:00] <FrozenFire> Because that's what DataObject::getCMSFields does
871: [20:54:00] <Pyromanik> ah
872: [20:54:00] <FrozenFire> When I want to override the cms fields completely, I do $fields = new FieldList(new TabSet("Root"));
873: [20:54:00] <Pyromanik> no, I mean root, not "Root"
874: [20:54:00] <Pyromanik> they used to show before the tabs. Still generally not a good idea.
875: [20:54:00] <FrozenFire> Root is a TabSet
876: [20:55:00] * Pyromanik 's eye twitches at the sight of mentioning _forPopup
877: [20:55:00] <Pyromanik> OH GOD NO
878: [20:55:00] * stereofi has joined #silverstripe
879: [20:55:00] <FrozenFire> :P
880: [20:55:00] <Pyromanik> never used to
881: [20:55:00] <Pyromanik> or did it
882: [20:55:00] <Pyromanik> yes it did
883: [20:55:00] * jcwacky_ has joined #silverstripe
884: [20:55:00] <stereofi> I i get it, I;'m migrating from 2.4 and old getCMSFields_forPopup() syntax
885: [20:55:00] * stereofi quit (Read error: Connection reset by peer)
886: [20:55:00] <Pyromanik> but if you just return a vanilla fieldset it should still work
887: [20:55:00] <Pyromanik> NEVER EVER EVER EVER EVER EVER
888: [20:56:00] <Pyromanik> NO idea why when getCMSFields works by default
889: [20:56:00] <stereofi> yes, I'm enjoying the new SS3 ui
890: [20:56:00] <Pyromanik> it was a UC thing that he cooked up for some reason
891: [20:56:00] <Pyromanik> forPopup was 100% redundant
892: [20:56:00] <pippy> the times i tried to put a htmleditor in it
893: [20:56:00] <pippy> forPopup sucked
894: [20:56:00] <Pyromanik> but every newbie out there seemed to think that that was a legit way to do things
895: [20:57:00] * jcwacky_ is now known as jcwacky
896: [20:57:00] * jcwacky quit (Ping timeout: 248 seconds)
897: [20:57:00] <Pyromanik> but generally... nope.
898: [20:57:00] <Pyromanik> I mean sure it had it's uses
899: [20:57:00] <Pyromanik> and that DOM was some kind of godsend when all it really did was reskin ComplesTableField
900: [20:59:00] <Pyromanik> stereofi: so basically, in a nutshell, you'll usually find a nut.
901: [20:59:00] <Pyromanik> getCMSFields(){return new FieldList($uploadField);} should work
902: [20:59:00] <Pyromanik> what are you up to?
903: [20:59:00] <Pyromanik> also
904: [21:00:00] <stereofi> I'm replacing DOM with GridField
905: [21:00:00] <Pyromanik> otherwise as FrozenFire said, you need to make a tabset first to use addFieldToTab - it makes sense that you need tabs so you can add fields!
906: [21:01:00] <stereofi> with Image, using new UploadField
907: [21:01:00] <stereofi> and editing DataObject
908: [21:07:00] * willr quit (Quit: willr)
909: [21:13:00] * UndefinedOffset quit (Quit: Leaving.)
910: [21:21:00] <Pyromanik> stereofi: yeah, but that doesn't tell me much
911: [21:25:00] * stereofi quit (Quit: stereofi)
912: [21:28:00] * stereofi has joined #silverstripe
913: [21:32:00] * ARNHOFF quit (Read error: Connection reset by peer)
914: [21:34:00] * Motoservo quit (Read error: Connection reset by peer)
915: [21:35:00] * Motoservo has joined #silverstripe
916: [21:37:00] * howardgrigg has joined #silverstripe
917: [21:38:00] * liam has joined #silverstripe
918: [21:39:00] <catcher> Anyone have a shortcut for getting an SS RestfulService to withhold pages based on stage/status?
919: [21:42:00] * DigNZ quit (Ping timeout: 255 seconds)
920: [21:46:00] <catcher> This doesn't seem to be working as the documentation describes: GET /api/v1/(ClassName)?(Field)=(Val)&(Field)=(Val) - searches for matching database records
921: [21:46:00] * willr has joined #silverstripe
922: [21:46:00] * liam quit (Quit: liam)
923: [21:46:00] * Shrike_Finland quit (Quit: Leaving.)
924: [21:47:00] * howardgrigg quit (Remote host closed the connection)
925: [21:48:00] <catcher> though i suppose that's not actually a fieldname.
926: [21:48:00] <catcher> willr, in case you have info, any way to request only Published pages from a restful server?
927: [21:49:00] <willr> No idea sorry catcher
928: [21:49:00] <catcher> kk
929: [21:54:00] <Pyromanik> or it is just draft?
930: [21:54:00] <Pyromanik> catcher: are you sure it's taking all matches?
931: [21:55:00] <catcher> But Saved is even a problem
932: [21:55:00] <catcher> (I should clarify my earlier question)
933: [21:55:00] <Pyromanik> yes I know
934: [21:55:00] <Pyromanik> but
935: [21:55:00] <Pyromanik> does it happen?
936: [21:55:00] <catcher> Pyromanik, yep, I can see 2 entires with status 'Saved(publish)'
937: [21:55:00] <Pyromanik> make and edit to the draft and save
938: [21:55:00] <Pyromanik> see if they come out different
939: [21:57:00] <Pyromanik> it's just a draft
940: [21:57:00] <Pyromanik> ah
941: [21:57:00] <catcher> the source site is in Prd, can't mess with the pages atm unfortunately.
942: [21:58:00] <Pyromanik> a minor tweak
943: [21:58:00] <catcher> gigabytes worth of GBs
944: [21:58:00] <Pyromanik> to conent or something
945: [21:58:00] <catcher> withholding anything that isn't 'Published' on the destination side works well, but all those wasted GBs over the net..
946: [22:02:00] * DigNZ has joined #silverstripe
947: [22:02:00] * DigNZ quit (Remote host closed the connection)
948: [22:03:00] * DigNZ has joined #silverstripe
949: [22:03:00] * markeaston has joined #silverstripe
950: [22:06:00] * DigNZ quit (Client Quit)
951: [22:12:00] * stereofi quit (Quit: stereofi)
952: [22:14:00] * DigNZ quit (Remote host closed the connection)
953: [22:14:00] * DigNZ has joined #silverstripe
954: [22:14:00] * DigNZ has joined #silverstripe
955: [22:18:00] * liam has joined #silverstripe
956: [22:20:00] * Colin[pi] quit (Ping timeout: 276 seconds)
957: [22:21:00] * DigNZ quit (Quit: DigNZ)
958: [22:26:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
959: [22:43:00] * EPIK has joined #silverstripe
960: [22:44:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
961: [22:49:00] * DigNZ has joined #silverstripe
962: [22:49:00] * DigNZ quit (Remote host closed the connection)
963: [22:50:00] * DigNZ has joined #silverstripe
964: [22:50:00] * Guest38677 has joined #silverstripe
965: [22:51:00] * Guest38677 has left #silverstripe
966: [22:52:00] * Guest38677 has joined #silverstripe
967: [22:53:00] * Guest38677 has left #silverstripe
968: [22:56:00] * markeaston quit (Quit: markeaston)
969: [22:57:00] * liam quit (Quit: liam)
970: [23:03:00] <catcher> I have a word that needs to be italicized *every*where on the front-end. It will never appear within another word, it's the rare case where it would be safe and time-saving to do site-wide. Any ideas?
971: [23:04:00] <subvert> Does anyone know if "showcalendar" works on SS3's DateField?
972: [23:04:00] * subvert has joined #silverstripe
973: [23:05:00] * dnz- quit (Read error: Connection reset by peer)
974: [23:05:00] * dnz- has joined #silverstripe
975: [23:07:00] <willr> subvert yep that API still there
976: [23:07:00] * eTiger13 has joined #silverstripe
977: [23:07:00] <willr> catcher the word in the database? http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace
978: [23:07:00] <eTiger13> in ss3 is there a way to have options in mysite/_config overwrite framework/admin/_config options and not the other way around?
979: [23:08:00] <subvert> am i missing something blatantly obvious?
980: [23:08:00] <subvert> willr: http://sspaste.com/paste/show/511d6e604b793
981: [23:08:00] <willr> eTiger13 - http://doc.silverstripe.org/framework/en/topics/configuration#priorities
982: [23:09:00] <subvert> thanks will!
983: [23:09:00] * DigNZ quit (Ping timeout: 264 seconds)
984: [23:09:00] <willr> $arrival->setConfig("showcalendar", true);
985: [23:09:00] <subvert> Just read the API....
986: [23:09:00] <catcher> willr, it'd be better to leave the DB data alone, and also nice to catch the instances that appear in templates.
987: [23:10:00] <willr> catcher if it's just in the $Content field then you can override getContent() on page to do your str_replace
988: [23:11:00] <catcher> willr, Title fields are the big ones. Any way to inject code in the template engine or something?
989: [23:12:00] <willr> Might be able to muck around with ViewableData::XML_val
990: [23:12:00] <eTiger13> willr: that looks like for the yaml config. im trying to do it in _config.php
991: [23:12:00] <willr> but doubt there is a 'nice' way.
992: [23:12:00] <Pyromanik> subvert: yes
993: [23:12:00] <Pyromanik> catcher: jQuery
994: [23:12:00] <catcher> Pyromanik, yeh
995: [23:12:00] <Pyromanik> catcher: or string replace the $content
996: [23:12:00] <subvert> pyromanik thanks, sorted!
997: [23:13:00] <subvert> haha...
998: [23:13:00] <catcher> Pyromanik, if only they were all on $content
999: [23:13:00] <catcher> in* content
1000: [23:13:00] <subvert> Has anybody done email sending in SS3? I have read through the API and everything looks like it should still work: http://sspaste.com/paste/show/511d6f2712cbe
1001: [23:13:00] <Pyromanik> oic
1002: [23:13:00] <Pyromanik> catcher: then do it after render before output
1003: [23:13:00] <catcher> Pyromanik, buthow?
1004: [23:14:00] <subvert> willr is there a link to any doc/recipe I can read so I don't need to bug yall
1005: [23:14:00] <willr> subvert you'll have to use setTo() rather than protected vars
1006: [23:14:00] * simon_w quit (Quit: This computer has gone to sleep)
1007: [23:14:00] <Pyromanik> catcher: eg handleRequest(){parent::handleRequest();return modifyOutput();}
1008: [23:14:00] <Pyromanik> not sure on exact method, but you get the idea.
1009: [23:14:00] <catcher> 'tis the method I seek :)
1010: [23:14:00] <subvert> ah set To
1011: [23:14:00] <subvert> I will just do that
1012: [23:15:00] <ss23> Having fun isn't hard when you've got a library card
1013: [23:15:00] <willr> Bugging y'all is what IRC is for :)
1014: [23:15:00] <subvert> :)
1015: [23:17:00] <Pyromanik> is it a porn libarary?
1016: [23:19:00] <ss23> Wouldn't that be "hard"?
1017: [23:19:00] <subvert> willr please see the second paste on this page: http://sspaste.com/paste/show/511d6f2712cbe - once I have emails working i can go and fix all my contact pages on the ss3 upgrades!
1018: [23:20:00] * eTiger13 quit (Ping timeout: 245 seconds)
1019: [23:21:00] <Pyromanik> ss23: depends on context
1020: [23:21:00] <Pyromanik> Don't wanna be hard in the library.
1021: [23:23:00] <ss23> Be edgy, and risk getting arreested.
1022: [23:23:00] <willr> subvert setTo is a method bro. $email->setTo("pope@myspace.com");
1023: [23:23:00] <ss23> Pyromanik: Why? Spice up your life!
1024: [23:23:00] <subvert> cheer bro
1025: [23:23:00] <subvert> smacks myself in the face
1026: [23:25:00] <ss23> http://vimeo.com/57742213 gangsta.
1027: [23:32:00] * Colin[pi] has joined #silverstripe
1028: [23:51:00] * Rastafarii has joined #silverstripe
1029: [23:52:00] * simon_w has joined #silverstripe
1030: [23:56:00] <Rastafarii> is there any way to detect when ajax is completed, so I can fire JS?

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