#silverstripe IRC Log

IRC log for 5 July 2012

Logging sponsored by you? Get in touch!

All timestamps are in UTC.

1: [00:00:00] <matt_____> hello
2: [00:00:00] * matt_____ has joined #silverstripe
3: [00:03:00] <Pyromanik||> sup
4: [00:03:00] <ss23> Hai2u
5: [00:07:00] <spronk> fog..
6: [00:07:00] <spronk> cool story auckland _b
7: [00:35:00] <Pyromanik||> didn't stop me landing last time I flew into aucks
8: [00:35:00] <Pyromanik||> ikr
9: [00:36:00] <Pyromanik||> I coudln't even see the wing tip. Even though it had red flashy light on the tip.
10: [00:37:00] <spronk> awesome
11: [00:41:00] * isense_daniel has joined #silverstripe
12: [00:43:00] <isense_daniel> G'day everyone, I want to add a poll to a site. Need history of poll results and need to be able to create new poll form in CMS backend. Could someone suggest a good tutorial or module for this?
13: [00:43:00] * dospuntocero quit (Remote host closed the connection)
14: [00:47:00] <spronk> isense_daniel: http://doc.silverstripe.org/framework/en/tutorials/3-forms
15: [00:47:00] * Bollig|DesignCty has joined #silverstripe
16: [00:47:00] <spronk> start here
17: [00:48:00] <spronk> and here
18: [00:48:00] * dospuntocero has joined #silverstripe
19: [00:48:00] <spronk> http://www.silverstripe.org/user-forms-module/
20: [00:49:00] * dospuntocero quit (Remote host closed the connection)
21: [00:51:00] <isense_daniel> Hi Spronk, I had a look at this tut. So you think I should be able to build on top of this the functionality to make it more dunamic and adjustable through the back end? Are there any examples or tutorials our there of someone useing an Ajax poll with silverstipe to do this?
22: [00:52:00] <spronk> userforms module probably gets you like.. 90% of the way there on its own
23: [00:52:00] <Pyromanik||> isense_daniel: there's actually a poll module.
24: [00:52:00] <Pyromanik||> iirc
25: [00:52:00] <Pyromanik||> silverstripe.org/modules
26: [00:52:00] * howardgrigg has joined #silverstripe
27: [00:53:00] <Pyromanik||> yeah
28: [00:53:00] <Pyromanik||> but I also don't imagine it to be the most complex thing
29: [00:53:00] <spronk> could be worth a look for reference anyway
30: [00:53:00] <Pyromanik||> yeah
31: [00:53:00] <spronk> 2.2.2+
32: [00:53:00] <Pyromanik||> would pay to check it's compatiblity though
33: [00:53:00] <spronk> really O_o
34: [00:53:00] <isense_daniel> Ok spronk I'll have a look at using userforms.
35: [00:54:00] <isense_daniel> Hi Pyromanik, I looked into that and there did not seem to be a lot of confidence in the module. Could someone restore my confidence by telling me they have used it and it worked fine?
36: [00:54:00] <Pyromanik||> where to go for warrant?
37: [00:55:00] <Pyromanik||> if it works it works.
38: [00:55:00] <Pyromanik||> well no, because polls are pretty rare.
39: [00:55:00] <Pyromanik||> isense_daniel: just test it.
40: [00:56:00] <isense_daniel> Ok, well I've got two options to look into further. Yeah might give it a go. Thanks all.
41: [00:56:00] <Pyromanik||> if it doesn't, don't worry. No loss.
42: [01:02:00] <sminnee> That's the new ORM at work.
43: [01:02:00] <howardgrigg> sweet :)
44: [01:02:00] <howardgrigg> sminnee: If I have a function that returns a datalist and in the template I use $FunctionName.Count does that do an efficient query or does it query the whole list?
45: [01:02:00] <sminnee> Efficient query, in SS3.
46: [01:03:00] <howardgrigg> I'm having fun :p
47: [01:26:00] <willr> thats always a positive while developing :)
48: [01:27:00] * willr has joined #silverstripe
49: [01:27:00] * willr has left #silverstripe
50: [01:40:00] * howardgrigg quit (Ping timeout: 248 seconds)
51: [01:43:00] * LoveDuckie quit (Read error: Connection reset by peer)
52: [02:36:00] * BaronGrivet has joined #silverstripe
53: [02:38:00] <BaronGrivet> Hello chaps. We've run into one of "those" issues. Something that runs fine on another devs machine isn't running on mine - even though we're both working off the same repo. On my machine an add_extension doesn't seem to be registering. Is there a good way I can check it?
54: [02:39:00] <willr> BaronGrivet done a dev/build / a flush?
55: [02:39:00] * matt_____ quit (Quit: Page closed)
56: [02:40:00] * howardgrigg has joined #silverstripe
57: [02:41:00] <BaronGrivet> willr - yup
58: [02:42:00] <willr> if you put a var_dump() or something in add_extension() is it being added?
59: [02:42:00] * robinm has joined #silverstripe
60: [02:43:00] <robinm> I'm not sure if anyone can help
61: [02:43:00] <robinm> Hi, I have a question about ZendSearchLuceneSearchable
62: [02:44:00] <robinm> but when I these lines to my config
63: [02:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event');
64: [02:44:00] <robinm> it always gives an error
65: [02:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event'); Object::add_extension( 'Event', "ZendSearchLuceneSearchable('Body')");
66: [02:44:00] * SightUnseen has joined #silverstripe
67: [02:44:00] <robinm> "I don't know the default search columns for class 'Event'"
68: [02:45:00] * SightUnseen has joined #silverstripe
69: [02:45:00] <robinm> whenever the index is built
70: [02:45:00] * SightUnseen quit (Client Quit)
71: [02:46:00] <BaronGrivet> willr - I'm not sure I've got the var_dump/ add_extension syntax correct. What would you suggest?
72: [02:46:00] <willr> what should the extension do?
73: [02:46:00] <BaronGrivet> It's definitely reading the _config.php file the add_extension is in.
74: [02:47:00] <BaronGrivet> It adds another field onto a custom image class. It's SS 2.4
75: [02:47:00] <willr> paste your extension to sspaste.org or something
76: [02:47:00] <BaronGrivet> We are using symbolic links so is it possible that the order could be out?
77: [02:47:00] <willr> there is a bug in SS3.0 with extension fields / methods not being called.
78: [02:48:00] * SightUnseen has left #silverstripe
79: [02:52:00] <BaronGrivet> Pasted: http://www.sspaste.com/paste/show/4ff504f1887c7
80: [02:52:00] <BaronGrivet> Sorry, willr: http://www.sspaste.com/paste/show/4ff504f1887c7
81: [02:54:00] <irogue> my office smells fishy!
82: [02:54:00] <Pyromanik||> public static $search_fields = array('Title', 'foo', 'bar');
83: [02:54:00] <Pyromanik||> I think
84: [02:54:00] <Pyromanik||> might be $searchable_fields
85: [02:54:00] <Pyromanik||> robinm: you haven't defined any search fields.
86: [02:55:00] <Pyromanik||> well, irogue works at snapper
87: [02:55:00] <Pyromanik||> must be related!
88: [02:55:00] <Pyromanik||> ...
89: [02:55:00] <willr> irogue I had fish for lunch!
90: [02:55:00] <willr> snapper we caught ourselves
91: [02:55:00] <Pyromanik||> but fish and chip wednesday was yesterday willr!
92: [02:55:00] <Pyromanik||> oic
93: [02:56:00] <willr> BaronGrivet CustomImage? is that another extension
94: [02:58:00] <Pyromanik||> subclass I'd guess
95: [03:03:00] <howardgrigg> somewhere i remeber seeing documentation on how to divide up a datalist such as list all members grouped by the first letter of their name - but now I can't find it… anyone know?
96: [03:04:00] <BaronGrivet> Soz, got called away on something...
97: [03:05:00] <BaronGrivet> The weird thing is it's working on a computer running almost identical setups 3 metres from me.
98: [03:05:00] <BaronGrivet> CustomImage is a separate dataobject.
99: [03:07:00] <howardgrigg> sminnee: has ->groupBy('Lastname') been implemented yet?
100: [03:09:00] <BaronGrivet> Ah-ha! A related file hadn't been updated from the repo. Thanks willr
101: [03:12:00] <irogue> willr: my coworker had fish
102: [03:13:00] <willr> mmm toastie
103: [03:13:00] <irogue> i like fish
104: [03:13:00] <irogue> im not complaining!
105: [03:13:00] <willr> Everyone complains when I have fish. Harden up
106: [03:13:00] <irogue> it was just strange cos it made my ham and cheese toastie taste like fish
107: [03:17:00] <spronk> fucking.. two days worth of work
108: [03:17:00] <spronk> wooow
109: [03:18:00] <spronk> https://github.com/videlalvaro/php-amqplib/pull/23
110: [03:18:00] <spronk> and the bug is a braindead backward ternary operator in php-amqplib
111: [03:19:00] * cloph_away1 quit (Read error: Operation timed out)
112: [03:20:00] * cloph_away has joined #silverstripe
113: [03:22:00] <Pyromanik||> howardgrigg: if it's anything like DataObjectSet then it'll be .GroupedBy(Field) in the template
114: [03:22:00] <Pyromanik||> <% loop MyDatalist.GroupedBy(FirstName) %>
115: [03:22:00] <howardgrigg> oh cool - I'll give it a go
116: [03:22:00] <Pyromanik||> although...
117: [03:23:00] <Pyromanik||> but i'm sure you can find a way to figure that out now that you can group.
118: [03:23:00] <Pyromanik||> that'll give you groups of names, not first letters
119: [03:24:00] <howardgrigg> yea - i'm kinda working it out, thanks
120: [03:44:00] * BaronGrivet has left #silverstripe
121: [03:46:00] <howardgrigg> If I'm right this returns objects that have either a updated time or created time greater than $oldtime yea? http://pastie.org/4202356
122: [03:47:00] <howardgrigg> each works on it's own but together returns an empty list...
123: [03:51:00] <howardgrigg> sminnee: are you lurking around?
124: [03:54:00] <willr> howardgrigg is it doing an OR instead of an AND (or the converse)
125: [03:55:00] <howardgrigg> yea something like that… I just read in the docs "You can specify as many filters as you like, and they all must be true"
126: [03:55:00] <howardgrigg> does this mean you can't do an OR?
127: [03:57:00] <willr> can't see anything in the docs about or
128: [03:57:00] <howardgrigg> how would you do a FirstName = Bob OR Lastname = Smith?
129: [03:58:00] <willr> well at least OR over columns
130: [03:58:00] <howardgrigg> yea
131: [03:58:00] <howardgrigg> you can easily do FirstName = Bob OR John...
132: [03:59:00] <willr> You can go back to the 'old' method for now
133: [03:59:00] <willr> perhaps needs a orFilter() function
134: [03:59:00] <willr> file a ticket.
135: [04:00:00] <irogue> HOLIDAY
136: [04:00:00] <howardgrigg> I might just wait to see if sminnee has already thought of it - if not I'll file it
137: [04:00:00] <willr> I assume he's packing for his holiday
138: [04:00:00] <howardgrigg> nice :)
139: [04:01:00] <willr> Not sure how SS is going to cope with everyone away!
140: [04:01:00] <irogue> redirect the phones to auckland
141: [04:01:00] <irogue> :P
142: [04:01:00] <willr> I hope they're all taking separate flights. Can't put all the assets in 1 location
143: [04:02:00] <howardgrigg> willr: looks like there is a whereAny
144: [04:03:00] <willr> Also not documented
145: [04:03:00] <willr> Because that's obvious :P
146: [04:03:00] <howardgrigg> lol
147: [04:03:00] <willr> RTFS
148: [04:04:00] <Colin[pi]> hai guise
149: [04:04:00] * Colin[pi] has joined #silverstripe
150: [04:05:00] <howardgrigg> it errors saying whereAny doesn't exist on 'DataList' - but it exists on DataQuery. Am I doing it wrong?
151: [04:08:00] <howardgrigg> yea it's not on DataList… :( What's the role of DataQuery?
152: [04:09:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
153: [04:11:00] <Colin[pi]> goes Email::getAdminEmail() work in SS3?
154: [04:11:00] <Colin[pi]> *does
155: [04:12:00] <willr> yep still there Colin.
156: [04:13:00] <willr> howardgrigg take a look at DataList.php, it doesn't actually expose that. Only used in exclude
157: [04:14:00] <Colin[pi]> willr: hmm but it's giving me string(0) "" when I call it
158: [04:14:00] <howardgrigg> yea - bummer, how hard would it be to do?
159: [04:14:00] <Colin[pi]> do I need to set it separately from the admin member acct?
160: [04:15:00] <howardgrigg> Colin[pi]: yup Email::setAdminEmail(string $adminemail)
161: [04:15:00] <willr> well theres a addFilter on DataList that takes an array of where statements. Perhaps we need a bool option to use where() vs whereAny()
162: [04:15:00] <Colin[pi]> ahhh ok, so I need to set it in config first
163: [04:15:00] <willr> Colin[pi] where did you set it?
164: [04:16:00] <willr> howardgrigg I'm half talking with myself.
165: [04:16:00] * howardgrigg doesn't know how to do what willr suggests :p
166: [04:16:00] <Colin[pi]> would be cool if the installer added it to the config file from the admin account details -_-
167: [04:18:00] * openbees has joined #silverstripe
168: [04:18:00] <howardgrigg> hah cool - let me know if you get something working but ill just try doing it merging multiple lists
169: [04:22:00] <howardgrigg> gah - "Can't call DataList::merge() because its data comes from a specific query."
170: [04:23:00] <howardgrigg> how do I do it then?
171: [04:23:00] <Colin[pi]> ok my next question, does getCMSValidator() work in the CMS for SS3?
172: [04:24:00] <willr> edit DataList::addFilter to take a second argument for $or (bool) then check for $or to swap where() with whereAny() ? Might want to play around with that
173: [04:26:00] <howardgrigg> probably shouldn't do this on the live site...
174: [04:28:00] * peter_W has joined #silverstripe
175: [04:28:00] <howardgrigg> lol im going for it - what could go wrong
176: [04:28:00] <Colin[pi]> howardgrigg: if I had a dollar for the number of times I've said that.. ;)
177: [04:29:00] <peter_W> i.e. i want the first checkbox on the hasmanyCTF selected
178: [04:29:00] <peter_W> Hey SS...can anyone help use populateDefault to automatically set a has_many relationship
179: [04:29:00] <Colin[pi]> *BOOOOM*
180: [04:30:00] <Pyromanik||> set the YourObjectID on the relevant related object.
181: [04:32:00] <openbees> please fix this ! I was just checking silverstripe.com and on this page "http://www.silverstripe.com/our-work/westpac/" link below "Westpac" title (www.westpac.co.nz) is sending users to "http://www.silverstripe.com/www.westpac.co.nz" and same here "http://www.silverstripe.com/our-work/plunket/" on left side of content area below "Plunket" title !!
182: [04:32:00] <willr> sorry support@silverstripe.com
183: [04:32:00] <willr> openbees - email support@silverstripe.org
184: [04:33:00] <peter_W> pyromanik...sorry correction many_many relationship
185: [04:34:00] <howardgrigg> willr: i think i've changed addFilter but I don't get what is going on in filter which is checking the number of arguments passed http://pastie.org/4202517
186: [04:36:00] * Motoservo has joined #silverstripe
187: [04:39:00] * ajshort has joined #silverstripe
188: [04:43:00] <howardgrigg> that's what im doing :)
189: [04:43:00] <willr> howardgrigg addFilter()
190: [04:47:00] * openbees quit (Quit: Leaving)
191: [04:49:00] <howardgrigg> http://pastie.org/4202566
192: [04:49:00] <howardgrigg> willr: was this what you had in mind?
193: [04:51:00] * openbees has joined #silverstripe
194: [04:56:00] <willr> howardgrigg just tried whereAny() still uses conjunction
195: [04:56:00] <peter_W> anyone?
196: [04:57:00] <howardgrigg> :(
197: [04:57:00] <willr> will need a fix.
198: [04:58:00] <howardgrigg> yea - how can i just merge two querys then?
199: [04:58:00] <willr> Theres a useDisjunction() but it's never called. So I'm assuming an unfinished API
200: [04:59:00] <willr> LIke I said earlier, I'd just use the good old DataObject::get() if you just want it towkr
201: [05:01:00] <howardgrigg> oh i missed that - swt ill give it a go
202: [05:03:00] <Colin[pi]> guys does CMS validation work correctly in SS3?
203: [05:05:00] <willr> all js validation has been removed
204: [05:05:00] <willr> it's a project that didn't quite make 3.0
205: [05:05:00] <Colin[pi]> anyone?
206: [05:05:00] <Colin[pi]> all? because if I use an EmailField, it will turn red without a valid email
207: [05:05:00] <Colin[pi]> however then when I try to save, I get a blank page :(
208: [05:05:00] <willr> Colin[pi] doubt it
209: [05:05:00] <Colin[pi]> :(
210: [05:06:00] <Colin[pi]> this is fine for me, but we all know what will happen when I hand over the keys to a client
211: [05:07:00] <Colin[pi]> *k
212: [05:07:00] <ajshort> Colin[pi]: There's already a ticket. Validation is completely broken in SS3
213: [05:07:00] <howardgrigg> Colin[pi]: i have a feeling that that validation is the built in html5 validation
214: [05:07:00] <Colin[pi]> if I go to save and it's not a valid email (i.e. field border turns red), I get a blank page yes
215: [05:07:00] <willr> and its the email field causing the blank page?
216: [05:07:00] <willr> check open.silverstripe.org for a ticket / fix, make one if it doesn't exist
217: [05:07:00] <Colin[pi]> ahhhh l
218: [05:08:00] <ajshort> it works in modeladmin and a few other places, but not in the main cms
219: [05:08:00] <Colin[pi]> that would explain why I got a funky Windows 7 style error popup in the frontend
220: [05:08:00] <willr> ajshort fix it!
221: [05:09:00] <Colin[pi]> because you know.. "I BROEK IT!!1
222: [05:09:00] <Colin[pi]> I get twitchy to hand over a site to a client with little to no validation
223: [05:09:00] <ajshort> it shouldnt be too hard to fix
224: [05:09:00] <Colin[pi]> unless I charge for fixing ;)
225: [05:09:00] <howardgrigg> front end validation? or CMS?
226: [05:09:00] <Colin[pi]> CMS
227: [05:09:00] <howardgrigg> hmm yea...
228: [05:10:00] <ajshort> http://open.silverstripe.org/ticket/7537
229: [05:10:00] <Colin[pi]> k thanks
230: [05:10:00] <Colin[pi]> ajshort: do you have a link to the existing ticket?
231: [05:11:00] <Colin[pi]> I mean I can educate clients, but... clients
232: [05:11:00] <Colin[pi]> no cms validation, eek
233: [05:11:00] <ajshort> yep
234: [05:12:00] <ajshort> it'd probably be easier to just fix it :)
235: [05:12:00] <Colin[pi]> was the getCMSValidator() functionality working in the 2.4 branch?
236: [05:12:00] <ajshort> yes
237: [05:13:00] <Colin[pi]> hmmm I know it's a new release and all but now I've having doubts about diving straight into 3.0.0 :\
238: [05:13:00] <Colin[pi]> it went from RC1, 2, 3 to stable in about a week I thought? hehe
239: [05:13:00] <Colin[pi]> seems maybe a bit of a rushed release?
240: [05:13:00] <willr> 3.0 is still very much new ground
241: [05:13:00] <Colin[pi]> playing with it will at least yield fixes
242: [05:13:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
243: [05:13:00] <Colin[pi]> however
244: [05:14:00] <willr> totally.
245: [05:15:00] <Colin[pi]> ok, $64k question, are you guys using it for production yet?
246: [05:16:00] <willr> I am for a couple small projects and ones which require the framework only
247: [05:16:00] <willr> but 3.0 currently has a couple performance glitches as well
248: [05:17:00] <Colin[pi]> related to a specific part of the system? just so I know to avoid
249: [05:17:00] <willr> Well the config system
250: [05:18:00] <FrozenFire> If anyone's interested
251: [05:18:00] <FrozenFire> http://www.reddit.com/r/PHP/comments/w2bre/php_mentoring_were_seeking_both_experienced/
252: [05:18:00] <willr> http://www.silverstripe.org/general-questions/show/20162
253: [05:19:00] <Colin[pi]> willr: thanks
254: [05:20:00] <willr> We have to start using ss3 otherwise it'll just never get the issues ironed out. Considering most the community gets paid to build client sites and not work on the framework the best way is to kill 2 birds with 1 stone!
255: [05:21:00] <willr> thats my view anyway.
256: [05:22:00] <Colin[pi]> yeah I have one site I'm doing which is just content, gallery and contact page, so pretty simple
257: [05:22:00] <willr> still not deploying 3 out to those clients who push the CMS, just the small easy going ones.
258: [05:22:00] <Colin[pi]> yeah that's what I decided the other day
259: [05:22:00] <Colin[pi]> that's my SS3 guinea pig
260: [05:23:00] <Colin[pi]> but I'm still relatively new to SS, and I thought well if I continue down the SS2 path it's kinda an evolutionary dead end
261: [05:24:00] <willr> completely. Now that I'm using some of the 3.0 API's and templating it shows how much of improvement it has been. Just needs a ton more time and energy from awesome people.
262: [05:24:00] <Colin[pi]> yep
263: [05:25:00] <Colin[pi]> and I know the SS guys are not just sitting around idle :)
264: [05:25:00] <Colin[pi]> or I hope, anyway lol
265: [05:26:00] * willr quit (Quit: willr)
266: [05:37:00] * Motoservo has joined #silverstripe
267: [05:39:00] <howardgrigg> anyone know how to use a SS_DateTime in a sql query? this is what I'm trying http://pastie.org/4202705
268: [05:41:00] * Zauberfisch_ is now known as Zauberfisch
269: [05:44:00] <ajshort> howardgrigg: quotes
270: [05:45:00] <ajshort> (around the date)
271: [05:45:00] <ajshort> also you should quote your db columns
272: [05:46:00] <howardgrigg> i tried http://pastie.org/4202728
273: [05:52:00] <ajshort> single quotes
274: [05:52:00] <howardgrigg> yea
275: [05:52:00] <howardgrigg> ajshort: thanks i'm not getting errors now but also it's not returning any results, is NOW() not in the same format as SS_DateTime?
276: [05:53:00] <ajshort> wouldn't you want where created > $oldtime?
277: [05:53:00] <howardgrigg> I swapped them :)
278: [05:55:00] <ajshort> yep
279: [05:55:00] <ajshort> so created would be greater
280: [05:55:00] <howardgrigg> say $oldtime is 3 days ago I want to select anything that has been created since then...
281: [06:02:00] <howardgrigg> seems to be ignoring the filter
282: [06:02:00] <howardgrigg> hmm it's returning all of them...
283: [06:03:00] <howardgrigg> and yet i just checked the db and there are definatly values on either side
284: [06:03:00] <howardgrigg> well not ignoring it because if I swap the > or < you either get all or nothing
285: [06:07:00] <howardgrigg> ajshort: any ideas? not sure what could be going on
286: [06:08:00] <howardgrigg> bummer...
287: [06:08:00] <ajshort> not sure sorry
288: [06:16:00] <howardgrigg> weird it was fixed by removing the single quotes from the column name
289: [06:17:00] * howardgrigg should learn sql statements
290: [06:17:00] <ajshort> double quotes for column names, single for scalars
291: [06:17:00] <howardgrigg> thanks for pointing me in the right direction though :)
292: [06:34:00] <peter_W> hey can anyone explain the I can't handle sub-URLs of a error
293: [06:35:00] <peter_W> however if i die() immediately after the $feed->outputToBrowser() then i dont get the error
294: [06:35:00] <peter_W> i am creating an rss feed and i am getting this error
295: [06:38:00] * isense_daniel quit (Ping timeout: 245 seconds)
296: [06:40:00] <openbees> how to retrive multiple rows from one dataobject class into page type class ... but its showing just one row in template .. i think m missing some template logic here .. please help .. code is here http://www.sspaste.com/paste/show/4ff53a1c2b5f6
297: [06:42:00] <peter_W> your return is inside your foreach statement
298: [06:43:00] <ajshort> peter_W: Generally it occurs if there is still more parts of the URL left to process, but no controller to handle it
299: [06:44:00] <ajshort> e.g. if you visit /MyForm/field/another, you might find a matching controller for /MyForm/field, but nothing to handle /another
300: [06:45:00] <peter_W> yeah thats pretty much what i am doing...how can i make url/field/another/dynamicallyincreasing/ all be handled by /url/field
301: [06:46:00] <peter_W> actually all be handled by index
302: [06:48:00] * willr has joined #silverstripe
303: [06:55:00] * xmem has joined #silverstripe
304: [06:56:00] <peter_W> any ideas ajshort ?
305: [06:57:00] <ajshort> is there a limit on the number of url parts?
306: [06:58:00] <peter_W> no there isnt
307: [06:59:00] * Pyromanik has joined #silverstripe
308: [07:00:00] <ajshort> maybe in your index method call $this->request->shift(999);
309: [07:01:00] <peter_W> since i am ouputing the rss feed to the browser is it much worse to just die() at the end
310: [07:01:00] <ajshort> bit hacky but should work
311: [07:01:00] * openbees quit (Quit: Leaving)
312: [07:02:00] <ajshort> yes
313: [07:03:00] <ajshort> a neater solution might be while(!$request->allParsed()) $request->shift();
314: [07:04:00] * zfmf has joined #silverstripe
315: [07:05:00] <peter_W> ok thanks a lot
316: [07:12:00] <Bollig|DesignCty> I have never seen that error before.
317: [07:12:00] <Bollig|DesignCty> hmmmm -> ERROR [Notice]: Object of class Image could not be converted to int
318: [07:14:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
319: [07:15:00] * SticksM quit (Read error: Connection reset by peer)
320: [07:23:00] <Pyromanik> Bollig|DesignCty, probably because you haven't tried to use an Image as a number before...
321: [07:24:00] <Bollig|DesignCty> well that just shows how little you know me.
322: [07:40:00] * LePhil has joined #silverstripe
323: [08:04:00] * chillu has joined #silverstripe
324: [08:07:00] <howardgrigg> I got my notifications working properly :)
325: [08:09:00] * peter_W quit (Quit: Page closed)
326: [08:11:00] <LePhil> yay!
327: [08:12:00] <howardgrigg> http://f.cl.ly/items/2f0j312s0I0W3Q2Y2z45/Screen%20Shot%202012-07-05%20at%206.01.29%20PM.jpeg
328: [08:13:00] <LePhil> looks fancy
329: [08:14:00] <howardgrigg> it's good cause when lectures or readings are added they often just appear and are easy to miss
330: [08:21:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
331: [08:25:00] * xmem quit (Ping timeout: 248 seconds)
332: [08:27:00] * lx-berlin has joined #silverstripe
333: [08:32:00] * OzziNL has joined #silverstripe
334: [08:33:00] <Pyromanik> yeh I know right
335: [08:33:00] <LePhil> dengue fever
336: [08:33:00] <Pyromanik> what's a dengue?
337: [08:34:00] <LePhil> :)
338: [08:34:00] <LePhil> awesome, our hoster just switched our fileserver off...
339: [08:34:00] <LePhil> http://en.wikipedia.org/wiki/Dengue_fever
340: [08:34:00] <howardgrigg> that's handy
341: [08:35:00] <LePhil> not really
342: [08:35:00] <LePhil> it's not like clients would like to acces their stuff on them...
343: [08:37:00] <howardgrigg> dengue: ORIGIN early 19th cent.: from West Indian Spanish, from Kiswahili dinga (in full kidingapopo), influenced by Spanish dengue ‘fastidiousness’ (with reference to the dislike of movement by affected patients).
344: [08:41:00] * xmem has joined #silverstripe
345: [08:45:00] <Pyromanik> howardgrigg, is that the name of your course manager thing, or is that the name of your course?
346: [08:49:00] * oscar_ has joined #silverstripe
347: [08:50:00] * simon_w has joined #silverstripe
348: [08:51:00] <howardgrigg> thats the case of the week - dengue fever, im studying medicine
349: [08:54:00] <Pyromanik> oic, cool
350: [08:54:00] <CIA-12> silverstripe: TeamCity sapphire/translation-staging * r9460a0a / lang/es_MX.yml : MINOR Updated translations - http://git.io/DF9LQA
351: [09:01:00] <LePhil> I'm having difficulties with custom javascript
352: [09:02:00] <LePhil> anyone knows their way around jquery and silverstripe?
353: [09:02:00] <howardgrigg> i know a little bit...
354: [09:04:00] <LePhil> $.noConflict();
355: [09:04:00] <LePhil> in myStartpage_Controller in init() I have this:
356: [09:04:00] <LePhil> Requirements::javaScript("http://code.jquery.com/jquery-latest.js");
357: [09:04:00] <LePhil> Requirements::javaScript("mysite/code/javascript/bxslider/source/jquery.bxSlider.js");
358: [09:04:00] <LePhil> Requirements::customScript('
359: [09:04:00] <LePhil> jQuery(document).ready(function() {
360: [09:04:00] <LePhil> console.log("loading...");
361: [09:04:00] <LePhil> jQuery("#StartSlider").bxSlider();
362: [09:04:00] <LePhil> });'
363: [09:04:00] <LePhil> );
364: [09:05:00] <LePhil> the path to the plugin .js is also correct, inspector shows no 404s
365: [09:05:00] <LePhil> console works perfectly
366: [09:06:00] <LePhil> but the console says "Uncaught TypeError: Object #<Object> has no method 'bxSlider'"
367: [09:06:00] <LePhil> I'm starting to think that the plugin isn't that well-written
368: [09:09:00] <howardgrigg> im not sure where it loads customScript - it needs to be after its loaded the plugin
369: [09:09:00] <howardgrigg> LePhil: is the site live so we can see it?
370: [09:11:00] <LePhil> howardgrigg yes it's live: http://silverstripe.pubdeville.ch/
371: [09:12:00] <LePhil> the images that are now floating somewhere should be in the slider
372: [09:13:00] <howardgrigg> three times actually
373: [09:13:00] <howardgrigg> you're including jquery twice
374: [09:15:00] <LePhil> but that shouldn't be huge problem
375: [09:15:00] <LePhil> removed the third one
376: [09:15:00] <LePhil> i'll look into why there's a second one
377: [09:15:00] <LePhil> I know, once the latest, I figured that maybe SS uses an older version and the slider plugin needs a newer one
378: [09:16:00] <LePhil> hm.I could put it in a different JS and load this with require::javascript after the plugin
379: [09:20:00] <LePhil> same result, dammit
380: [09:24:00] <howardgrigg> you still have 2 jquerys
381: [09:24:00] <LePhil> it includes jquery, bxslider and startpage.js where I have the jQuery(document).ready(...)
382: [09:25:00] <LePhil> yes, I don't know where the second one gets included
383: [09:26:00] <LePhil> the first one is in Page's init()
384: [09:26:00] <howardgrigg> you can call requirements::block
385: [09:30:00] <LePhil> holy fuckshit
386: [09:30:00] <LePhil> that was the problem
387: [09:33:00] <LePhil> I thank you, kind sir
388: [09:34:00] <howardgrigg> no worries
389: [09:35:00] <howardgrigg> cause everything is defined twice
390: [09:35:00] <LePhil> why would 2 jquery includes mess up a plugin?
391: [09:36:00] <LePhil> hehe
392: [09:36:00] * howardgrigg doesn't pretend to know what's going on
393: [09:36:00] <LePhil> doesn't it just get redefined?
394: [09:36:00] * AshKyd quit (Remote host closed the connection)
395: [09:40:00] <CIA-12> silverstripe: Ingo Schommer sapphire/pull/deprecate-profiler * raffc34d / (9 files in 7 dirs): API Deprecated Profiler class, removed related debug GET params - http://git.io/HSS2uQ
396: [09:42:00] <Zauberfisch> howardgrigg LePhil jquery should just overwrite the previous jquery
397: [09:43:00] <Zauberfisch> so there should be no issues with the plugin
398: [09:43:00] <Zauberfisch> unless the 2nd jquery you include is a different version of jquery, and not compatible with the plugin
399: [09:44:00] <howardgrigg> yea they were 1.4 & 1.7
400: [09:44:00] <LePhil> ah I should have looked at the jquery files
401: [09:44:00] <LePhil> that could cause problems
402: [09:44:00] <LePhil> I see
403: [09:51:00] <Pyromanik> to avoid the problem I generally use the packaged jquery from sapphire
404: [09:51:00] <Pyromanik> LePhil, yes, it gets redefined, meaning that it loses all plugin info associated with the first object.
405: [09:52:00] <howardgrigg> i usually turn off front end validation and do it with jquery.validate
406: [09:52:00] <Pyromanik> the second copy gets included whenever you have userforms or something else that uses it on a page.
407: [09:53:00] <Pyromanik> at the moment the script filename just gets used as the id
408: [09:53:00] <howardgrigg> gets rid of prototype and other yuck stuff
409: [09:53:00] <Pyromanik> one of these days I'm gonna stop being lazy and overhaul the requirements engine.
410: [09:53:00] <Pyromanik> I think unique IDs should be required. That way you can define a file and an ID, if it's already included then it skips adding it again.
411: [09:54:00] <Pyromanik> just first in first out
412: [09:54:00] <Pyromanik> and it's not required.
413: [09:54:00] <Pyromanik> plus there's no real concept of inclusion order.
414: [09:54:00] * Becci_ has joined #silverstripe
415: [09:55:00] <Becci_> Hello there! I suppose it may not be entirely uncommon for somebody to hop in and ask stupid questions (that are likely covered by a FAQ somewhere), but... I was hoping I could do just that.
416: [09:57:00] <Pyromanik> so question away
417: [09:57:00] <Pyromanik> you do that
418: [09:57:00] <Pyromanik> by announcing yourself you've just saved yourself from a berating :D
419: [09:57:00] <Pyromanik> ok
420: [09:58:00] <Becci_> -illiterate as it is). So... do I have any other options to gain analytics for my page?
421: [09:58:00] <Becci_> Basically, I work for a company to create content for their webpage. They've asked me to figure out how to gain access to analytics for the page - and overview of pagehits for the various sections etc. I've been checking out the forums and FAQ and found a number of modules that allow google analytics integration, but since I'm not actually a site admin and just a content monkey, I can't exactly install or change anything (even i
422: [09:59:00] <Pyromanik> use something like awstats to extract statistics?
423: [09:59:00] <Pyromanik> nup.
424: [09:59:00] <Becci_> Guh
425: [09:59:00] <Pyromanik> check the web server logs?
426: [09:59:00] <LePhil> Becci_ nah, I ask stupid questions all the time
427: [09:59:00] <Becci_> Yay!
428: [10:00:00] <LePhil> Pyromanik: still pissed about your car? :)
429: [10:00:00] <Pyromanik> "No."
430: [10:00:00] <Pyromanik> "No analytics for you!"
431: [10:00:00] <Becci_> Got that bit!
432: [10:00:00] <Becci_> :(
433: [10:00:00] <Pyromanik> :P
434: [10:00:00] <howardgrigg> Becci_: who has access to the actual files that make up your website?
435: [10:00:00] <Pyromanik> ok
436: [10:00:00] <Becci_> (use small words, please)
437: [10:00:00] <Pyromanik> well
438: [10:00:00] <Becci_> Hum. Web server logs. This is where being semi-PC-illiterate kinda kicks in.
439: [10:01:00] <Pyromanik> 1: find some redundant module.
440: [10:01:00] <Pyromanik> analytics requires that something tracks clicks and things. Only code can do that, so if the site doesn't do it already... someone needs to change it so it does.
441: [10:01:00] <Pyromanik> if this is not you, then you cannot do it.
442: [10:01:00] <Becci_> I have access to the cms, but I actually have no idea who has access to the... coding?
443: [10:01:00] <Pyromanik> LePhil, nope. He said use simple terms!
444: [10:01:00] <Pyromanik> Becci_, there are 2 ways you could go about this.
445: [10:01:00] <LePhil> ah, ok
446: [10:02:00] <Pyromanik> and hope that that's the only major page template (generally is).
447: [10:02:00] <Pyromanik> 2: copy and paste the google code into "themes/<yourtheme>/templates/Page.ss
448: [10:02:00] <LePhil> sounded a little pissed there
449: [10:03:00] <Becci_> hence "semi". :> I know where to look for things, its the implementation my brain shuts off at.
450: [10:03:00] <Pyromanik> either way you have to edit template code, the only thing a module does is make it easier for a content monkey to change the code stuff.
451: [10:03:00] <Pyromanik> so stop being such a girl :P
452: [10:03:00] <Pyromanik> also, as for being PC illiterate, you managed to find this channel easily enough!
453: [10:04:00] <Becci_> Thats... something I can#t exactly help.
454: [10:04:00] <Pyromanik> nah, you just gotta copy and paste code
455: [10:04:00] <howardgrigg> but yea Becci_ unfortunately you'll need someone to make the easy edit to the actual files of your website - usually whoever made your website will know
456: [10:04:00] <Pyromanik> just be a human rather than one of those icky squeely things.
457: [10:04:00] <Pyromanik> sure it is!
458: [10:05:00] <howardgrigg> also presumably your company is paying someone a monthly fee to host it - that might be a good place to start
459: [10:05:00] <Becci_> Alright.
460: [10:05:00] <Becci_> I'll have you know I squeal very rarely.
461: [10:05:00] <Pyromanik> it*
462: [10:05:00] <Pyromanik> Becci_, we can talk you through the changes, since you don't squeal much.
463: [10:05:00] <Pyromanik> but you need to get access to the code one way or another.
464: [10:05:00] <Pyromanik> Becci_, do you have any idea what FTP is or if you have access to i?
465: [10:05:00] <Becci_> I'll see if I can figure out who set this thing up in the first place.
466: [10:06:00] <Becci_> (its the only way, believe me)
467: [10:06:00] <Pyromanik> some hosts give you a control panel that has a module to let you edit file content
468: [10:06:00] <Becci_> I think I may be able to gain access, but it'll likely require some emailing back and forth to get somebody to give me access or make the changes themselves. I'll go see if I can throw sticks at somebody til they listen to me.
469: [10:06:00] <Pyromanik> Becci_, if you have someone to email
470: [10:06:00] <Pyromanik> otherwise you'll need FTP or some other way to upload changed files.
471: [10:07:00] <Becci_> I don't think we have that. Or at least I can't see anything, I've clicked my way through the majority of visible tabs and links on the webpage and cms.
472: [10:07:00] <Pyromanik> and check that there isn't already a tracking code in the source
473: [10:07:00] <Pyromanik> just get the google analytics code and get them to paste it in
474: [10:07:00] <Pyromanik> no
475: [10:07:00] <Pyromanik> better yet
476: [10:07:00] <Pyromanik> before you go and do that, press CTRL(or command)+u
477: [10:07:00] <Pyromanik> or
478: [10:07:00] <Pyromanik> I think you misunderstand
479: [10:08:00] <Pyromanik> get someone to add it to the site
480: [10:08:00] <Pyromanik> you log in to google
481: [10:08:00] <Pyromanik> and ask it for an analytics account
482: [10:08:00] * willr quit (Quit: willr)
483: [10:08:00] <Pyromanik> it will spit out some code and tell you to add it to your site
484: [10:08:00] <howardgrigg> Becci_: what is the website address - ill check it for you
485: [10:08:00] <Becci_> .. Oh. Yes, I misunderstood.
486: [10:08:00] <Pyromanik> you don't paste it in like content :P
487: [10:08:00] <Becci_> Right.
488: [10:10:00] <Pyromanik> probably
489: [10:10:00] <Pyromanik> oh
490: [10:10:00] <Becci_> Whoops. Mmh, tiny bit nervous about the logging and such.
491: [10:10:00] <Pyromanik> logging?
492: [10:10:00] <Becci_> Can I send whispers in the webclient?
493: [10:10:00] <Pyromanik> google.com/analytics
494: [10:11:00] <Becci_> Not that its all supersecret and stuff, but still.
495: [10:11:00] <Pyromanik> right click a user name
496: [10:11:00] <Pyromanik> or type /msg username your message goes here
497: [10:12:00] <howardgrigg> Becci_: that already has tracking added to it
498: [10:12:00] <Becci_> Oh dear. D:
499: [10:12:00] <Becci_> Oh?
500: [10:12:00] <Pyromanik> ha!
501: [10:13:00] <Pyromanik> now all you need is the person who registered it to remember that they registered it
502: [10:13:00] <Becci_> Now I feel extra stupid. But yes!
503: [10:13:00] <Pyromanik> good thing I thought for you to check first!
504: [10:13:00] <Pyromanik> Becci_, you told us you're not a weby person, so it's all good. No feeling stupid allowed!
505: [10:14:00] <Pyromanik> it won't be on the website
506: [10:14:00] <Pyromanik> the person who asked you to do something that has already been done however... different story :P
507: [10:14:00] <Becci_> Alright. And to figure out who that person was. So they should be able to see the tracking on the website somewhere and either give me access to that or at least give me the numbers.
508: [10:15:00] <Pyromanik> (assuming that it was a google tracking code howardgrigg?)
509: [10:15:00] <howardgrigg> oh yea
510: [10:15:00] <Becci_> I'll just pretend I meant that website. Sorry I'm being dense. I'm still trying to work out how to find out who ended up setting this up and hoping they're not in a different department now.
511: [10:15:00] <howardgrigg> UA-24947160-1
512: [10:15:00] <Pyromanik> google.com/analytics
513: [10:15:00] <Pyromanik> it'll be there.
514: [10:16:00] <Pyromanik> I think it's time for bed :< Have to get up early!
515: [10:16:00] <Pyromanik> righto, well have fun now Becci_!
516: [10:17:00] <Pyromanik> hah LePhil
517: [10:17:00] <Pyromanik> :P
518: [10:17:00] <LePhil> wubwubwub?
519: [10:17:00] <Pyromanik> partytime
520: [10:17:00] <LePhil> g'night
521: [10:17:00] * LePhil wasn't helpful at all, but thanks :P
522: [10:17:00] <Becci_> And good night!
523: [10:17:00] <Becci_> Oh! Three. :>
524: [10:17:00] <LePhil> sleep('well');
525: [10:17:00] <Becci_> Thanks for the help you two. :)
526: [10:18:00] <Pyromanik> ciao
527: [10:18:00] <Pyromanik> mmm
528: [10:18:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.)
529: [10:20:00] <LePhil> even IE7 supports it :3
530: [10:20:00] <LePhil> howardgrigg: in case you want to see it in action, my slider works now. Good times :)
531: [10:21:00] <LePhil> minus a smallish JS error
532: [10:26:00] <LePhil> which I just fixed
533: [10:34:00] <ajshort> Marvanni: no
534: [10:34:00] * SphereSQL has joined #silverstripe
535: [10:34:00] <SphereSQL> Can anybody help me?
536: [10:34:00] <Marvanni> Question, If a Form is sumbitted, but the Form won't validate, does it reach the submitAction?
537: [10:34:00] <Marvanni> the method I mean
538: [10:34:00] <SphereSQL> SS3: No searchable fields could be found for class "Member"
539: [10:34:00] <SphereSQL> GridField Add existing
540: [10:35:00] <Becci_> Alright, sent out my emails and will hop off for now, thanks again for the help! :) Have a good one.
541: [10:35:00] * Becci_ quit (Quit: Page closed)
542: [10:38:00] <Marvanni> ajshort, thanks.
543: [10:39:00] <LePhil> SphereSQL I haven't used SS3 yet, and can't really help you. But you did state the searchable fields, right?
544: [10:43:00] <Marvanni> ajshort, just to be sure. I use FrontendForm extends Form, so I can us a different template. The submitFormMethod is not in the Form class itself but on the PageController. Should the Form still not reach the submitFormMethod on validation fail?
545: [10:43:00] * Ryoken|Desktop quit (Read error: Connection reset by peer)
546: [10:44:00] <Marvanni> ke, ty
547: [10:44:00] <ajshort> yes
548: [10:44:00] * Ryoken|Desktop has joined #silverstripe
549: [10:45:00] <SphereSQL> but appearantly, the GridFieldAddRelatedSearch function only works on Title
550: [10:45:00] <SphereSQL> LePhil, it's default in the Member-class: Searchable_fields = first/last & email
551: [10:49:00] <ajshort> SphereSQL: The setSearchFields method may be of use
552: [10:59:00] * xmem quit (Ping timeout: 245 seconds)
553: [11:06:00] <LePhil> brb
554: [11:06:00] <LePhil> I have no idea about Grids
555: [11:06:00] <LePhil> SphereSQL, did it work?
556: [11:06:00] <LePhil> omnomnomming
557: [11:06:00] <LePhil> oh
558: [11:13:00] <SphereSQL> LePhil, ajshort, extend Member with a Title-field solves it.
559: [11:30:00] <Colin[pi]> hey, isn't $summary_fields able to have a method in place of a field name?
560: [11:31:00] <howardgrigg> Colin[pi]: is that what you use casting for?
561: [11:32:00] <Colin[pi]> ah, basically I want a gridfield to show a method result instead of a field value
562: [11:32:00] <Colin[pi]> i need to use casting then?
563: [11:34:00] <Colin[pi]> yep casting, thanks
564: [11:35:00] <ajshort> Colin[pi]: Your problem is probably that by default $summary_fields also rolls over to $searchable_fields
565: [11:36:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * r9ce0c9a / thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php : Relative include path for RailsYAML PHPUnit tests - http://git.io/BwOCBw
566: [11:36:00] <Colin[pi]> well it seems gridfield is only happy with field names in $summary_fields
567: [11:36:00] * mightycoco quit (Quit: reboot)
568: [11:37:00] <Colin[pi]> but I can setFieldCasting on the GridFieldDataColumns column and achieve what I want to do
569: [11:37:00] <Colin[pi]> column = component
570: [11:37:00] <SphereSQL> Colin[pi], that sounds pretty much the same as my problem...
571: [11:37:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r8687891 / (4 files): Enforce flush on CI test runs - http://git.io/WQOR3A
572: [11:38:00] <Colin[pi]> did you sort it out?
573: [11:39:00] <Colin[pi]> arrrgh but now if I use a different name for the column in the gridfield the casting dies -_-
574: [11:43:00] * xmem has joined #silverstripe
575: [11:53:00] <SphereSQL> I was having a fight with searchable_fields not being searched by add existing gridfield search
576: [11:57:00] * lx-berlin has left #silverstripe
577: [12:01:00] <Colin[pi]> derp I fixed it, pebkac error
578: [12:05:00] <Colin[pi]> hmmm I wonder why data columns in gridfield is not pulling $casting from the model?
579: [12:10:00] * Nemitz has joined #silverstripe
580: [12:10:00] <Nemitz> Hi :-)
581: [12:11:00] <Nemitz> Is it possible to decide how the pages returned from TreeMultiselectField is sorted? I would like to return them in the order they where added
582: [12:14:00] * UndefinedOffset has joined #silverstripe
583: [12:18:00] <LePhil> anyone knows how to disable the automatic creation of a start page?
584: [12:21:00] <Colin[pi]> a start page?
585: [12:22:00] <LePhil> yes. I have defined a myPage page as start page for my domain, but upon a /dev/build, a startpage of the type page gets created with the standard text "this is your silverstripe yadda yadda yadda"
586: [12:23:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r66a267c / (4 files): Enforce flush on CI test runs - http://git.io/afXnYg
587: [12:23:00] <howardgrigg> LePhil: SilverStripe needs a page with the url 'home'
588: [12:24:00] <LePhil> ah, not start.
589: [12:24:00] <LePhil> hm
590: [12:24:00] <LePhil> can I change that?
591: [12:26:00] <howardgrigg> yea the url field is just below the title
592: [12:26:00] <LePhil> heh, no, I mean this dependency on a "home" page
593: [12:26:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * rb3e8696 / (4 files): Enforce flush on CI test runs - http://git.io/Dsnk_g
594: [12:27:00] <Nemitz> it's just something that needs to be there
595: [12:27:00] <Nemitz> You will never actually see the url home
596: [12:27:00] <howardgrigg> oh - i dunno, the home doesnt get shown
597: [12:28:00] <LePhil> but it needs to exist in the page overview
598: [12:29:00] <LePhil> thanks!
599: [12:29:00] <LePhil> it works now :)
600: [12:29:00] <howardgrigg> yea problem solved
601: [12:29:00] <LePhil> I deleted the newly created page now and changed the url-part of *my* start page to "home" instead of "start"
602: [12:29:00] <LePhil> not that big of a deal
603: [12:36:00] <SphereSQL> IS there a MultiselectField for SS3?
604: [12:37:00] <Nemitz> TreeMultiselectField?
605: [12:37:00] * howardgrigg quit (Quit: howardgrigg)
606: [12:49:00] <SphereSQL> but it breaks on jQuery
607: [12:49:00] <SphereSQL> Ah, yes
608: [12:50:00] <Nemitz> Is it possible to decide how the pages returned from TreeMultiselectField is sorted? I would like to return them in the order they where added
609: [12:50:00] <SphereSQL> Ah, no, it's not that
610: [12:50:00] <Nemitz> Ohh, don't know about SS3, working with the field on SS 2.4 now and it's ok, except no option for sorting
611: [12:50:00] <SphereSQL> It seems to simply refuse to work on the frontend?
612: [12:57:00] <SphereSQL> I don't think so, you could extend it with a sort-static
613: [13:05:00] * SphereSQL quit (Read error: Connection reset by peer)
614: [13:14:00] * Arno has joined #silverstripe
615: [13:14:00] * LePhil quit (Quit: Page closed)
616: [13:14:00] <LePhil> gtg... thanks for everything
617: [13:15:00] * howardgrigg has joined #silverstripe
618: [13:23:00] * ajshort quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.2.12/20101026201539])
619: [13:26:00] <Arno> Hello, I would like to generate a Yes/No in the summaryfields, GridField SS3.. but this doesnt seem to work anymore
620: [13:26:00] <Arno> http://www.sspaste.com/paste/show/4ff599c84a4b5
621: [13:27:00] <Zauberfisch> Arno there is a nicer way to do this than a isPublished function
622: [13:28:00] <Zauberfisch> you can use fieldcasting
623: [13:28:00] <Arno> Zauberfisch: hey, do you have a example of that?
624: [13:28:00] * SphereSQL has joined #silverstripe
625: [13:28:00] <SphereSQL> hmmmm, the chained $object->many_many_relation()->Title
626: [13:29:00] <SphereSQL> doesn't work anymore?
627: [13:29:00] <howardgrigg> SphereSQL: im pretty sure a patch for that has been submitted for 3.0.1
628: [13:30:00] <Zauberfisch> Arno try this http://paste2.org/p/2066338
629: [13:30:00] <Nemitz> SphereSQL: "you could extend it with a sort-static" do you have an example or something for me regarding this?
630: [13:31:00] <SphereSQL> that's what I'm trying to do
631: [13:31:00] <Arno> Zauberfisch: http://paste2.org/p/2066339 is my current setup, it seems out to date compared to yours?
632: [13:31:00] <SphereSQL> UserFunction::get()->filter(array('Title' => 'Projectmanager'))->Member()->map('ID', 'Title')
633: [13:33:00] * instabil has joined #silverstripe
634: [13:33:00] <Zauberfisch> Arno http://paste2.org/p/2066341
635: [13:34:00] <Arno> zauberfisch: thanks man, learned something again, its working great
636: [13:35:00] <SphereSQL> howardgrigg, do you know where that patch is supposed to be?
637: [13:35:00] <howardgrigg> i just had a look for it - ill look harder
638: [13:36:00] <SphereSQL> I'm browsing github like it's my job :P
639: [13:37:00] <howardgrigg> this is the one i was thinkking of https://github.com/silverstripe/sapphire/commit/cd0a1ff623c259af8478558369ec5281ba3aa9c8
640: [13:39:00] <SphereSQL> Nope, that's not it, unless I need to revert that change....
641: [13:43:00] <SphereSQL> Hmmm, seems chaining doesn't work at all. That sucks
642: [13:45:00] * openbees has joined #silverstripe
643: [13:50:00] * openbees quit (Ping timeout: 245 seconds)
644: [13:56:00] <Nemitz> SphereSQL: did you have any pointers for adding sorting functionality to the TreeMultiselectField?
645: [13:59:00] * openbees has joined #silverstripe
646: [14:01:00] <openbees> I have problem with getting dataobject on pages .. in template its showing just one row .. can anybody refer me to some sample code ?
647: [14:04:00] <SphereSQL> in the template, loop it.
648: [14:04:00] <SphereSQL> openbees, do you have a sample of your code?
649: [14:04:00] <SphereSQL> Nemitz, no, sorry, all I can think of extending it, and adjust the construct?
650: [14:04:00] <openbees> wait a minute !
651: [14:04:00] <SphereSQL> basically, in the function, return the objectlist
652: [14:06:00] <openbees> SphereSQL : http://www.sspaste.com/paste/show/4ff53a1c2b5f6
653: [14:06:00] <SphereSQL> <% loop %> <% with %> <% end_with %> <% end_loop %>
654: [14:06:00] * howardgrigg quit (Quit: howardgrigg)
655: [14:06:00] <SphereSQL> you want a loop
656: [14:06:00] <SphereSQL> You're doing a with
657: [14:08:00] * Nemitz quit (Quit: Nemitz)
658: [14:08:00] <Nemitz> SphereSQL: Ok, i will try to see what i can figure out, gtg, thanks guys
659: [14:09:00] * Colin[pi] quit (Quit: sleep times)
660: [14:15:00] <openbees> SphereSQL : wait a minute .. do you mean "<% loop moduleList %> <% with moduleList %> .... <% end_with %><% end_loop %>" ?
661: [14:16:00] <SphereSQL> no, you just want to <% loop%> it.
662: [14:16:00] <SphereSQL> the "with" function has a different use.
663: [14:17:00] <SphereSQL> ignore my with-response ;) with is "the first"
664: [14:17:00] <SphereSQL> if I'm not mistaken
665: [14:18:00] <ec8or_> use with for dataobjects and loop for dataobjectsets
666: [14:18:00] <SphereSQL> dataobjectLISTS :P
667: [14:19:00] <SphereSQL> anyway, that ;)
668: [14:19:00] <openbees> using <% loop %> ... <% end_loop %> ... gives error "Up called when we're already at the top of the scope" ?
669: [14:20:00] <ec8or_> yeah ok lists :)
670: [14:21:00] <ec8or_> openbees: why are you sotring it in an array before returning to the template?
671: [14:22:00] <SphereSQL> Why don't you just return the objectset?
672: [14:22:00] <SphereSQL> why are you creating an array, then "customise with"?
673: [14:22:00] <SphereSQL> why not renderWith?
674: [14:22:00] <ec8or_> return $modules;
675: [14:22:00] <SphereSQL> ^^ with
676: [14:22:00] <ec8or_> and then you should be able to loop it
677: [14:23:00] <openbees> i don't know .. #NOOB :) .. let me check !
678: [14:25:00] <ec8or_> what you're doing is too advanced ;)
679: [14:25:00] <openbees> :)
680: [14:26:00] <openbees> processing .. #NOOB to #EXPERT
681: [14:26:00] <openbees> :)
682: [14:28:00] <ec8or_> works?
683: [14:30:00] <openbees> yes :) but using ... <% loop moduleList %> .... <% end_loop %> !!
684: [14:30:00] <SphereSQL> Hmmm, SS3 is not following it's own documentation
685: [14:30:00] <SphereSQL> $members = Member::get()->filter(array(
686: [14:30:00] <SphereSQL> 'Groups.Title:StartsWith' => array('A', 'B'),
687: [14:30:00] <SphereSQL> ));
688: [14:30:00] <openbees> thanks guys
689: [14:31:00] <SphereSQL> that SHOULD work... but it's giving me "unknown column Groups.Title"
690: [14:31:00] <SphereSQL> wtf?
691: [14:31:00] <ec8or_> SphereSQL: not one of those unimplemented passages in the docs is it?
692: [14:32:00] <openbees> FUN FACT: The functionality below isn't implemented in the code yet. .. but don't know how much below :)
693: [14:33:00] <ec8or_> yeah exactly :)
694: [14:33:00] <openbees> they should have define ... scope of "below" :D
695: [14:41:00] <SphereSQL> It doesn't say, "not implemented" about what I need
696: [14:41:00] <SphereSQL> (not the StartsWith btw)
697: [14:57:00] <SphereSQL> Ahhhh, fuuuuu
698: [14:59:00] * xmem quit (Quit: Verlassend)
699: [15:15:00] * SphereSQL quit (Remote host closed the connection)
700: [15:23:00] * ajshort has joined #silverstripe
701: [15:32:00] <Arno> Anyone know what I am doing wrong? function canView() { return $this->NewsPage()->canView(); }
702: [15:32:00] <Arno> [Strict Notice] Declaration of Article::canView() should be compatible with that of DataObject::canView()
703: [15:37:00] <ajshort> Arno: function canView($member = null) { return $this->NewsPage()->canView($member); }
704: [15:37:00] <ajshort> Overloaded functions must accept the same arguments as the parent
705: [15:38:00] * bti has joined #silverstripe
706: [15:38:00] <Arno> oke :) thanks!
707: [15:40:00] <bti> hello, i'm looking for a way to extend the ModelAdmin interface to add a custom tab and content panels in SS3
708: [15:46:00] * openbees quit (Ping timeout: 252 seconds)
709: [15:46:00] * ajshort quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.2.12/20101026201539])
710: [15:48:00] * bti quit (Quit: leaving)
711: [15:56:00] * hormy has joined #silverstripe
712: [15:56:00] <hormy> hi
713: [15:56:00] <hormy> I have a bug on silverstripe 3
714: [15:56:00] <ss23> Flick it away
715: [15:56:00] <ss23> It shouldn't be poisonous
716: [15:56:00] <hormy> rss feed does not works, it returns only 1
717: [15:58:00] <hormy> it is a knownbug
718: [15:58:00] <hormy> ?
719: [15:59:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * ra1ab035 / (12 files in 11 dirs): Merge branch '3.0' (+14 more commits...) - http://git.io/F1UA9w
720: [15:59:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-cms/master * racb0e94 / lang/en.yml : MINOR Updated translations master - http://git.io/qYhqbg
721: [15:59:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-cms/master * r9f7ec96 / (57 files): MINOR Updated translations - http://git.io/fB9cQw
722: [15:59:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-cms/master * r25ee305 / (14 files): MINOR Updated translations - http://git.io/8RKJuw
723: [15:59:00] <CIA-12> silverstripe: Sam Minnee silverstripe-cms/master * r040f780 / code/model/RedirectorPage.php : BUG: Allow children on RedirectorPage (Trac #7587) - http://git.io/ujrFXw
724: [15:59:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-cms/master * rd1bc721 / code/model/RedirectorPage.php : Merge branch '3.0' - http://git.io/XKgxMQ
725: [16:01:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/master * rb3e8696 / (4 files): Enforce flush on CI test runs - http://git.io/Dsnk_g
726: [16:01:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/master * rc8dbcf7 / (3 files): PHPUnit XML configs for other db drivers on TeamCity - http://git.io/c27-EQ
727: [16:01:00] <hormy> have someone made rss in version 3
728: [16:01:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * r64357a4 / (12 files in 11 dirs): Merge branch '3.0' - http://git.io/ySG6aQ
729: [16:01:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/master * r3e24385 / (4 files): Merge branch '3.0' - http://git.io/oLi18w
730: [16:01:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/master * r1ca61a5 / tools/CreateChangelog.php : Updated 'phing changelog' to work with new commit tags - http://git.io/qouwzg
731: [16:03:00] * openbees has joined #silverstripe
732: [16:04:00] <Torrez> How do I build a membership site with SilverStripe 3?
733: [16:04:00] * Torrez has joined #silverstripe
734: [16:05:00] <Torrez> Is there paid add-on or an old add-on that can be made compatible?
735: [16:05:00] <Torrez> a*
736: [16:08:00] <Torrez> So.. that's a no?
737: [16:10:00] <openbees> I am using return "$this->customise($Data)->renderWith(array('Theme_show', 'Page'));" for showing dataobject as pages .. but its not picking header,navigation,and footer content ? any idea why ?
738: [16:13:00] <openbees> ^^ more detail code is here http://www.sspaste.com/paste/show/4ff5c0a5f2b78
739: [16:18:00] <hormy> rss problem?
740: [16:20:00] <ec8or_> Torrez: do you just need member registration or would they have to pay to join?
741: [16:22:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r2be8924 / tools/CreateChangelog.php : Accepting "FIX" notation in changelog generator script (+8 more commits...) - http://git.io/R6jmpQ
742: [16:22:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-cms/3.0 * rc1aad0d / (7 files in 5 dirs): Merge branch 'master' into 3.0 (one-off) (+14 more commits...) - http://git.io/zITAsg
743: [16:22:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * rb691475 / (213 files in 60 dirs): Merge branch 'master' into 3.0 (one-off) (+122 more commits...) - http://git.io/udJ3SA
744: [16:26:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * r4b9ccab / (3 files in 2 dirs): Merge pull request #603 from willrossi/trac7296 - http://git.io/oRbdww
745: [16:26:00] <CIA-12> silverstripe: Will Rossiter sapphire/master * r9babb01 / (3 files in 2 dirs): FIX: ensure that permissions_for_member() accounts for denied permissions. - http://git.io/53UVVA
746: [16:28:00] <CIA-12> silverstripe: Simon Welsh sapphire/master * r9f6eeb4 / view/Requirements.php : FIX: insert javascript requirements before the first inline script. - http://git.io/k6lC7A
747: [16:28:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * r2deb5d6 / view/Requirements.php : Merge pull request #605 from willrossi/trac6648 - http://git.io/Zs93sw
748: [16:34:00] <CIA-12> silverstripe: Tim Klein sapphire/master * ra67b964 / (control/Director.php tests/control/DirectorTest.php): FIX: improve Director::makeRelative() to ignore SSL changes. - http://git.io/rjVK8Q
749: [16:34:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * rbc99382 / (control/Director.php tests/control/DirectorTest.php): Merge pull request #609 from willrossi/trac6672 - http://git.io/zK9B-Q
750: [16:39:00] <Torrez> Hello EcBor, simple member registration.
751: [16:40:00] <Torrez> No payments for the time being.
752: [16:42:00] * catcher has joined #silverstripe
753: [16:48:00] * openbees quit (Quit: Leaving)
754: [17:02:00] <Arno> chillu: I am really having a major problem with the tinymce and adding styles, do you have some time to help me? Because it is SS3 after all :o
755: [17:26:00] * vbeing has joined #silverstripe
756: [17:39:00] * gelignite has joined #silverstripe
757: [18:02:00] * hormy quit (Ping timeout: 245 seconds)
758: [18:06:00] <CIA-12> silverstripe: TeamCity silverstripe-cms/translation-staging * r268cb93 / lang/de.yml : MINOR Updated translations - http://git.io/kve1wA
759: [18:24:00] * SStuck has joined #silverstripe
760: [18:34:00] <SStuck> clearly explained...long day!
761: [18:34:00] <SStuck> Hi all, how can I get a function to display a form on my page? I have a property of member - "reason". If reason isn't set, my page shows a form to fill it in. If it is set, "reason" is displayed on the page (and no form). I want to have an edit link that brings back the populated form for editing. I have the edit link working fine if the form is always present, but how can I hide the form and have the edit function reload the page with the form showing ag
762: [18:35:00] * SStuck has left #silverstripe
763: [18:38:00] <SStuck> Oops had to disconnect and switch devices did I miss anything?
764: [18:38:00] * SStuck has joined #silverstripe
765: [18:44:00] * waerloga is now known as waer-away
766: [18:45:00] * AndChat|249849 has joined #silverstripe
767: [18:47:00] * SStuck quit (Ping timeout: 244 seconds)
768: [18:57:00] * Torrez quit (Quit: Page closed)
769: [19:05:00] * LoveDuckie has joined #silverstripe
770: [19:06:00] <CIA-12> silverstripe: TeamCity silverstripe-cms/translation-staging * r9dd8655 / lang/de.yml : MINOR Updated translations - http://git.io/UcdLAA
771: [19:22:00] * SStuck has joined #silverstripe
772: [19:25:00] * AndChat|249849 quit (Ping timeout: 264 seconds)
773: [19:36:00] * SightUnseen has left #silverstripe
774: [19:36:00] * SightUnseen has joined #silverstripe
775: [19:53:00] * theorytank has joined #silverstripe
776: [19:57:00] * waer-away is now known as waerloga
777: [20:26:00] * ralf_l quit (Client Quit)
778: [20:26:00] * UndefinedOffset quit (Quit: Leaving.)
779: [20:26:00] * ralf_l has joined #silverstripe
780: [20:38:00] * simon_w|air has joined #silverstripe
781: [20:40:00] <Pyromanik||> good morning
782: [20:41:00] <Pyromanik||> Hi Simon.
783: [20:41:00] <Pyromanik||> SStuck: you create a new Form() and then return it. Use the method name that returns this Form class in your template.
784: [20:41:00] <SphereSilver> Is anyone interested in an SS3.0 compatible Forum module?
785: [20:41:00] * SphereSilver has joined #silverstripe
786: [20:41:00] <SphereSilver> Hey Pyromanik||
787: [20:42:00] <SphereSilver> Pyromanik||: rebuilding it, yes. But I am failing at relational objects. SS3 can't handle relations to some degree yet.
788: [20:42:00] <Pyromanik||> SphereSilver: you mean you're going to upgrade the existing one?
789: [20:42:00] <Pyromanik||> wait what
790: [20:43:00] <SphereSilver> if you address Object1
791: [20:43:00] <Pyromanik||> the whole thing is about relations!
792: [20:43:00] <SphereSilver> yeah, but try this, considering you have Object1 many_many = array(objects2 => object2);
793: [20:43:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * r0fe515e / (9 files in 7 dirs): API Deprecated Profiler class, removed related debug GET params - http://git.io/3Np4ag
794: [20:43:00] <CIA-12> silverstripe: Ingo Schommer sapphire/master * re00c875 / (9 files in 7 dirs): Merge pull request #618 from chillu/pull/deprecate-profiler - http://git.io/WUGYEw
795: [20:43:00] <SphereSilver> Object1->object2()->stuff
796: [20:44:00] <Pyromanik||> huh?
797: [20:44:00] <SphereSilver> is impossible, it will return an error
798: [20:44:00] <SphereSilver> yes, my thought exactly
799: [20:44:00] <Pyromanik||> only if Object1 or Object2 return null.
800: [20:44:00] <Pyromanik||> they're not meant for chaining.
801: [20:44:00] <Pyromanik||> you need to use ->exists() to test.
802: [20:45:00] <SphereSilver> Pyromanik||: Object2 is in an if
803: [20:45:00] <Pyromanik||> should return null, an empty object, or your datalist
804: [20:45:00] <Pyromanik||> although I'm not sure about v3 tbh
805: [20:45:00] <SphereSilver> yes, but I KNOW object1 exists ;)
806: [20:45:00] <simon_w|air> what error?
807: [20:45:00] <SphereSilver> the relational ->Object2()->stuff just simply fails
808: [20:45:00] <Pyromanik||> SphereSilver: yeah, but what about object2?
809: [20:45:00] <Pyromanik||> shouldn't do.
810: [20:46:00] <Pyromanik||> if succeeds
811: [20:46:00] <SphereSilver> so, it shouldn't break. It breaks entirely. And also, I'm sure Object2 exists
812: [20:46:00] <Pyromanik||> SphereSilver: yeah, but if it's returning an empty list...
813: [20:46:00] <SphereSilver> but in PHP Controller, it fails, I have yet to find out why.
814: [20:46:00] * Nemitz has joined #silverstripe
815: [20:46:00] <SphereSilver> because in the template, it does give the correct respons (in my test-case, the first name)
816: [20:47:00] <Pyromanik||> var dump getComponents
817: [20:47:00] <SphereSilver> Hi and Bye Nemitz I guess :P
818: [20:47:00] <SphereSilver> Null
819: [20:47:00] <SphereSilver> The many_many or belongs_many_many seems to fail.
820: [20:47:00] * Nemitz quit (Client Quit)
821: [20:48:00] <Pyromanik||> inspect db ><
822: [20:48:00] <Pyromanik||> inspect db to ensure that association made correctly on join table
823: [20:48:00] <SphereSilver> I use FirePHP, so I push it with fb($this->getComponents())=
824: [20:48:00] <SphereSilver> but the idea is the same. The join/relation is not fetched.
825: [20:49:00] <SphereSilver> if I use the show-query functions, it shows completely no relational fetches.
826: [20:49:00] <SphereSilver> I think, the relational fetch is broken.
827: [20:49:00] <SphereSilver> I admit, my _config is somewhat conditional, but it's not strange or should not break anything.
828: [20:49:00] <SphereSilver> that's why I guess, there's something wrong.
829: [20:49:00] <SphereSilver> even on a clean install
830: [20:51:00] <Pyromanik||> though I guess if it's manymany then it'd still check.
831: [20:51:00] <Pyromanik||> ss3 uses efficient queries
832: [20:51:00] <SphereSilver> Pyromanik||: Then, why is this failing?
833: [20:51:00] <Pyromanik||> SphereSilver: no
834: [20:51:00] <SphereSilver> Member::get()
835: [20:52:00] <SphereSilver> Sorry, let's make it complete. Here's a simple example of failing to do:
836: [20:52:00] <Pyromanik||> groups is a list -.-
837: [20:52:00] <SphereSilver> while it should dump an object.
838: [20:52:00] <SphereSilver> gives an error
839: [20:52:00] <SphereSilver> var_dump($Member->Groups()->Title);
840: [20:52:00] <SphereSilver> $Member = Member::get()
841: [20:52:00] <Pyromanik||> you'd at least see a query to count the join table I'd imagine
842: [20:53:00] <SphereSilver> even inside a foreach() for that matter.
843: [20:53:00] <Pyromanik||> it doesn't have a title
844: [20:53:00] <SphereSilver> yes, but for a dump, it shouldn't matter
845: [20:53:00] <SphereSilver> it should dump null
846: [20:53:00] <SphereSilver> it dumps nothing
847: [20:53:00] <Pyromanik||> it should break
848: [20:53:00] <SphereSilver> it shouldn't break, it should dump null
849: [20:53:00] <Pyromanik||> no, it should error and go "Yo dawg, Title is not a property on object DataList"
850: [20:54:00] <Pyromanik||> accessing an non existant property
851: [20:54:00] <Pyromanik||> did you spellcheck?
852: [20:54:00] <SphereSilver> sorry, my example wasn't up to par
853: [20:54:00] <SphereSilver> error
854: [20:54:00] <Pyromanik||> oic
855: [20:54:00] <SphereSilver> I get "Groups is not defined"
856: [20:54:00] <Pyromanik||> so probably you're right, null would do.
857: [20:54:00] <Pyromanik||> and this is php
858: [20:54:00] <SphereSilver> I don't get "non existing property"
859: [20:54:00] <Pyromanik||> although, it's not a method
860: [20:54:00] <Pyromanik||> well
861: [20:54:00] <Pyromanik||> see now that's different.
862: [20:54:00] <Pyromanik||> just break
863: [20:54:00] <Pyromanik||> neg
864: [20:54:00] <SphereSilver> it should dump null and THEN break ;)
865: [20:55:00] <SphereSilver> anyway, if I should say "var_dump($Member->Groups());
866: [20:55:00] <SphereSilver> "
867: [20:55:00] <Pyromanik||> or master?
868: [20:55:00] <Pyromanik||> 3.0.0?
869: [20:55:00] <SphereSilver> Yeah, tried typo, like plural/singular
870: [20:55:00] <Pyromanik||> well then yeah, it's not supposed to do that!
871: [20:55:00] <Pyromanik||> ok
872: [20:55:00] <SphereSilver> it gives an error ;)
873: [20:56:00] <Pyromanik||> so master
874: [20:56:00] <SphereSilver> Yes, 3.0.cutting-edge
875: [20:56:00] <SphereSilver> Yeah, I haven't had time for that yet, but I am planning on that. But it's a major error if you ask me.
876: [20:56:00] <SphereSilver> latesg Master Git Pull indeed.
877: [20:56:00] <Pyromanik||> well report the regression then
878: [20:56:00] <SphereSilver> It does for me, on the latest. So... It took a while, but I guess you understand my problem?
879: [20:57:00] <SphereSilver> To get back to what I asked: "Ehm, wtf, am I the only one experiencing this error"
880: [20:57:00] <SphereSilver> I guess, I'm not, but also, it's not supposed to happen. Even on bleeding edge, the computer says no.
881: [20:59:00] <SphereSilver> If I can't address a child or parent... I'm quite lost...
882: [21:00:00] <SphereSilver> I figure, it's an unknown bug in something that big Pyromanik|| ?
883: [21:01:00] <SphereSilver> because this isn't a bug, it's a mastermind of a bug (Yes, I watched Starship Troopers last night :P )
884: [21:05:00] <irogue> its friday morning, where's all the core devs at!?
885: [21:05:00] <irogue> :P
886: [21:06:00] <SphereSilver> 11PM on Thursday, ofcourse.
887: [21:06:00] <SphereSilver> It's 11 PM
888: [21:06:00] <SphereSilver> I'm having a beer and left my code for tomorrow....
889: [21:07:00] <SStuck> Hi guys. I have an edit function for a property - "reason" - of member. Edit loads the contents into a front end form. works fine loading and saving the contents. I'm sure there's a simple answer but how could I hide the form until the edit function is called (from a link). I want to keep it all on the same page rather than go to a form page for editing if I can.
890: [21:08:00] <catcher> SStuck, <Pyromanik||> SStuck: you create a new Form() and then return it. Use the method name that returns this Form class in your template.
891: [21:08:00] <SphereSilver> Give it the CSS property "hidden"
892: [21:08:00] <SphereSilver> SStuck: Javascript.
893: [21:09:00] <SphereSilver> in your javascript, $('.showClickClass').click(function(){ $('#id').show();});
894: [21:09:00] <SphereSilver> that should work....
895: [21:10:00] <SStuck> Thanks guys.
896: [21:11:00] <Pyromanik||> SphereSilver: SILVER stripey?
897: [21:11:00] * Maciej_ has joined #silverstripe
898: [21:11:00] <SphereSilver> I should ask my cleaning lady to wash my windows.
899: [21:11:00] <Pyromanik||> lol, thanks catcher :P
900: [21:11:00] <SphereSilver> They're all stripey and stuff!
901: [21:11:00] <catcher> Or you could ask her to switch you to linux.
902: [21:11:00] <Pyromanik||> :P
903: [21:12:00] <SphereSilver> she was 5 years ago....
904: [21:12:00] <SphereSilver> Pyromanik||: I guess...
905: [21:12:00] <SphereSilver> good evening, infidelllssss
906: [21:12:00] <Pyromanik||> is your cleaning lady hot?
907: [21:12:00] <SphereSilver> they need cleaning :P
908: [21:12:00] <Maciej_> hello
909: [21:12:00] <SphereSilver> na, I'm talking about physical windows. The things you can run into.
910: [21:12:00] <SphereSilver> hahahahahahahaha
911: [21:13:00] <Pyromanik||> well then no, do it yourself you lazy bastard.
912: [21:13:00] <Maciej_> I test Silver 3.0 and how can I disable "Add button" in ModelAdmin? I try canCraete() {return false;} - just like in 2.4.xx but it doesnt work.
913: [21:13:00] <SphereSilver> no, that's what I pay her for, she cleans, she cleans the stuff.
914: [21:13:00] <Pyromanik||> so no?
915: [21:13:00] <SphereSilver> she's not ugly, but... ehhhh, not my taste.
916: [21:13:00] <Pyromanik||> older women are a bit like that.
917: [21:13:00] <irogue> next time the warehouse guy complains he's bored, i'll make him clean my office windows
918: [21:14:00] <SStuck> My javascript knowledge is zero, had a bit of a fail with it earlier in the week, but will revisit! Currently my edit method does return the form, but my template is checking for the property to be empty and if it's empty is showing the form and if not then the existing contents and the edit link. Will have to do that in a different way as the check for existing contents means the form returned by the edit function isn't displayed. Hm
919: [21:14:00] <Pyromanik||> SphereSilver: noticed what?
920: [21:14:00] <SphereSilver> Pyromanik||: fun fact: She's younger then me :P
921: [21:14:00] <Pyromanik||> haha, irogue has a mancrush!
922: [21:14:00] <irogue> i just want my windwos cleaned, cbf doing it myself, and get sick of him complaining he's bored!@
923: [21:14:00] <SphereSilver> Pyromanik||: you noticed?!
924: [21:14:00] <irogue> Pyromanik||: ew, not at all
925: [21:14:00] <irogue> he's definitely not my type
926: [21:15:00] <Pyromanik||> SphereSilver: and also in that case she's not the cleaning lady, rather the cleaning girl.
927: [21:15:00] <Pyromanik||> SStuck: use jquery.
928: [21:15:00] <Pyromanik||> too easy
929: [21:15:00] <Pyromanik||> $('css selector for your form').hide()
930: [21:15:00] <Pyromanik||> $('css selector for your form').show()
931: [21:15:00] <SphereSilver> irogue: you are gay, right? (No, that's not insulting in any way)
932: [21:16:00] <Pyromanik||> SphereSilver: of course I know.
933: [21:16:00] <SphereSilver> ok, then ehm... let me re-read
934: [21:16:00] <irogue> SphereSilver: pfft, hiding is for pussies
935: [21:16:00] <Pyromanik||> it was about one of the first things irogue ever said to me in this channel.
936: [21:16:00] * willr has joined #silverstripe
937: [21:16:00] <SphereSilver> either that, or you are good at hiding it.
938: [21:16:00] <SphereSilver> I just mean... Pyromanik|| appearantly didn't know or something.
939: [21:17:00] <SStuck> My fail was with jquery. Have my jquery.js in mysite/javascript but when I include it it breaks the lightwindows in my youtube gallery.
940: [21:17:00] <SphereSilver> irogue: Don't know what to say mate. As you might know, I couldn't care less, unless you rape my cat :P
941: [21:17:00] <Pyromanik||> SphereSilver: that wouldn't make him gay.
942: [21:17:00] <SphereSilver> (As in, I don't care what you are, it's about who you are)
943: [21:17:00] * oddnoc has joined #silverstripe
944: [21:17:00] <Pyromanik||> it was basically "I can help you with your dreytek router, and also I'm gay"
945: [21:18:00] <irogue> so, did anyone watch the fights last night?
946: [21:18:00] <SphereSilver> Pyromanik||: No, that's true. It would make him dead :P
947: [21:18:00] <Pyromanik||> SStuck: it's because it's included already probably
948: [21:18:00] <Pyromanik||> you should check to see that it's not being included twice.
949: [21:18:00] <Pyromanik||> also, use closures
950: [21:19:00] <Pyromanik||> so like (function($){ <your jQuery code here>; })(jQuery);
951: [21:19:00] <Pyromanik||> irogue: no, but saw the highlight while waiting for warrant this morning
952: [21:19:00] <Pyromanik||> never thought he'd win.
953: [21:19:00] <SphereSilver> I just burned myself. Wearing polyester t-shirts is bad for my health.
954: [21:19:00] <Pyromanik||> but he did :<
955: [21:19:00] <catcher> SStuck, for basic stuff, you're best off including SS's version of jQuery.
956: [21:19:00] <SphereSilver> Pyromanik||: in jkQuery 1.7+, all is in safe-mode jQuery, it shouldn't break.
957: [21:20:00] <irogue> SphereSilver: boxing
958: [21:20:00] * SphereSilver is curious
959: [21:20:00] <irogue> Pyromanik||: yeah, he kicked arse
960: [21:20:00] <SphereSilver> Fight?
961: [21:21:00] <SphereSilver> and I'm Dutch
962: [21:21:00] <SphereSilver> boxing is not my thing
963: [21:21:00] <SphereSilver> Ah, no, I have utterly no clue, I watch Soccer, American Ballthingy, speedskating, tennis and such
964: [21:21:00] <irogue> i have no idea what the dutchness means in relation to boxing
965: [21:22:00] <SphereSilver> In the Netherlands, Boxing ain't big ;)
966: [21:22:00] <SphereSilver> Being Dutch, means "little care for boxing"
967: [21:22:00] <irogue> http://www.nzherald.co.nz/sport/news/article.cfm?c_id=4&objectid=10817737
968: [21:23:00] <SphereSilver> although... no...
969: [21:23:00] <SphereSilver> You want to fight me? 4 times Dutch Junior swimming champion.
970: [21:23:00] <irogue> i guess most dutch people i know arent exactly built for boxing :P
971: [21:24:00] <SStuck> Hmm. Thanks for the pointers, will take a closer look tomorrow, although the reason I put the include in was my script was failing with an error that looked like jquery wasn't being included... and couldn't see a jquery file in the cms folder. Where should it be? I thought there should be one in the installation rather than having to install it.
972: [21:24:00] <irogue> i'm not a fighter
973: [21:24:00] <irogue> lol
974: [21:24:00] <SphereSilver> ehh, forget that, that's over 10 years ago, Yes, I wil probably loose that bet.
975: [21:24:00] * someguy has joined #silverstripe
976: [21:24:00] <irogue> tho if i learnt technique i prob could be, since i'm 6'3 and 110kg
977: [21:25:00] <SphereSilver> SStuck: Make sure, the organisation is correct
978: [21:25:00] <SphereSilver> irogue: I guess, I'm around 1.83m
979: [21:25:00] <Pyromanik||> SStuck: sapphire/thirdparty/jquery/jquery.js
980: [21:25:00] <SphereSilver> I weigh in around 86kg
981: [21:25:00] * mesrop has joined #silverstripe
982: [21:25:00] <Pyromanik||> I should weigh about 65
983: [21:25:00] <Pyromanik||> but instead i'm like 90 :(
984: [21:26:00] <Pyromanik||> OOOOH THE PUN
985: [21:26:00] <Pyromanik||> anorexia is no cakewalk
986: [21:26:00] <SphereSilver> and I already have to sleep in the viitors-room tonight, so, yeah.
987: [21:26:00] <irogue> more than one
988: [21:26:00] * mesrop quit (Client Quit)
989: [21:26:00] <Pyromanik||> she needs a cheese burger?
990: [21:26:00] <SphereSilver> and that's not an insult to you, but to her ;)
991: [21:26:00] <Pyromanik||> hot
992: [21:26:00] <SphereSilver> my girlfriend is half your weight!
993: [21:26:00] <Pyromanik||> lazy
994: [21:26:00] <Pyromanik||> yeah
995: [21:26:00] <SphereSilver> fun fact...
996: [21:26:00] <SphereSilver> really?? O_o
997: [21:27:00] <irogue> feed her a few Double Downs
998: [21:27:00] <Pyromanik||> sorry to hear
999: [21:27:00] <Pyromanik||> :(
1000: [21:27:00] <SphereSilver> Pyromanik||, irogue, not anorexia, but a different, more complicated problem :(
1001: [21:27:00] <irogue> that'll fix it
1002: [21:28:00] <Pyromanik||> ha, I wish I could cook.
1003: [21:28:00] <irogue> FOX News just said Zach Braff (scrubs) is unpatriotic because he's against slavery
1004: [21:28:00] <SphereSilver> Come be a Dutchy! :D
1005: [21:28:00] <SphereSilver> I wouldn't say it here, if she wasn't ok with it.
1006: [21:28:00] <Pyromanik||> then I probably wouldn't be so fat.
1007: [21:28:00] <SphereSilver> Another fun fact: If I cook for myself, I cook more then when she's around :P
1008: [21:28:00] <SphereSilver> Pyromanik||: Na, no problem mate. It's ok. She's ok with it, she knows it herself
1009: [21:29:00] <SphereSilver> that's blasfemy!
1010: [21:29:00] <SphereSilver> Check his twitter. It's hilarious!
1011: [21:29:00] <irogue> can we nuke News Corp yet?
1012: [21:29:00] <Pyromanik||> irogue: OMG LOL R U SRS!?
1013: [21:30:00] <SphereSilver> If FOX really thinks slavery is part of being a patriot... I'm proud to be Dutch then.
1014: [21:30:00] <irogue> yep
1015: [21:31:00] <SphereSilver> https://twitter.com/zachbraff/statuses/220991846887862273
1016: [21:31:00] <SphereSilver> FOX can not be serious
1017: [21:31:00] <irogue> NZers don't have NZ pride... we just have pride to not be american :P
1018: [21:31:00] <SphereSilver> irogue: I'm proud of my heritage, but I hate my parents.....
1019: [21:31:00] <Pyromanik||> they're always serious
1020: [21:31:00] <SStuck> Many thanks for the help all, I think I have enough to go on tomorrow now. Off to look up this scrubs story, sounds genius. Cheers all.
1021: [21:32:00] <CIA-12> silverstripe: TeamCity silverstripe-cms/translation-staging * ra851b20 / lang/de.yml : MINOR Updated translations - http://git.io/Yajj9Q
1022: [21:32:00] <Pyromanik||> o.0
1023: [21:32:00] * SStuck quit (Quit: Bye)
1024: [21:32:00] <SphereSilver> Don't insult my heritage. But my parents are all good :P
1025: [21:32:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1026: [21:33:00] <LePhil> Good evening
1027: [21:33:00] <Pyromanik||> "yo momma'...
1028: [21:33:00] <SphereSilver> Pyromanik||: Yeah, she could probably wear a hoola-hop as a collar
1029: [21:33:00] * Kerstin has joined #silverstripe
1030: [21:33:00] <SphereSilver> I mean: "Being from country X, doesn't mean you agree with country X's thoughts, but it its where you where born"
1031: [21:33:00] * dospuntocero has joined #silverstripe
1032: [21:33:00] * LePhil has joined #silverstripe
1033: [21:34:00] * Pyromanik|| files in brain for future empty random retort
1034: [21:34:00] <Pyromanik||> that's a good one
1035: [21:34:00] <Pyromanik||> ROFL SphereSilver
1036: [21:34:00] <SphereSilver> Hey ^KS!
1037: [21:35:00] <Pyromanik||> how are those T-Shirts coming on?
1038: [21:35:00] <Pyromanik||> hey Kerstin
1039: [21:35:00] <SphereSilver> Pyromanik||: I literally told them yesterday "No, I don't want you near my house" ;)
1040: [21:36:00] <Pyromanik||> That's sad man.
1041: [21:36:00] <SphereSilver> I know it sounds harsh
1042: [21:36:00] <SphereSilver> Pyromanik||: I know, but you'll get used to it, if you can't live with your parents.
1043: [21:37:00] <SphereSilver> "and now you want to hear from me, yeahhhhhh....."
1044: [21:37:00] * zfmf has left #silverstripe
1045: [21:37:00] <SphereSilver> but I've had enough trouble in my life at which they didn't support me.
1046: [21:37:00] <dd1079> oh,lots of checkins
1047: [21:38:00] <Pyromanik||> SphereSilver: oh don't get me wrong, I'm sure you have your reasons (which you don't need to share), I'm just saying it's a sad thing.
1048: [21:38:00] <SphereSilver> ah well, ok, I told my life's story. Please leave it? I hate my parents for what I had to go through in my childhood. Please leave it?
1049: [21:39:00] <Pyromanik||> SphereSilver: I don't want to hear about it either -.-
1050: [21:39:00] <SphereSilver> sorry, I'll shut up too.
1051: [21:39:00] <SphereSilver> I have my reasons indeed. But, I admit, it's not a happy place ;)
1052: [21:40:00] <SphereSilver> Don't make me cry!
1053: [21:40:00] <Pyromanik||> http://www.youtube.com/watch?v=6ul-cZyuYq4
1054: [21:41:00] <SphereSilver> Awesome song. Got the LP
1055: [21:41:00] <CIA-12> silverstripe: Will Rossiter sapphire/master * r2ee2915 / docs/en/topics/debugging.md : Remove links to our deprecated profiler class and include reference to third party tutorials - http://git.io/fNFgDQ
1056: [21:41:00] * howardgrigg has joined #silverstripe
1057: [21:42:00] <CIA-12> silverstripe: Will Rossiter sapphire/master * r7ff2a79 / docs/en/topics/debugging.md : Fix links in profiling documentation. - http://git.io/cnwFmQ
1058: [21:42:00] <SphereSilver> Kerstin: Why can't I address childs in the PHP? It seems to be a bu. many_many relations and such, are not recognized.
1059: [21:43:00] <irogue> yeah Kerstin, we're gonna ask you all the tech questions since you seem to be the only SSer actually in here for this friday morning time :P
1060: [21:45:00] <SphereSilver> that too :P
1061: [21:45:00] <SphereSilver> I meant it more like a "please pass it on, I have not yet gotten the time to look at it, but it needs fixing" ;)
1062: [21:45:00] <SphereSilver> But it's Thursday!
1063: [21:46:00] <dd1079> using SS is even more awesome thanks to the weird timezone conditions in this channel
1064: [21:46:00] <SphereSilver> and irogue is a drama-queen! :P
1065: [21:46:00] <SphereSilver> In here, there are no weird timezones
1066: [21:47:00] <irogue> lol
1067: [21:47:00] <SphereSilver> just weird people :D
1068: [21:47:00] <irogue> *country
1069: [21:47:00] <irogue> SphereSilver: its friday morning for those of us in the same company as SilverStripe :P
1070: [21:48:00] <SphereSilver> dd1079: yeah, you got the Thunderstorm.... I'm still waiting for it!
1071: [21:48:00] <SphereSilver> oddnoc: no, you need caffeine, you addict!
1072: [21:48:00] <irogue> no thunderstorm here! http://www.sitecam.co.nz/auckland_webcam/
1073: [21:48:00] <SphereSilver> Anyone has a mug of coffee please?
1074: [21:48:00] <oddnoc> lol
1075: [21:48:00] <SphereSilver> You should ask Ingo then :P
1076: [21:48:00] * dd1079 is checking in on an ipad shortly before going to sleep during a beautiful German thunderstorm
1077: [21:48:00] * oddnoc needs coffee badly!
1078: [21:49:00] <Pyromanik||> since you brought up double downs
1079: [21:49:00] * Maciej_ quit (Quit: Page closed)
1080: [21:49:00] <Pyromanik||> oh, and irogue
1081: [21:49:00] <Pyromanik||> what you do right
1082: [21:49:00] <Pyromanik||> is take that shitty double down, got across the road and buy a double quarter pounder
1083: [21:50:00] <Pyromanik||> take it out into the parking lot
1084: [21:50:00] <Pyromanik||> open that sucker up
1085: [21:50:00] <dd1079> http://www.unwetterzentrale.de/uwz/
1086: [21:50:00] <Pyromanik||> put the double down inside
1087: [21:50:00] <Pyromanik||> put the top back on
1088: [21:50:00] <Pyromanik||> OMG BEST THING EVER
1089: [21:50:00] <irogue> Pyromanik||: oh god
1090: [21:50:00] <irogue> that sounds so good
1091: [21:50:00] <irogue> pure heart attack
1092: [21:50:00] <Pyromanik||> oh, but remove the gurkins.
1093: [21:50:00] <Pyromanik||> yucky.
1094: [21:50:00] <SphereSilver> Do I want to know? Or should I just ignore?
1095: [21:51:00] <SphereSilver> I have indeed, utterly no clue.
1096: [21:51:00] <Pyromanik||> until you put them inside something from maccas
1097: [21:51:00] <irogue> SphereSilver: its a burger, where instead of buns, its chicken
1098: [21:51:00] <Pyromanik||> (unless you like little salt cucumbers)...
1099: [21:51:00] <irogue> SphereSilver: you never heard of a Double Down?
1100: [21:51:00] <Pyromanik||> lol
1101: [21:51:00] <Pyromanik||> don't worry, they're pretty much just shit
1102: [21:51:00] <oddnoc> you don't want to know
1103: [21:51:00] <irogue> http://www.kfc.com/doubledown/images/doubledown.jpg
1104: [21:52:00] <oddnoc> It's like everything that's wrong with fast food.
1105: [21:52:00] <SphereSilver> KFC??? Really?
1106: [21:52:00] <SphereSilver> no, that's McDonalds
1107: [21:52:00] <SphereSilver> I don't "do" fastfood
1108: [21:53:00] <SphereSilver> I can, actually, cook you know :)
1109: [21:53:00] <Pyromanik||> yeah, you just told us you do the cooking
1110: [21:53:00] * howardgrigg quit (Quit: howardgrigg)
1111: [21:53:00] <oddnoc> Cooking is just procedural programming. Anyone can learn it
1112: [21:53:00] <irogue> i cook!
1113: [21:53:00] <Pyromanik||> so
1114: [21:53:00] <Pyromanik||> yeah.
1115: [21:53:00] <Pyromanik||> all I know how to do is apply heat to food
1116: [21:53:00] <SphereSilver> You're very welcome.
1117: [21:53:00] <Pyromanik||> oddnoc: I'm sure they can.
1118: [21:54:00] <irogue> well
1119: [21:54:00] <irogue> i *can* cook, quite well
1120: [21:54:00] <Pyromanik||> I mean, I can follow a recipe
1121: [21:54:00] <irogue> thats why i said i *can* cook
1122: [21:54:00] <irogue> yeah exactly
1123: [21:54:00] <Pyromanik||> not really 'cooking' as such.
1124: [21:54:00] <Pyromanik||> irogue: see that's what I call "applying heat to food"
1125: [21:54:00] <Pyromanik||> and knowing what combines well, the techniques, etc.
1126: [21:54:00] <Pyromanik||> Yeah, I can make a mean barbeque
1127: [21:54:00] <irogue> i just dont do it often :P
1128: [21:54:00] <irogue> just most of the time i just opt to throw something on the bbq instead
1129: [21:54:00] <Pyromanik||> but it's the taste and stuff
1130: [21:55:00] <Pyromanik||> It's Friday!
1131: [21:55:00] <Pyromanik||> I tend to just drink beer until I'm full.
1132: [21:55:00] <irogue> which raises the question... what to dinner tonight
1133: [21:56:00] <irogue> screw proper cooking
1134: [21:56:00] <irogue> haha
1135: [21:56:00] <irogue> good point, friday
1136: [21:56:00] <irogue> sausages it is!
1137: [21:56:00] <SphereSilver> How does a blue-cheese-rib-eye sound. With Mushrooms and spinach
1138: [21:56:00] <irogue> i dont like blue cheese, mushrooms or spinach
1139: [21:56:00] <irogue> i'll have the rib-eye tho
1140: [21:57:00] <SphereSilver> once you had a rib-eye steak with blue cheese, garnished with spinach and mushroom
1141: [21:57:00] <SphereSilver> really.
1142: [21:57:00] * OzziNL quit (Read error: Operation timed out)
1143: [21:57:00] <SphereSilver> irogue: you'll be droolng
1144: [21:58:00] <irogue> *every* meal must contain garlic
1145: [21:58:00] <SphereSilver> Garlic is a "obfuscator" (is that the correct word?)
1146: [21:58:00] <SphereSilver> it hides the real flavour
1147: [21:58:00] <irogue> that's the Linklater family rule
1148: [21:58:00] <irogue> just slather the steak in garlic and mixed herbs and we're good :P
1149: [21:58:00] <SphereSilver> no garlic.
1150: [21:58:00] * someguy quit (Quit: Page closed)
1151: [21:59:00] <oddnoc> OK, actual SilverStripe 3 question. What am I doing wrong in this UploadField? On upload, it always shows "Not Found". http://sspaste.com/paste/show/4ff611c6c8388
1152: [21:59:00] <irogue> also onions, meals must contain lots and lots of onion
1153: [21:59:00] <irogue> not sure if this is a scottish thing
1154: [21:59:00] * oscar_ quit (Ping timeout: 248 seconds)
1155: [22:00:00] <Pyromanik||> SphereSilver: sounds good to me man!
1156: [22:00:00] <irogue> i've never actually worked with UploadFields
1157: [22:00:00] * billiblu has joined #silverstripe
1158: [22:00:00] <Pyromanik||> but I don't like blue cheese
1159: [22:01:00] <LoveDuckie> Let me check out my source code, I got it working effortlessly the other day forutnately.
1160: [22:01:00] <Pyromanik||> but I'll give it a go in a meal!
1161: [22:01:00] <irogue> i don't *mind* spinach or mushroom
1162: [22:01:00] <catcher> oddnoc, same issue without the validator?
1163: [22:01:00] <irogue> i'll allow them in a meal
1164: [22:01:00] <Pyromanik||> both are fantastic.
1165: [22:01:00] <irogue> but dont like blue cheese at all
1166: [22:01:00] <Pyromanik||> yeh, me either.
1167: [22:01:00] <LoveDuckie> Hold on oddnoc
1168: [22:01:00] <LePhil> grr, there doesn't seem to be a working example for restfulservice...
1169: [22:01:00] <SphereSilver> Pyromanik||: the blue cheese is part of the good steak. I can make you one without... and with....
1170: [22:02:00] <SphereSilver> Parmesan is tasteless compared to blue
1171: [22:02:00] <LoveDuckie> Are you making a page here or what?
1172: [22:02:00] <SphereSilver> Parmesan is good as a side-dish, but it's tasteless when it comes to improving the main dish ;)
1173: [22:02:00] <oddnoc> catcher: fails w/o the validator, too
1174: [22:02:00] <LoveDuckie> OK
1175: [22:02:00] <irogue> SphereSilver: thats why i like it! blue cheese is waaaay too strong
1176: [22:02:00] <oddnoc> LoveDuckie: thanks! YOu too, catcher
1177: [22:02:00] * billiblu quit (Client Quit)
1178: [22:02:00] <SphereSilver> and I promise, you will know the difference :P
1179: [22:02:00] <irogue> make it parmesan and we'll talk
1180: [22:03:00] <Pyromanik||> SphereSilver: nah. Blue is not part of steak. Maybe in the Netherlands.
1181: [22:03:00] <LoveDuckie> Hmm, I might not be of help
1182: [22:03:00] <SphereSilver> (And ignore my bad English please?)
1183: [22:03:00] <oddnoc> to be had by a page
1184: [22:03:00] <oddnoc> DataObject
1185: [22:03:00] <irogue> LePhil: not sure if its changed at all in SS3, but in SS2.4 RestfulService is... very lacking
1186: [22:03:00] <theorytank> @oddnoc - where does "Not Found" show up? Do you mean it's returning a 404? aka, the whole form is submitting to a bad url?
1187: [22:03:00] <LoveDuckie> I've done mine through the likes of a page.
1188: [22:03:00] <catcher> oddnoc, does the webserver have recursive write access to assets?
1189: [22:04:00] <LePhil> and goddamnit all that talk about food makes me hungry
1190: [22:04:00] <irogue> down here in NZ, we're big on keeping it simple
1191: [22:04:00] <LePhil> but I've just eaten
1192: [22:04:00] <oddnoc> catcher: this is on my Mac, and the files manager can accept uploads no problem
1193: [22:04:00] <SphereSilver> but part of the ehm... sauce? (Do I say that right?)
1194: [22:04:00] <Pyromanik||> meat and 3 veg.
1195: [22:04:00] <Pyromanik||> classic farmhouse meal.
1196: [22:04:00] <irogue> go down to the paddock, slaughter a cow, and throw it straight on the barbeque
1197: [22:04:00] <irogue> maybe a bit of onions and salt
1198: [22:04:00] <Pyromanik||> well, not quite irogue, haha, but yeah.
1199: [22:04:00] <irogue> but thats it
1200: [22:04:00] <catcher> oddnoc, ah, it's a form in an ajax popup? is your js getting blocked? Any errors in the console?
1201: [22:04:00] <Pyromanik||> Steak is part of steak.
1202: [22:04:00] <oddnoc> theorytank: right in the form, ajax-style
1203: [22:04:00] <irogue> yep
1204: [22:04:00] <SphereSilver> noooo, not as "part of the steak"!
1205: [22:04:00] <LePhil> irogue: 2.4.7 for me... just need to print all the things from a XML feed
1206: [22:04:00] <Pyromanik||> especially when it's home kill steak.
1207: [22:04:00] <Pyromanik||> mmmmmmmmmmmmm
1208: [22:05:00] <irogue> Pyromanik||: ya thats what i was thinking of
1209: [22:05:00] <SphereSilver> irogue: Google it, Red Rooster Sauce
1210: [22:05:00] <Pyromanik||> skeptical.
1211: [22:05:00] <Pyromanik||> parmesan is fantastic in pasta.
1212: [22:05:00] <irogue> SphereSilver: i have no idea what red rooster is
1213: [22:05:00] <Pyromanik||> it prtty mcuh IS pasta.
1214: [22:05:00] <Pyromanik||> irogue: it's a sauce.
1215: [22:05:00] <oddnoc> screenshot soon
1216: [22:05:00] <Pyromanik||> although if you're in aussie it's a fast food resturant.
1217: [22:05:00] <irogue> Pyromanik||: in much the same way that Feta *is* salad
1218: [22:05:00] <Pyromanik||> irogue: no, feta is shit.l
1219: [22:05:00] <SphereSilver> Parmezan is like ketchup, compared to blue cheese, which is Red Rooster, in taste improvement
1220: [22:05:00] <catcher> oddnoc, an uploader, anyway..
1221: [22:06:00] <Pyromanik||> cleared*
1222: [22:06:00] <irogue> (the restaurant)
1223: [22:06:00] <irogue> theres a Red Rooster in hams
1224: [22:06:00] <irogue> well
1225: [22:06:00] <Pyromanik||> glad you clared that up!
1226: [22:06:00] <Pyromanik||> LOLOMG FOR A SEC THERE I THOUGHT YOU MEANT AN ACTUAL SINGLE RED ROOSTER RUNNING AROUND TOWN
1227: [22:06:00] <irogue> which is why i got confused by SphereSilver's comparison of Ketchup to Red Rooster
1228: [22:06:00] <Pyromanik||> omg rly?
1229: [22:06:00] <irogue> it is hamilton...
1230: [22:07:00] <oddnoc> Screen shot: http://imgur.com/Rwhj9
1231: [22:07:00] <Pyromanik||> (tucker being slang for food/dinner)
1232: [22:07:00] <irogue> Ketchup is so much superior to Tomato Sauce
1233: [22:07:00] <Pyromanik||> Red tucker fucker.
1234: [22:07:00] <SphereSilver> or.... should that be.... Red Pepper sauce?
1235: [22:07:00] <Pyromanik||> RTF.
1236: [22:07:00] <Pyromanik||> SphereSilver: Tomato sauce.
1237: [22:07:00] <SphereSilver> ;)
1238: [22:07:00] <Pyromanik||> can't say I've ever seen an actually RED rooster before.
1239: [22:07:00] <SphereSilver> irogue: I meant, in experience, Ketchup is in no way like Red Rooster
1240: [22:08:00] <SphereSilver> You do know, the best Ketchup is Dutch, right?
1241: [22:08:00] <Pyromanik||> irogue: nah. I disagree.
1242: [22:08:00] <irogue> SphereSilver: maybe in your opinion ;)
1243: [22:08:00] <Pyromanik||> Whitlocks Tomato Chutney.
1244: [22:08:00] <SphereSilver> irogue: what's your favorte brand of Ketchup?
1245: [22:08:00] <Pyromanik||> I'm not into watties either.
1246: [22:08:00] <Pyromanik||> Fantastic shit.
1247: [22:08:00] <SphereSilver> No, Chutney != Ketchup!
1248: [22:08:00] <SphereSilver> ;)
1249: [22:08:00] <irogue> and yes, I know that according to the Watties ad that makes me not a kiwi
1250: [22:09:00] <SphereSilver> Chutney is English
1251: [22:09:00] <Pyromanik||> we're talking tomato sauce here.
1252: [22:09:00] <Pyromanik||> which includes tomato sauce, tomato chutny as a sauce, and ketchup.
1253: [22:09:00] <SphereSilver> no, if it has Chutney, it's not Ketchup! It's Chutney!
1254: [22:09:00] <Pyromanik||> SphereSilver: I know.
1255: [22:09:00] <SphereSilver> Yeah, what's the best Ketchup in the world?
1256: [22:09:00] <Pyromanik||> umbrella lable.
1257: [22:09:00] <Pyromanik||> lol don't say heinz
1258: [22:09:00] <Pyromanik||> label
1259: [22:09:00] <Pyromanik||> going for morning tea.
1260: [22:10:00] <oddnoc> checking for js errors
1261: [22:10:00] <catcher> oddnoc, any js warnings/errors?
1262: [22:10:00] <Pyromanik||> What's the best Sauce in the world? THE OPEN KIND
1263: [22:10:00] <theorytank> @oddnoc - you familiar with Firebug?
1264: [22:10:00] <irogue> best sauce in the world?
1265: [22:10:00] <irogue> Steak Sauce.
1266: [22:10:00] <SphereSilver> best KETCHUP in the world!
1267: [22:10:00] <theorytank> if you use firebug (or something similar) check the path on that broken image and see if it looks "reasonable"
1268: [22:11:00] <theorytank> if it looks reasonable, my guess is your webserver can't write to the assets/Uploads directory...
1269: [22:11:00] <SphereSilver> irogue: that's Heinz Ketchup ;)
1270: [22:11:00] <theorytank> also, check if there's an entry in the Files table of the database.
1271: [22:11:00] <SphereSilver> do not prefix with a slash
1272: [22:11:00] <theorytank> aka... /assets/Uploads/somefile.jpg or whatever.
1273: [22:11:00] <irogue> SphereSilver: McDonalds' ketchup
1274: [22:12:00] <SphereSilver> /error/will/occur
1275: [22:12:00] <oddnoc> Ah. It's the POST URL that's returning 404
1276: [22:12:00] <SphereSilver> .......
1277: [22:12:00] <SphereSilver> ehhh.
1278: [22:13:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
1279: [22:13:00] <catcher> oddnoc, have to ask if you've tried uploading other images from other locations?
1280: [22:13:00] <SphereSilver> Enough stupidity for one day from me!
1281: [22:13:00] <SphereSilver> Goodnight folks!
1282: [22:15:00] * LePhil quit (Ping timeout: 245 seconds)
1283: [22:15:00] <oddnoc> checking apache error log
1284: [22:15:00] <oddnoc> catcher: yes. I think the way I have it set up is creating a bad POST URL, namely /admin/pages/edit/EditForm/field/Contacts/item/1/ItemEditForm/field/ProfilePicture/upload
1285: [22:16:00] <oddnoc> apache's not logging it
1286: [22:17:00] <oddnoc> trying a simpler example next
1287: [22:19:00] * monkee_ch has joined #silverstripe
1288: [22:21:00] <monkee_ch> just kudos for SS 3.0.0 love it
1289: [22:22:00] <monkee_ch> especially gridfield and modeladmin
1290: [22:23:00] <theorytank> I run a dev shop with 6 developers and we're all seeing the same two issues (/dev/build is blank in the browser, find on the command line) and (we can't switch between tabs in the admin area. Creates a JS error). We've found work arounds, but we can't use it live like this yet. But still excited. We've been using it for over 2 years now.
1291: [22:24:00] <theorytank> anyone else seeing these issues or are we crazy? I found tickets in the tracker, but they don't seem to have much traction.
1292: [22:26:00] * dospuntocero quit (Remote host closed the connection)
1293: [22:26:00] <willr> theorytank try rm -rf ing the temp dir.
1294: [22:26:00] <theorytank> ya.. tried that a few times
1295: [22:26:00] <theorytank> no luck.
1296: [22:27:00] <theorytank> they can share the cache then.
1297: [22:27:00] <oddnoc> dir*
1298: [22:27:00] <theorytank> ya.. we always use the silverstripe-cache (in the root) approach as it makes load balancing a lot easier..
1299: [22:27:00] <oddnoc> theorytank: on /dev/build make sure CLI and web server are using the same temp dir. One way is to put a silverstripe-cache did in your docroot
1300: [22:28:00] <irogue> what's your web server setup?
1301: [22:28:00] <theorytank> my guess is the dev/build thing has something to do with output buffering
1302: [22:29:00] <irogue> what SS version?
1303: [22:29:00] <theorytank> started seeing these issues in RC2 though
1304: [22:29:00] <theorytank> LAMP
1305: [22:29:00] <theorytank> all the latest
1306: [22:29:00] <irogue> ah
1307: [22:29:00] <theorytank> 3.0.0
1308: [22:30:00] * willr quit (Quit: willr)
1309: [22:30:00] <theorytank> so you get output on your dev/build s?
1310: [22:30:00] <theorytank> wondering if it's a PHP config conflict somehow. The dev/build actually works, just no output
1311: [22:30:00] <irogue> yep
1312: [22:30:00] <theorytank> works (and outputs) from the command line
1313: [22:31:00] <irogue> yeah
1314: [22:31:00] <theorytank> I use suphp so it could even be that
1315: [22:31:00] <irogue> and of course dev/build is done a lot during development so if it happened to everyone the devs wouldve noticed :P
1316: [22:31:00] <theorytank> ya.. that's what I figured..
1317: [22:31:00] <theorytank> I've seen a few posts about it in the forums though, so it's gotta be an edge case conflict with something.
1318: [22:32:00] <theorytank> well.. I'm on Canada time so I'm guessing they're all still asleep. :)
1319: [22:32:00] <irogue> its 10:30am
1320: [22:32:00] <irogue> Kerstin: this is one for the core devs that are supposedly here! :P
1321: [22:32:00] <theorytank> that's the only odd php config thing I have.
1322: [22:32:00] <irogue> nah
1323: [22:33:00] <theorytank> ya.. I don't blame them.
1324: [22:33:00] <irogue> and on Friday mornings the core devs usually hang out in here and help people
1325: [22:33:00] <irogue> but they're obviously still recovering from the party last week
1326: [22:33:00] <theorytank> right.. I'm thinking Australia (Perth) where I have some friends. I think it's 6:30AM for them.
1327: [22:33:00] <irogue> theorytank: SilverStripe is based in New Zealand :)
1328: [22:34:00] <irogue> hehe
1329: [22:34:00] <theorytank> ya.. I realized that after my bad timezone calculation.
1330: [22:35:00] <theorytank> I don't have the CMS module installed... just the framework.
1331: [22:35:00] <theorytank> so the other issue is switching tab (and by tabs I mean the things on the left) of the admin.
1332: [22:35:00] <theorytank> the first one loads (non-ajax) but I get JS errors when clicking on any other one.
1333: [22:36:00] <theorytank> can't switch between them, but I can enter the full url and it works fine.
1334: [22:36:00] <theorytank> so I see the security tab and my two model admins.
1335: [22:36:00] <theorytank> it's really odd.
1336: [22:39:00] <Kerstin> Hahaha, you guys make me laugh
1337: [22:40:00] <Pyromanik||> Kerstin is talking!
1338: [22:40:00] <Kerstin> Which one was yours?
1339: [22:40:00] <Kerstin> Did you enter a theme?
1340: [22:40:00] <Kerstin> Greedy bunch you are; T-shirts and tech advice. And all for free. :)
1341: [22:40:00] <Pyromanik||> Kerstin: hey, I'm not the one who promised a T-Shirt to each entrant of the theme competition!
1342: [22:40:00] <Kerstin> Once I learned PHP I'll explain you the world
1343: [22:40:00] <Pyromanik||> tech advice is why we're here though.
1344: [22:40:00] <Pyromanik||> haha
1345: [22:42:00] <Kerstin> Tech advice; God helps those who help themselves!
1346: [22:42:00] <Pyromanik||> God!?
1347: [22:42:00] <Pyromanik||> Kerstin: I'm just saying
1348: [22:42:00] <Pyromanik||> SphereSilver irogue: what's your favorte brand of Ketchup? --> Pyromanik|| lol don't say heinz --> irogue SphereSilver: McDonalds' ketchup --> LOL U BAD
1349: [22:42:00] <Pyromanik||> those who entered...
1350: [22:43:00] <Pyromanik||> Kerstin: lol
1351: [22:43:00] <Pyromanik||> srs?
1352: [22:43:00] <irogue> Kerstin: i saw that, it made me proud
1353: [22:43:00] <Pyromanik||> who in specifics?
1354: [22:43:00] <Kerstin> Because he received instant help from you
1355: [22:43:00] * Pyromanik|| prepares for epic let-down
1356: [22:43:00] <Pyromanik||> Wholey crap, check this out! http://imgur.com/gallery/n9uKN
1357: [22:43:00] <Kerstin> Well one guy on Twitter called you guys gods
1358: [22:43:00] <monkee_ch> theorytank: do you have it installed in a subditectory like localhost/project/752/
1359: [22:44:00] <monkee_ch> remember having the same issues... not having it run in a subDir solved it...
1360: [22:44:00] <Pyromanik||> he's a good kid.
1361: [22:44:00] <Kerstin> @Promanik :)
1362: [22:44:00] <irogue> Pyromanik||: openbees
1363: [22:44:00] <Pyromanik||> oh, vikas
1364: [22:45:00] <theorytank> which issue.. the /dev/build or the JS in the admin error?
1365: [22:45:00] <theorytank> @monkee_ch yes.. I do.
1366: [22:45:00] <theorytank> I'll try that.. see if it helps.
1367: [22:46:00] <Kerstin> @Pyromanik And stop playing with matches. You might burn yourself.
1368: [22:46:00] <Kerstin> Herewith it is official; everyone who entered the Theme Contest will get a Tshirt. Thanks @Pyromanik for reminding me.
1369: [22:47:00] <Pyromanik||> I have lighters :P
1370: [22:47:00] <monkee_ch> admin section
1371: [22:47:00] <Pyromanik||> and also, I don't play with matches.
1372: [22:47:00] <Pyromanik||> Kerstin: no problem! :)
1373: [22:48:00] * simon_w|air has joined #silverstripe
1374: [22:48:00] * simon_w|air quit (Read error: Connection reset by peer)
1375: [22:49:00] <theorytank> thanks monkee_ch. I'll give it a shot.
1376: [22:50:00] * willr has joined #silverstripe
1377: [22:50:00] * simon_w|air quit (Client Quit)
1378: [22:55:00] * gav has joined #silverstripe
1379: [22:56:00] <gav> hi, i have a question about the gridfield. is there a way to make it return to the list view after saving a dataobject item.
1380: [22:57:00] <Pyromanik||> yep
1381: [22:57:00] <Pyromanik||> sure
1382: [22:57:00] <Pyromanik||> though it might involve hacking the JS.
1383: [22:57:00] <gav> ah ok.
1384: [22:58:00] <Pyromanik||> you might jsut be able to attach a new event listener that autobacks after success on save.
1385: [22:58:00] <Kerstin> @simon_w gets paid by telstraclear for advertising in the SS irc channel
1386: [22:58:00] <Pyromanik||> or you might have to hack the js file to do as such.
1387: [22:58:00] <Pyromanik||> o.0
1388: [22:58:00] <Kerstin> simon_w|air [~simon_w@121-73-68-50.cable.telstraclear.net] has quit [Client Quit] [10:50] == willr [~willr@silverstripe/core/willr] has joined #silverstripe
1389: [22:58:00] <Pyromanik||> yeah, but he's in Auckland.
1390: [22:58:00] <Pyromanik||> since when?
1391: [22:58:00] <Pyromanik||> iirc
1392: [22:58:00] <Pyromanik||> he's with snap!
1393: [22:59:00] <Pyromanik||> Kerstin, if anything that's bad publicity for telstraclear, he keeps dropping! :P
1394: [22:59:00] * Kerstin quit (Quit: Page closed)
1395: [22:59:00] <Pyromanik||> gav: yes.
1396: [22:59:00] <irogue> Pyromanik||: theres no TelstraClear cable in Auckland :P
1397: [22:59:00] <Pyromanik||> and do not mention DOM, it's a dirty word.
1398: [22:59:00] <gav> hahaha ok
1399: [22:59:00] <Pyromanik||> irogue: ah true.
1400: [22:59:00] * dospuntocero has joined #silverstripe
1401: [22:59:00] <gav> also, is there a way to order records in the gridview like the DOM used to do.
1402: [23:00:00] <Pyromanik||> gav: I suggest reading the docs on gridfield. IIRC it examples on how to oderable.
1403: [23:00:00] <irogue> they tried, but auckland didnt want those huge ugly cables dangling everywhere, and told TC if they wanted to do it they had to pay to do underground cables
1404: [23:00:00] <gav> ok, ill check it out.
1405: [23:01:00] <Pyromanik||> http://doc.silverstripe.org/framework/en/topics/grid-field
1406: [23:01:00] <Pyromanik||> lol, auckland are so retard.
1407: [23:01:00] <gav> thanks
1408: [23:04:00] <simon_w> also, I'm in Wellington
1409: [23:04:00] <simon_w> Pyromanik||, I wasn't dropping, thats a timeout quit line :p
1410: [23:05:00] <Pyromanik||> yeah, timeout / drop, whatevers
1411: [23:05:00] <Pyromanik||> :P
1412: [23:05:00] <Pyromanik||> I meant dropping from channel, not internets.
1413: [23:06:00] <Pyromanik||> though I was implying it was from bad internets.
1414: [23:08:00] * SticksM has joined #silverstripe
1415: [23:21:00] * Arno quit (Quit: Instantbird 1.1)
1416: [23:27:00] * galaxy_watcher has joined #silverstripe
1417: [23:30:00] <dospuntocero> can someone helpme with a function?? i want to create a menu for archived articles, but i dont have any idea on how to do that in ss3. i looked in the blog module but the functions there are not using ss3 yet
1418: [23:31:00] <dospuntocero> my menu must look something like this: Archive: June (2) May (4) August (1)
1419: [23:32:00] <dospuntocero> the idea is to provide paginated results on the links for each month.
1420: [23:33:00] <dospuntocero> i want that function for my doArticles module that is on github
1421: [23:33:00] <dospuntocero> https://github.com/dospuntocero/DOArticles/
1422: [23:34:00] * ezero has joined #silverstripe
1423: [23:34:00] * robinm quit (Ping timeout: 245 seconds)
1424: [23:36:00] * galaxy_watcher quit (Quit: Page closed)
1425: [23:37:00] <Pyromanik||> dospuntocero: dunno sorry. I haven't looked at SS3 yet.
1426: [23:38:00] <dospuntocero> you must! its totally awesome
1427: [23:38:00] <Pyromanik||> ikr
1428: [23:38:00] <ezero> speaking of SS3
1429: [23:38:00] <Pyromanik||> our server runs php 5.2, so until I can get that sorted... :<
1430: [23:38:00] <dospuntocero> :( Pyromanik||
1431: [23:39:00] <dospuntocero> new dataobjectmanager?
1432: [23:39:00] <ezero> i mean the current dataobjectmanager
1433: [23:39:00] * dospuntocero feeling totally uninformed
1434: [23:39:00] <ezero> the new DataObjectManager has some warnings ?
1435: [23:39:00] <ezero> https://github.com/unclecheese/DataObjectManager
1436: [23:40:00] * irogue acronyms all over himself
1437: [23:40:00] <ezero> not sure if thats now part of SS3 now
1438: [23:40:00] <dospuntocero> ezero: DOM passed away. UC will not update that module to ss3
1439: [23:40:00] <ezero> fair enough
1440: [23:40:00] <dospuntocero> the idea is to use the new GridField
1441: [23:40:00] <dospuntocero> yes, thats the reason
1442: [23:40:00] <irogue> yeah, DOM would never work since CTF has been replaced by GF
1443: [23:40:00] <ezero> excellent
1444: [23:41:00] <dospuntocero> look into my module, so you can see it in action
1445: [23:41:00] <dospuntocero> btw using the GF is totally awesome
1446: [23:41:00] <dospuntocero> https://github.com/dospuntocero/DOArticles/
1447: [23:41:00] <ezero> which one?
1448: [23:41:00] <ezero> ill look at GF :) ta
1449: [23:42:00] <dospuntocero> haha
1450: [23:42:00] <dospuntocero> $field = new GridField('FIELD', null, )(DATAOBJECT::get(), GridFieldConfig_RecordEditor::create());
1451: [23:42:00] * SightUnseen has joined #silverstripe
1452: [23:42:00] <dospuntocero> and thats it.
1453: [23:42:00] <ezero> cool
1454: [23:42:00] <dospuntocero> FIELD is the has_many relation and DATAOBJECT is the dataobject duh..
1455: [23:42:00] <ezero> what about uploadify? guess thats not needed any more either
1456: [23:43:00] <dospuntocero> check out his blog
1457: [23:43:00] <dospuntocero> that one was updated
1458: [23:43:00] <dospuntocero> to work with ss3 since aaron needed it for some front end forms
1459: [23:43:00] <dospuntocero> i talked with him the other day
1460: [23:43:00] <dospuntocero> he did some awesome work on other modules
1461: [23:43:00] <dospuntocero> leftandmain.com
1462: [23:44:00] <ezero> cool thats useful apreciate the update dospuntocero
1463: [23:44:00] * dospuntocero im not endorsed to leftandmain corp.
1464: [23:44:00] <dospuntocero> no probs ezero ;)
1465: [23:45:00] <dospuntocero> a good community is based on a strong ties between us.
1466: [23:45:00] <ezero> i just want all my new projects to be SS3 now
1467: [23:46:00] <dospuntocero> the client is super happy
1468: [23:46:00] <dospuntocero> we are a small community so we need to be close
1469: [23:46:00] <dospuntocero> im working in a site using ss3 now
1470: [23:46:00] <dospuntocero> really awesome
1471: [23:46:00] <ezero> so thats definitly a step in the right direction
1472: [23:46:00] <ezero> SS3 has UploadField
1473: [23:47:00] <dospuntocero> $UploadField->setFolderName("MainImages");
1474: [23:47:00] <ezero> looks pretty similar
1475: [23:47:00] <dospuntocero> im just stuck in a function but i will sort it out
1476: [23:47:00] <ezero> not sure why i would want uploadify still
1477: [23:47:00] <dospuntocero> uploadfield is easy too
1478: [23:47:00] <ezero> wonder if that does videos..
1479: [23:47:00] <dospuntocero> $UploadField = new UploadField('MainImage', _t('Page.MAINIMAGE',"Main image"));
1480: [23:47:00] <dospuntocero> $UploadField->getValidator()->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif'));
1481: [23:47:00] <dospuntocero> $UploadField->setConfig('allowedMaxFileNumber', 1);
1482: [23:48:00] <dospuntocero> thats it
1483: [23:48:00] * SightUnseen has left #silverstripe
1484: [23:48:00] <dospuntocero> $fields->addFieldToTab("Root.ImagesAndFiles", $UploadField);
1485: [23:48:00] <ezero> will that work with video files?
1486: [23:49:00] <dospuntocero> but if you want something like thumbnails or video previews, i dont think that will come out of the box
1487: [23:49:00] <dospuntocero> you can upload one i think, but you must add the extension on the validator
1488: [23:49:00] <ezero> yeah
1489: [23:49:00] <catcher> anyone know what UC is working on for SS3?
1490: [23:50:00] <ezero> yeah for that ill have to use that GalleryModule probably won't work with SS3
1491: [23:50:00] <dospuntocero> http://www.leftandmain.com/silverstripe-modules/2012/07/03/bootstrap-forms/
1492: [23:51:00] <ezero> oh sweet! TwitterBootstrap. I've been using that for other projects really nice responsive and fluid
1493: [23:55:00] <dospuntocero> http://www.leftandmain.com/silverstripe-screencasts/2012/07/03/bootstrap-forms-for-silverstripe-3/
1494: [23:55:00] <dospuntocero> yup
1495: [23:55:00] <dospuntocero> watch this video
1496: [23:56:00] <dospuntocero> mmm look into dataobjectmanager
1497: [23:56:00] <ezero> what do you reckon i should do for videos/thumbnails in SS3.
1498: [23:57:00] <ezero> see if i can move some code..
1499: [23:57:00] <dospuntocero> i believe there is a function for creating those from flv using some video libraries
1500: [23:57:00] <ezero> yea

Logging sponsored by you? Get in touch!

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