#silverstripe IRC Log

IRC log for 8 February 2013

All timestamps are in UTC.

1: [00:00:00] * simon_w changed the topic to 'Welcome to #silverstripe discussion - IRC logs available at http://logs.silverstripe.org || 3.1.0-beta1 (bleeding edge) released 17/12/2012: http://ss.org.nz/3.1.0b1 || 2.4.9 security release 05/12/2012: http://ss.org.nz/2.4.9 || 3.0.3 released 26/11/2012: http://ss.org.nz/3.0.3 || Development mailing list: http://ss.org.nz/ss-dev'
2: [00:00:00] <simon_w> Ooh, docs are back
3: [00:05:00] * howardgrigg quit (Remote host closed the connection)
4: [00:05:00] <Zauberfisch> sorry for asking an obvious question, but its pretty late and I am loosing focus
5: [00:05:00] <Zauberfisch> I have a gridfield
6: [00:05:00] <Zauberfisch> and I want to add a new row to that gridfield
7: [00:05:00] <Pyromanik> +1 row
8: [00:05:00] <Pyromanik> cool
9: [00:05:00] <Zauberfisch> what is the best practice for it?
10: [00:06:00] * howardgrigg has joined #silverstripe
11: [00:06:00] <Zauberfisch> (:
12: [00:06:00] <Pyromanik> oh fishslap, how I'd forgotten all about you
13: [00:06:00] <Pyromanik> click the add button?
14: [00:06:00] * Zauberfisch slaps Pyromanik around a bit with a large trout
15: [00:06:00] <Pyromanik> hehe
16: [00:06:00] <Zauberfisch> of course I can access the DataList of the gridfield
17: [00:07:00] <Zauberfisch> but how do a add a new record to that datalist (has_many relation)
18: [00:07:00] <Pyromanik> yeah, whatever it is that puts the add button on the gridfield
19: [00:07:00] <Zauberfisch> +1 config component?
20: [00:07:00] <Pyromanik> see how the +1 config component does it
21: [00:07:00] <Pyromanik> unknown, sorry
22: [00:08:00] <Pyromanik> so skip the form bit
23: [00:08:00] <Zauberfisch> oh, well, it creates a form
24: [00:08:00] <Zauberfisch> but I want to creat a new empty record right away
25: [00:08:00] <spronk> hmm
26: [00:08:00] <Pyromanik> right
27: [00:08:00] <Pyromanik> sup spronk?
28: [00:08:00] <Pyromanik> mmm, but then it adds a relation
29: [00:09:00] <simon_w> Zauberfisch, create a new instance of the data class, write it, add it to the list
30: [00:09:00] <spronk> do the new versions of the tinymce add image button still do the thing where if you have images embedded already, they end up adding the existing images to the list of images to upload, and inserting both?
31: [00:10:00] <Rastafarii> Zauberfisch: I don't want to display error pages in files gridfield
32: [00:10:00] <Zauberfisch> simon_w I figured as much, but DataList->add() seems to be an empty function
33: [00:10:00] <Zauberfisch> so I guess it does not set the has_one relation, does it?
34: [00:10:00] * howardgrigg quit (Ping timeout: 260 seconds)
35: [00:10:00] <Zauberfisch> Rastafarii ah, now I know what you mean
36: [00:11:00] <Zauberfisch> Rastafarii but I am afraid I don't have it in my head how to do it
37: [00:11:00] <Rastafarii> is that possible?
38: [00:11:00] <simon_w> Zauberfisch, HasManyList->add does
39: [00:11:00] <Zauberfisch> I am certain it is possible, but I would need to look it up how. it might be an aweful lot of hacking required to do it, no idea
40: [00:11:00] <Rastafarii> without messing with core/framework classes?
41: [00:12:00] <Rastafarii> brb
42: [00:12:00] <Zauberfisch> simon_w ahh, there we have it
43: [00:12:00] * Rastafarii quit (Quit: Page closed)
44: [00:12:00] <Zauberfisch> sweet
45: [00:12:00] <Zauberfisch> so its as easy as $gridfield->List()->add(DataObject::create())
46: [00:12:00] <Zauberfisch> simon_w I should have known that
47: [00:12:00] <Zauberfisch> simon_w thanks
48: [00:13:00] * Rastafarii has joined #silverstripe
49: [00:13:00] * guci0 quit (Ping timeout: 245 seconds)
50: [00:17:00] <Pyromanik> spronk: what
51: [00:23:00] * Stomach has joined #silverstripe
52: [00:26:00] <Rastafarii> fixed that issue with uploading directly to assets folder
53: [00:27:00] <Rastafarii> framework/filesystem/Upload.php
54: [00:27:00] <Rastafarii> line #101
55: [00:27:00] <Rastafarii> was
56: [00:27:00] <Rastafarii> if(!$folderPath || $folderPath == '/') $folderPath = self::$uploads_folder;
57: [00:27:00] <spronk> Pyromanik: when you hit add image, and upload a new one in-place, it starts listing all other previous images that you've uploaded. Then if you hit "update", it inserts *all* the images uploaded in-line where your cursor is
58: [00:27:00] <Rastafarii> changed it to
59: [00:27:00] <Rastafarii> if(!$folderPath) $folderPath = self::$uploads_folder;
60: [00:28:00] <Rastafarii> somebody may find this useful
61: [00:29:00] <Pyromanik> spronk: hahahahaha, winning
62: [00:30:00] <spronk> kk
63: [00:30:00] <Pyromanik> bit busy atm
64: [00:30:00] <Pyromanik> maybe
65: [00:30:00] <Rastafarii> yes, I'm opening it atm
66: [00:30:00] <spronk> can test?
67: [00:30:00] <spronk> hmm
68: [00:30:00] <Pyromanik> never do that
69: [00:30:00] <Pyromanik> spronk: nfi
70: [00:30:00] <spronk> does it do this for you as well?
71: [00:30:00] <Pyromanik> Rastafarii: sounds like you should lodge a ticket at open.silverstripe.org
72: [00:30:00] <spronk> i might just update ss anyway
73: [00:31:00] <spronk> think this is running 3.0
74: [00:33:00] <Zauberfisch> after adding that item to the gridfield, is there a way to retrive that row and render it?
75: [00:33:00] <Zauberfisch> so I may return it to the ajax call and append it to the gridfield
76: [00:34:00] <simon_w> Zauberfisch, I think the only way to do that is refresh the gridfield
77: [00:35:00] <Zauberfisch> hmmm
78: [00:35:00] <Zauberfisch> damn it, thats not an option for me, because the input fields inside the grid would loose its changed values
79: [00:35:00] <Zauberfisch> I see there is a template GridField_Item.ss
80: [00:36:00] <Zauberfisch> me
81: [00:36:00] <simon_w> prematurely?
82: [00:36:00] <simon_w> hitting enter
83: [00:36:00] <Zauberfisch> god damn gridfield
84: [00:36:00] <simon_w> to stop
85: [00:36:00] <Zauberfisch> haha
86: [00:36:00] <Zauberfisch> bloody hell
87: [00:36:00] <Zauberfisch> omg
88: [00:36:00] <Zauberfisch> that reminds
89: [00:37:00] <Zauberfisch> as awesome as gridfield is
90: [00:37:00] <Zauberfisch> madness
91: [00:37:00] <Zauberfisch> who does that?
92: [00:37:00] <Zauberfisch> it has a bloody template and then does not use it, but rather build the <tr> in php
93: [00:39:00] * mobiusnz has joined #silverstripe
94: [00:44:00] <Zauberfisch> here we go, hacked it together
95: [00:45:00] * liam quit (Quit: liam)
96: [01:06:00] * liam has joined #silverstripe
97: [01:08:00] <Zauberfisch> inline adding and editing
98: [01:08:00] <Zauberfisch> its working
99: [01:08:00] <Zauberfisch> hooray
100: [01:08:00] <Zauberfisch> a dream comming true
101: [01:13:00] <irogue> So, Rdio need a little tweaking for their Stations. Am on "stuff like Blindspott" station, is playing Tears in Heaven.
102: [01:23:00] * mobiusnz quit (Quit: Leaving.)
103: [01:33:00] * howardgrigg has joined #silverstripe
104: [01:34:00] * liam quit (Quit: liam)
105: [01:36:00] * liam has joined #silverstripe
106: [01:40:00] <Pyromanik> simon_w: can I combine _config/ and _config.php ? or should I be putting calls from _config.php into some file in _config/ ?
107: [01:41:00] <simon_w> Otherwise, _config.php
108: [01:41:00] <simon_w> Pyromanik, well, if you can, you should be using the yaml files in _config
109: [01:41:00] <Pyromanik> _config/? or the usual _config.php?
110: [01:41:00] <Pyromanik> simon_w: ok, so Object::add_extension as an example
111: [01:42:00] <Pyromanik> is yaml faster?
112: [01:42:00] <simon_w> ClassName:
113: [01:42:00] <simon_w> extensions:
114: [01:42:00] <simon_w> ExtensionName
115: [01:42:00] <Pyromanik> oic
116: [01:42:00] <simon_w> yaml that should work :)
117: [01:42:00] <Pyromanik> ok cool. docs are back up, I'll read into it
118: [01:42:00] <Pyromanik> or ...
119: [01:42:00] <Pyromanik> what's the reasoning behind it?
120: [01:43:00] <howardgrigg> Pyromanik: might find this interesting http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/
121: [01:43:00] <Rastafarii> why does assets manager "remembers" folder you entered last (eg "Uploads"), and when you click "UP", go to assets and hit "New folder" it creates folder in right place, but redirects you to last opened folder?
122: [01:44:00] <Pyromanik> cool, thanks howardgrigg
123: [01:46:00] <Pyromanik> just coz.
124: [01:46:00] <Pyromanik> Rastafarii: why after making a folder does it go back to the parent of your new folder rather than into the new folder?
125: [01:46:00] <Rastafarii> anyone?
126: [01:47:00] <Rastafarii> no
127: [01:47:00] <Rastafarii> but it goes like this
128: [01:47:00] <Rastafarii> that's desired
129: [01:47:00] <Pyromanik> then please rephrase question
130: [01:48:00] <Rastafarii> so you're back in assets root
131: [01:48:00] <Rastafarii> eg you have two folders in assets: Uploads and PDF
132: [01:48:00] <Rastafarii> you open PDF, and then hit "up"
133: [01:49:00] <Pyromanik> oh, yes I do
134: [01:49:00] <Rastafarii> hit "New folder"
135: [01:49:00] <Pyromanik> I don't have an up button
136: [01:49:00] <Rastafarii> enter eg "Docs" and hit OK
137: [01:49:00] <Pyromanik> the little ..^ image
138: [01:49:00] <Pyromanik> which just goes up one level
139: [01:50:00] <Rastafarii> folder "Docs" is created inside assets
140: [01:50:00] <Pyromanik> I seriously think you have a corrupt install
141: [01:50:00] <Pyromanik> because I'm using a fresh 3.0.3
142: [01:50:00] <Pyromanik> from a tarball from ss.org
143: [01:50:00] * chrisrio quit (Ping timeout: 245 seconds)
144: [01:51:00] <Pyromanik> smells like bug
145: [01:51:00] <Pyromanik> actually I was redirected to /Uploads/test
146: [01:51:00] <Rastafarii> but you are redirected to Uploads folder
147: [01:51:00] <Rastafarii> so its path is assets/Docs
148: [01:52:00] <Rastafarii> you are redirected to whatever folder you opened last
149: [01:52:00] <Pyromanik> :)
150: [01:52:00] <Pyromanik> submit bug to open.silverstripe.org
151: [01:52:00] <Pyromanik> js errors
152: [01:52:00] <Pyromanik> Rastafarii: it doesn't redirect you to the Uploads folder, it redirects you to the last... yes
153: [01:52:00] <Rastafarii> well
154: [01:53:00] <simon_w> irogue, I see you got the first question for sminnee
155: [01:53:00] <Pyromanik> install 3.1 beta and see if it still exists
156: [01:53:00] <Pyromanik> OR
157: [01:54:00] <sminnee> yeah it's a good'un
158: [01:55:00] <Rastafarii> Pyromanik: will do tomorrow, 3AM here
159: [01:55:00] <simon_w> sminnee, also, I'm impressed that NBR can actually display your surname in the header
160: [01:56:00] <simon_w> and the title. Whoa
161: [01:56:00] <simon_w> http://www.nbr.co.nz/ask-sam
162: [01:56:00] <Pyromanik> NBR?
163: [01:57:00] <Pyromanik> boom
164: [01:57:00] <spronk> mm
165: [01:57:00] <Pyromanik> OOOOH
166: [01:57:00] <Pyromanik> umm
167: [01:57:00] <simon_w> sminnee, why isn't it happening in here instead? :p
168: [01:57:00] <howardgrigg> simon_w: more impressed if it was in the url
169: [01:57:00] <Pyromanik> https://pbs.twimg.com/media/BBzxweoCAAA6YlV.jpg:large
170: [01:58:00] <simon_w> howardgrigg, URLs are ASCII though
171: [01:58:00] * iamss has joined #silverstripe
172: [02:00:00] <howardgrigg> simon_w: http://en.wikipedia.org/wiki/Punycode
173: [02:01:00] <simon_w> Yes, there's ways of putting non-ASCII characrters into something that only uses ASCII
174: [02:01:00] <howardgrigg> you can register unicode domain names now
175: [02:02:00] <simon_w> And browsers, for the most part, are doing the conversion in what they display
176: [02:10:00] * Rastafarii quit (Ping timeout: 245 seconds)
177: [02:15:00] * oddnoc quit (Quit: bye!)
178: [02:20:00] <spronk> sminnee: answer questions faster :p
179: [02:20:00] <simon_w> Should've run it in here :p
180: [02:21:00] <spronk> mm.
181: [02:23:00] <sminnee> lol
182: [02:25:00] * willr_ has joined #silverstripe
183: [02:26:00] <howardgrigg> thinking about the answer is over rated
184: [02:27:00] <Colin[pi]> lol duck sized horses question
185: [02:28:00] <simon_w> That was irogue
186: [02:29:00] <spronk> omfg
187: [02:29:00] <simon_w> willr_, the two other people with a van are showing up at 11 tomorrow
188: [02:29:00] <spronk> apparently "Brad h" just signed for my parcel
189: [02:30:00] <willr_> how much crap have you got?
190: [02:30:00] <willr_> So you're got it covered then?
191: [02:31:00] <simon_w> Well, it's not an empty van :p The main problem's going to be the whitewear. Or the fridge at least
192: [02:32:00] <simon_w> I don't think I've gained that much stuff since moving out otherwise, and that was just two loads
193: [02:35:00] <willr_> If the van has a tow bar, I do have a trailer for the whitewear. My car just doesn't have a one :(
194: [02:36:00] <simon_w> *nor
195: [02:36:00] <simon_w> Yeah, not does the van :(
196: [02:38:00] <willr_> That's unfortunate.
197: [02:38:00] <simon_w> And there's no way your trailer will work on the truck :p
198: [02:41:00] <Pyromanik> wow, people are getting really mad with these sminnee questions
199: [02:41:00] <iamss> hello silverstripe! Is there a way to prevent the site search from searching pdf file
200: [02:42:00] <Pyromanik> spronk: so you don't have your parcel?
201: [02:42:00] * Bollig|DesignCty quit (Ping timeout: 240 seconds)
202: [02:46:00] <Colin[pi]> question 26 pyromanik?
203: [02:58:00] <willr_> iamss as far as I know it doesn't search pdf file contents, just the title
204: [02:59:00] <iamss> how can I disable searching from the assets?
205: [02:59:00] <willr_> And you could only disable searching assets completely, not just the pdf
206: [02:59:00] <willr_> without hacking up the class.
207: [02:59:00] <iamss> yeah the title but how can I prevent that from searching the title
208: [03:00:00] <iamss> ah cool many thanks willr :)
209: [03:00:00] <willr_> Use FulltextSearchable::enable(array('SiteTree')); instead of FulltextSearchable::enable() in your config
210: [03:04:00] * Kolin quit (*.net *.split)
211: [03:04:00] * ajmitch quit (*.net *.split)
212: [03:04:00] * BabySuperman quit (*.net *.split)
213: [03:04:00] * spronk quit (*.net *.split)
214: [03:04:00] * Stomach quit (*.net *.split)
215: [03:04:00] * howardgrigg quit (*.net *.split)
216: [03:04:00] * willr_ quit (*.net *.split)
217: [03:04:00] * discorpia quit (*.net *.split)
218: [03:04:00] * FrozenFire quit (*.net *.split)
219: [03:04:00] * Zauberfisch quit (*.net *.split)
220: [03:04:00] * popeshoe quit (*.net *.split)
221: [03:04:00] * EPIK quit (*.net *.split)
222: [03:04:00] * metanat quit (*.net *.split)
223: [03:04:00] * robert_ quit (*.net *.split)
224: [03:04:00] * C10ne quit (*.net *.split)
225: [03:04:00] * MattSS quit (*.net *.split)
226: [03:04:00] * AshKyd quit (*.net *.split)
227: [03:04:00] * onre quit (*.net *.split)
228: [03:04:00] * lenix quit (*.net *.split)
229: [03:04:00] * Guest88352 quit (*.net *.split)
230: [03:04:00] * ss23 quit (*.net *.split)
231: [03:04:00] * irogue quit (*.net *.split)
232: [03:04:00] * dnz- quit (*.net *.split)
233: [03:04:00] * iamss quit (*.net *.split)
234: [03:04:00] * ec8or quit (*.net *.split)
235: [03:04:00] * Error404NotFound quit (*.net *.split)
236: [03:04:00] * gelignite quit (*.net *.split)
237: [03:04:00] * nickmolhoek quit (*.net *.split)
238: [03:04:00] * liam quit (*.net *.split)
239: [03:04:00] * oystein quit (*.net *.split)
240: [03:04:00] * funkygibbon_ quit (*.net *.split)
241: [03:04:00] * Pyromanik quit (*.net *.split)
242: [03:04:00] * Colin[pi] quit (*.net *.split)
243: [03:05:00] * MrGuits quit (*.net *.split)
244: [03:05:00] * Kapdap quit (*.net *.split)
245: [03:05:00] * cloph_away1 quit (*.net *.split)
246: [03:05:00] * PigeonFriend quit (*.net *.split)
247: [03:05:00] * sminnee quit (*.net *.split)
248: [03:05:00] * mrzero quit (*.net *.split)
249: [03:05:00] * simon_w quit (*.net *.split)
250: [03:05:00] * Shrike_Finland quit (*.net *.split)
251: [03:05:00] * DigNZ quit (*.net *.split)
252: [03:05:00] * priithansen quit (*.net *.split)
253: [03:08:00] * ezero quit (Ping timeout: 256 seconds)
254: [04:26:00] * EPIK has joined #silverstripe
255: [04:26:00] * simon_w has joined #silverstripe
256: [04:26:00] * spronk has joined #silverstripe
257: [04:26:00] * priithansen has joined #silverstripe
258: [04:26:00] * robert_ has joined #silverstripe
259: [04:26:00] * Guest88352 has joined #silverstripe
260: [04:26:00] * oystein has joined #silverstripe
261: [04:26:00] * discorpia has joined #silverstripe
262: [04:26:00] * Kolin has joined #silverstripe
263: [04:26:00] * ajmitch has joined #silverstripe
264: [04:26:00] * Kapdap has joined #silverstripe
265: [04:26:00] * FrozenFire has joined #silverstripe
266: [04:26:00] * BabySuperman has joined #silverstripe
267: [04:26:00] * C10ne has joined #silverstripe
268: [04:26:00] * Zauberfisch has joined #silverstripe
269: [04:26:00] * popeshoe has joined #silverstripe
270: [04:26:00] * funkygibbon_ has joined #silverstripe
271: [04:26:00] * metanat has joined #silverstripe
272: [04:27:00] * liam has joined #silverstripe
273: [04:27:00] * ec8or has joined #silverstripe
274: [04:27:00] * mrzero has joined #silverstripe
275: [04:27:00] * elgrodo has joined #silverstripe
276: [04:27:00] * sminnee has joined #silverstripe
277: [04:27:00] * cloph_away1 has joined #silverstripe
278: [04:27:00] * MrGuits has joined #silverstripe
279: [04:27:00] * PigeonFriend has joined #silverstripe
280: [04:27:00] * irogue has joined #silverstripe
281: [04:27:00] * ss23 has joined #silverstripe
282: [04:27:00] <priithansen> wohoo everybody's back, was getting lonely in here
283: [04:27:00] * Shrike_Finland has joined #silverstripe
284: [04:27:00] * lenix has joined #silverstripe
285: [04:27:00] * onre has joined #silverstripe
286: [04:27:00] * dnz- has joined #silverstripe
287: [04:27:00] * MattSS has joined #silverstripe
288: [04:27:00] * Error404NotFound has joined #silverstripe
289: [04:27:00] * AshKyd has joined #silverstripe
290: [04:28:00] * cloph_away1 quit (Excess Flood)
291: [04:29:00] * C10ne quit (Ping timeout: 245 seconds)
292: [04:30:00] * cloph_away has joined #silverstripe
293: [04:37:00] * cloph_away1 has joined #silverstripe
294: [04:38:00] * metanat quit (Quit: Leaving.)
295: [04:38:00] * cloph_away quit (Ping timeout: 256 seconds)
296: [04:41:00] * ferge1 has joined #silverstripe
297: [04:46:00] * simon_w|air has joined #silverstripe
298: [04:56:00] * UncleCheese has joined #silverstripe
299: [04:56:00] * liam quit (Quit: liam)
300: [05:32:00] * UncleCheese has left #silverstripe
301: [05:32:00] * spronk has left #silverstripe
302: [05:32:00] * aznain has joined #silverstripe
303: [05:32:00] * spronk has joined #silverstripe
304: [05:35:00] * simon_w|air quit (Quit: This computer has gone to sleep)
305: [05:46:00] * aznain quit (Quit: Page closed)
306: [05:57:00] * liam has joined #silverstripe
307: [06:03:00] * Shrike_Finland quit (Quit: Leaving.)
308: [06:04:00] * Shrike_Finland has joined #silverstripe
309: [06:05:00] * Shrike_Finland quit (Client Quit)
310: [06:09:00] * Stomach has joined #silverstripe
311: [06:09:00] * Stomach quit (Client Quit)
312: [06:18:00] * liam quit (Quit: liam)
313: [06:49:00] * liam has joined #silverstripe
314: [06:50:00] * Unlearned has joined #silverstripe
315: [06:56:00] * maknz has joined #silverstripe
316: [07:02:00] * liam quit (Quit: liam)
317: [07:17:00] * liam has joined #silverstripe
318: [07:35:00] * spronk has joined #silverstripe
319: [07:35:00] * spronk has left #silverstripe
320: [07:42:00] * spronk quit (Ping timeout: 255 seconds)
321: [07:43:00] * funkygibbon_ quit (Quit: Leaving)
322: [07:45:00] * liam quit (Quit: liam)
323: [07:46:00] * ferge1 has left #silverstripe
324: [08:02:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
325: [08:02:00] * liam has joined #silverstripe
326: [08:07:00] * Zauberfisch quit (Ping timeout: 276 seconds)
327: [08:15:00] * elgrodo quit (Remote host closed the connection)
328: [08:15:00] * priithansen quit (Quit: priithansen)
329: [08:16:00] * priithansen has joined #silverstripe
330: [08:20:00] * ezero has joined #silverstripe
331: [08:22:00] * zfmf has joined #silverstripe
332: [08:26:00] * Zauberfisch has joined #silverstripe
333: [08:28:00] <Zauberfisch> good morning folks
334: [08:35:00] <zfmf> morning
335: [08:39:00] * Jakx has joined #silverstripe
336: [08:39:00] <Jakx> yo
337: [08:40:00] <Jakx> is there a method to format SS_Datetime data? i.e $Date->Format('d/m/Y');?
338: [08:41:00] * howardgrigg has joined #silverstripe
339: [08:45:00] <Jakx> :D
340: [08:45:00] <Jakx> $Date->dbObject('Date')->Format('d/m/Y');!?
341: [08:57:00] * instabil has joined #silverstripe
342: [09:05:00] * kinglozzer has joined #silverstripe
343: [09:07:00] * howardgrigg quit (Remote host closed the connection)
344: [09:07:00] * ARNHOFF has joined #silverstripe
345: [09:07:00] * howardgrigg has joined #silverstripe
346: [09:09:00] * ARNHOE has joined #silverstripe
347: [09:11:00] <MrGuits> For some reason I cannot list Children after I have a custom function called getClassChildren (returns children of certain classname).
348: [09:11:00] * ezero quit (Ping timeout: 260 seconds)
349: [09:12:00] * howardgrigg quit (Ping timeout: 248 seconds)
350: [09:12:00] <Jakx> MrGuits, I might be able to help, but would like to see your method and template code? http://www.sspaste.com
351: [09:12:00] * ARNHOFF quit (Ping timeout: 252 seconds)
352: [09:18:00] <MrGuits> Jakx : http://www.sspaste.com/paste/show/5114c2bc87dcf
353: [09:19:00] <Jakx> MrGuits, what is your <% control Children %> tab inside of?
354: [09:19:00] <Jakx> out of curiosity
355: [09:19:00] <Jakx> tag*
356: [09:20:00] <MrGuits> ?
357: [09:20:00] <MrGuits> Jakx - not sure I understand the question
358: [09:21:00] <Jakx> typically you would need to be inside the control or loop of an object that has a Children() method for $Children to return anything
359: [09:21:00] <Jakx> if I understand your code correctly
360: [09:21:00] <Jakx> ... what version of SS are you using?
361: [09:21:00] <MrGuits> 3,02
362: [09:22:00] <MrGuits> I am in a /Layout/ProductCategory.ss
363: [09:22:00] <Jakx> ok try, <% loop ClassChildren(productCategory) %> ... in place of <% control Children %>
364: [09:23:00] <MrGuits> Jakx.. still nothing
365: [09:23:00] <Jakx> put a capital P on productCategory though lol
366: [09:23:00] * simon_w|air has joined #silverstripe
367: [09:24:00] <MrGuits> If I remove line 3 it works
368: [09:25:00] <MrGuits> and also if i change that to <% if Children %> items exist <% end_if %>
369: [09:25:00] * lx-berlin has joined #silverstripe
370: [09:25:00] <MrGuits> so my custom function does something bad :S
371: [09:25:00] <Jakx> MrGuits, yeah it's not the sexiest way to do things
372: [09:25:00] <Jakx> so your goal is to list only the children with a certain category?
373: [09:26:00] <MrGuits> yes
374: [09:26:00] <MrGuits> no ..of a pageType
375: [09:26:00] <Jakx> yeah
376: [09:26:00] <Jakx> my bad
377: [09:26:00] <Jakx> oh I see, it's a nav
378: [09:27:00] <MrGuits> the function works .. but if it is empty i cannot call on any children after that
379: [09:27:00] <MrGuits> ..what i really want is to first list all pages of ClassName ProductCategory
380: [09:27:00] <MrGuits> Then all pages of ClassName Product
381: [09:28:00] <simon_w|air> MrGuits, use $children = clone $parentObject->Children()
382: [09:30:00] <MrGuits> thanx simon_w|air
383: [09:31:00] <MrGuits> seems to work .. can you explain why :)
384: [09:31:00] <simon_w|air> The return value from Children() is cached
385: [09:31:00] <simon_w|air> In 3.0, mutation methods on ArrayLists change the underlying ArrayList
386: [09:32:00] <simon_w|air> So you were filtering the cached children
387: [09:32:00] <MrGuits> ah..it figures
388: [09:32:00] <Jakx> I posted an alternative for the same result, think it's viable simon_w|air?
389: [09:32:00] <MrGuits> but i could also clear it with $this->_cache_children = null; ?
390: [09:33:00] <simon_w|air> Jakx, well, that filter won't work :p
391: [09:33:00] <Jakx> simon_w|air, oh?
392: [09:34:00] <simon_w|air> MrGuits, nope. _cache_children is on the Hierarchy extension, not the DataObject
393: [09:34:00] <simon_w|air> Jakx, filter doesn't take SQL
394: [09:34:00] <Jakx> oh of course /facepalm
395: [09:36:00] <Jakx> wtf, the sspaste doesn't display the right response ><
396: [09:36:00] <Jakx> oh wtf, I'm just tired.
397: [09:36:00] <Jakx> wish I could edit sspaste.com
398: [09:37:00] <Jakx> forever looking like a tool
399: [09:38:00] * Zauberfisch quit (Ping timeout: 246 seconds)
400: [09:39:00] <simon_w|air> One day, I will not be here!
401: [09:39:00] <Jakx> not today though :(
402: [09:39:00] <Jakx> one day simon_w|air, one day. I will help someone :D
403: [09:40:00] <Jakx> that day, we're fucked basically.
404: [09:40:00] <simon_w|air> Like tomorrow, or during xerocon, or my holiday after xerocon
405: [09:40:00] <simon_w|air> Oh, I was away most of January. People seemed to survive :p
406: [09:41:00] <zfmf> :D
407: [09:41:00] <Jakx> true, plenty of helpful people here when you think about it. like zfmf for instance.
408: [09:42:00] <Jakx> simon_w|air, did you buy your xerocon tix?
409: [09:43:00] <simon_w|air> Nope, work did
410: [09:43:00] <simon_w|air> And my flights, and my accommodation
411: [09:44:00] <Jakx> simon_w|air, \m/ sweeeet.
412: [09:45:00] * Zauberfisch has joined #silverstripe
413: [09:46:00] * r3v3rb has joined #silverstripe
414: [09:48:00] <zfmf> is there an easy way in modeladmin to choose the customer automatically? url : admin/customer/Customer/EditForm/field/Customer/item/4/ItemEditForm/field/Licences/item/new
415: [09:48:00] <zfmf> customerid is in the url , but geturlparams shows only modeladmin and action i think :D
416: [09:48:00] <simon_w|air> zfmf, is this like the has_one for a has_many in the GridField?
417: [09:49:00] <zfmf> yes
418: [09:49:00] <simon_w|air> Just remove the field
419: [09:51:00] <zfmf> :D thanks :D
420: [10:23:00] <Unlearned> inside DataObject::get() $filter how can I search for custom page types? What's the column ?
421: [10:24:00] <Jakx> Unlearned, ClassName?
422: [10:25:00] <Unlearned> Jakx let me check it out :) thanks
423: [10:30:00] * spronk has joined #silverstripe
424: [10:35:00] <Unlearned> found no luck
425: [10:36:00] * dendeffe has joined #silverstripe
426: [10:36:00] <Jakx> DataObject::get("Page", "ClassName = '{$yourClassName}'"); didn't work?
427: [10:38:00] <r3v3rb> any idea if the RESTful Service will support JSON encoded data ? if not whats the best route for twitter feeds now - custom built functions?
428: [10:43:00] * r3v3rb quit (Quit: r3v3rb)
429: [10:47:00] * Jakx has left #silverstripe
430: [10:47:00] <Jakx> goodnight!
431: [10:59:00] * simon_w|air quit (Quit: This computer has gone to sleep)
432: [11:12:00] * gelignite has joined #silverstripe
433: [11:17:00] * r3v3rb has joined #silverstripe
434: [11:23:00] <priithansen> in cms markItUp markdown field works after refresh but not after page save or any other ajaxi page change
435: [11:24:00] <priithansen> no errors either, looks like the javascript that's supposed to switch the plain old textfield doesn't activate after ajax page change
436: [11:32:00] <r3v3rb> hmm,anyone done oauth authentication with twitter for a timeline feed in Silverstripe
437: [11:41:00] * leoz quit (Client Quit)
438: [11:41:00] * leoz has joined #silverstripe
439: [11:46:00] * Error404NotFound has joined #silverstripe
440: [11:56:00] * liam quit (Quit: liam)
441: [12:06:00] * Error404NotFound quit (Ping timeout: 246 seconds)
442: [12:08:00] * salami2 has joined #silverstripe
443: [12:08:00] <salami2> A
444: [12:09:00] <r3v3rb> ajshort: even!
445: [12:09:00] <r3v3rb> RestfulService & JSON...
446: [12:09:00] <r3v3rb> any news on the possibility of it being added?
447: [12:09:00] <ajshort> Zauberfisch, just re your pull request - I want to try and avoid having to make an AJAX request each time you create a record, so I'm approaching it a bit differently
448: [12:09:00] <r3v3rb> ajmitch:
449: [12:09:00] <ajshort> Zauberfisch: IRC!
450: [12:09:00] * ajshort has joined #silverstripe
451: [12:10:00] <salami2> Anyone with the same problem?
452: [12:10:00] * r3v3rb goes and finds
453: [12:10:00] <salami2> Hi, I copied ss 3.1 over 3.0, now the backend is unusable
454: [12:10:00] <ajshort> r3v3rb, Don't use restfulservice - use guzzle or something instead
455: [12:10:00] <r3v3rb> guzzle?
456: [12:11:00] <salami2> The leftpane is fine, but the rightpane looks like it has too less space (width)
457: [12:11:00] <salami2> i already did a flush
458: [12:11:00] <r3v3rb> ajshort: thanks - supports oauth too!
459: [12:11:00] <r3v3rb> happy days
460: [12:12:00] <r3v3rb> salami2: try deleting everything in silverstripe-cache
461: [12:14:00] <salami2> I dontg see a folder with this name
462: [12:15:00] <r3v3rb> salami2: create one ;)
463: [12:15:00] <r3v3rb> and then try accessing the admin
464: [12:16:00] <salami2> I found it
465: [12:16:00] <salami2> Didnt help
466: [12:16:00] <r3v3rb> it may make no difference at all but at least you'll have any easily accessible cache that you can manually delete whenever you feel like it whilst building/debugging
467: [12:17:00] <Zauberfisch> fail
468: [12:17:00] <r3v3rb> hi Zauberfisch
469: [12:17:00] <Zauberfisch> awesome stuff
470: [12:17:00] <Zauberfisch> hail ajshort
471: [12:17:00] <Zauberfisch> hail ajmitch
472: [12:17:00] <Zauberfisch> I have to say, your module is fantastic
473: [12:17:00] <Zauberfisch> ohai ajshort
474: [12:18:00] <r3v3rb> otherwise the caches will end up in your temp dir and be a pain to delete
475: [12:18:00] <Zauberfisch> ajshort the reason I went this way was actually because I thought I might be able to just use a template of gridfield
476: [12:18:00] * Error404NotFound has joined #silverstripe
477: [12:18:00] <salami2> I removed the folder now its working
478: [12:18:00] <ajshort> cheers :)
479: [12:18:00] <Zauberfisch> ajshort you have a good point about creating the record only on save
480: [12:18:00] <r3v3rb> recreate the folder salami2
481: [12:18:00] <Zauberfisch> ajshort not just write a new empty one to DB
482: [12:18:00] <ajshort> Yep
483: [12:19:00] <Zauberfisch> and 2nd argument for doing it this way for me was that it was quick, I had to be fast
484: [12:19:00] <ajshort> Yep, I was very impressed by how quickly you got that working
485: [12:19:00] <Zauberfisch> r3v3rb I love and hate gridfield at the same time
486: [12:19:00] <Zauberfisch> but turns out, gridfield is not using a template
487: [12:19:00] <Zauberfisch> bloody hell
488: [12:19:00] <r3v3rb> lol
489: [12:19:00] <r3v3rb> you love it Zauberfisch
490: [12:20:00] <Zauberfisch> ajshort amazing what pressure can do to someone ^^
491: [12:21:00] <priithansen> Can anybody suggest a method for activating my javascript function not just on document ready but when cms does ajax page switch thing as well?
492: [12:22:00] <guci0> Hi there!
493: [12:22:00] * guci0 has joined #silverstripe
494: [12:24:00] <kinglozzer> priithansen: Are you in the CMS?
495: [12:24:00] <priithansen> yes
496: [12:24:00] <priithansen> cms
497: [12:24:00] <kinglozzer> Or front end?
498: [12:25:00] <kinglozzer> You can use entwine
499: [12:25:00] <kinglozzer> http://doc.silverstripe.org/framework/en/topics/javascript
500: [12:25:00] <r3v3rb> Zauberfisch: pressure is the best way to get anything done!
501: [12:26:00] <priithansen> Would like to use a custom markdownfield that requires jQuery("textarea.markdown").markItUp(mySettings); but adding that into js file that get required with the field it only works with full refresh
502: [12:27:00] <priithansen> Thought so but just when I begin to see logic in javascript ways it all falls apart again
503: [12:27:00] <kinglozzer> priithansen: Use jQuery('textarea.markdown').entwine({ onmatch: function() { markItUp(); } });
504: [12:30:00] <priithansen> ai carramba thanks kinglozzer that did the trick
505: [12:31:00] <priithansen> This tell's entwine to keep a lookout for txt.markdown and then one appears entwine runs the function?
506: [12:38:00] <kinglozzer> Yep
507: [12:39:00] <kinglozzer> There are other events, like onclick etc as well
508: [12:39:00] <kinglozzer> Look through the cms/framework javascript folders for examples of stuff :)
509: [12:42:00] * COngII has joined #silverstripe
510: [12:42:00] * COngII quit (Client Quit)
511: [12:42:00] * COngII has joined #silverstripe
512: [12:43:00] <priithansen> Thanks for the help
513: [12:43:00] * COngII quit (Client Quit)
514: [12:46:00] <kinglozzer> No problem
515: [12:46:00] <r3v3rb> just lost cms and framework for 3.1
516: [12:46:00] <r3v3rb> hehe
517: [12:46:00] <r3v3rb> Carp! Composer deletes folders if you remove their lines from the .json when doing update!
518: [12:55:00] <kinglozzer> Damnit, whenever I get distracted by a phone call it always takes at least 10 minutes for me to get back on track :P
519: [13:04:00] <ajshort> why?
520: [13:04:00] <r3v3rb> hmm, guzzle is proving more difficult that anticipated ajshort to get loaded via composer and autoload.php
521: [13:04:00] <ajshort> just add it to composer
522: [13:05:00] <ajshort> and in mysite/_config.php add require_once __DIR__ . '/../vendor/autoload.php';
523: [13:05:00] <r3v3rb> i did
524: [13:05:00] <r3v3rb> but missed that!
525: [13:05:00] * r3v3rb tries
526: [13:06:00] <r3v3rb> I get : Class 'Client' not found in
527: [13:06:00] <ajshort> you need to import the namespace
528: [13:06:00] <ajshort> use Guzzle\...\Client;
529: [13:07:00] <zfmf> is this not possible with ajax ? domain.com/api/v1/Licence?Licence=11111
530: [13:08:00] <ajshort> zfmf, you can't make ajax requests across domains
531: [13:08:00] <zfmf> i'm getting a js error, but when i run it on browser its working :s
532: [13:09:00] <ajshort> you need to use jsonp
533: [13:11:00] <zfmf> ooo yea your right thanks :) upps
534: [13:14:00] * UndefinedOffset has joined #silverstripe
535: [13:16:00] <Unlearned> How to specity Parent.ClassName inside $filter of DataObject::get() ?
536: [13:18:00] <zfmf> is there no jsonpdataformatter in the api :s hmmm
537: [13:38:00] * lx-berlin has left #silverstripe
538: [13:44:00] * lx-berlin has joined #silverstripe
539: [14:02:00] * UndefinedOffset quit (Ping timeout: 245 seconds)
540: [14:05:00] * UndefinedOffset has joined #silverstripe
541: [14:09:00] * dendeffe quit (Quit: dendeffe)
542: [14:15:00] <kinglozzer> new ArrayList($array) ?
543: [14:15:00] <r3v3rb> whats the quickest way to convert an array to a arraylist for parsing in a template in ss3?
544: [14:15:00] * dendeffe has joined #silverstripe
545: [14:16:00] <r3v3rb> yep, just tried it and works :D
546: [14:16:00] <r3v3rb> twitter API1.1 will not defeat me!
547: [14:16:00] <kinglozzer> Easy :D
548: [14:20:00] <r3v3rb> guzzle+ArrayList = simple update from 1.0 to 1.1 API and Authenticated Twitter Access :D
549: [14:22:00] <ec8or> lx-berlin: the latest build is broken :)
550: [14:22:00] <ec8or> (saw you installed it)
551: [14:23:00] <lx-berlin> i saw the problem
552: [14:23:00] <ec8or> lx-berlin: when you install a new version form the testflight email, do you still get a notification when you start the game that a new version is available?
553: [14:23:00] <lx-berlin> :)
554: [14:28:00] <ec8or> r3v3rb: yeah no hurry, next build
555: [14:28:00] <r3v3rb> ec8or: have to wrestle the pad off of wife later to test :)
556: [14:29:00] <r3v3rb> ok
557: [14:29:00] <lx-berlin> sorry, i got a phonecall
558: [14:31:00] <lx-berlin> i think i installed 3 updates today, but not after getting a notification from testflight. I just started the game and got the message that a new version is available. So i couldnt really play it today.
559: [14:31:00] <ec8or> lx-berlin: yeah that's what i mean, we only released one... weird
560: [14:31:00] <lx-berlin> i just clicked on "install" and put the ipad away
561: [14:32:00] * lx-berlin afk
562: [14:37:00] <ec8or> air strike sound is missing
563: [14:37:00] <ec8or> found the bug
564: [14:39:00] * r3v3rb quit (Quit: r3v3rb)
565: [14:43:00] <MrGuits> Maybe someone can help me? I am doin progress on REALLY speeding up my megamenu.. First I put all my pages in an array that I store in a session
566: [14:44:00] <MrGuits> then to generate the menu I do a simple sqlquery : $kids = DB::query('SELECT * FROM SiteTree WHERE ParentID = ' . $this->ID);
567: [14:46:00] <MrGuits> The session array works fine though
568: [14:46:00] <MrGuits> But .. when trying to work with the ArrayList generated from that sqlquery i cannot use the ParentID to call on the function above
569: [14:51:00] <salami2> How can I prevent ss escaping html in content?
570: [14:54:00] <lx-berlin> ec8or: i deleted the app. I will install the next version when i receive an information from testflight
571: [15:01:00] * C10ne has joined #silverstripe
572: [15:02:00] <ec8or> lx-berlin: cool
573: [15:04:00] * g4b0 has joined #silverstripe
574: [15:04:00] * dospuntocero has joined #silverstripe
575: [15:18:00] * lx-berlin has left #silverstripe
576: [15:19:00] <ajshort> Zauberfisch, https://github.com/ajshort/silverstripe-gridfieldextensions/commit/692453bf9b421903ca69cde1caa942f89e175e8d
577: [15:22:00] * COngII has joined #silverstripe
578: [15:32:00] <salami2> Ajshort your module looks like a very useful extension
579: [15:33:00] <ajshort> Yep, I think it will come in handy
580: [15:39:00] * Zauberfisch quit (Ping timeout: 246 seconds)
581: [15:39:00] * ARNHOE quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
582: [15:41:00] * ajshort quit (Quit: Leaving)
583: [15:42:00] * Zauberfisch has joined #silverstripe
584: [15:53:00] * chillu has joined #silverstripe
585: [16:00:00] * Colin[pi] has joined #silverstripe
586: [16:03:00] * r3v3rb has joined #silverstripe
587: [16:19:00] <MrGuits> don know
588: [16:19:00] <MrGuits> the function does not "fire"
589: [16:19:00] <kinglozzer> Why can't you use it?
590: [16:19:00] <MrGuits> Anyone : I have a function that returns an ArrayData from a DB::query i can access the data but i cannot use it to pass on to another function
591: [16:20:00] <MrGuits> If I change the first function to return a DataObject::get i can pass on the data OK
592: [16:20:00] <kinglozzer> MrGuits: I think a DataObject::get() returns a DataList, not ArrayData, so maybe that's where the difference is
593: [16:21:00] <kinglozzer> Can't really give you any more help as I have no idea what you're trying to do
594: [16:21:00] * Colin[pi] quit (Ping timeout: 256 seconds)
595: [16:21:00] <MrGuits> http://www.sspaste.com/paste/show/511526171ff76
596: [16:23:00] <kinglozzer> So $cid in the template works?
597: [16:25:00] <MrGuits> yes
598: [16:25:00] <kinglozzer> but $testing($cid) doesn;t?
599: [16:25:00] <kinglozzer> What if you do var_dump($var);die; in your testing() function
600: [16:25:00] <MrGuits> correct
601: [16:26:00] <MrGuits> but if i change to $output = DataObject::get("ProductCategory")->Limit(20);
602: [16:26:00] <MrGuits> testing works
603: [16:26:00] <MrGuits> i dont think it fires
604: [16:27:00] <MrGuits> it should echo "tesing : null";
605: [16:27:00] <MrGuits> tried var_dump($var) ... no output
606: [16:27:00] <kinglozzer> How about if you do $Top.testing($cid) ?
607: [16:28:00] <MrGuits> nope
608: [16:29:00] <kinglozzer> Might not make any difference, worth a try
609: [16:29:00] <kinglozzer> Not just function testing().
610: [16:29:00] <kinglozzer> Also, is it a public function testing()
611: [16:29:00] <kinglozzer> Tried wrapping it in tags? <% testing($cid) %> ?
612: [16:31:00] <MrGuits> <% testing($cid) %> gives SSTemplateParseException
613: [16:32:00] <MrGuits> u meen <% control testing ..... ?
614: [16:32:00] <kinglozzer> I don't know, just trying a couple of different things.
615: [16:33:00] <MrGuits> ok Thanks..
616: [16:33:00] <kinglozzer> I'm out of ideas, maybe you need to wrap it in ViewableData() like the PHP snippet here http://doc.silverstripe.org/framework/en/topics/javascript#return-html-json-and-httpresponse-class-for-ajax-responses
617: [16:34:00] * kinglozzer quit (Remote host closed the connection)
618: [16:39:00] * salami2 quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
619: [16:45:00] <MrGuits> Anyone know howto create a DataList from a DB::query
620: [16:50:00] * dendeffe quit (Quit: dendeffe)
621: [16:54:00] * COngII quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
622: [16:58:00] * Zauberfisch quit (Ping timeout: 246 seconds)
623: [17:02:00] * catcher has joined #silverstripe
624: [17:03:00] <priithansen> How is that data type casting variable thing meant to be handled when extending data types? When I extend HTMLText it already has bunch of casting types declared and even If my extended class doesn't list them all I can still use them in template?
625: [17:04:00] * g4b0 quit (Read error: Connection reset by peer)
626: [17:06:00] * r3v3rb quit (Quit: r3v3rb)
627: [17:08:00] * Zauberfisch has joined #silverstripe
628: [17:22:00] <MrGuits> how do I create a DataList from a DB::query
629: [17:37:00] * Liquide has joined #silverstripe
630: [17:48:00] * webguest has joined #silverstripe
631: [17:48:00] <webguest> -------------------------------------------------------------------------------------------------------- [can some one tell me what the template shortcode is to control the events in a default WP?
632: [17:51:00] <dospuntocero> :3
633: [17:51:00] <dospuntocero> http://goo.gl/5sBdU SilverstripeCMS Lite its a totally uncluttered version of the CMS, enjoy Zen while work with SilverstripeCMS
634: [17:51:00] <webguest> *channel
635: [17:51:00] <webguest> nvm wrong group :p
636: [17:55:00] * webguest quit (Ping timeout: 245 seconds)
637: [18:00:00] * salami3 has joined #silverstripe
638: [18:05:00] <FrozenFire> sminnee, Ping when you're around
639: [18:24:00] * simon_w|air has joined #silverstripe
640: [18:25:00] <salami3> Hi, is there a possibility to give out content as it is, without escaping?
641: [18:26:00] * PigeonFriend quit ()
642: [18:46:00] <simon_w|air> $Field.RAW usually
643: [18:47:00] <FrozenFire> Do we have a way yet of reliably referring to a module's path?
644: [18:50:00] <FrozenFire> Perhaps a "Module" class should be defined which can act as a static repository of loaded modules, so that something like <% require moduleCSS(modulename, file) %> could be used in template
645: [18:50:00] <FrozenFire> Module::register("modulename", $options);
646: [18:51:00] <FrozenFire> E.g. Module::register("blog", [ "path": __DIR__ ]);
647: [18:51:00] <FrozenFire> Err, =>
648: [18:52:00] <FrozenFire> Too much Javascript for me
649: [18:53:00] <FrozenFire> Oddly, GenericTemplateGlobalProvider has something like a facility for that
650: [18:57:00] <salami3> simon_w, really? I think i found another solution
651: [18:58:00] <salami3> Now I can add every code to it
652: [18:58:00] <salami3> In the documentation is written, fieldtype htmltext will be put out unescaped, so I disabled tinymce for this field in the backend
653: [19:00:00] <salami3> iframes (embed code of many sites)
654: [19:00:00] <FrozenFire> salami3, The issue with iframes is not SS, but rather TinyMCe
655: [19:01:00] <FrozenFire> It's an issue where the closing tag of an iframe is stripped for some reason
656: [19:01:00] <salami3> FrozenFire, yes, because of that i disabled tinymce
657: [19:01:00] <salami3> but first I just added a textfield, and silverstripe escapes every HTML Code if the fieldtype isn't HTMLText
658: [19:01:00] <FrozenFire> Yes
659: [19:02:00] <FrozenFire> Text is intended to be "safe"
660: [19:02:00] <FrozenFire> HTMLText allows arbitrary HTML input/output
661: [19:02:00] <FrozenFire> The iframe issue can be solved using a simple regex replace in your field setter, by the by.
662: [19:02:00] <salami3> Yes, without tinymce it's perfect for embed codes
663: [19:03:00] <FrozenFire> If you're speaking of Youtube/Vimeo/Flickr/etc embedding
664: [19:03:00] <salami3> ok :)
665: [19:03:00] <FrozenFire> That being said, you might be interested in oEmbed
666: [19:03:00] <salami3> a module?
667: [19:03:00] <FrozenFire> It's bundled with SS3
668: [19:03:00] <FrozenFire> http://api.silverstripe.org/trunk/sapphire/Oembed.html
669: [19:04:00] <salami3> That looks very interesting, thanks
670: [19:04:00] <FrozenFire> simon_w can speak more specifically about it, but my understanding is that it provides a shortcode in the HTMLEditorField, and you can also process URLs manually if you need.
671: [19:04:00] <FrozenFire> E.g. using http://api.silverstripe.org/trunk/sapphire/Oembed.html#methodget_oembed_from_url in your getter
672: [19:05:00] * SightUnseen has joined #silverstripe
673: [19:05:00] <simon_w|air> Yup
674: [19:05:00] <salami3> looks very interesting, added it to my favourites maybe for a future project
675: [19:06:00] <FrozenFire> I also have the inverse written, which is an oEmbed provider
676: [19:06:00] <FrozenFire> Don't know if I've updated it for SS3
677: [19:07:00] <FrozenFire> Of course
678: [19:07:00] <salami3> are there any plans for SS 3.1 beta 2?
679: [19:07:00] * SightUnseen quit (Client Quit)
680: [19:08:00] * FrozenFire just noticed that the SS3 framework has 161,000+ LoC
681: [19:11:00] <priithansen> all this work in vain once all the knockout, blackbone, docpad's take over the web
682: [19:13:00] * SightUnseen has left #silverstripe
683: [19:13:00] * SightUnseen has joined #silverstripe
684: [19:14:00] <simon_w|air> Aww, pocketrent still has a way to go
685: [19:15:00] <simon_w|air> only on ~70k
686: [19:15:00] <simon_w|air> *90k
687: [19:16:00] <FrozenFire> Well, 4119 lines of PHP code
688: [19:16:00] <FrozenFire> I managed to trim my company's primary SS-related project module down to 4119 LoC
689: [19:16:00] <FrozenFire> Actually quite proud of it being that low
690: [19:16:00] <FrozenFire> Because it does so much :P
691: [19:16:00] <FrozenFire> A bit more in other stuff
692: [19:23:00] <simon_w|air> Well, we're on 70k PHP, 20k JS
693: [19:24:00] <simon_w|air> 5k for scss
694: [19:24:00] <simon_w|air> And then 10k for templates
695: [19:25:00] <FrozenFire> The project's code itself is 7067 lines of code
696: [19:25:00] <FrozenFire> :P I was actually talking about PHPExcel
697: [19:25:00] <simon_w|air> Yeah, I removed ZF before counting :p
698: [19:25:00] <FrozenFire> Heh. My current project *technically* has about 118,000+ lines of code, but it includes a fairly large third-party library
699: [19:26:00] <FrozenFire> Funny how that adds up over a couple weeks' time
700: [19:26:00] * FrozenFire decides to make his server shit itself calculating the total LoC of everything involved
701: [19:27:00] * Nivery has joined #silverstripe
702: [19:27:00] <simon_w|air> Thankfully, most of our work now includes a fair amount of code cleanup too
703: [19:27:00] <FrozenFire> 316,049
704: [19:27:00] <FrozenFire> I think I'm going to write an XCache module for SS to provide a caching panel...
705: [19:28:00] <FrozenFire> Can Zend_Cache use XCache as a backend?
706: [19:29:00] <FrozenFire> Or, perhaps more specifically, can SS_Cache's usual fare use XCache as a Zend_Cache backend?
707: [19:30:00] <FrozenFire> False
708: [19:30:00] <simon_w|air> Given that xcache only provides getter functions, I'm going with no
709: [19:30:00] <FrozenFire> http://framework.zend.com/manual/1.12/en/zend.cache.backends.html#zend.cache.backends.xcache
710: [19:31:00] <FrozenFire> I know with certainty that XCache supports storage
711: [19:31:00] <FrozenFire> Can't store resources, callbacks or objects
712: [19:31:00] <FrozenFire> Just not sure what all the framework tries to cache in there
713: [19:31:00] <FrozenFire> http://xcache.lighttpd.net/wiki/XcacheApi
714: [19:32:00] <FrozenFire> Not sure how it handles the cache buckets, though
715: [19:32:00] * SightUnseen has joined #silverstripe
716: [19:32:00] * SightUnseen has left #silverstripe
717: [19:34:00] <FrozenFire> Is it?
718: [19:34:00] <simon_w|air> Oh, now I see. xcache is two (at least) extensions
719: [19:35:00] <simon_w|air> going by php --re xcache/xcache cacher
720: [19:35:00] <simon_w|air> xcache is only the opcode stuff
721: [19:35:00] <simon_w|air> xcache cacher is the user land stuff
722: [19:35:00] <FrozenFire> That doesn't sound right
723: [19:35:00] <FrozenFire> Nah, I think that distinction is purely technical.
724: [19:35:00] <simon_w|air> It's one .so
725: [19:36:00] <simon_w|air> xcache 3 is just extension
726: [19:36:00] <FrozenFire> There's the zend_extension xcache which has to hook in at the low level to provide the caching
727: [19:36:00] <simon_w|air> And, no it doesn't
728: [19:39:00] <FrozenFire> Hrmm, might be a change in the zend engine that allows higher-level opcode caching
729: [19:41:00] * zfmf has left #silverstripe
730: [19:42:00] * guci0 quit (Ping timeout: 245 seconds)
731: [19:48:00] <FrozenFire> Anyone happen to have done ModelAdmin with non-DataList models?
732: [19:58:00] <FrozenFire> Hrmm, have to wonder how one might be able to push a call early into the application in SS
733: [19:58:00] <FrozenFire> Because presumably you would want to switch your cache backend earlier rather than later.
734: [19:59:00] <simon_w|air> Now that the manifest is cached, the only way to change it for everything is in your _ss_environment, manually including the files you'll need
735: [20:02:00] <simon_w|air> is like the second file included
736: [20:02:00] <simon_w|air> It's included by Core
737: [20:02:00] <FrozenFire> Hrmm, good to know
738: [20:02:00] <simon_w|air> We had a discussion around this the first time I tried changing the cache backend. You end up needing a config system to change the cache, and a cache to store the config system
739: [20:02:00] <FrozenFire> _ss_environment.php is included *early* in the process?
740: [20:02:00] <FrozenFire> Thought it was included by configureByEnv
741: [20:03:00] <simon_w|air> It's what lets you rename FRAMEWORK_DIR through a symlink
742: [20:03:00] <simon_w|air> That was fun to get working
743: [20:03:00] <FrozenFire> Yeah
744: [20:04:00] <FrozenFire> Heh
745: [20:05:00] <FrozenFire> Man, the xcache api has shitty docs
746: [20:08:00] <simon_w|air> That seems to just be xcache
747: [20:09:00] <FrozenFire> Well that's interesting
748: [20:09:00] <FrozenFire> http://silverstripe3.internal.mediadevils.com/XCacheTestController
749: [20:10:00] <FrozenFire> List of cached PHP files, in terms of opcode
750: [20:10:00] <salami3> What's an unsavedrelationlist? I get an error since i updatet to 3.1 beta
751: [20:11:00] <simon_w|air> You can add things to it, and that's about it
752: [20:11:00] <salami3> Hmm, why I get an error on adding an object?
753: [20:11:00] <simon_w|air> salami3, a relation on an object that hasn't been saved
754: [20:11:00] <FrozenFire> It's intended to be a sort of buffer between the time you create a DataObject and when you save it.
755: [20:11:00] <FrozenFire> For its relations
756: [20:12:00] <simon_w|air> What's the error?
757: [20:13:00] <simon_w|air> That's not the error
758: [20:13:00] <salami3> Error at line 326 of framework/model/UnsavedRelationList.php
759: [20:14:00] <salami3> this is the error that pops up in the right corner
760: [20:14:00] <salami3> but lookin on line 326 it should throw logicexception, but where?
761: [20:15:00] <simon_w|air> Look at the response from the server
762: [20:15:00] <simon_w|air> That'll have the call stack, though it's from calling limit()
763: [20:16:00] <FrozenFire> simon_w, What's that DataObject method for saying not to create a table for an object?
764: [20:17:00] <simon_w|air> https://github.com/silverstripe/sapphire/
765: [20:17:00] <simon_w|air> FrozenFire, has_own_table
766: [20:17:00] <FrozenFire> Ah
767: [20:17:00] <simon_w|air> Or that one
768: [20:17:00] <FrozenFire> public function requireTable(){ DB::dontRequireTable($this->class); }
769: [20:17:00] <salami3> anyway where do i find the framework folder on github?
770: [20:17:00] <simon_w|air> So, if there's an actual, reasonable use case for having limit(), open a ticket about it. Everything throws a LogicException so we didn't have to decide which ones makes sense to have on an unsaved list
771: [20:17:00] <FrozenFire> Scratch that. Found it in some other code of mine
772: [20:18:00] <salami3> simon_w|air, I don't see the model\UnsavedRelationList.php file in there
773: [20:18:00] <simon_w|air> I think has_own_table is statically called anyway
774: [20:18:00] <FrozenFire> Yeah
775: [20:19:00] <simon_w|air> That's because you're looking at the 3.0 tree
776: [20:19:00] <simon_w|air> https://github.com/silverstripe/sapphire/blob/3.1.0-beta1/model/UnsavedRelationList.php is the tagged one
777: [20:20:00] <salami3> simon_w, ah yes, you're right, sorry
778: [20:24:00] * chillu quit (Quit: chillu)
779: [20:25:00] * SightUnseen has joined #silverstripe
780: [20:25:00] * SightUnseen has left #silverstripe
781: [20:40:00] * webguest has joined #silverstripe
782: [20:41:00] <webguest> Any apple experts here? I just went from Windows 7 to Mac OS X Liion... how do i stream movies to my Sony Bravia? On windows i could right click, play to > Sony Bravia
783: [20:41:00] <webguest> on Apple this seems impossible
784: [20:42:00] * WilsonS has joined #silverstripe
785: [20:43:00] * ARNHOFF has joined #silverstripe
786: [20:43:00] * ARNHOFF is now known as ARNHOE
787: [20:44:00] <ARNHOE> Are there any good newbie explanations for composer?
788: [20:45:00] <WilsonS> HIya. Does anyone have an example of DataObject::Get on an object (i.e. BlogEntry) that also joins SiteTree. For example, searching blog entries for a string. Or does this require a custom query? Thanks
789: [20:51:00] * SightUnseen has joined #silverstripe
790: [20:52:00] <WilsonS> Ah. Thanks! Will give that a go.
791: [20:52:00] <FrozenFire> WilsonS, BlogEntry::get() should also join ancestor tables if you reference a field from them.
792: [20:52:00] <FrozenFire> BlogEntry is a descendent of SiteTree
793: [20:52:00] <FrozenFire> E.g. BlogEntry::get()->filter("Content:PartialMatch", $string);
794: [20:53:00] <FrozenFire> I'm of course assuming that you're using SS3 in that case.
795: [20:54:00] <WilsonS> Hmm. I'm on 2.4.9 in this case
796: [20:55:00] <FrozenFire> I'm not sure if DataObject::get() does automatically join tables, but it *should*
797: [20:55:00] <FrozenFire> Could always give it a go
798: [20:55:00] <priithansen> webguest: http://www.ps3mediaserver.org/ < was the dlna I ended up using with mac when I still had a tv. All the other ones seemed much more picky about which codecs and formats the files where in.
799: [20:56:00] <FrozenFire> If it doesn't, it's a fairly trivial process.
800: [21:00:00] <webguest> priithasen thx im now using iSedora
801: [21:00:00] <webguest> just yet
802: [21:01:00] <webguest> looks promissing
803: [21:03:00] * webguest quit (Quit: Page closed)
804: [21:03:00] <priithansen> good old times when a 15m s-video cable running from one room to another was considered bleeding edge
805: [21:06:00] <salami3> Updated saphhire from beta-1 to git now I get error on line 270 of unsavedrelationlist, very strange
806: [21:09:00] <salami3> and I get a white blank page on /dev/build?flush=all, strange i had this on silverstripe 3.0 but in 3.0.3 or .2 it got fixed
807: [21:13:00] <FrozenFire> Heh. ModelAdmin really isn't friendly to non-DataList models.
808: [21:15:00] * SightUnseen has left #silverstripe
809: [21:20:00] <salami3> yep this bug got back into git tree: http://open.silverstripe.org/ticket/7564
810: [21:26:00] * Nivery quit (Quit: Nivery)
811: [21:27:00] * ibeardslee has joined #silverstripe
812: [21:27:00] <simon_w|air> FrozenFire, I'm not surprised :p Though GridField itself should be fine, so long as you don't try adding
813: [21:29:00] <salami3> should I reopen bugs for git tree?
814: [21:30:00] <simon_w|air> FrozenFire, oh, yes. That could be fun.
815: [21:30:00] <FrozenFire> And that's where it chokes.
816: [21:30:00] <FrozenFire> simon_w, I was actually just trying to get an ArrayList of DataObject working. The DataObject don't have a table, though.
817: [21:30:00] <simon_w|air> salami3, does it still occur with the latest 3.1?
818: [21:31:00] <Zauberfisch> looks interesting
819: [21:31:00] <Zauberfisch> https://github.com/dospuntocero/silverstripecms-lite
820: [21:31:00] <FrozenFire> At which point it uses the table instead of the DataObject itself
821: [21:31:00] <FrozenFire> Yeah, display works up until it tries to view the actual record
822: [21:31:00] <salami3> simon_w, it worked in 3.1 beta 1 and also in 3.0.2, but now with the latest git (15 mins ago) I have exactly this error
823: [21:31:00] <simon_w|air> Though I would expect it to be able to display
824: [21:31:00] <FrozenFire> Which happens to be xcache's backend. :P
825: [21:31:00] <FrozenFire> Basically just wanted to manage an external "model"
826: [21:32:00] <FrozenFire> [User Error] Couldn't run query: SELECT DISTINCT ""."ID", CASE WHEN ""."ClassName" IS NOT NULL THEN ""."ClassName" ELSE '' END AS "RecordClassName" FROM "XCacheObject" WHERE ("XCacheObject"."ID" = 1) AND (""."ClassName" IN ('XCacheObject')) LIMIT 1 Table 'dr_framework.XCacheObject' doesn't exist
827: [21:32:00] <simon_w|air> FrozenFire, that sounds rather like a bug. It should be asking for the object from the ArrayList
828: [21:33:00] <FrozenFire> It does grab the DO
829: [21:33:00] <FrozenFire> And then calls certain things on it which eat shit
830: [21:33:00] <FrozenFire> It might just be not fleshing out the "no table" thing in the DataObject
831: [21:33:00] <FrozenFire> Actually
832: [21:34:00] <simon_w|air> Well, I have dishes and more packing to do before people show up in 20 minutes to help me move
833: [21:34:00] <simon_w|air> Have fun :p
834: [21:36:00] * SightUnseen has joined #silverstripe
835: [21:37:00] * SightUnseen has left #silverstripe
836: [21:39:00] <FrozenFire> Uggh... Constant Contact's PHP SDK defines generic classes like Image and Folder...
837: [21:39:00] <FrozenFire> Thanks, Obama
838: [21:44:00] <salami3> I hope I get the UnsavedRelationList bug solved tomorrow, will go to bed now
839: [21:46:00] <salami3> good night everybody
840: [21:47:00] * WilsonS quit (Quit: Page closed)
841: [21:49:00] * Colin[pi] has joined #silverstripe
842: [21:49:00] <salami3> UndefinedOffset, Have you tested sortablegridfield with the latest SS 3.1 git?
843: [21:50:00] <FrozenFire> I've used it recently
844: [21:51:00] <salami3> Hmm, when I deactivate ->addComponent(new GridFieldSortableRows('column')); I don't get the unsavedrelationlist error
845: [21:52:00] * instabil quit (Read error: Connection reset by peer)
846: [21:53:00] <FrozenFire> An Int?
847: [21:53:00] <FrozenFire> What is column?
848: [21:53:00] * l8s has joined #silverstripe
849: [21:54:00] <salami3> Yes
850: [21:54:00] <salami3> But i get the error only on the new action
851: [21:54:00] <salami3> I can view the gridfield just fine
852: [21:55:00] <salami3> But when I add i get the error in the unsavedRelationList.php file, on line 270 alterDataQuery
853: [21:57:00] <FrozenFire> GridFieldSortableRows might be trying to write on the object
854: [21:58:00] <FrozenFire> And if the object isn't yet saved, it might then be trying to save an UnsavedRelationList
855: [21:59:00] <salami3> yeah probably, any Idea how to solve this, it worked fine in ss 3.0 (there I got other errors that's why I updated to 3.1)
856: [22:00:00] <FrozenFire> SS3.1 introduced UnsavedRelationList, sfaik
857: [22:01:00] <FrozenFire> And I don't actually have any idea how to fix it. That'd be something to ask UndefinedOffset indeed.
858: [22:01:00] <FrozenFire> Beta framework + third-party GridField module is a recipe for bugs.
859: [22:02:00] <salami3> Yes you're right
860: [22:02:00] <salami3> ok, time for bed, thanks for your help today
861: [22:05:00] * salami3 quit (Quit: Leaving)
862: [22:11:00] * UndefinedOffset quit (Quit: Leaving.)
863: [22:11:00] <UndefinedOffset> FrozenFire... wish he submitted a bug report XD oh well :P
864: [22:12:00] <l8s> does anyone know how to force a reload in cms after submitting a form in silverstripe 3?
865: [22:14:00] <FrozenFire> F5?
866: [22:14:00] <FrozenFire> :P
867: [22:17:00] <l8s> FrozenFire: and how can i tell ss to press F5 for me? :)
868: [22:19:00] <l8s> or does anybody know how to disable ajax for a cms EditForm?
869: [22:21:00] <l8s> or how to reload a custom javascript added with Requirements::customScript() after form submit?
870: [22:23:00] <catcher> How can I give a specific security group access to edit files without giving them access to the "files" section of the CMS?
871: [22:27:00] <priithansen> l8s: somebody just today suggested me to use entwine onmatch: to make javascript work that previously using documend.ready only worked after full refresh
872: [22:28:00] * Zauberfisch quit (Ping timeout: 246 seconds)
873: [22:29:00] <priithansen> jQuery('textarea.markdown').entwine({ onmatch: function() { this.markItUp(mySettings); } }); < this fires every time the cmd inserts the txtarea using ajax
874: [22:31:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
875: [22:34:00] * simon_w|air quit (Quit: This computer has gone to sleep)
876: [22:36:00] * SightUnseen has left #silverstripe
877: [22:36:00] <l8s> priithansen: but the problem is that submitting the form should also change the custom script, but submitting only changes parts of the site because its using ajax
878: [22:36:00] * SightUnseen has joined #silverstripe
879: [22:39:00] * howardgrigg has joined #silverstripe
880: [22:40:00] <priithansen> I have used if Director::is_ajax() then render subset from the full template in place of the old data. But then again I skipped one night of sleep and have had a bottle on wine so I don't know what I'm talking about :)
881: [22:43:00] * Zauberfisch has joined #silverstripe
882: [22:50:00] * nickmolhoek quit (Read error: Connection reset by peer)
883: [22:50:00] * nickmolhoek has joined #silverstripe
884: [22:50:00] * nickmolhoek has joined #silverstripe
885: [22:55:00] * spronk has left #silverstripe
886: [23:25:00] * ezero has joined #silverstripe
887: [23:31:00] * catcher quit (Quit: Leaving)
888: [23:36:00] * Emil_Blume has joined #silverstripe
889: [23:49:00] * Guest88352 quit (Ping timeout: 240 seconds)
890: [23:50:00] * howardgrigg quit (Remote host closed the connection)

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