#silverstripe IRC Log

IRC log for 27 January 2013

All timestamps are in UTC.

1: [00:06:00] * jerga has left #silverstripe
2: [00:12:00] * jerga has left #silverstripe
3: [00:12:00] * jerga has joined #silverstripe
4: [00:14:00] * DesignerX has joined #silverstripe
5: [00:18:00] * MichaelDesignerX quit (Ping timeout: 276 seconds)
6: [00:27:00] <simon_w|air> howardgrigg, it's in 3.1
7: [00:27:00] <howardgrigg> cool :) I'll have to look into it - did you get as far as getting it working with uploadfield?
8: [00:29:00] <simon_w|air> nope
9: [00:43:00] <DesignerX> hi guys, anyone know if this available as a module ? https://groups.google.com/d/msg/silverstripe-dev/ivoEt2fLXYY/3vsfT7GqeKcJ
10: [00:45:00] <priithansen> google elite and tony air gives this http://www.silverstripe.org/content-editor-discussions/show/21255
11: [00:46:00] <priithansen> elRTE*
12: [00:47:00] <priithansen> no idea :)
13: [00:47:00] <DesignerX> great ! :D
14: [00:47:00] <DesignerX> for ss3 ?
15: [00:47:00] * ARNHOE quit (Read error: Connection reset by peer)
16: [00:51:00] <priithansen> last elRTE version seems to be from the middle of 2011 so not sure how future proof that thing is
17: [00:53:00] <simon_w|air> Also, how well it ties in with the media and link inserting
18: [00:54:00] <priithansen> well laughter is the best medicine
19: [00:54:00] <simon_w|air> That Tony guy amuses me
20: [00:57:00] * howardgrigg quit (Remote host closed the connection)
21: [00:58:00] <priithansen> :)
22: [00:58:00] <simon_w|air> One of his pull requests: "never liked SS3 spinner here's the other one"
23: [00:59:00] * Liquide has joined #silverstripe
24: [01:04:00] <DesignerX> so I just wasted 400KB downloading an oudated editor :(
25: [01:12:00] <priithansen> the DOM module for 2.4 had a great compact wyiwyg field but maybe it was just a neutered tinymce.
26: [01:12:00] <simon_w|air> It was
27: [01:12:00] * howardgrigg has joined #silverstripe
28: [01:56:00] <priithansen> well it's 4am and i'm all out of wine, now what
29: [01:59:00] * priithansen quit (Quit: priithansen)
30: [02:27:00] * UD quit (Remote host closed the connection)
31: [02:30:00] * aaron1245 has joined #silverstripe
32: [02:31:00] * Emil_Blume quit (Quit: Leaving.)
33: [02:38:00] * howardgrigg quit (Remote host closed the connection)
34: [03:41:00] <DesignerX> Hi guys, what do you recomend for responsive design, to break the page on diffrent screen size . is there something out there ready to I have to build my own CSS ?
35: [04:06:00] * pex__ has joined #silverstripe
36: [04:09:00] * pex__ has left #silverstripe
37: [04:23:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
38: [04:39:00] * cloph_away1 has joined #silverstripe
39: [04:40:00] * cloph_away quit (Ping timeout: 245 seconds)
40: [05:07:00] <Zauberfisch> start with a base for mobile
41: [05:07:00] <Zauberfisch> DesignerX I like to do it mobile first
42: [05:08:00] <Zauberfisch> and then I add extra files like so:
43: [05:08:00] <Zauberfisch> 320_up.css // file for screen width 320px or more
44: [05:08:00] <Zauberfisch> 480_up.css // file for screen width 480px or more
45: [05:08:00] <Zauberfisch> and so on
46: [05:08:00] <Zauberfisch> so I make the mobile first, and then add extra styles for bigger screens
47: [05:09:00] <DesignerX> this CSS *
48: [05:09:00] <DesignerX> so you need a good layout plan so this SS files just fit in
49: [05:09:00] <DesignerX> nice
50: [05:09:00] <Zauberfisch> I can show you a website in query where I have done that if you want
51: [05:10:00] <Zauberfisch> I did not use a framework
52: [05:10:00] <DesignerX> sure , love to see some example CSS .. I am confused btween building my own CSS or using a framework !
53: [05:11:00] <Zauberfisch> it depends on the scall of the project
54: [05:11:00] <Zauberfisch> this project I showed you in query is just a small 1 page thing, I don't need a framework for that
55: [05:12:00] <Zauberfisch> same here^^
56: [05:12:00] <DesignerX> I am sstarting I can build my own CSS for anything up to an e-commerce website .
57: [05:12:00] <Zauberfisch> now that I think about it, you probably won't get much from the site, because the css files are combined
58: [05:12:00] <DesignerX> tried 2 framework & I awlays endup using the minimal + alot of my own CSS
59: [05:14:00] <Zauberfisch> base.scss
60: [05:14:00] <Zauberfisch> DesignerX so I have:
61: [05:14:00] <Zauberfisch> there goes all the css for the page that is mobile and used on every screen width
62: [05:14:00] <Zauberfisch> then there is the file:
63: [05:15:00] <DesignerX> ?
64: [05:15:00] <Zauberfisch> responsive.scss http://paste2.org/p/2799458
65: [05:15:00] <Zauberfisch> this file just includes the other files
66: [05:15:00] <Zauberfisch> in the folder responsive/ i have the files: _320-up.scss, _480-up.scss and so on
67: [05:15:00] <DesignerX> shouldnt be @media screen >
68: [05:16:00] <Zauberfisch> well, there is screen and print
69: [05:16:00] <DesignerX> unless u plan to pritn thi should be fine,
70: [05:16:00] <DesignerX> ah kk
71: [05:16:00] <Zauberfisch> but I didn't care about print at this project
72: [05:17:00] <Zauberfisch> note that the _320-up and so on files are not included in html directly, only indirect via the responsive.scss file
73: [05:17:00] <Zauberfisch> and then there is another file:
74: [05:17:00] <DesignerX> I see, included based on screen size
75: [05:17:00] <Zauberfisch> legacy.scss
76: [05:18:00] <Zauberfisch> http://paste2.org/p/2799459
77: [05:18:00] <Zauberfisch> so, if the <body> has the class ".no-mediaqueries" all css files are included, so if the browser does not support media queries, we assume that it is a desktop
78: [05:18:00] <Zauberfisch> this file is included everywhere as well, it contains fixes for browsers that don't support features
79: [05:19:00] <Zauberfisch> and display the page as fill width page
80: [05:19:00] <Zauberfisch> modernizr is a javascript lib that checks browsers for feature support
81: [05:19:00] <Zauberfisch> (note: you need to use modernizr.js to add .no-mediaqueries to the body tag)
82: [05:20:00] <Zauberfisch> actually, not the body, its the html tag
83: [05:30:00] <DesignerX> join/ #raphael.js
84: [05:30:00] <DesignerX> #raphael.js
85: [05:31:00] <DesignerX> lolz.. forgot how to join using this IRC client
86: [06:07:00] * aaron1245 quit (Quit: aaron1245)
87: [06:32:00] * SightUnseen has joined #silverstripe
88: [06:32:00] * SightUnseen has left #silverstripe
89: [06:34:00] * EPIK quit (Ping timeout: 257 seconds)
90: [06:37:00] * ss23 quit (Quit: leaving)
91: [06:37:00] * ss23 has joined #silverstripe
92: [07:01:00] * lurker quit (Ping timeout: 244 seconds)
93: [08:36:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
94: [08:42:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
95: [08:43:00] * Error404NotFound has joined #silverstripe
96: [08:53:00] <Zauberfisch> haha, https://d24w6bsrhbeh9d.cloudfront.net/photo/6424372_700b.jpg
97: [10:07:00] * priithansen has joined #silverstripe
98: [10:28:00] <discorpia> haha
99: [10:29:00] <discorpia> the mallard meme is supposed to be helpful though ;p
100: [10:33:00] <ss23> whats this about me-me's?
101: [10:33:00] <lewellyn> Zauberfisch: i like that there is very noticeable compression on that 9GAG banner, too.
102: [10:56:00] * gelignite has joined #silverstripe
103: [11:31:00] * guci0 has joined #silverstripe
104: [11:31:00] <guci0> Hi all!
105: [11:33:00] <guci0> Simon, is somewhere tutorial for ss3 where is example site with users and roles? This is smt so me limited, I have few good project nocommers, and I want run this ??? fast, module etc? Can u help me a little?
106: [11:36:00] <guci0> P.S. The time difference is terrible
107: [12:48:00] <priithansen> so the text collector thing still doesn't collect from templates?
108: [13:28:00] * Guits quit (Read error: Connection reset by peer)
109: [13:29:00] * Guits has joined #silverstripe
110: [13:30:00] * Guits quit (Read error: Connection reset by peer)
111: [13:32:00] * dhbiker quit (Read error: Connection reset by peer)
112: [13:32:00] * Guits has joined #silverstripe
113: [13:47:00] * MrGuits has joined #silverstripe
114: [13:47:00] * Guits quit (Read error: Connection reset by peer)
115: [15:09:00] * guci0_ has joined #silverstripe
116: [15:11:00] * guci0 quit (Ping timeout: 245 seconds)
117: [15:19:00] * matt___ has joined #silverstripe
118: [15:19:00] <matt___> hello
119: [15:20:00] <matt___> I have started to setup a site in ss3 the same way as in ss2 but none of my variables in the template are being populated from the content in the cms/database
120: [15:20:00] <matt___> Is this a known issue?
121: [15:23:00] <ss23> Probably just a difference in how they work rather than a bug
122: [15:24:00] <ss23> I doubt many people are up at the moment to help though unfortunatly, matt___. If you want to try again in say 5 hours, I think you might get a better reseponse
123: [15:27:00] <matt___> Im jsut surprised $Title and $Content dont work
124: [15:27:00] <matt___> ok
125: [15:28:00] <matt___> I know there must be something wrong somewhere
126: [15:35:00] * EPIK has joined #silverstripe
127: [15:52:00] * Shrike_Finland quit (Quit: Leaving.)
128: [16:30:00] * quatza has joined #silverstripe
129: [16:31:00] <quatza> is it possible to disable the translatable module for a pageclass?
130: [16:31:00] <quatza> hello
131: [16:37:00] * MrGuits quit (Read error: Connection reset by peer)
132: [16:37:00] * matt___ quit (Ping timeout: 245 seconds)
133: [16:38:00] * MrGuits has joined #silverstripe
134: [16:43:00] * lurker has joined #silverstripe
135: [16:44:00] * lurker quit (Client Quit)
136: [16:51:00] * pex__ has joined #silverstripe
137: [17:25:00] * jerga has joined #silverstripe
138: [17:26:00] * Shrike_Finland has joined #silverstripe
139: [17:28:00] <quatza> is it possible to disable the translatable module for a pageclass?
140: [17:33:00] <jerga> Have you tried 'Object:;remove_extension' for that class?
141: [17:34:00] <jerga> (I'm not sure)
142: [17:39:00] * pex__ has left #silverstripe
143: [17:58:00] * Shrike_Finland quit (Quit: Leaving.)
144: [18:28:00] * jerga has left #silverstripe
145: [18:57:00] * Zauberfisch quit (Read error: Connection reset by peer)
146: [18:57:00] * Zauberfisch has joined #silverstripe
147: [18:58:00] <quatza> without text
148: [18:58:00] <quatza> what is the best way to include them in page sitetrees?
149: [18:58:00] <quatza> hm shame, I have a a page with just images
150: [18:58:00] * EPIK quit (Ping timeout: 244 seconds)
151: [18:58:00] <simon_w|air> quatza, no
152: [19:11:00] * EPIK has joined #silverstripe
153: [19:13:00] * simon_w|air quit (Quit: This computer has gone to sleep)
154: [19:27:00] * Shrike_Finland has joined #silverstripe
155: [19:33:00] * Pyromanik has joined #silverstripe
156: [19:35:00] * nickmolhoek has joined #silverstripe
157: [19:35:00] * nickmolhoek has joined #silverstripe
158: [19:35:00] * nickmolhoek quit (Remote host closed the connection)
159: [19:41:00] <Pyromanik> guys I have a sneaky </ in my CMS, how fix?
160: [19:41:00] <Pyromanik> I fear I have reverse engineered too much.
161: [19:41:00] <Pyromanik> it is the bork'n all the things
162: [19:48:00] * Shrike_Finland quit (Quit: Leaving.)
163: [19:52:00] <Pyromanik> MIND BLOWN
164: [19:52:00] <Pyromanik> not really
165: [19:52:00] <Pyromanik> morelike
166: [19:52:00] <Pyromanik> oh wow
167: [19:52:00] <Pyromanik> wow
168: [19:53:00] <Pyromanik> contents: <?php
169: [19:53:00] <Pyromanik> http://memedepot.com/uploads/1000/1148_1253230725640.jpg
170: [19:53:00] <Pyromanik> NOT ENOUGH
171: [19:53:00] <Pyromanik> must be: <?php\n in the very least. OR CMS BREAKY BREAK.
172: [19:53:00] <Pyromanik> _config.php
173: [19:57:00] <simon_w> Pyromanik, yup. Which is, apparently, not a bug!
174: [19:57:00] * cloph_away1 quit (Ping timeout: 246 seconds)
175: [19:57:00] * simon__w is now known as simon_w
176: [19:58:00] <Pyromanik> not a bug according to php.net or ss.com ?
177: [19:58:00] <Pyromanik> I'm confused by this statement
178: [19:59:00] <simon_w> https://bugs.php.net/bug.php?id=63794
179: [19:59:00] <Pyromanik> oic
180: [20:00:00] <Pyromanik> only not at all.
181: [20:00:00] <Pyromanik> because it expects <a class="<?php echo isMenuCurrent(); ?>"> ... etc
182: [20:00:00] <Pyromanik> that... kinda makes sense.
183: [20:01:00] * cloph_away has joined #silverstripe
184: [20:01:00] <Pyromanik> maybe not a bug, but still a poor 'feature'
185: [20:01:00] <Pyromanik> thanks simon_w, I learnt something.
186: [20:02:00] <simon_w> I submitted a pull request for comments, since it had that and was breaking out CMS
187: [20:02:00] <simon_w> *our
188: [20:09:00] * aaron1245 has joined #silverstripe
189: [20:15:00] <Pyromanik> so
190: [20:15:00] <Pyromanik> doesn't act like "dear ssviewer please find my template" eh?
191: [20:15:00] <Pyromanik> themedCSS
192: [20:16:00] <Pyromanik> only scans theme, and that's it?
193: [20:16:00] <Pyromanik> ie, scan project, scan theme, scan module folder
194: [20:17:00] <simon_w> no, scans everywhere
195: [20:23:00] * r3v3rb has joined #silverstripe
196: [20:25:00] * r3v3rb has left #silverstripe
197: [20:29:00] <Pyromanik> hmm
198: [20:30:00] <Pyromanik> ?
199: [20:30:00] <Pyromanik> coz it ain't pick'n up
200: [20:30:00] <simon_w> flush!
201: [20:30:00] <Pyromanik> all/
202: [20:31:00] <simon_w> got the case right?
203: [20:31:00] <simon_w> using themedCSS('blah'), not blah.css?
204: [20:31:00] <simon_w> Don't have something in the theme with the same name?
205: [20:31:00] <Pyromanik> because I've flushed 1 so many times now
206: [20:32:00] <Pyromanik> <% require themedCSS(jquery.fancybox-1.3.2) %>
207: [20:32:00] <Pyromanik> .css
208: [20:32:00] <Pyromanik> same deal for gallery.css
209: [20:32:00] <Pyromanik> css is not
210: [20:32:00] <Pyromanik> js is included
211: [20:32:00] <Pyromanik> gallery/css/gallery.css
212: [20:32:00] <Pyromanik> css sits in gallery/css/jquery.fancybox-1.3.2
213: [20:32:00] <Pyromanik> <% require javascript(gallery/javascript/jquery.fancybox-1.3.2.pack.js) %>
214: [20:33:00] <Pyromanik> <% require themedCSS(gallery) %> -> no go
215: [20:34:00] <Pyromanik> than hard code the path'
216: [20:34:00] <Pyromanik> I'd rather use themed so that it can be easily overridden in the same manner as templates
217: [20:38:00] <Pyromanik> https://github.com/silverstripe/sapphire/blob/3.0/view/Requirements.php#L1091
218: [20:39:00] <Pyromanik> mmm, only does theme folder
219: [20:42:00] <simon_w> Well, that's annoying
220: [20:42:00] <Pyromanik> that last one
221: [20:42:00] <Pyromanik> else if ($module) {
222: [20:42:00] <Pyromanik> $this->css($module.$css);
223: [20:42:00] <Pyromanik> mm, actually
224: [20:43:00] <Pyromanik> should put out "gallery/css/gallery.css"
225: [20:43:00] <simon_w> Well, you're not passing in a module name
226: [20:43:00] <Pyromanik> like the others do
227: [20:43:00] <Pyromanik> I wonder if it fails because it doesn't include a path from BASE_PATH
228: [20:43:00] <simon_w> That method is horrible, just saying
229: [20:44:00] <simon_w> Pyromanik, as in that entire themedCSS() method
230: [20:44:00] <Pyromanik> simon_w: horrible method as in line 1091, or method as in the way I'm trying to do this?
231: [20:44:00] <Pyromanik> gotcha
232: [20:44:00] <simon_w> What if your css files aren't in a css folder?
233: [20:44:00] <Pyromanik> yeah well
234: [20:44:00] <Pyromanik> that's the way themes are structured
235: [20:44:00] <Pyromanik> kinda like saying "what if your layouts aren't in a Layout folder" ?
236: [20:45:00] <Pyromanik> was not aware
237: [20:45:00] <simon_w> No, cause that's a sub-template
238: [20:45:00] <Pyromanik> well then
239: [20:45:00] <simon_w> They didn't have to be in a templates folder
240: [20:45:00] <Pyromanik> what if your templates aren't in a templates folder?
241: [20:45:00] <Pyromanik> o
242: [20:45:00] <Pyromanik> ic
243: [20:46:00] <Pyromanik> hmm, so the only way around this is to include module name in require statement.
244: [20:46:00] <Pyromanik> check
245: [20:47:00] <Pyromanik> (no not really)
246: [20:47:00] * simon_w is rather disappointed with ajshort
247: [20:47:00] <simon_w> yup
248: [20:47:00] * Pyromanik hacks the core instead
249: [20:49:00] <Pyromanik> well
250: [20:49:00] * Pyromanik sadfaces
251: [20:49:00] <Pyromanik> it sorta kinda does work
252: [20:49:00] <Pyromanik> just
253: [20:49:00] <Pyromanik> yeah
254: [20:49:00] <Pyromanik> did we ever get a themedJS method?
255: [20:49:00] <simon_w> Nope
256: [20:49:00] <Pyromanik> mm
257: [20:50:00] <Pyromanik> people probably aren't always gonna want fancybox
258: [20:50:00] <simon_w> People that know what they're doing can block it
259: [20:50:00] <Pyromanik> but in this case
260: [20:50:00] <Pyromanik> making a gallery module
261: [20:50:00] <simon_w> JS is something you usually don't want overridden
262: [20:50:00] <Pyromanik> oh that's right, I worked around it by putting the JS in an include template
263: [20:50:00] <Pyromanik> s'all good
264: [20:50:00] <Pyromanik> yeah
265: [20:51:00] <Pyromanik> so instead of having to block about 60 files (actually 2) I just put them in include, overwrite include by using theme folder, dump in own lightbox, problem solved.
266: [20:52:00] <Pyromanik> saves hard coding paths into templates, apart form the bit where I can't look up module folder name from template side
267: [20:52:00] <Pyromanik> hence question about themed js
268: [20:53:00] <Pyromanik> maybe instead of themedjs a better thing would be ModuleJS
269: [20:53:00] <Pyromanik> meh
270: [20:53:00] <Pyromanik> include based off whatever the module is... actually that's pretty horrible.
271: [21:00:00] * SightUnseen has joined #silverstripe
272: [21:01:00] * SightUnseen has left #silverstripe
273: [21:09:00] * jerga has joined #silverstripe
274: [21:17:00] <Pyromanik> what are the down sides to extending image (ie. decorator not subclass) with a many_many?
275: [21:17:00] <Pyromanik> if any?
276: [21:17:00] <Pyromanik> well, belongs_many_many?
277: [21:18:00] <simon_w> Why do you need to?
278: [21:18:00] <simon_w> (and none)
279: [21:19:00] <Pyromanik> thinking about Gallery many_many Image
280: [21:19:00] <Pyromanik> in 2.4
281: [21:19:00] <Pyromanik> as opposed to the way it was done with DOM
282: [21:20:00] <Pyromanik> that way can what gallerys does this image belong to
283: [21:20:00] <Pyromanik> if I did
284: [21:20:00] <Pyromanik> Was just thinking
285: [21:20:00] <Pyromanik> yeah I know
286: [21:20:00] <simon_w> Yeah, but you don't need a belongs
287: [21:20:00] <Pyromanik> galleries*
288: [21:20:00] <Pyromanik> or something like that
289: [21:21:00] <Pyromanik> one of the complaints of our content loaders is that uploading a bunch of images is a pain in the arse when doing one at a time (because gridfield)
290: [21:21:00] <simon_w> yeah
291: [21:22:00] <Pyromanik> hmm
292: [21:22:00] <Pyromanik> UploadField supports manymany right?
293: [21:22:00] <simon_w> yup
294: [21:30:00] * priithansen quit (Quit: priithansen)
295: [21:36:00] * priithansen has joined #silverstripe
296: [21:41:00] * jerga quit (Quit: Leaving.)
297: [21:58:00] <simon_w> What conversation? :p
298: [21:58:00] <EPIK> i dont mean to derail the conversation here, but do any of you have any suggestions for VPS hosts in the US? I've been looking at Linode or Media Temple.. just curious if anyone has any other experiences to share.
299: [21:59:00] <simon_w> I use rimu and just got my first US VPS setup with them. Nice and easy and full root.
300: [22:03:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
301: [22:06:00] <EPIK> im just a bit perplexed by the small ram offerings that most have.
302: [22:06:00] <Pyromanik> urgh uploadfield 400
303: [22:06:00] <EPIK> perhaps i need a better handle on just how much i expect to be using
304: [22:07:00] <Pyromanik> EPIK: rimuhosting lets you set the ram level iirc
305: [22:08:00] <EPIK> yeah i saw that on there. that would be handy
306: [22:08:00] <Pyromanik> http://rimuhosting.com/order/v2orderstart.jsp#variable_plan
307: [22:09:00] <Pyromanik> simon_w: what does it mean when you have DataExtension with many_many File, uploadfield(Files, add Files) => using it with buttons does nothing, using it with drag and drop gives 400, using it for existing files gives work propers.
308: [22:09:00] <Pyromanik> but
309: [22:10:00] <Pyromanik> what did I do wrong to get 400?
310: [22:10:00] <Pyromanik> mostly
311: [22:10:00] <Pyromanik> there's no stack trace :(
312: [22:10:00] <Pyromanik> can't select multiple with shift or anything
313: [22:18:00] <Pyromanik> oh, and I applied dataextension to page
314: [22:25:00] <Pyromanik> oh wow
315: [22:25:00] <Pyromanik> that's messed up
316: [22:25:00] <Pyromanik> just had to save page
317: [22:25:00] <Pyromanik> still exists
318: [22:25:00] <Pyromanik> http://www.silverstripe.org/general-questions/show/21061#post317235
319: [22:29:00] * jona has joined #silverstripe
320: [22:30:00] <jona> hey, is it possible to make sure change the TreeDropdownField.js so the form works the same as http://www.jstree.com/documentation/checkbox?
321: [22:30:00] <jona> spent lots time on it, still not sure which part of code i could change
322: [22:30:00] <jona> anyone help please?
323: [22:31:00] <Pyromanik> huh?
324: [22:32:00] <Pyromanik> sounds like you're using TreeDropdownField when you want TreeMultiselectField
325: [22:32:00] <Pyromanik> http://api.silverstripe.org/3.0/forms/fields-relational/TreeMultiselectField.html ?
326: [22:33:00] <Pyromanik> jona: ^'
327: [22:37:00] <jona> am actually create a new class,
328: [22:37:00] <Pyromanik> unless you're fixing bugs for a pull request :)
329: [22:37:00] <jona> you are right
330: [22:37:00] <Pyromanik> hacking core files is always the wrong thing to do ;)
331: [22:37:00] <jona> yes yes~~~!!!
332: [22:38:00] <Pyromanik> just use tree multiselect field?
333: [22:38:00] <jona> trying to apply a new .js file to achieve the checkbox goal
334: [22:38:00] <jona> similar to TreeMultiselectField
335: [22:39:00] <Pyromanik> I think TreeMultiSelect does that
336: [22:39:00] <jona> its not auto selected
337: [22:39:00] <jona> *selected
338: [22:39:00] <jona> when select child node, the parent node should be seleted
339: [22:39:00] <jona> the requirement is...
340: [22:39:00] <Pyromanik> o
341: [22:39:00] <jona> its not the same
342: [22:39:00] <Pyromanik> subclass it might be easier?
343: [22:40:00] <Pyromanik> mm
344: [22:40:00] <Pyromanik> but I have a feeling it is, just doesn't show
345: [22:40:00] <Pyromanik> but
346: [22:40:00] <Pyromanik> that might just be to do with membership details
347: [22:40:00] <Pyromanik> unsure speficially
348: [22:41:00] <jona> i think its just about the jstree js code
349: [22:41:00] <jona> the TreeDropdownField.js is using jstree for checkbox too
350: [22:42:00] <jona> but dont know how to change that back
351: [22:42:00] <jona> i feel like silverstripe change the default code so that the checkbox doesnt work as the same as on the http://www.jstree.com/documentation/checkbox
352: [22:44:00] <Pyromanik> jstree will be sitting in framework/thirdparty/ somewhere
353: [22:44:00] <Pyromanik> why don't you just do a diff on the sources?
354: [22:45:00] <Pyromanik> beyond that it's all configuration options at runtime. I doubt the source has been altered, but it could be old.
355: [22:46:00] <jona> thanks, do you think the function onChangeParents(&$items) { on http://api.silverstripe.org/3.0/forms/fields-relational/TreeMultiselectField.html should work?
356: [22:47:00] * tankr has joined #silverstripe
357: [22:47:00] <Pyromanik> and I'm not familiar with jsTree at all, sorry
358: [22:47:00] <Pyromanik> that sounds like a javascript method
359: [22:48:00] <jona> thats ok~~
360: [22:48:00] <Pyromanik> it may not all be true _anymore_
361: [22:48:00] <jona> hmmm
362: [22:48:00] <jona> well
363: [22:48:00] <Pyromanik> don't believe everything you read ;P
364: [22:48:00] <jona> ok
365: [22:48:00] <Pyromanik> just proceed with caution, that's all.
366: [22:48:00] <Pyromanik> it talks about componentsets
367: [22:48:00] <jona> what?
368: [22:48:00] <Pyromanik> that docblock is old
369: [22:48:00] <jona> try it now
370: [22:48:00] <Pyromanik> oh
371: [22:50:00] <jona> it doesnt seems right
372: [22:51:00] <Pyromanik> yeah, not really
373: [22:52:00] <Pyromanik> if all you want is for the parents of a particular selected item to also be enforced to be selected, then you could just bind it up with entwine pretty easy I think
374: [22:52:00] <jona> how to do that?
375: [22:53:00] <jona> in the treemultiselectfield.php?
376: [23:02:00] <jona> Pyromanik, shall i change .js or .php please?
377: [23:05:00] <Pyromanik> depends on what it is that you're trying to do really
378: [23:05:00] <Pyromanik> jona: don't edit core files
379: [23:05:00] <Pyromanik> make your own that override or change the settings if possible
380: [23:05:00] <Pyromanik> the CMS is built with entwine.js
381: [23:05:00] <Pyromanik> so you'll need to know how that works
382: [23:05:00] <Pyromanik> maybe
383: [23:06:00] <jona> yes am applying to new .js
384: [23:06:00] <jona> am not editing the core files
385: [23:06:00] <Pyromanik> cool cool
386: [23:06:00] <Pyromanik> so there's the requirements system
387: [23:06:00] <Pyromanik> Requirements::javascript
388: [23:07:00] <Pyromanik> and perhaps Requirements::block are two methods you'll be wanting to use most likely
389: [23:07:00] <jona> i can see Requirements::javascript(FRAMEWORK_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');
390: [23:07:00] <jona> kk
391: [23:07:00] <jona> am blocking it now
392: [23:08:00] <Pyromanik> yeah no
393: [23:08:00] <Pyromanik> don't block entwine
394: [23:08:00] <Pyromanik> the whole CMS will stop.
395: [23:08:00] <simon_w> You probably don't want to block entwine
396: [23:08:00] <Pyromanik> oh
397: [23:09:00] <jona> shall i TreeDropdownField.js?
398: [23:11:00] <Pyromanik> that sounds a bit more like it
399: [23:12:00] <jona> Requirements::block(FRAMEWORK_DIR . '/javascript/TreeDropdownField.js');?
400: [23:12:00] <jona> still work the same as before
401: [23:30:00] * EPIK quit ()
402: [23:34:00] * howardgrigg has joined #silverstripe

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