#silverstripe IRC Log

IRC log for 13 June 2013

All timestamps are in UTC.

1: [00:01:34] <nikrolls> Right
2: [00:03:32] <nikrolls> So something like a rated & ranked pastebin could be helpful
3: [00:07:03] <Pyromanik> is tankr in here?
4: [00:07:51] <Pyromanik> nope :<
5: [00:07:57] <spronk> brb
6: [00:07:58] * spronk has left #silverstripe
7: [00:08:45] * spronk has joined #silverstripe
8: [00:11:37] <Peavers> and I'm back.... I've got a dirty static only works with two vars function frame, but no idea how to move it forward to loop through all values in the table http://www.sspaste.com/paste/show/51b90de31ca77
9: [00:14:19] <spronk> oh god
10: [00:14:21] <spronk> why is :not filter case sensitive
11: [00:14:23] <spronk> ffs
12: [00:14:47] <spronk> wait.. waht
13: [00:15:15] <spronk> class NotFilter not found
14: [00:15:50] * priithansen quit (Quit: priithansen)
15: [00:16:29] <spronk> OMFG
16: [00:16:38] <spronk> filter('ID:Negation' => x
17: [00:16:43] <spronk> seriously.
18: [00:16:46] <spronk> docs are way wrong
19: [00:24:34] * travis-ci has joined #silverstripe
20: [00:24:34] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#282 (3.1 - 0b16cba : Sean Harvey): The build passed.
21: [00:24:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/878600701f80...0b16cbaee822
22: [00:24:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8035984
23: [00:24:34] * travis-ci has left #silverstripe
24: [00:24:45] <spronk> hmm
25: [00:26:40] <spronk> grr
26: [00:26:42] <nikrolls> spronk: yeah come across that a couple of times. IDE helps when I forget, I just search for the class
27: [00:26:45] <spronk> why would a has_one => ProductPage
28: [00:26:54] <spronk> look like it's working with dropdown fields in the cms
29: [00:27:06] <spronk> but then always just returns an empty product in the template
30: [00:27:22] <nikrolls> ProductPage/ProductPageID?
31: [00:27:34] <spronk> the has_one is ProductPage
32: [00:27:45] <spronk> the dropdown is for ProductPageID
33: [00:28:40] <spronk> the id is in the database
34: [00:29:19] <spronk> ugh
35: [00:29:23] <spronk> working now
36: [00:29:26] <spronk> dno what the problemw as :S
37: [00:30:42] * UncleCheese has joined #silverstripe
38: [00:31:10] * travis-ci has joined #silverstripe
39: [00:31:10] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#283 (3.1 - 0650dbe : Sean Harvey): The build passed.
40: [00:31:10] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0b16cbaee822...0650dbe1e796
41: [00:31:10] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8036001
42: [00:31:10] * travis-ci has left #silverstripe
43: [00:37:54] <nikrolls> spronk: :D
44: [00:38:20] <spronk> this seems to happen to me a lot with silverstripe
45: [00:38:36] <spronk> stuff doesn't work, then magically does
46: [00:38:40] <irogue> it hates you
47: [00:38:50] <spronk> pretty sure it doesn
48: [00:38:52] <spronk> does*
49: [00:38:55] <nikrolls> Well yeah, it's pretty magical
50: [00:39:21] <spronk> tbh i'm getting pretty disillusioned with ss3
51: [00:39:41] * gumble quit (Ping timeout: 252 seconds)
52: [00:39:54] <nikrolls> Something like the quantum physics law pertaining to asking for help -- it's always in an undefined state until someone else observers it
53: [00:40:01] * gumble has joined #silverstripe
54: [00:40:01] <nikrolls> *observes
55: [00:43:06] <spronk> 3.1 should be out of beta by now... esp considering some modules are very buggy on 3.0 (subsites, looking at you here)
56: [00:43:22] <nikrolls> What issues have you had with subsites?
57: [00:43:40] <nikrolls> Apart from storing the subsite id in session, which I had to patch
58: [00:43:59] <spronk> i can't get subsites virtual pages to work *at all*
59: [00:44:05] <spronk> the dropdown javascript seems to be broken
60: [00:44:13] * EasyCo has joined #silverstripe
61: [00:44:13] <spronk> so can't select a page
62: [00:44:40] <spronk> also, the subsite drop down selector didn't work ootb
63: [00:44:40] <nikrolls> Ah, haven't used that yet. We have an upcoming site that will need subsite virtuals, but we're building on 3.1 due to the imminent launch
64: [00:46:32] * Bollig|DesignCty has joined #silverstripe
65: [00:46:36] <EasyCo> Hey guys, if I have a a DataObject with it's own CMSfields. And I have a Page that has a has_one relationship with that DataObject. How do I add that DataObject in it's own tab for that cms Page?
66: [00:47:04] <EasyCo> When it's has_many relationships, I just use grid field. But that's not good for a has_one relationship
67: [00:47:33] <spronk> i use gridfield or a dropdown
68: [00:47:51] <spronk> AFAIK there isn't really anything in between those two
69: [00:48:26] <irogue> subsites has always been a bit crap
70: [00:48:35] <spronk> mm
71: [00:48:50] <EasyCo> It'd be cool if there was a quick way to just 'plugin' a DataObject in a has_one tab.
72: [00:48:52] <spronk> its such a massively important module for big sites though :/
73: [00:49:01] * spronk agrees, EasyCo
74: [00:50:22] <nikrolls> Well I may have to contribute to subsites then
75: [00:50:34] <nikrolls> It's quite critical for some of our current and future work
76: [00:50:50] <spronk> i'd almost be tempted to start fresh
77: [00:50:51] <spronk> :P
78: [00:50:55] <nikrolls> Or that
79: [00:51:06] <nikrolls> It looks fairly lightweight so far, considering
80: [00:51:12] <spronk> someone appears to have tried with Multisites
81: [00:51:25] * stellalie quit (Ping timeout: 252 seconds)
82: [00:51:33] <spronk> subsites also causes problems wtih the 'classic' ss way of doing things i.e. ::get() and modeladmin and stuff
83: [00:52:00] <nikrolls> Well, it should be modifying the queries to mitigate that, right? Like Versioned does
84: [00:52:10] <spronk> well
85: [00:52:14] <spronk> versioned causes problems as well
86: [00:52:43] * UncleCheese quit (Quit: UncleCheese)
87: [00:52:43] <nikrolls> ...
88: [00:52:47] <nikrolls> Stop bursting my SS bubble
89: [00:52:54] <spronk> afaik there's no easy way to version dataobjects associated with your pages
90: [00:52:56] <spronk> i.e.
91: [00:52:58] <spronk> version them with your pages
92: [00:53:09] <nikrolls> Ah, I figured that one out
93: [00:53:11] <spronk> its a massive issue
94: [00:53:15] <spronk> you did?
95: [00:53:18] <nikrolls> Content Row/Content Block system
96: [00:53:27] <nikrolls> Well, not intrinsically linked with the Page version
97: [00:53:42] <nikrolls> But you can hack away at them in draft, and when the page is published they all get published
98: [00:53:48] <nikrolls> Works very smoothly
99: [00:53:54] <spronk> o_O
100: [00:54:01] <spronk> what about history and rollback>?
101: [00:54:29] <nikrolls> Like I say, stop with the difficult questions :)
102: [00:54:30] <spronk> also, module plz :P
103: [00:54:57] <nikrolls> Yeah I will have to figure that bit out. But it works really well to keep the items in draft until the page is published
104: [00:55:03] <spronk> mm
105: [00:55:08] <spronk> that's at least a starting point
106: [00:55:55] <nikrolls> For the other, you would need a way of linking the version IDs to a version of the page. And creating a new version of the page for each sub-object version
107: [00:56:06] <nikrolls> So that the page can handle the rollback
108: [00:56:06] <spronk> well
109: [00:56:13] <spronk> each version needs to have its own set of relations
110: [00:56:41] <spronk> on subsites - if i were to build asubsites module i'd probably consider a centralised content sync type model
111: [00:57:06] <spronk> i.e. have a primary database of content, and define sync/merge rules
112: [00:57:36] <nikrolls> That would be good for many similar sites, eg country variants
113: [00:57:40] <spronk> subsites currently only has virtualpage, which isn't very good for trees of content
114: [00:57:42] <spronk> or copying
115: [00:57:47] <spronk> which defeats the purpose of having subsites in the first place
116: [00:58:02] <nikrolls> Some sites want 100% unique sitetrees, eg for microsites
117: [00:58:06] <spronk> yeah
118: [00:59:19] <spronk> my personal opinion for microsites is they'd be better off with a separate cms install, and SSO
119: [00:59:57] <nikrolls> Often they are -- sometimes it's nice to share data though, for interaction between them
120: [00:59:59] <spronk> well, SSO and a few other nicities, like perhaps asset sharing and crosslinking
121: [01:00:43] <spronk> i dno. i encounter the variant site model way more frequently than the completely sub-site model
122: [01:00:52] <spronk> so probably have a lot of bias :p
123: [01:01:05] <nikrolls> Like if you need to share lists of stores between them, or awesome UGC on the microsite filtering through to the main site
124: [01:01:35] <nikrolls> We work with a lot of campaign-based stuff, so microsite and main site interaction is handy
125: [01:01:37] * UncleCheese has joined #silverstripe
126: [01:01:49] <spronk> i c i c
127: [01:01:56] <nikrolls> :)
128: [01:03:23] * DigNZ quit (Quit: DigNZ)
129: [01:04:59] * nickmolhoek has joined #silverstripe
130: [01:05:00] * nickmolhoek quit (Remote host closed the connection)
131: [01:05:14] * nickmolhoek has joined #silverstripe
132: [01:05:31] * mobiusnz has joined #silverstripe
133: [01:09:20] * UncleCheese quit (Quit: UncleCheese)
134: [01:19:30] <Pyromanik> spronk: the biggest issue with subsites is that people try to use it for an application other than which it was intended (and does reasonably well).
135: [01:19:51] <Pyromanik> but yeh, versioned is a bit crap.
136: [01:20:02] <Pyromanik> as is translatable
137: [01:22:16] * UncleCheese has joined #silverstripe
138: [01:24:07] * stellalie has joined #silverstripe
139: [01:25:50] * UncleCheese quit (Client Quit)
140: [01:30:08] * mobiusnz quit (Quit: Leaving.)
141: [01:37:04] * zippy__ has joined #silverstripe
142: [01:38:49] * gumble quit (Ping timeout: 264 seconds)
143: [01:39:33] <spronk> Pyromanik: well, it claims to support the whole content sharing model with VirtualPage
144: [01:39:57] <spronk> + lack of docs is a biggie
145: [01:42:16] * stellalie quit (Ping timeout: 256 seconds)
146: [01:43:02] * nickmolhoek quit (Quit: nickmolhoek)
147: [01:50:44] * DigNZ has joined #silverstripe
148: [01:53:16] * stellalie has joined #silverstripe
149: [01:58:27] * UncleCheese has joined #silverstripe
150: [02:02:45] * atmos has joined #silverstripe
151: [02:02:51] <Pyromanik> spronk: it doesn't?
152: [02:03:59] <atmos> can anyone lend a hand for blank error dialog boxes?
153: [02:05:24] <atmos> friggen things are annoying
154: [02:06:25] <zippy__> blank error dialog boxes? are you in dev mode? display errors off?
155: [02:06:58] <atmos> like when you leave a page in the CMS without saving etc - it should say 'Are you sure you want to leave page' etc
156: [02:07:03] <atmos> these are all blank for me
157: [02:07:31] <spronk> ugh
158: [02:07:37] <spronk> subsites-master still doesn't work for me
159: [02:09:47] <spronk> var subsiteSel = $$('#CopyContentFromID_SubsiteID select')[0];
160: [02:09:51] <spronk> undefined variable $$
161: [02:11:22] <spronk> that is a bug, right?
162: [02:11:29] * trent001 has joined #silverstripe
163: [02:12:16] * SKent has joined #silverstripe
164: [02:12:18] * cloph_away quit (Ping timeout: 256 seconds)
165: [02:12:33] * Jayden909090 has joined #silverstripe
166: [02:13:11] <Jayden909090> Anyone know if GridField from the SiteConfig should be posible? Getting errors
167: [02:13:32] * cloph_away has joined #silverstripe
168: [02:14:28] <SKent> Hey guys, I'm having a few issues with accessing one subdomains cookie from another in php. When the expire is set to 0, SS or php seems to ignore it? I can access it via javascript, but this is not ideal
169: [02:15:36] * stellalie quit ()
170: [02:15:44] <SKent> I can set/get cookies via the static Cookie class fine however
171: [02:16:10] <spronk> ugh
172: [02:16:11] <spronk> fuck you subsites
173: [02:16:30] <spronk> Page type "Page" is not allwoed under this , when trying to create a subsites virtualpage under a subsites virtualpage pointing to a ProductsPage
174: [02:16:30] <spronk> :@
175: [02:18:46] * mobiusnz has joined #silverstripe
176: [02:18:47] <atmos> anyone for the blank dialog boxes?
177: [02:25:30] <spronk> atmos: where are the dialog boxes?
178: [02:26:11] <atmos> <spronk> they are those that pop up when you make a change in page content, and then click another link (like another page in the tree)
179: [02:26:18] <spronk> oh
180: [02:26:18] <spronk> hmm
181: [02:26:25] <spronk> does the source show blank as well?
182: [02:26:32] <spronk> i.e. its not just a css thing?
183: [02:26:44] <atmos> lemme check
184: [02:27:21] <atmos> It's like it's a browser thing
185: [02:27:34] <atmos> i.e. I can't view sourc eon it
186: [02:27:38] <spronk> hmm
187: [02:27:39] <atmos> source on*
188: [02:27:46] <spronk> does it happen in all browsers?
189: [02:27:53] <atmos> FF and IE so far
190: [02:28:00] <atmos> Chrome too
191: [02:28:19] <atmos> https://github.com/tdf/silverstripe-cms/commit/f5d1831b0cc08509cf4e394f1580eb2b20c8a89d I thought maybe this was it
192: [02:28:33] <atmos> apparently not - I've set all users to US eng
193: [02:30:19] <atmos> just checked again on a 2.4 site of ours and it works fine
194: [02:30:52] <spronk> hmm
195: [02:31:21] <atmos> could there be anything in _config that could determine this?
196: [02:32:27] <mattybalaam> In a template is there a simple way to crop to a wide landscape ratio, but without upsampling the image when the original has a smaller width?
197: [02:33:01] <mattybalaam> If not, I have made some template logic to check the size of the original, and would then to do something like $Image.CroppedImage($Image.Width, $Divide.Image.Width(3)) Is there something like a math/divide built in already?
198: [02:33:39] <spronk> paddedimage?
199: [02:33:48] <spronk> maybe?
200: [02:36:10] * unsignedint quit (Remote host closed the connection)
201: [02:36:42] <spronk> ugh
202: [02:36:46] <spronk> there's a stupid bug in subsites
203: [02:37:01] <spronk> well not even subsites
204: [02:37:13] <spronk> you can't create a new virtual page within an existing virtual page that limits page types
205: [02:37:16] <atmos> <spronk> I believe it might have something to with there only being 1 lang in /mysite/javascript/lang... should there be more?
206: [02:37:20] <mattybalaam> Padded image keeps the whole image without a crop and then adds blank space.
207: [02:37:29] * SKent quit (Ping timeout: 250 seconds)
208: [02:38:33] <spronk> virtualpage gets its page type by its copyContentFrom... and if it doesn't have one it's a SiteTree, which isn't in the allowed_children list of the original virtual page..
209: [02:38:33] <spronk> ffs
210: [02:38:40] <spronk> atmos: unsure, hang on
211: [02:38:53] <spronk> i have a bunch
212: [02:39:02] <spronk> do you have the language file for the lang your browser is set to?
213: [02:39:04] <spronk> i.e. en_US
214: [02:39:56] <spronk> Pyromanik: you ever used virtualpage and allowed_children restrictions?
215: [02:40:18] <atmos> <spronk> how can I check that
216: [02:40:34] <spronk> atmos: what language is your browser set to?
217: [02:40:36] <atmos> the only one I have in the path I said above is en_GB.js
218: [02:40:47] <spronk> yeah
219: [02:40:54] <spronk> chances are yur browse is US
220: [02:41:04] <spronk> you'llprobably want more lang files :p
221: [02:41:23] * guzz_afk is now known as guzzlefry
222: [02:41:27] <atmos> <spronk> heh, probably :P
223: [02:41:49] <atmos> where can I grab those from? They're specific to parts of the CMS that requires certain .js files
224: [02:41:57] <spronk> download the cms
225: [02:42:02] <atmos> i.e. mysite - not just framework
226: [02:42:10] <spronk> hmm?
227: [02:43:28] <atmos> each lang file has different js depending on where they are located in folders. The ones I need are unpacked when /mysite is created
228: [02:43:52] <atmos> so I'm not sure where to get those from without installing a second site and pulling it out
229: [02:44:01] <atmos> sorry if that's unclear :P
230: [02:44:10] * SightUnseen has joined #silverstripe
231: [02:44:12] * SightUnseen has left #silverstripe
232: [02:44:42] <spronk> do that
233: [02:44:45] <spronk> grab a new copy of the cms
234: [02:44:47] <spronk> and pull it
235: [02:44:56] <Peavers> $a++ doesn't work in php? =S
236: [02:45:02] <atmos> can I not just grab it from git?
237: [02:45:11] <spronk> $a++ works in php..?
238: [02:45:15] <spronk> atmos: sure
239: [02:45:59] <atmos> <spronk> sweet - found it
240: [02:49:13] <atmos> <spronk> great, thanks. All fixed - god knows why there was only one lang pack :P
241: [02:49:27] <spronk> yeah :P
242: [02:49:31] <spronk> seems odd!
243: [02:51:42] <Peavers> $time = AgendaItem::get() returns an object yeah? $data[] = $time loads it into the array $data?
244: [02:53:46] * mobiusnz quit (Quit: Leaving.)
245: [02:54:13] * Hippieee has joined #silverstripe
246: [02:58:39] <Pyromanik> hacking core <3
247: [03:04:03] <zippy__> O.o
248: [03:04:10] <zippy__> Pyromanik: MaxClients all g?
249: [03:04:50] * guzzlefry has left #silverstripe
250: [03:06:18] * Colin[pi] quit (Ping timeout: 252 seconds)
251: [03:06:23] * cloph_away quit (Ping timeout: 246 seconds)
252: [03:11:08] * cloph_away has joined #silverstripe
253: [03:14:50] * mobiusnz has joined #silverstripe
254: [03:21:49] <Pyromanik> zippy__: well... so far.
255: [03:22:05] <Pyromanik> it it doesn't crash in the next month I'll be a happy chappy :)
256: [03:24:20] * mattybalaam quit (Quit: mattybalaam)
257: [03:25:05] <nikrolls> Hmm, it'd be really nice if SiteTree didn't eat the getCMSFields form scaffolding
258: [03:27:16] <Pyromanik> because...?
259: [03:27:36] <nikrolls> Because if I add a field to page I have to also manually specify it in getCMSFields
260: [03:27:42] <Pyromanik> meh
261: [03:27:44] <nikrolls> Rather than it automatically showing
262: [03:27:53] <nikrolls> Very time consuming when you have a lot of them
263: [03:28:00] <Pyromanik> have less of them
264: [03:28:03] <Pyromanik> :P
265: [03:28:07] <nikrolls> :L
266: [03:28:10] <nikrolls> :P
267: [03:28:24] <Pyromanik> too many interactive elements: doing it wrong.
268: [03:29:06] <nikrolls> Well I have one that is a fairly massive registration flow
269: [03:29:17] <nikrolls> Lots of outcomes, actions and templates
270: [03:29:27] <nikrolls> So need fields for each so they can update the copy
271: [03:29:38] <Pyromanik> shift it back to UI designer.
272: [03:29:41] <nikrolls> That's an example of where it can get quite tedious setting them all up
273: [03:29:43] <Pyromanik> obv. did their job wrong
274: [03:29:53] <nikrolls> In a perfect world, yes
275: [03:29:57] <Pyromanik> moar research!
276: [03:30:00] <nikrolls> Or even a nice world
277: [03:30:08] <nikrolls> But it's external in this case
278: [03:30:28] <spronk> or there was a nice quick method to regurgitate the eaten fields
279: [03:30:41] <nikrolls> spronk: Yeah, even that
280: [03:30:53] <nikrolls> They could even go in a 'misc' field
281: [03:30:58] <nikrolls> *tab
282: [03:31:10] <spronk> mm
283: [03:31:15] <nikrolls> Still gives me the option to reorganise the fields I want to rather than ::creating them all the time
284: [03:31:24] <spronk> or
285: [03:31:30] <spronk> if it allowed the dot syntax in field names
286: [03:31:34] <spronk> and auto created tabs based on that
287: [03:31:41] <nikrolls> Mm, interesting
288: [03:32:05] <spronk> thing i'm working on now has heaps of structured fields
289: [03:32:08] <spronk> is such a pain
290: [03:32:28] <nikrolls> I hear ya
291: [03:32:40] <spronk> i would use modeladmin
292: [03:32:40] <spronk> but
293: [03:32:49] <spronk> need hierarchy
294: [03:33:11] <zippy__> Is there a way, to clone a dataoject
295: [03:33:21] <Pyromanik> spronk: you mean like $this->scaffoldFields() ?
296: [03:33:37] <Pyromanik> zippy__: you mean like clone($object) ?
297: [03:33:57] <Pyromanik> spronk: custom leftandmain! xD
298: [03:34:06] <zippy__> not the php function, I need a ss function, so it creates the new object with a new id
299: [03:34:09] <zippy__> so a copy of it
300: [03:34:21] <zippy__> otherwise it's $x = new Foo();
301: [03:34:22] <Pyromanik> clone, change id, write.
302: [03:34:28] <Pyromanik> or rather delete id
303: [03:34:40] <zippy__> mmm
304: [03:34:43] <zippy__> lets see
305: [03:34:59] <Pyromanik> $this->ID = 0; should hopefully work
306: [03:35:01] <nikrolls> spronk / Pyromanik; scaffoldFormFields?
307: [03:35:16] <Pyromanik> if simon_w was here he'd probably tell you a built in function for it zippy__
308: [03:35:23] <Pyromanik> but that way seems like it should work to me.
309: [03:35:26] <Pyromanik> nikrolls: yes.
310: [03:35:30] <nikrolls> Hmm
311: [03:35:39] <Pyromanik> but the whole reason SiteTree builds fields is for structure.
312: [03:35:49] <Pyromanik> scaffold has no structure(tabs, etc)
313: [03:35:55] * atmos quit (Quit: Page closed)
314: [03:36:25] <nikrolls> Only issue is that then I lose the nice tabular layout from SiteTree. I'd like all the nice work in SiteTree#getCMSFields, but for it to do $fields = parent::getCMSFields first
315: [03:36:32] <nikrolls> Yeah
316: [03:36:46] <nikrolls> Instead it's $fields = new FieldList
317: [03:36:48] <zippy__> ok, let us prey..
318: [03:37:02] <Pyromanik> nikrolls: I don't think I follow
319: [03:38:10] <nikrolls> Well SiteTree#getCMSFields could still create its fancy tab structure, but use parent::getCMSFields as a base. This means it has the default scaffolding included
320: [03:38:43] <Pyromanik> hack core.
321: [03:38:48] <spronk> lol
322: [03:38:52] <nikrolls> Right now it starts with a fresh FieldList, which clears out the defaults
323: [03:38:55] <nikrolls> Ok, sure
324: [03:38:57] <spronk> i still like my dot syntax in field names idea
325: [03:39:04] <spronk> auto tabz brau
326: [03:39:05] <Pyromanik> SS does that.
327: [03:39:10] <Pyromanik> well, sorta.
328: [03:39:15] <zippy__> Pyromanik: praise the lord it worked, chers
329: [03:39:25] <Pyromanik> spronk: the issue with auto tabs is that sometiems the dot refers to relations.
330: [03:39:30] <Pyromanik> mebbe pipes instead
331: [03:39:35] <spronk> well yeah
332: [03:39:43] <spronk> some delimiting charactert
333: [03:39:43] <spronk> slash
334: [03:39:46] <nikrolls> >
335: [03:39:50] <irogue> ~
336: [03:39:52] <nikrolls> Or slash
337: [03:39:57] <spronk> HAXTERISK
338: [03:40:36] <Pyromanik> ALL OF THE BAD IDEAS
339: [03:40:42] <Pyromanik> clearly pipe is the best.
340: [03:40:50] <Pyromanik> it even looks like a tab edge.
341: [03:40:53] <spronk> clearly you smoke one
342: [03:40:58] <spronk> QUITE RLY!@
343: [03:41:35] <Pyromanik> but yeh, > could work as I guess after each delimiter is a new child set
344: [03:41:39] <nikrolls> Love how you can get a feel for how long dev/build is taking worldwide by how much time is being wasted in this channel ...
345: [03:41:59] * spronk laughs
346: [03:42:11] <spronk> > makes more sense as the relation delimiter
347: [03:42:19] <spronk> considering php uses -> and not .
348: [03:42:26] * unsignedint has joined #silverstripe
349: [03:42:57] <Pyromanik> spronk: yes, but php is doing it wrong.
350: [03:43:03] <spronk> i dno
351: [03:43:07] <spronk> -> makes more sense to me than .
352: [03:43:11] <Pyromanik> x:D
353: [03:43:25] <Pyromanik> why, because they're all pointers?
354: [03:43:28] <Pyromanik> :P
355: [03:43:35] <spronk> something like htat
356: [03:43:36] <spronk> :p
357: [03:46:01] <EasyCo> spronk: Can you even use gridfield with a has_one?
358: [03:46:10] <spronk> think so?
359: [03:46:13] <spronk> i dno
360: [03:46:14] <Pyromanik> too many keystrokes :P
361: [03:46:14] <unsignedint> EasyCo: youc ant
362: [03:46:19] <unsignedint> I wish you could
363: [03:46:21] <EasyCo> That's what I though
364: [03:46:24] <Pyromanik> sif
365: [03:46:35] <unsignedint> There is no decent solution for editing $has_one objects
366: [03:46:37] <Pyromanik> has_one and trying to use fields on object: doing it wrong.
367: [03:46:41] <EasyCo> How the hell are you suppose to CRUD has_one relationships?
368: [03:46:43] <Pyromanik> $db
369: [03:46:49] <Pyromanik> EasyCo: you're doing it wrong
370: [03:46:58] <Pyromanik> that's what $db is for.
371: [03:47:13] <unsignedint> Pyromanik: no, YOU're doing it wrong. The $has_one object may be used in other classes too
372: [03:47:25] <Pyromanik> no, it's has ONE.
373: [03:47:28] <unsignedint> they $has_one their own instance though obviously
374: [03:47:42] <Pyromanik> exactly
375: [03:47:47] <Pyromanik> all have their own stuffs
376: [03:47:53] <Pyromanik> $db
377: [03:47:58] <EasyCo> Pyromanik: that's not very dry
378: [03:48:11] <Pyromanik> so dry it's cracking.
379: [03:48:20] * mobiusnz quit (Quit: Leaving.)
380: [03:48:31] <unsignedint> EasyCo: I agree, its more like CRY (constantly repeating yourself)
381: [03:48:49] * joelpittet quit (Remote host closed the connection)
382: [03:49:00] <EasyCo> Encapsulating objects and concerns isn't very "wrong" IMO
383: [03:49:23] <unsignedint> for example, I had a MyImage object that had a Caption and an Image, and I wanted two different objects to be able to use it and only write its getCMSFields() etc once
384: [03:49:27] <Pyromanik> depends on why you're doing it
385: [03:49:38] <EasyCo> ^ unsignedint
386: [03:49:42] <Pyromanik> lots of freshies try to do it because of poor design.
387: [03:49:43] <EasyCo> What he sid
388: [03:49:49] <EasyCo> *said
389: [03:50:29] <EasyCo> For example I have this Media DataObject which is has a title, alt, image and video field
390: [03:50:38] <Pyromanik> oh yeah, I can see the use case, I've come across it myself. I'm just being devils advocate.
391: [03:50:45] <Pyromanik> check to be sure of your design first
392: [03:50:46] <EasyCo> Many of my page types have ONE of them.
393: [03:50:51] <unsignedint> !!! damn you Pyromanik haha
394: [03:51:07] <Pyromanik> often after stepping back and looking at the whole picture I've found that I ddin't actually need the intermediary object I was trying to has_one to
395: [03:51:15] <unsignedint> EasyCo: yeah I know what you mean, ive resorted to using $has_many for them and only adding 1 via GridField
396: [03:51:15] <Pyromanik> and $db was actually a far better solution.
397: [03:51:51] <Pyromanik> what I'm trying to say by "doing it wrong" is "step back and take a look, explain to me (actually yourself) why this is necessary; because perhaps it's not."
398: [03:51:58] <Pyromanik> ie, rubber duck it.
399: [03:52:00] <EasyCo> unsignedint: You can still add more then one though can't you? I guess you can only tie the first or latest entry from your tempalte.
400: [03:52:37] <unsignedint> EasyCo: yep thats right, luckily I have full control so I just dont do that. and I write accessor methods to get the first one in the list so its almost like im referencing it as a has_one
401: [03:52:56] <EasyCo> Pyromanik: Fair enough, but in my case it's definitely not wrong as that data object is reused throughout the site. All good though,
402: [03:53:11] <EasyCo> unsignedint: Yep, sounds like that'll be my approach as well.
403: [03:53:36] <unsignedint> EasyCo: apparently what we want used to be possible in SS 2.4 via a popup that edited the fields of the has_one relation
404: [03:53:42] <unsignedint> but not anymore
405: [03:54:14] <EasyCo> Somedays I love SS and other days I feel like it's got a long way to go. Working with sub sites and translatable is killed my soul.
406: [03:54:28] <unsignedint> ^ im lucky I havn't had to do that
407: [03:54:29] <Pyromanik> yeah nah you still had a CTF (2.4 equiv of gridfield)
408: [03:54:43] <unsignedint> but I know what you mean, some of it is excellent, and some of it is terrible compared to what else is available
409: [03:54:48] <Pyromanik> but ctf handled the 'more more add if XYZ' case better
410: [03:55:02] <EasyCo> No turning back now. Atleast not for this project :)
411: [03:55:13] <unsignedint> Press on, soldier
412: [03:55:26] <EasyCo> Dig in and hold the line.
413: [03:55:30] <unsignedint> haha
414: [03:55:30] <Pyromanik> mostly because it was so tightly coupled to the object you were using it on
415: [03:55:44] <Pyromanik> gridfield less coupled, pros and cons.
416: [03:55:54] <EasyCo> I like pros
417: [03:56:03] <unsignedint> yeah me too, GridField has some very nice features
418: [03:56:44] <unsignedint> but it would still be nice if there was a solution for editing arbitrary $has_one dataobjects. all it'd need to do is getCMSFields() them into a popup, and have a save button
419: [03:56:45] <EasyCo> Alright, well thanks for the input. Back to it.
420: [04:00:42] <Pyromanik> unsignedint: not THAT easy.
421: [04:00:45] <Pyromanik> but yeh
422: [04:01:39] <unsignedint> yeah obviously there would be other things to consider, but it would be a nice thing to have
423: [04:01:56] <unsignedint> I dont know much about the SS internals or i'd give it a crack
424: [04:02:42] <EasyCo> ^ same.
425: [04:04:21] <irogue> best way to fix that, hang out at an SS Wgtn hackfest for a day
426: [04:04:39] <Pyromanik> irogue: I planned that as a module too about 4 months ago
427: [04:04:44] <irogue> learn by osmosis
428: [04:04:52] <Pyromanik> never quite got onto it though
429: [04:05:01] <Pyromanik> irogue: hehe, yeh. how2composer?
430: [04:05:06] <irogue> exactly, lol
431: [04:05:28] <EasyCo> Composer… ugh.
432: [04:05:30] <ss23> It could be worse. You might not know how to click
433: [04:05:53] <EasyCo> irogue: When's the next one?
434: [04:06:26] <Pyromanik> EasyCo: if going by the last one was anything, probably next year :<
435: [04:07:05] * UncleCheese quit (Quit: UncleCheese)
436: [04:07:32] <elgrodo> I asked this yesterday but NZ was asleep. Is there a decent has_one grid field thingymebob for the case when you f**kloads of potential options to choose from
437: [04:07:44] <elgrodo> a dropdown of 10,000 items (and growing) doesn't agree with many browsers...
438: [04:08:06] <unsignedint> elgrodo: there isnt. youd have to implement some sort of ajax autocomplete textfield
439: [04:08:18] <EasyCo> elgrodo: I'm pretty sure there's a fuzzy finder module somewhere
440: [04:08:25] * zippy__ quit (Quit: zippy__)
441: [04:08:32] <unsignedint> elgrodo: theres also treedropdownfield if your options are hierarchical
442: [04:09:11] <elgrodo> unsignedint: LInear unfortunately
443: [04:09:15] <elgrodo> fuzzy finder... googles
444: [04:09:25] <irogue> Pyromanik: nah, we just have to organise it and tell sminnee when it's happening :P
445: [04:09:32] <irogue> worked last time ;)
446: [04:09:44] <EasyCo> What kind of attendence is there?
447: [04:10:48] <EasyCo> And does it stink? :) Last hackfest thingny I went to was a terrible show of personal hygiene?
448: [04:11:21] <EasyCo> Woah, I don't know how that last question mark made its way in there.
449: [04:11:26] <unsignedint> irogue: did you get much dev done or did newbies ask too many annoying questions? I think that if I showed up to one my ignorance of the SS internals might annoy you guys if I ask too many questions
450: [04:11:44] <elgrodo> EasyCo: This might help with the hygiene issue http://www.shopinprivate.com/fresh-balls.html
451: [04:11:49] <elgrodo> (SFW)
452: [04:12:00] <unsignedint> hahahaha
453: [04:12:03] <unsignedint> the shit you can buy
454: [04:12:55] <unsignedint> also the customer reviews haha
455: [04:12:56] <EasyCo> elgrodo: lol. I don't think I'll walk around th joint powdering ppl.
456: [04:14:04] <Pyromanik> elgrodo: gridfield with add existing option will do it
457: [04:14:14] <Pyromanik> but good luck trying to stop someone from adding more than one :<
458: [04:15:20] <unsignedint> maybe you could override canCreate() and make it return false if the objects parent has more than one of itself
459: [04:15:45] <unsignedint> but yeah, just tell the user "Dont create more than one or you'll break everything and have to pay me $150/hr to fix it"
460: [04:16:18] <elgrodo> Pyromanik: Do you mean the GridFieldAddExistingAutocompleter?
461: [04:17:30] <Pyromanik> yeh
462: [04:18:04] <Pyromanik> unsignedint: canCreate won't cut it because it works from the related item, not the parent page
463: [04:18:24] <unsignedint> Pyromanik: oh right. I dont even know what im talking about it, ive never used the canCreate() method
464: [04:18:27] <Pyromanik> that would imply 1-1, which is then a case of $db
465: [04:21:49] <irogue> EasyCo: nope, everyone seemed showered! there were about 8 of us I think
466: [04:22:05] <irogue> 5 of whom actually knew SS internals
467: [04:22:12] <irogue> plus Pyromanik, ss23 and I
468: [04:22:13] <irogue> :-P
469: [04:22:23] <ss23> lol
470: [04:22:39] <EasyCo> Is there a list I can sign up to for the next one? I'd very much like to check it out.
471: [04:22:53] <ss23> Next one isn't planned yet
472: [04:23:21] <unsignedint> how do they go? do you just pick a bug from the issue tracker and have a go at fixing it?
473: [04:23:28] <irogue> EasyCo: http://www.meetup.com/SilverStripe-Wellington-Meetup-Group/
474: [04:23:30] <ss23> unsignedint: Yeah, just pick something and do it
475: [04:23:31] <irogue> unsignedint: yup, pretty much
476: [04:23:41] <ss23> e.g. I removed the magic quotes support from Silverstripe
477: [04:23:42] <ss23> o/
478: [04:23:43] <irogue> and core devs are there to ask questions when you get stuck
479: [04:23:54] <EasyCo> irogue: thhx
480: [04:24:10] <irogue> like when ss23 couldnt figure out how to click
481: [04:24:14] <ss23> :<
482: [04:24:16] <ss23> IT WAS HARD OKAY
483: [04:25:09] <ss23> So like, since I'll be working at Silverstripe, does that mean I count as a "core dev" now? :O
484: [04:25:52] * Jakx has left #silverstripe
485: [04:26:19] <EasyCo> Brooke Penny seems nice :)
486: [04:26:21] <unsignedint> ss23: i'll treat you like one if it makes you feel better :)
487: [04:26:31] <willr_> ss23 not till you get silverstripe push rights
488: [04:26:40] <unsignedint> ss23: what would be the best way to implement a $has_one relation editor in teh cms?
489: [04:26:48] <willr_> not everyone at SS gets that, Only like 10 of us.
490: [04:27:47] <unsignedint> do they call you the 10 Apostles?
491: [04:28:20] <ss23> willr_: Wanna give me some commit rights? ;)
492: [04:28:28] <ss23> unsignedint: UHHHHHHHHHHHHHHH
493: [04:28:35] <willr_> you can fork off.
494: [04:28:37] <ss23> I'm not very good with Silverstripe please help
495: [04:28:41] <willr_> *snort*
496: [04:28:42] * UncleCheese has joined #silverstripe
497: [04:28:55] <ss23> willr_: What if I let you ask for a pull request? ;)
498: [04:29:26] <unsignedint> willr_: I see what you did there
499: [04:29:34] <EasyCo> Well hopefully there's not too long before the next SS meet up. I'd be keen to have a better understanding of the internals.
500: [04:31:00] <unsignedint> At times like this I wish I lived in Wellington
501: [04:31:02] <unsignedint> or Auckland
502: [04:31:08] <unsignedint> places where there are actually people
503: [04:31:17] <unsignedint> that want to have hackfests
504: [04:31:53] <EasyCo> Where do you live?
505: [04:33:48] <unsignedint> Napier
506: [04:34:14] <unsignedint> Noone here gives a shit about programming, theyre all too busy working at McDonalds, living on the dole and having 20 kids
507: [04:34:36] <EasyCo> You got good surf there though?
508: [04:34:49] <unsignedint> Thats true. My boss is a keen surfer but im not
509: [04:35:12] <unsignedint> hes always looking out the window at the waves going "man, I wish i was surfing right now"
510: [04:35:19] <EasyCo> Sounds like me
511: [04:37:53] * trent001 quit (Read error: Connection reset by peer)
512: [04:37:54] * trent001_ has joined #silverstripe
513: [04:39:47] <Pyromanik> nesting forms isn't a thing, is it?
514: [04:40:25] <Pyromanik> 16:25 < EasyCo> Brooke Penny seems nice :)
515: [04:40:30] <Pyromanik> ROFL, what does this mean?
516: [04:40:31] <Pyromanik> xD
517: [04:40:56] <EasyCo> She welcomed me into the SS group on meetup.com :)
518: [04:41:11] <Pyromanik> fair enough then
519: [04:41:25] <Pyromanik> where are you bsed EasyCo ?
520: [04:41:32] <Pyromanik> I thought you were Swedish...
521: [04:41:34] <EasyCo> http://www.meetup.com/SilverStripe-Wellington-Meetup-Group/members/23521121/
522: [04:41:37] <EasyCo> Swedish
523: [04:41:38] <EasyCo> Haha
524: [04:41:40] <EasyCo> No
525: [04:41:51] <spronk> hrm
526: [04:41:54] <spronk> why would dev/build be blank
527: [04:41:55] <spronk> but /dev/ loads
528: [04:42:22] <EasyCo> Pyromanik: I live in Lennox Head, NSW, Australia
529: [04:42:31] <Pyromanik> spronk: issues with userforms or widgets or something like that
530: [04:42:32] <EasyCo> But I'm originally from Canada
531: [04:42:46] <Pyromanik> EasyCo: ah yeh, you're that laid back surfie guy.
532: [04:43:13] <EasyCo> Pyromanik: Haha, I guess that'd be me.
533: [04:43:27] <unsignedint> EasyCo: hang on, so you'd fly to NZ for a SS hackfest?
534: [04:43:40] <EasyCo> It's only like $200
535: [04:43:47] <unsignedint> return?
536: [04:43:48] <EasyCo> SO yah
537: [04:44:07] <nikrolls> spronk: I've noticed sometimes it does that, on a successful build. Found some discussions on Github about it too. Apparently it's ok (if not instant), if there is an error you will know about it
538: [04:44:08] <EasyCo> Yah $250 return for sure.
539: [04:44:37] <unsignedint> EasyCo: wow thats good. it costs like $800 return to fly return to locations WITHIN new zealand. like Napier -> Nelson
540: [04:44:42] * joelpittet has joined #silverstripe
541: [04:44:46] <EasyCo> What!!
542: [04:44:52] <unsignedint> I know, its retarded
543: [04:45:04] <spronk> nah
544: [04:45:04] <nikrolls> unsignedint, you just chose the two airports with the largest departure fees :D
545: [04:45:06] <spronk> it's not building
546: [04:45:15] * joelpittet quit (Remote host closed the connection)
547: [04:45:17] <spronk> error_reporting(E_ALL); and display_errors are both on
548: [04:45:20] <spronk> and nothing, just white
549: [04:45:21] <spronk> ffffsssss
550: [04:45:26] <Pyromanik> 16:43 < EasyCo> It's only like $200
551: [04:45:34] <irogue> yeah, high-volume routes ftw
552: [04:45:37] <Pyromanik> SO SAME AS MUCH TO GO CHC -> WLG THEN
553: [04:45:47] * joelpittet has joined #silverstripe
554: [04:45:59] <irogue> AKL <> WLG cost me $89 return
555: [04:46:01] <unsignedint> spronk: are you using apache? check your error.log and also make sure you're in dev mode in SS
556: [04:46:12] <spronk> mm, can't seem to see anything in error log
557: [04:46:16] <spronk> this is on a shared host though so...
558: [04:46:41] <unsignedint> irogue: was that a grabaseat?
559: [04:46:56] <irogue> unsignedint: nah, jetstar tho
560: [04:47:08] <unsignedint> irogue: meh as long as you get there I guess haha
561: [04:47:14] <irogue> see Jetstar's pulled out of WLG <> ZQN in favour of more planes on AKL <> WLG?
562: [04:47:20] <nikrolls> Well, sometimes you'll get there
563: [04:47:25] <unsignedint> but yeah since I dont live in a major centre its fucking expensive to fly
564: [04:47:44] <irogue> ss23 and i were waiting at wellington airport for like 5 hours and in that time there must've been about 8 flights to auckland leave
565: [04:48:24] <irogue> probably all full
566: [04:48:49] <nikrolls> Jetstar's bailed on me a couple of times on that same route
567: [04:48:58] <spronk> [12-Jun-2013 22:44:24 America/Denver] PHP Fatal error: Unexpected token when building static manifest: Array
568: [04:49:03] <elgrodo> bring a parachute then nikrolls?
569: [04:49:17] <nikrolls> No refund, and the insurance I paid them for doesn't cover whatever cause they said it was
570: [04:49:17] <unsignedint> spronk: what version of PHP are they running?
571: [04:49:19] <irogue> when you can just shuttle full A320s back and forward nonstop it starts getting very economical
572: [04:50:52] <spronk> 5.3.25
573: [04:51:11] <unsignedint> oooold
574: [04:51:17] <unsignedint> damn shared hosts
575: [04:51:33] <spronk> only one off head 5.3
576: [04:51:45] <unsignedint> I swear theyre run by 12 year olds who know how to click 'Next, Next, Next, Finish' on an installer
577: [04:51:48] <spronk> hm
578: [04:51:50] <spronk> does 3.1 require 5.4?
579: [04:51:56] <Pyromanik> god
580: [04:52:04] <Pyromanik> swipestripe one page checkout
581: [04:52:36] <unsignedint> ss23: your core dev experience is required. does SS 3.1 require php 5.4?
582: [04:52:53] <Pyromanik> rofl core dev.
583: [04:52:58] <Pyromanik> CAN'T EVEN CLICK
584: [04:53:06] <unsignedint> haha im just giving him shit now
585: [04:53:14] <Pyromanik> 16:51 < unsignedint> I swear theyre run by 12 year olds who know how to click 'Next, Next, Next, Finish' on an installer
586: [04:53:23] <Pyromanik> So ss23 would defo. be out then right?
587: [04:53:44] <Pyromanik> unqualified
588: [04:54:01] <Pyromanik> hands up if you've used swipestripe before?
589: [04:54:13] <irogue> unsignedint: 5.3.2 i believe
590: [04:54:53] <irogue> ss23 dropped Apache 1 support though! :-P
591: [04:55:00] <unsignedint> there you go spronk
592: [04:55:20] <trent001_> Hi all have been working in php for a while but have just started with silverstripe coming from a code igniter background. I was wondering if you guys have ever had any troubles getting the command line tool to work in localhost on a mac.
593: [04:55:30] <unsignedint> I wish computers dropped IE support. That would be great.
594: [04:55:33] <spronk> FFS
595: [04:55:35] <spronk> what is the problem them
596: [04:56:16] <unsignedint> trent001_: I didnt even know SS had a commandline tool
597: [04:56:23] <Pyromanik> irogue: that was me.
598: [04:56:28] <spronk> ugh this is driving me nuts
599: [04:56:32] <trent001_> Trying to run sake dev/build "flush=1" but doesn't compile the database for me. Works fine when I run in the browser however.
600: [04:56:45] <Pyromanik> trent001_: use browser.
601: [04:56:49] * unsignedint hands spronk a gun
602: [04:56:52] <unsignedint> do what you need to do
603: [04:56:58] <irogue> Pyromanik: oh yeah, it was too, my bad
604: [04:56:59] <Pyromanik> trent001_: but look up file url mapping
605: [04:57:07] <spronk> core/manifest/ConfigStaticManifest.php on line 274
606: [04:57:08] <Pyromanik> it's probably what you're missing
607: [04:57:10] <irogue> spronk: static array has a syntax error, probably
608: [04:57:29] <irogue> look at your $db, $has_one etc. arrays
609: [04:58:43] <trent001_> ok file url mapping cheers pyro... I would rather use terminal to run migrations if I can... :)
610: [04:59:31] * spronk loads up zend studio
611: [04:59:39] <spronk> check my syntax you behemoth
612: [04:59:45] <unsignedint> haha
613: [05:01:18] <trent001_> I am really enjoying SS so far. It is nice to have the CMS elements built in coming from codeignighter.
614: [05:01:53] <spronk> hmm
615: [05:01:58] <spronk> cant find it anywhere
616: [05:02:29] <trent001_> Any body here attending WDCNZ???
617: [05:02:57] <irogue> spronk: pastebin your statics?
618: [05:03:12] <spronk> actualyl
619: [05:03:16] <spronk> ima delete the caches
620: [05:04:02] <spronk> also, i hjave a lot of statics :(
621: [05:04:06] <spronk> HA
622: [05:04:07] <Pyromanik> trent001_: yes
623: [05:04:07] <spronk> it worked
624: [05:04:10] <Pyromanik> I'm going to WDC
625: [05:04:11] <spronk> deleted the /tmp/ss....cache folder
626: [05:04:15] <irogue> heh
627: [05:04:20] <irogue> so, mightve been somethin you already fixed
628: [05:05:31] <trent001_> Cool. Just got my tickets. Am looking forward to it.
629: [05:06:47] <trent001_> Looks like there will be some really good talks :)
630: [05:06:58] <Pyromanik> yes indeed. but it's home time!
631: [05:07:01] * Pyromanik quit (Quit: leaving)
632: [05:09:41] * UncleCheese quit (Quit: UncleCheese)
633: [05:11:21] * popeshoe has joined #silverstripe
634: [05:17:50] <trent001_> Sweet just getting my head around the grid field on second day with SS here :)
635: [05:18:39] <nikrolls> Grid Field on second day! Impressive :)
636: [05:19:19] <trent001_> Well been doing php for a while now :)
637: [05:19:43] <spronk> ugh fucking ss catching errors and not logging them
638: [05:19:48] <trent001_> Just new to SS
639: [05:19:49] <nikrolls> Ditto, but Grid Field is still fairly complex
640: [05:21:54] <trent001_> Yeah I wouldn't say I am an expert by any means with it yet but have just got it working in a fairly basic way to hold a whole lot of different contact details.
641: [05:22:06] <nikrolls> Good stuff
642: [05:23:04] <trent001_> We have been looking for a new system to use at work so I am trailing SS on a project atm.
643: [05:23:08] <spronk> ugh
644: [05:23:13] <spronk> getting all sorts of warnings with userforms
645: [05:23:17] <spronk> ssviewer 706
646: [05:23:23] <spronk> none of these templates can be found in theme....
647: [05:23:55] <trent001_> *trialing
648: [05:24:34] <trent001_> How long have you been using SS nikrolls?
649: [05:24:55] <nikrolls> Just over 12 months now
650: [05:25:15] <nikrolls> Loving it. It has its quirks and deficiencies, but the great parts totally make up for it
651: [05:25:30] <nikrolls> That's 12 moths almost exclusively
652: [05:26:16] <trent001_> Awesome do you work with it for your day job.?
653: [05:26:44] <spronk> SS frustrates the hell out of me almost every time I use it. So occasionally I go looking for something else. Then I realise that everything else is orders of magnitude more frustrating
654: [05:26:56] <trent001_> Lol
655: [05:27:39] <trent001_> We were looking at SS or Drupal for possible new systems at work. I am hoping we go with SS
656: [05:28:52] <trent001_> My boss was keen on Drupal but I think I have talked him round :)
657: [05:29:24] <nikrolls> trent001_: Yep, we deal mainly with SS here as we have built a lot of prework in it
658: [05:29:32] <nikrolls> So it's pretty full-time :)
659: [05:29:40] <trent001_> cool.
660: [05:32:24] <trent001_> I work at a small digital shop. We have been using wordpress super simple stuff and code ignighter for any thing else. We have been looking for a new CMS to use so I am trying to push for SS :)
661: [05:33:42] <EasyCo> Can you get a datalists' count in a template or do I specifically have to make a method to do it?
662: [05:33:44] <nikrolls> Yeah I'm not a huge fan of many other systems. They all have their own strengths I guess. I find SS is one of the few that is actually quite agnostic to what you want to do with it, rather than being focused on blogging, or ecom, or something
663: [05:33:53] <nikrolls> EasyCo: $List.Count
664: [05:34:08] <nikrolls> EasyCo: So .Count, that is
665: [05:34:19] <EasyCo> Sweet jesus, that was fast
666: [05:34:23] <nikrolls> :)
667: [05:34:26] * cloph_away has joined #silverstripe
668: [05:35:02] * shakesoda quit (Ping timeout: 245 seconds)
669: [05:35:26] <EasyCo> Y not in docs?
670: [05:35:33] <nikrolls> You can access all those functions to an extent -- .Limit, .Count, .First
671: [05:35:58] <nikrolls> Not sure why it's not documented, I guess maybe because you can call any function of an object that way
672: [05:36:17] * chillu has joined #silverstripe
673: [05:36:18] <EasyCo> Nevermind
674: [05:36:20] <EasyCo> It's documented
675: [05:36:25] <EasyCo> Just not very clearly
676: [05:36:35] <spronk> hmm
677: [05:36:37] <spronk> showtemplate still work?
678: [05:36:59] <EasyCo> http://doc.silverstripe.org/framework/en/trunk/reference/templates#altering-the-list
679: [05:37:12] * shakesoda has joined #silverstripe
680: [05:37:14] <EasyCo> "As the template has access to the list object, templates can call DataList functions"
681: [05:37:35] <trent001_> Ha thats one thing I noticed the doc's are very all over the place.
682: [05:37:44] <EasyCo> Add that one to the SS cheatsheet
683: [05:37:49] * DigNZ quit (Quit: DigNZ)
684: [05:38:02] <EasyCo> trent001_: I think they just got some budget allocation to spruce 'em up a little
685: [05:38:17] <trent001_> Git hub Gist's FTW
686: [05:38:19] <trent001_> Nice
687: [05:39:10] * popeshoe quit (Quit: This computer has gone to sleep)
688: [05:39:45] <spronk> hmm
689: [05:39:48] <spronk> Menu() control
690: [05:39:57] <spronk> i can't stick that within a <% with Page() %> and have it work?
691: [05:40:10] * DigNZ has joined #silverstripe
692: [05:40:16] * SightUnseen has joined #silverstripe
693: [05:40:21] * SightUnseen has left #silverstripe
694: [05:41:10] <EasyCo> trent001_: https://gist.github.com/trev/5771478
695: [05:41:39] <EasyCo> There are a few things in there that I do differently and better but you get the "gist"
696: [05:41:49] <trent001_> Lol
697: [05:41:52] <trent001_> Nice man
698: [05:42:10] <elgrodo> $html = $forTemplate->renderWith( 'HasOneProductField' ); < how do I get the template to pick up?
699: [05:42:18] <elgrodo> getting an error that the template cannt be found in theme ''
700: [05:42:27] <elgrodo> dev/build and flush=all not fixing it
701: [05:43:17] <EasyCo> elgrodoe, wheres HasOneProductField.ss located?
702: [05:43:30] <elgrodo> in the theme of the site currently
703: [05:43:48] <EasyCo> themes/xxx/tempaltes/HasOneProductField.ss?
704: [05:43:51] <elgrodo> Includes directory
705: [05:43:59] <elgrodo> will try that
706: [05:44:28] <EasyCo> I don't know if that's it for sure, but I've always just chucked mine right under the templates directory.
707: [05:44:48] <elgrodo> still not working :(
708: [05:45:14] <nikrolls> spronk: Menu belongs to the Controller rather than the Model
709: [05:45:19] <spronk> mm
710: [05:46:21] * DigNZ quit (Quit: DigNZ)
711: [05:46:42] <nikrolls> ModelAsController::controller_for($page) ... that could get it for you, but someone tell me if that's overly complex?
712: [05:48:06] <nikrolls> Man I love 'search class' in PHPStorm. I know Netbeans has it too but I never used it. I think it's a lot faster in PHPStorm.
713: [05:48:16] <nikrolls> So great for figuring out SS core
714: [05:48:21] <spronk> heh
715: [05:48:28] <spronk> show declaration in eclipse is nice
716: [05:48:28] <spronk> :;p
717: [05:48:41] <spronk> f3 = instant jump to ss code
718: [05:48:41] <nikrolls> Yeah, also very handy
719: [05:48:53] <nikrolls> And Ctrl+Click a classname
720: [05:48:55] <spronk> mm
721: [05:49:02] <nikrolls> Or anything, almost
722: [05:49:03] <spronk> i hate framework dev without that stuff
723: [05:49:13] <spronk> i use too many frameworks that are too similar
724: [05:49:16] <EasyCo> spronk: why not just do <% loop $ChidlrenOf(pageyouwanthemenufor) %>
725: [05:49:27] <spronk> yeah..
726: [05:49:32] <spronk> i could do that
727: [05:49:37] <nikrolls> EasyCo that does sound a lot cleaner
728: [05:50:50] <EasyCo> The only problem you might encounter is pages with ShowInMenus set to False will still show.
729: [05:51:02] <nikrolls> Yeah, you'd have to if that
730: [05:51:07] <EasyCo> http://doc.silverstripe.org/framework/en/topics/page-type-templates#menu-loops
731: [05:51:37] <elgrodo> tried delete the cache files and rebuilding, still nope
732: [05:51:40] <elgrodo> grrrrrrrrrrrrrrrrr
733: [05:51:40] <spronk> grr
734: [05:52:10] <spronk> why is nothing working for me today :(
735: [05:52:24] <EasyCo> spronk: Got SSViewer::set_theme('xxx'); in mysite/_config.php
736: [05:52:29] <spronk> elgrodo: array('HasOneProductField')) ?
737: [05:52:36] <EasyCo> Oops
738: [05:52:41] <EasyCo> I mean elgrodo
739: [05:52:47] <trent001_> I just roll sublime text 2
740: [05:53:15] <EasyCo> Once you go vim it's hard to change editor.
741: [05:53:16] * travis-ci has joined #silverstripe
742: [05:53:16] <travis-ci> [travis-ci] chillu/silverstripe-cms#42 (pulls/cmsform - 2deb525 : Ingo Schommer): The build is still failing.
743: [05:53:16] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/ed1b9505bf74...2deb525d478e
744: [05:53:16] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/8041223
745: [05:53:16] * travis-ci has left #silverstripe
746: [05:53:21] <nikrolls> Sublime has those lookup functions too
747: [05:53:31] <nikrolls> Harder to manage large projects in it though
748: [05:53:38] <spronk> http://sspaste.com/paste/show/51b95e2e1baae
749: [05:53:38] <nikrolls> And you miss out on all the xdebug awesomeness
750: [05:53:42] <spronk> can someone tell me wtf is wrong with this
751: [05:53:49] <spronk> xdebug
752: [05:53:51] <spronk> saves my arse so many times
753: [05:53:54] <spronk> takes so long to do so
754: [05:54:15] <trent001_> do you like vim??
755: [05:54:25] <trent001_> easyco
756: [05:54:32] <EasyCo> Love it.
757: [05:54:56] <EasyCo> The learning curve is steep but once you get going...
758: [05:55:03] <trent001_> hmmm
759: [05:55:03] <spronk> hmm
760: [05:55:10] <EasyCo> spronk: What's happening
761: [05:55:19] <elgrodo> "Change your editor. Change your life" < what one old coder said to me
762: [05:55:25] <spronk> EasyCo: just not getting anything output
763: [05:55:31] <spronk> there's a published /products page
764: [05:55:35] <EasyCo> What if you drop the if
765: [05:55:39] <spronk> same thing
766: [05:55:39] <EasyCo> and end_if
767: [05:55:41] <trent001_> I might have to try phpstorm one of these days ST2 has served me pretty well however.
768: [05:56:04] <spronk> i got intellij idea for 75% off a while back
769: [05:56:15] <spronk> with the php module it seems alright
770: [05:56:18] <spronk> a little slow for my liking
771: [05:56:30] <spronk> (it's phpstorm's big brother)
772: [05:56:38] * travis-ci has joined #silverstripe
773: [05:56:38] <travis-ci> [travis-ci] chillu/silverstripe-framework#4 (pulls/cmsform - fa7e216 : Ingo Schommer): The build was fixed.
774: [05:56:38] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/159e5cd3972d...fa7e21685f87
775: [05:56:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8041213
776: [05:56:38] * travis-ci has left #silverstripe
777: [05:57:18] <EasyCo> spronk: What does the HTML source look like?
778: [05:57:18] <elgrodo> EasyCo: Ha, moved it out of the current theme and it worked
779: [05:57:24] <elgrodo> guessed from the theme being ''
780: [05:57:27] <EasyCo> Does it even output any li's
781: [05:57:33] <elgrodo> Just started raining and I want my lunch :(
782: [05:57:36] <elgrodo> *sadface*
783: [05:57:44] <spronk> EasyCo: outputs nothing at all
784: [05:57:45] <spronk> :S
785: [05:58:09] <EasyCo> So if you ditch the if/end_if you at least get <ul></ul> right?
786: [05:58:27] <spronk> ooh
787: [05:58:28] <spronk> yep
788: [05:58:31] <spronk> actually i get an li
789: [05:58:49] <spronk> <li class=""><a href="" title="">
790: [05:59:10] <EasyCo> Nice
791: [05:59:21] <spronk> what the absolute hell
792: [05:59:22] <nikrolls> Loop always runs at least once
793: [05:59:30] <nikrolls> Even on an empty list
794: [05:59:34] <spronk> mm
795: [05:59:39] <nikrolls> It's like do while
796: [05:59:57] <EasyCo> nikrolls: Are you 100% about that?
797: [06:00:12] <nikrolls> Fairly certain, from experience
798: [06:00:26] <spronk> this better not have something to do with subsites
799: [06:01:14] <EasyCo> spronk
800: [06:01:17] <spronk> because i am just about ready to find the devs and give them.. a stern talking to
801: [06:01:18] <EasyCo> Chuck $debug in your loop
802: [06:01:22] <spronk> yeah
803: [06:01:29] <EasyCo> See what that spits out
804: [06:01:29] <spronk> basically returns an empty Page
805: [06:01:33] <trent001_> What IDE's do you guys use for SS. Do you think I should step up to something a bit more advanced from ST2
806: [06:02:08] <spronk> trent001_: ST2 is a nice text editor, but i'd recommend having any of the source traversing IDEs available on tap when you encounter bugs and want to understand core stuff
807: [06:02:15] <spronk> also, a LOT of ss' documentation is in the core code
808: [06:02:25] <spronk> so having an IDE that gives you inline docs is very handy
809: [06:02:32] <nikrolls> trent001_: Eventually, I'd definitely recommend it. Netbeans PHP is a nice start, or PHPStorm if you're happy paying for it (or if you can get work to buy it). PHPStorm is a lot more refined
810: [06:02:34] * travis-ci has joined #silverstripe
811: [06:02:34] <travis-ci> [travis-ci] chillu/silverstripe-framework#5 (pulls/cmsform - 63eb951 : Ingo Schommer): The build was fixed.
812: [06:02:34] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/fa7e21685f87...63eb9518d276
813: [06:02:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8041268
814: [06:02:34] * travis-ci has left #silverstripe
815: [06:02:56] <trent001_> Nice
816: [06:03:07] <nikrolls> Up to your preference, but as long as it does what spronk mentioned then it's a help
817: [06:03:12] <trent001_> do you use intellij spronk
818: [06:03:23] <spronk> EasyCo: "Name: ChildrenOf
819: [06:03:32] <spronk> table and value blank
820: [06:03:42] <spronk> trent001_: i use intellij at home and zend studio at work
821: [06:04:08] <trent001_> Cool what is zend studio like I understand it is quite pricey.
822: [06:04:11] <spronk> zend studio is pretty much exactly the same as eclipse PDT, only a little faster and less buggy, and... a lot more expensive
823: [06:04:20] <EasyCo> <% loop $ChildrenOf(products) %>$debug<% end_loop %>
824: [06:04:22] <trent001_> :)
825: [06:04:28] <EasyCo> Give you the above menitoned?
826: [06:04:31] <spronk> ja
827: [06:04:36] <spronk> :(
828: [06:04:48] <EasyCo> Yah that's weird
829: [06:05:15] * elgrodo quit (Ping timeout: 252 seconds)
830: [06:05:19] <EasyCo> What do you get if you put $debug outside of the loop
831: [06:05:33] <trent001_> So you guys think php storm would be a good start for me into more advance IDE's. In saying that I have always been pretty happy on ST2
832: [06:05:50] <spronk> trent001_: i'd have a look at eclipse + PDT or NetBeans to start with
833: [06:06:24] * travis-ci has joined #silverstripe
834: [06:06:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#286 (3.1 - 5a94e62 : Ingo Schommer): The build passed.
835: [06:06:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0650dbe1e796...5a94e621c585
836: [06:06:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8041370
837: [06:06:24] * travis-ci has left #silverstripe
838: [06:06:27] <trent001_> I tried Netbeans and did not like it for some reason.
839: [06:07:03] <spronk> i don't think Page(products) or ChildrenOf(products) is working at all :/
840: [06:07:31] <trent001_> I might do a free trial of php storm and see how I go.
841: [06:08:16] <nikrolls> I think you'll like it
842: [06:08:27] <nikrolls> Definitely learn the key shortcuts
843: [06:08:30] <nikrolls> And try xdebug
844: [06:09:08] <nikrolls> Either get work to pay for it, or to be fair the personal license isn't too bad for something you can use forever
845: [06:09:15] <nikrolls> If you like it that is
846: [06:09:30] <EasyCo> What's xdebug like?
847: [06:09:52] <nikrolls> A lifesaver
848: [06:10:04] <nikrolls> Really
849: [06:10:08] <trent001_> hmmm cheers nikrolls
850: [06:10:17] <spronk> EasyCo: ever used a debugger?
851: [06:10:45] <EasyCo> The only debugger I've ever used is back in my C++ days and Chrome Dev tools for JS.
852: [06:11:13] <spronk> yeah
853: [06:11:22] <spronk> xdebug + an ide is like the js debugger in dev tools
854: [06:11:24] <nikrolls> I guess you could liken it to Chrome Dev tools, but more powerful
855: [06:11:31] <trent001_> $99 not bad if it's good
856: [06:11:32] <EasyCo> Gotcha
857: [06:11:32] <spronk> set breakpoints, step through code,profile
858: [06:11:33] <spronk> etc
859: [06:11:42] <trent001_> :) !!!!
860: [06:11:47] <nikrolls> So much better than die(var_dump())
861: [06:11:51] <spronk> ooooo yeah
862: [06:11:52] <trent001_> LOL
863: [06:11:55] <nikrolls> :)
864: [06:12:00] <EasyCo> You need to set it up against a server though?
865: [06:12:06] <trent001_> Damn never knew what I was missing out on
866: [06:12:06] <spronk> yeah
867: [06:12:09] <spronk> well
868: [06:12:13] <Bollig|DesignCty> my viewabledata extension ion 2.4 isn't working… any ideas why people?
869: [06:12:15] <spronk> technically no, but for ss dev... pretty much yeah
870: [06:12:25] <spronk> and
871: [06:12:34] <spronk> i'm about to use it right now to find out whythis stupid childrenof thing isn't working
872: [06:12:37] <nikrolls> EasyCo: xdebug has a nice helper for that. Paste your phpinfo output and it gives you step by step instructions
873: [06:12:42] <spronk> who wants to take a wager with me that it's subsites
874: [06:12:44] <nikrolls> *xdebug website
875: [06:12:45] * SightUnseen has joined #silverstripe
876: [06:12:59] * SightUnseen has left #silverstripe
877: [06:13:06] <EasyCo> I'll wager with but not against.
878: [06:13:08] <trent001_> Any of you guys ever do any Ruby stuff
879: [06:13:09] <trent001_> ?
880: [06:13:17] <EasyCo> Love Ruby.
881: [06:13:31] <EasyCo> I just don't get enough work that requires Ruby.
882: [06:13:46] <trent001_> I have decided thats next on my bucket list to learn
883: [06:13:59] <spronk> ooh
884: [06:14:02] <spronk> check out the ruby koans
885: [06:14:12] <spronk> http://rubykoans.com/
886: [06:14:16] <trent001_> yeah from what I have done it looks sooooo nice.
887: [06:16:17] <trent001_> I mean ss is nice as an MVC framwork but I really want to get into rails
888: [06:16:41] <spronk> i used to avoid rails
889: [06:16:47] <EasyCo> codeschool.com is a great place to start learning rails
890: [06:16:50] <spronk> mainly due to deployment problems and ruby's GIL
891: [06:16:51] <EasyCo> Rails for Zombies
892: [06:16:59] <EasyCo> spronk: I hear ya!
893: [06:17:08] <spronk> i hear these days it's a bit nicer
894: [06:17:10] <spronk> with unicorn and stuff
895: [06:17:36] <trent001_> Yeha deployment sucks but I think we just have it so good in php in that respect..
896: [06:19:41] <spronk> yeah
897: [06:19:53] <spronk> php is a pretty awful language though
898: [06:19:53] <trent001_> Actually I have also been thinking of trying to learn node maybe as well
899: [06:20:06] <spronk> and php libs have been awfully shocking
900: [06:20:16] <spronk> composer helps, but still.. code quality tends to be lacking
901: [06:20:34] <trent001_> Yeah +1 for awful just not that much fun really
902: [06:21:02] <nikrolls> trent001_: Node! Yes, I am very intrigued. Will be looking into that soon.
903: [06:21:28] <trent001_> Yeah man composer is average as compared to bundler
904: [06:22:11] <trent001_> Node looks cool nice podcast here about node dev: http://shoptalkshow.com/episodes/072-with-raquel-velez/
905: [06:22:12] * elgrodo has joined #silverstripe
906: [06:22:14] <EasyCo> Get used to asynchronous patterns and promises with Node :)
907: [06:22:24] <spronk> OMFG
908: [06:22:32] <spronk> ContentController::childrenOf doesn't even get called
909: [06:22:33] <spronk> WTF
910: [06:23:13] <lewellyn> get used to "you can't do that because you don't want to do that because it's a bad idea to even want that functionality at all" with node
911: [06:23:28] <nikrolls> lewellyn: haha
912: [06:23:51] <trent001_> lol
913: [06:23:59] <spronk> why on earth would it not be called
914: [06:24:07] <lewellyn> more than once i have been told "just fail on the first request, then give the second request the correct data"
915: [06:24:29] <trent001_> Is that a convention thing or just a lack of functionality thing?
916: [06:25:50] <nikrolls> It intrigues me to use JS for something not so related to a UI.
917: [06:26:06] <spronk> js is absurdly fast these days compared to php/ruby/py
918: [06:27:07] <trent001_> I don't know too much about it but I believe even though node is a full stack javascript dev environment it is normally not used fully stand alone and more for parts that need the speed increase it provides?
919: [06:27:23] <nikrolls> JS can be used horribly, but it can also be insanely elegant if you know what you're doing. That's one of the reasons I like it so much
920: [06:28:54] <EasyCo> Can you not use <, >, =<, => in template conditionals?
921: [06:29:05] <nikrolls> Not until 3.1
922: [06:29:13] <trent001_> Yes !!! I am still a bit of a JS noob really only in my 3rd year of dev here but like you say using JS for something other than client side intrigues me as well :)
923: [06:29:15] <spronk> omg
924: [06:29:18] <spronk> it calls Page()
925: [06:29:19] <spronk> err
926: [06:29:21] <lewellyn> trent001_: if you absolutely need something to be synchronous, it's painful.
927: [06:29:22] <EasyCo> nikrolls: Seriously?
928: [06:29:29] <spronk> grr
929: [06:29:35] <spronk> calls Page(), page returns the correct SiteTree object
930: [06:29:39] <spronk> then,..... somewhere down the track it doesn't work
931: [06:30:13] <nikrolls> EasyCo: Yeah, something with the pattern matching not being advanced enough and needing rework to not think of > as the end of the tag. Or at least that's what I gathered from the commit message
932: [06:30:47] <trent001_> Cool cheers for the feed back lewellyn. I have not even got to try node yet but am very interested. What do you mainly do with it?
933: [06:30:51] <EasyCo> Gotta link to the commit message anywhere?
934: [06:31:03] <nikrolls> Let me see
935: [06:31:55] <trent001_> Hey cheers fellas for the good chat I got to jet :)
936: [06:32:01] <EasyCo> Thanks
937: [06:32:20] <EasyCo> Is there a built in method or should I just write my own?
938: [06:32:29] <spronk> prolly gonna startr killing people soon
939: [06:32:37] * trent001_ quit (Remote host closed the connection)
940: [06:32:42] <spronk> roll your own for 3.0
941: [06:33:29] <nikrolls> EasyCo: https://github.com/silverstripe/silverstripe-framework/commit/6a95db0effabc256e19da0efb7e6be2ef2630dfd
942: [06:34:00] <nikrolls> Also of note, and finally! https://github.com/silverstripe/silverstripe-framework/commit/5af35a89ce92e3452cfce19349e40a4a99debae4
943: [06:34:28] <EasyCo> nikrolls: Yesss!!
944: [06:35:36] <nikrolls> :)
945: [06:35:45] <EasyCo> Thx
946: [06:35:49] <nikrolls> Welcome
947: [06:35:55] <spronk> this is driving me nuts
948: [06:41:54] <spronk> hmm
949: [06:41:59] <spronk> it seems to skip over the Page
950: [06:42:03] <spronk> and calls Debug on the Text object
951: [07:11:08] * hubertusanton has joined #silverstripe
952: [07:19:53] <elgrodo> is it possible to pull in join talbes as part of a DataList or ::get query?
953: [07:20:17] <elgrodo> rendering 100 Products is calling lots of db queries as each product has to make a database call to get the picture and another to get the brand name
954: [07:20:25] <elgrodo> would be better if I could pull them in at once
955: [07:23:13] * Peavers quit (Ping timeout: 240 seconds)
956: [07:23:27] * Peavers has joined #silverstripe
957: [07:24:48] * MrJeremy quit (Quit: MrJeremy)
958: [07:32:56] * Guits has joined #silverstripe
959: [07:40:49] * Jayden909090 quit (Ping timeout: 250 seconds)
960: [07:41:15] * travis-ci has joined #silverstripe
961: [07:41:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#287 (3.1 - 385f364 : Ingo Schommer): The build passed.
962: [07:41:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5a94e621c585...385f36401874
963: [07:41:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8042903
964: [07:41:15] * travis-ci has left #silverstripe
965: [07:51:21] * EasyCo quit (Quit: EasyCo)
966: [07:55:37] * zippy__ has joined #silverstripe
967: [07:56:33] <zippy__> when is the next hack day?
968: [07:58:33] <nikrolls> There was one in Auckland at the end of May. Was going to go but got way too busy at work
969: [07:58:42] <nikrolls> Not sure about Wellington
970: [07:58:53] * popeshoe has joined #silverstripe
971: [08:10:33] <kinglozzer> Wtf? Exception: Object->__call(): the method 'handleaction' does not exist on 'Page_Controller'
972: [08:10:48] <kinglozzer> Surely it inherits it?
973: [08:11:05] * gumble has joined #silverstripe
974: [08:17:13] * Guits quit (Ping timeout: 264 seconds)
975: [08:22:34] * lobarvaz has joined #silverstripe
976: [08:23:12] <kinglozzer> So if I add public function handleAction($request, $action) { return parent::handleAction($request, $action); } to my Page_Controller, all is well. Why doesn't it inherit the method?! It's public...
977: [08:26:10] * Shrike_Finland has joined #silverstripe
978: [08:26:22] <kinglozzer> For anyone wondering, this is part of a unit test: $cont = new Page_Controller; $cont->handleAction($request, $action); - it tells me that handleAction() doesn't exist :(
979: [08:36:55] <nikrolls> That's pretty odd
980: [08:37:22] <nikrolls> Is it a Unit Test or Functional Test?
981: [08:38:03] <nikrolls> Well it shouldn't matter, but a functional test lets you test URLs
982: [08:38:23] * travis-ci has joined #silverstripe
983: [08:38:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#288 (3.1 - 9d4b8f6 : Ingo Schommer): The build passed.
984: [08:38:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/385f36401874...9d4b8f61ca4a
985: [08:38:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8044123
986: [08:38:23] * travis-ci has left #silverstripe
987: [08:40:29] <kinglozzer> Unit test
988: [08:40:56] <kinglozzer> Screw it, I'll just add it to Page_Controller
989: [08:43:51] * svandragt has joined #silverstripe
990: [08:44:22] * Colin[pi] has joined #silverstripe
991: [08:45:39] * Peavers quit (Ping timeout: 245 seconds)
992: [08:45:52] * Peavers has joined #silverstripe
993: [08:47:10] <svandragt> My editors are pasting text into the cms that is not UTF-8 compatible. This is causing issues with one of my XML Templates, is there any way to convert/strip these characters in the template? field.XML is not working
994: [08:51:15] <svandragt> error on line 10491 at column 31: Input is not proper UTF-8, indicate encoding !
995: [08:51:15] <svandragt> Bytes: 0x1E 0x66 0x6C 0x61
996: [08:52:15] <nikrolls> Can't really see anything on HTMLText or its parent classes
997: [08:56:00] <svandragt> Could it be considered a bug on the convert::raw2xml function if the result is not valid xml?
998: [08:56:09] <svandragt> even though technically the input is invalid
999: [08:56:54] * Peavers quit (Ping timeout: 240 seconds)
1000: [08:57:05] <nikrolls> Yeah I think encoding is a different issue
1001: [08:57:16] <nikrolls> As xml can have different encodings
1002: [08:57:19] * Peavers has joined #silverstripe
1003: [08:58:41] <svandragt> true, thanks for looking anyway I will just have to manually edit the faulty records.
1004: [09:00:01] <nikrolls> If they are pasting it into the CMS, you could always clean it up on the onBeforeWrite function
1005: [09:00:29] <nikrolls> *in
1006: [09:00:40] <nikrolls> *in the onBeforeWrite function
1007: [09:01:05] <nikrolls> If it's in many data objects then you put it in an extension
1008: [09:02:46] <svandragt> That's an idea I'll keep a note of it. It seems to be typographic ligatures from a PDF / indesign or something because it's always on the same words. :)
1009: [09:03:37] <nikrolls> Right, makes sense. Copy/paste can be evil :)
1010: [09:03:39] <Bollig|DesignCty> svandragt: are the editors pasting it in using the paste as text buttons?
1011: [09:04:02] <svandragt> Bollig|DesignCty: no, it's a TextField not a rich one.
1012: [09:04:21] <svandragt> Bollig|DesignCty: actually it's a Text
1013: [09:04:47] <svandragt> but not using tinymce anyway.
1014: [09:05:09] <Bollig|DesignCty> oh, okay… wow...
1015: [09:05:23] <Bollig|DesignCty> damn designers with their indesign documents huh? ;)
1016: [09:06:03] <svandragt> I normally tell them to paste things into notepad first then copy and paste it into the CMS but the characters are kept around and hidden from view so that fails in this case.
1017: [09:06:34] <svandragt> it only shows in sublimetext and chrome's spelling checker marks it as misspelled!
1018: [09:08:11] <svandragt> Soon they'll be generating indesign documents from this catalogue and the balance will be restored. :)
1019: [09:08:16] * lobarvaz quit (Ping timeout: 240 seconds)
1020: [09:24:54] * lobarvaz has joined #silverstripe
1021: [09:34:29] <gumble> how do I make a new dataobject in mysite/code/ when I really only need the object and not a page-type. I want to add Product Dataobjects to the "Product Category" as has_many, but "Product" shouldn't be pagetype. Can someone point me in the right direction?
1022: [09:35:10] * joelpittet quit (Remote host closed the connection)
1023: [09:37:21] * priithansen has joined #silverstripe
1024: [09:37:49] <nikrolls> You can assign many Products to the ProductsCategory object/page?
1025: [09:37:55] <nikrolls> Or do you want them to render as pages?
1026: [09:50:14] * Peavers quit (Read error: Connection reset by peer)
1027: [09:50:32] * Peavers has joined #silverstripe
1028: [10:03:10] * osterlaus has joined #silverstripe
1029: [10:13:28] * Peavers quit (Ping timeout: 252 seconds)
1030: [10:13:57] * Peavers has joined #silverstripe
1031: [10:18:58] * Peavers quit (Ping timeout: 268 seconds)
1032: [10:20:01] * Peavers has joined #silverstripe
1033: [10:26:19] * Peavers quit (Ping timeout: 240 seconds)
1034: [10:26:45] * Peavers has joined #silverstripe
1035: [10:33:08] * osterlaus quit (Quit: Leaving.)
1036: [10:37:02] * Peavers quit (Ping timeout: 252 seconds)
1037: [10:37:55] * Peavers has joined #silverstripe
1038: [10:44:43] * chillu quit (Quit: chillu)
1039: [10:46:04] * Peavers quit (Ping timeout: 245 seconds)
1040: [10:46:54] * Peavers has joined #silverstripe
1041: [10:50:26] * Hippieee quit (Read error: Connection reset by peer)
1042: [10:51:26] * Peavers quit (Ping timeout: 264 seconds)
1043: [10:51:50] * Peavers has joined #silverstripe
1044: [10:54:59] * gumble quit (Read error: No route to host)
1045: [10:55:20] * gumble has joined #silverstripe
1046: [10:57:19] * popeshoe quit (Quit: Leaving)
1047: [10:57:28] * ARNHOE has joined #silverstripe
1048: [11:00:00] * Hippieee has joined #silverstripe
1049: [11:03:31] * elgrodo quit (Read error: Operation timed out)
1050: [11:04:40] * elgrodo has joined #silverstripe
1051: [11:07:02] * popeshoe has joined #silverstripe
1052: [11:09:29] * Peavers quit (Ping timeout: 276 seconds)
1053: [11:10:22] * Peavers has joined #silverstripe
1054: [11:10:27] * micmania1 has joined #silverstripe
1055: [11:10:59] <micmania1> Does anybody have any experience using GridField in the front end?
1056: [11:23:59] * ARNHOE quit (Remote host closed the connection)
1057: [11:26:40] <ec8or_> same apache server, .htaccess is being read in one folder but not another
1058: [11:26:42] <ec8or_> any clues?
1059: [11:26:48] * Peavers quit (Ping timeout: 252 seconds)
1060: [11:27:05] * Peavers has joined #silverstripe
1061: [11:33:24] * Peavers quit (Ping timeout: 252 seconds)
1062: [11:33:36] * Peavers has joined #silverstripe
1063: [11:36:36] <ec8or_> AllowOverride None :P
1064: [11:40:06] * Peavers quit (Ping timeout: 260 seconds)
1065: [11:41:20] * micmania1 quit (Ping timeout: 250 seconds)
1066: [11:41:20] * Peavers has joined #silverstripe
1067: [11:41:46] <elgrodo> how do I get the actual current URL?
1068: [11:42:02] <elgrodo> just wanna append likes of ?start=N to it for by hand pagination
1069: [11:42:16] <elgrodo> (had to do this in order to use raw sql to order DataObjects called Post)
1070: [11:56:03] <kinglozzer> elgrodo: $this->request->url ?
1071: [11:56:47] <kinglozzer> Or if you're not in a controller, I guess you can do Controller::curr()->request->url
1072: [11:56:56] <kinglozzer> Though surely there's a better way than that ;)
1073: [11:57:11] * kinglozzer lunch
1074: [11:58:28] * popeshoe quit (Quit: This computer has gone to sleep)
1075: [12:01:28] * popeshoe has joined #silverstripe
1076: [12:02:19] * UndefinedOffset has joined #silverstripe
1077: [12:03:06] * gumble quit (Ping timeout: 252 seconds)
1078: [12:03:23] * gumble has joined #silverstripe
1079: [12:03:35] * willmorgan has joined #silverstripe
1080: [12:04:14] <willmorgan> anyone know of a table based field in 3.x that can be styled to look like this?: https://dl.dropboxusercontent.com/u/4215179/clips/2013-06-13_12-59-04.png
1081: [12:06:13] * gumble quit (Read error: Operation timed out)
1082: [12:20:07] * gumble has joined #silverstripe
1083: [12:24:24] * gumble quit (Ping timeout: 240 seconds)
1084: [12:24:41] * gumble has joined #silverstripe
1085: [12:27:05] * zippy__ quit (Quit: zippy__)
1086: [12:30:13] * gumble quit (Ping timeout: 252 seconds)
1087: [12:35:12] * Zauberfisch|idle quit (Ping timeout: 240 seconds)
1088: [12:41:10] * chillu has joined #silverstripe
1089: [12:49:02] * Peavers quit (Ping timeout: 252 seconds)
1090: [12:49:46] * Peavers has joined #silverstripe
1091: [12:50:55] * gumble has joined #silverstripe
1092: [12:59:25] * gumble quit (Ping timeout: 264 seconds)
1093: [13:18:15] * Peavers quit (Ping timeout: 252 seconds)
1094: [13:18:50] * Peavers has joined #silverstripe
1095: [13:23:23] * Peavers quit (Ping timeout: 252 seconds)
1096: [13:23:31] * shayne_ has joined #silverstripe
1097: [13:23:38] * Peavers has joined #silverstripe
1098: [13:24:11] * shayne_ quit (Client Quit)
1099: [13:30:04] * Peavers quit (Ping timeout: 240 seconds)
1100: [13:30:27] * Peavers has joined #silverstripe
1101: [13:41:24] * travis-ci has joined #silverstripe
1102: [13:41:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#290 (3.1 - 5ff69b9 : Ingo Schommer): The build passed.
1103: [13:41:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d42cbdd61392...5ff69b98ab62
1104: [13:41:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8050484
1105: [13:41:24] * travis-ci has left #silverstripe
1106: [13:41:26] * gumble has joined #silverstripe
1107: [13:41:58] <gumble> hey, how do I post emails and phone numbers on my page without bots finding it?
1108: [13:49:46] <willmorgan> don't post emails and phone numbers
1109: [13:50:50] <willmorgan> you can try using JS to "complete" emails
1110: [13:50:52] <willmorgan> or you could say:
1111: [13:51:05] <willmorgan> Contact John Smith <firstname>@example.org
1112: [13:54:24] * gumble quit (Ping timeout: 245 seconds)
1113: [13:54:56] * gumble has joined #silverstripe
1114: [13:58:03] * travis-ci has joined #silverstripe
1115: [13:58:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#289 (3.1 - d42cbdd : Ingo Schommer): The build passed.
1116: [13:58:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9d4b8f61ca4a...d42cbdd61392
1117: [13:58:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8050157
1118: [13:58:03] * travis-ci has left #silverstripe
1119: [13:58:32] * ARNHOE has joined #silverstripe
1120: [14:14:04] * Zauberfisch^idle has joined #silverstripe
1121: [14:14:05] * ooboo has joined #silverstripe
1122: [14:14:28] <ooboo> hello. is there any way to get rid of the HTML tags in a gridfield column for HTMLText value?
1123: [14:14:48] * UncleCheese has joined #silverstripe
1124: [14:16:10] <ooboo> i tried calling NoHTML on it in summary_fields but the tags still show up in the gridfield column
1125: [14:31:20] <priithansen> ooboo function getMyPropObj() { return $this->obj('MyProp'); } and then add MyProp to summary fields
1126: [14:31:49] <priithansen> MyPropObj to summary fields *
1127: [14:33:29] * Colin[pi] quit ()
1128: [14:36:06] <ooboo> priithansen: thanks!
1129: [14:37:54] <priithansen> This way it will render the html, wont help if you want the html to be removed completly
1130: [14:41:26] <ooboo> how would i change the title of the field so it doesn't say MyPropObj
1131: [14:43:03] * samthejarvis has joined #silverstripe
1132: [14:43:05] <priithansen> public static $field_labels = array('MyPropObj' => 'Title');
1133: [14:44:00] <ooboo> thanks
1134: [14:46:08] <samthejarvis> interesting SS2.4.7 bug here, can't find any info on it, <% include %>'s are forcing all my <% require javascript() %>'s to insert before the include template, example
1135: [14:47:47] <samthejarvis> basically, the block of javascript requirements is being inserted before the content of an include as well, meaning the javascript appears in two places
1136: [14:48:15] <samthejarvis> if i remove the <% include %>s from the template, all is well
1137: [14:49:33] <samthejarvis> doesn't matter what the include template contains
1138: [14:50:02] <samthejarvis> the template parser seems to think the start of an <% include %> signifies the end of the template and inserts the requirements, hrm
1139: [14:50:42] * Shrike_Finland quit (Quit: Leaving.)
1140: [14:52:51] * LoveDuckie has joined #silverstripe
1141: [14:53:02] * DesignerX has joined #silverstripe
1142: [14:53:10] <LoveDuckie> What would be the best way to upgrade a silverstripe installation?
1143: [14:53:23] <samthejarvis> Requirements::set_write_js_to_body(false); solves this issue, but having JS at the top of the page isn't gonna cut it for this site, bugger
1144: [14:53:37] * ooboo quit (Quit: Page closed)
1145: [14:53:53] * hubertusanton quit (Ping timeout: 252 seconds)
1146: [14:53:56] * jcwacky has joined #silverstripe
1147: [14:54:02] <samthejarvis> LoveDuckie: from what version to what version? How complex is your current site?
1148: [14:54:39] <LoveDuckie> not that complex. 3.0.2 to the latest stable.
1149: [14:56:54] <samthejarvis> in my mind the best way would be to read the api changes from 3.0.2 to latest stable, download your installation, try replacing all files/folders except your own with the new
1150: [14:57:30] <LoveDuckie> sounds arduous. OK
1151: [14:57:43] <samthejarvis> if you come across any errors, perhaps with DataList, should be easy to rewrite some code
1152: [14:58:18] <samthejarvis> or you can skip the whole change list reading and try it out
1153: [14:58:46] <samthejarvis> it's quite likely your code is compatible with both 3.0.2 and latest
1154: [14:59:00] * joelpittet has joined #silverstripe
1155: [15:00:14] <samthejarvis> oh, latest stable is still 3.0.5? apologies, you should have no issues
1156: [15:00:27] <DesignerX> Hi lobarvaz and samthejarvis ...if you use any 3rd patry modules, make sure they are upgraded to the latest SS release before you update your installation
1157: [15:00:28] <samthejarvis> just take your own files across and dev/build?flush=all
1158: [15:00:47] <samthejarvis> and what he says :D
1159: [15:01:17] <DesignerX> :D .. othrwise you will end up with the latest SS but you dont have compatiable modules
1160: [15:02:44] <DesignerX> also, there wont be any big changes from 3.0.2 to 3.0.5 .. unless you are after a specific fix in that update
1161: [15:03:46] * tomspeak has joined #silverstripe
1162: [15:05:00] * samthejarvis quit (Ping timeout: 250 seconds)
1163: [15:05:46] <willmorgan> I created the table based option field in the end: https://gist.github.com/willmorgan/5774423
1164: [15:06:20] * UncleCheese quit (Ping timeout: 268 seconds)
1165: [15:06:31] <LoveDuckie> but would you say that it's better to download the framework package and unpack that onto the server?
1166: [15:07:05] <DesignerX> LoveDuckie: I think framework & CMS ..
1167: [15:08:25] <LoveDuckie> hm okay.
1168: [15:10:03] <jcwacky> Is it possible to easily add the ability for User Defined Form submissions to be saved, so that users can log in and update their submission at any time?
1169: [15:16:47] * Hippieee quit (Read error: Connection reset by peer)
1170: [15:17:50] * Shrike_Finland has joined #silverstripe
1171: [15:21:08] * ARNHOE quit (Remote host closed the connection)
1172: [15:28:19] * Hippieee has joined #silverstripe
1173: [15:33:45] * jcwacky quit (Quit: jcwacky)
1174: [15:54:33] * tomspeak quit ()
1175: [15:58:02] * shakesoda quit (Changing host)
1176: [15:58:02] * shakesoda has joined #silverstripe
1177: [15:58:09] * shakesoda is now known as nepgear
1178: [15:59:03] * Shrike_Finland quit (Quit: Leaving.)
1179: [16:00:19] * travis-ci has joined #silverstripe
1180: [16:00:19] <travis-ci> [travis-ci] chillu/silverstripe-framework#6 (pulls/resize-infinite - 3b40711 : Ingo Schommer): The build passed.
1181: [16:00:19] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/d3a4161a9458^...3b40711b9897
1182: [16:00:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8055299
1183: [16:00:19] * travis-ci has left #silverstripe
1184: [16:04:42] * gumble quit (Ping timeout: 260 seconds)
1185: [16:08:08] * kinglozzer quit (Quit: Dying of man-flu)
1186: [16:08:41] * joelpittet quit (Remote host closed the connection)
1187: [16:09:21] * gumble has joined #silverstripe
1188: [16:09:39] * joelpittet has joined #silverstripe
1189: [16:12:34] * joelpittet quit (Remote host closed the connection)
1190: [16:18:32] * sam___ has joined #silverstripe
1191: [16:22:09] <sam___> hi all
1192: [16:22:29] <sam___> I am facing trouble in dataobject_manager
1193: [16:22:49] <sam___> in silverstripe 2.4
1194: [16:31:32] * Motoservo quit (Ping timeout: 248 seconds)
1195: [16:35:28] * Motoservo has joined #silverstripe
1196: [16:46:43] * joelpittet has joined #silverstripe
1197: [16:48:33] * gelignite has joined #silverstripe
1198: [16:48:34] * lobarvaz quit (Read error: Connection reset by peer)
1199: [16:49:06] <Zauberfisch^idle> sam___ you will not recieve a answer if you just say "i have a problem" its a unwritten rule in IRC channels to ask questions right away
1200: [16:52:44] <willmorgan> In 3.1, is there a nice number formatting function in SS templating language?
1201: [16:52:53] <willmorgan> If not I'm gonna have to use number_format :(
1202: [16:53:20] * sam___ quit (Ping timeout: 250 seconds)
1203: [17:00:29] * Peavers quit (Ping timeout: 276 seconds)
1204: [17:05:51] * Peavers has joined #silverstripe
1205: [17:06:10] * Shrike_Finland has joined #silverstripe
1206: [17:12:32] * Peavers quit (Ping timeout: 252 seconds)
1207: [17:13:27] * Peavers has joined #silverstripe
1208: [17:14:00] * willmorgan quit (Ping timeout: 252 seconds)
1209: [17:20:50] * Peavers quit (Ping timeout: 264 seconds)
1210: [17:21:43] * Peavers has joined #silverstripe
1211: [17:28:13] * Peavers quit (Ping timeout: 264 seconds)
1212: [17:28:54] * Peavers has joined #silverstripe
1213: [17:35:10] * nikrolls quit (Read error: Connection reset by peer)
1214: [17:35:35] * Peavers quit (Ping timeout: 252 seconds)
1215: [17:38:26] * Peavers has joined #silverstripe
1216: [17:39:53] * Shrike_Finland quit (Quit: Leaving.)
1217: [17:43:13] * Nivery has joined #silverstripe
1218: [17:43:23] * Peavers quit (Ping timeout: 276 seconds)
1219: [17:44:11] * Peavers has joined #silverstripe
1220: [17:47:20] * DesignerX quit (Ping timeout: 246 seconds)
1221: [17:48:27] * Peavers quit (Ping timeout: 252 seconds)
1222: [17:51:24] * Peavers has joined #silverstripe
1223: [17:51:35] * cloph_away is now known as cloh
1224: [17:51:35] * cloh is now known as cloph
1225: [18:23:41] * travis-ci has joined #silverstripe
1226: [18:23:41] <travis-ci> [travis-ci] chillu/silverstripe-framework#8 (pulls/dialog-sizing - 9f600ad : Ingo Schommer): The build passed.
1227: [18:23:41] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/39a8e13980cc...9f600ada2cbe
1228: [18:23:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8060093
1229: [18:23:41] * travis-ci has left #silverstripe
1230: [18:24:32] * willmorgan has joined #silverstripe
1231: [18:24:51] * travis-ci has joined #silverstripe
1232: [18:24:51] <travis-ci> [travis-ci] chillu/silverstripe-framework#7 (pulls/dialog-sizing - 39a8e13 : Ingo Schommer): The build passed.
1233: [18:24:51] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/commit/39a8e13980cc
1234: [18:24:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8059794
1235: [18:24:51] * travis-ci has left #silverstripe
1236: [18:26:04] * todd_ has joined #silverstripe
1237: [18:28:22] * travis-ci has joined #silverstripe
1238: [18:28:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#293 (master - bf788c4 : Ingo Schommer): The build passed.
1239: [18:28:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2814e435688b...bf788c4bab61
1240: [18:28:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8060593
1241: [18:28:23] * travis-ci has left #silverstripe
1242: [18:30:41] * azureKnight has joined #silverstripe
1243: [18:31:09] * azureKnight_ has joined #silverstripe
1244: [18:31:29] <azureKnight> Yo.
1245: [18:31:58] <azureKnight> Anybody using an _ss_environment.php with their ss setup?
1246: [18:34:29] <Zauberfisch^idle> yes, of course
1247: [18:34:42] <azureKnight> Lol Zauberfisch^idle
1248: [18:35:02] <Zauberfisch^idle> and with 3.1 you can now finally also configure the database name itself in the _ss_env
1249: [18:35:10] <azureKnight> Quick question. I'm trying to use it again, just did a clean install and have everything setup on my local dev. Latest beta, but it can't seem to detect the ss_environment.php
1250: [18:35:11] <Zauberfisch^idle> making it the perfect think
1251: [18:35:32] <azureKnight> I noticed that ss updated to using yml files for routing, does it need to be included in there?
1252: [18:35:36] * azureKnight_ quit (Ping timeout: 250 seconds)
1253: [18:35:54] <Zauberfisch^idle> du you have a require_once ('conf/ConfigureFromEnv.php'); in your _config.php?
1254: [18:36:11] <azureKnight> Yeah. And I put the _ss_environment.php two folders back.
1255: [18:36:39] <Zauberfisch^idle> are you on a shared hosting where your webserver user might not have permission to go 2 folders back?
1256: [18:36:53] <azureKnight> I'm actually on my local machine.
1257: [18:37:40] <azureKnight> It was working dandy before my wipe and reinstall, but at present, it seems to not notice the file. I was wondering if that's due to the latest beta.
1258: [18:39:40] <todd_> Hi all. Has anything changed recently that would affect partial caching? I updated today via composer to framework 3.1.x-dev and now I am not seeing my partial cache blocks in the silverstripe-cache/cache dir - i.e., zend_cache--cacheblockxxx
1259: [18:46:38] <Zauberfisch^idle> azureKnight I just deployed one site today running laterst bleeding edge master
1260: [18:46:51] <Zauberfisch^idle> so I doubt that there is a bug, worked fine for me
1261: [18:46:55] <azureKnight> Ok.
1262: [18:47:01] <azureKnight> I'll grab that copy and update my framework and cms
1263: [18:47:30] <Zauberfisch^idle> azureKnight move the __ss_env into the root project folder and give it 777 just to be sure its not a permission or directory restriction
1264: [18:47:37] <azureKnight> Will do.
1265: [18:48:46] <azureKnight> Tried moving it into the project and no luck.
1266: [18:48:54] <azureKnight> Probably some deprecated code on my core stuff.
1267: [18:48:56] <azureKnight> I'll do a pull.
1268: [18:49:28] <Zauberfisch^idle> if you need any reference, you can checkout my boilerplate
1269: [18:49:30] <Zauberfisch^idle> https://github.com/Zauberfisch/silverstripe-boilerplate
1270: [18:49:36] <azureKnight> Cheers.
1271: [18:49:48] <Zauberfisch^idle> the readme has an example of _ss_env file
1272: [18:50:11] <Zauberfisch^idle> and there is a mysite/config.php example that works for me in production
1273: [18:55:04] <azureKnight> Is the framework and cms that you're using the latest git pull?
1274: [18:55:11] <azureKnight> Or the one from the pre-release version of ss.org?
1275: [18:55:24] <Zauberfisch^idle> azureKnight git
1276: [18:55:34] <Zauberfisch^idle> 3.1 branch
1277: [18:55:37] <azureKnight> K. Just took those. Maybe my smlinks are broken.
1278: [18:55:39] <azureKnight> :/
1279: [18:55:46] <azureKnight> One second.
1280: [18:55:58] <Zauberfisch^idle> well, actually its not directly git, I use composer
1281: [18:56:07] <Zauberfisch^idle> and composer checks packageist
1282: [18:56:18] <Zauberfisch^idle> and takes the latest version from there, which is from git
1283: [18:57:02] <azureKnight> Yeah, I need to get into using composer. Seems fun. :)
1284: [19:01:18] * gumble_ has joined #silverstripe
1285: [19:01:33] <Zauberfisch^idle> it certainly is
1286: [19:01:40] <Zauberfisch^idle> makes live so much easyer
1287: [19:02:04] * gumble_ quit (Client Quit)
1288: [19:02:59] <gumble> what kind of field do I have to add to getcmsfields so that the user can add DataObjects belonging to the page in $has_many style?
1289: [19:05:17] <azureKnight> I might have found a bigger issue. Doesn't seem like anything I'm doing is changing that.
1290: [19:05:18] <azureKnight> Haha.
1291: [19:05:40] <Zauberfisch^idle> gumble GridField
1292: [19:09:38] <gumble> Zauberfisch^idle, thanks
1293: [19:10:06] <gumble> and if I have a object extending DataObject in mysite/code, where can I create dataobject/editthem in the cms?
1294: [19:11:38] <Zauberfisch^idle> gumble I am not able to follow
1295: [19:13:33] <gumble> I have a Object which extends DataObject in my mysite/code, which should create a new DataObject kind somewhee? E.g. DataObject "Product", where do I now create/change "Products" in the cms?
1296: [19:15:07] <azureKnight> Zauberfisch^idle statics still need to be private, right?
1297: [19:15:36] <Zauberfisch^idle> still ... still is not the right word here
1298: [19:16:02] <Zauberfisch^idle> it will be private for the rest of time I guess
1299: [19:16:39] <azureKnight> Ah. Right. I meant in 3.1, I had read that, but then with the latest pull I have, it seems like it's telling me to change them back to public. It's confusing. Haha.
1300: [19:17:15] <Zauberfisch^idle> azureKnight then you have pulled the wrong branch
1301: [19:17:23] <Zauberfisch^idle> 3.1 and master should require private
1302: [19:17:23] <azureKnight> No kidding!
1303: [19:17:26] <Zauberfisch^idle> 3.0 is old
1304: [19:19:19] <gumble> how do I add something for the user to edit dataobjects in the cms?
1305: [19:22:45] <Zauberfisch^idle> gumble GridField
1306: [19:22:56] <Zauberfisch^idle> its always GridField (:
1307: [19:24:38] <Zauberfisch^idle> you can use GridField for both, DataObjecs related to Pages or other DataObjects
1308: [19:24:48] <Zauberfisch^idle> but also DataObjects that are not related to anything
1309: [19:25:12] <Zauberfisch^idle> if you want them to be related to a Page or a DataObject use a GridField in getCMSFields
1310: [19:25:29] <Zauberfisch^idle> if you want unrelated data to be handled, use ModelAdmin
1311: [19:26:12] <Zauberfisch^idle> there is a demo of model admin if you want to look at it
1312: [19:26:16] <Zauberfisch^idle> http://ss3.demo.silverstripe.org/admin/test/
1313: [19:26:16] <gumble> Zauberfisch^idle, ok, I think I'll quick implement GridField in a page and look if it is that
1314: [19:26:18] <Zauberfisch^idle> user: admin
1315: [19:26:23] <Zauberfisch^idle> pass: password
1316: [19:27:13] <gumble> Zauberfisch^idle, is that a module?
1317: [19:27:26] <gumble> but yes, that was about what I wanted, thanks again
1318: [19:27:27] <Zauberfisch^idle> no, both GridField and ModelAdmin are core
1319: [19:27:59] <Zauberfisch^idle> but I recoomend installing several modules to improve the user experience when using GridField
1320: [19:28:06] <Zauberfisch^idle> https://github.com/unclecheese/silverstripe-gridfield-betterbuttons
1321: [19:28:39] <Zauberfisch^idle> better buttons makes it easier to use for the admin
1322: [19:29:12] <Zauberfisch^idle> https://github.com/ajshort/silverstripe-gridfieldextensions - this module gives you great extensions to gridfield such as drag&drop reordering
1323: [19:30:40] <gumble> Zauberfisch^idle, thanks and the modeladmin is really exaclty what I searched, both very nice. I'll try the modules
1324: [19:30:54] <gumble> oder danke tuts ja wahrscheinlich auch ;)
1325: [19:31:57] * mobiusnz has joined #silverstripe
1326: [19:33:28] <Zauberfisch^idle> (:
1327: [19:33:49] <todd_> I am trying to send all requests for files in assets through an extension which extends Controller. What would the routes.yml rule be for that? I currently am using 'assets/$Action': 'SecureFileController' and I keep getting a response back that my assets sub-folders are actions that aren't found.
1328: [19:34:48] * azureKnight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1329: [19:41:41] * RojoD has joined #silverstripe
1330: [19:41:41] * RojoD quit (Changing host)
1331: [19:41:41] * RojoD has joined #silverstripe
1332: [19:44:51] <todd_> Any help?
1333: [19:49:41] <RojoD> for?
1334: [19:53:20] * pex has joined #silverstripe
1335: [20:01:08] <Zauberfisch^idle> todd_ so for example assets/foo.txt works but not assets/bar/foo.txt
1336: [20:01:09] <Zauberfisch^idle> ?
1337: [20:01:42] <todd_> Thanks RojoD. I am trying to send all requests for files in assets through an extension which extends Controller. What would the routes.yml rule be for that? I currently am using 'assets/$Action': 'SecureFileController' and I keep getting a response back that my assets sub-folders are actions that aren't found.
1338: [20:02:05] <Zauberfisch^idle> todd_ i think first of all the route should be assets//$Action
1339: [20:02:18] <Zauberfisch^idle> but I am not sure, I am not that into routes I have to admint
1340: [20:04:25] <todd_> thanks for the help Zauberfisch, but it is still returning Action 'FolderName' isn't available on class SecureFileController.
1341: [20:07:51] <todd_> In the original 2.4 module, the route was set as Director::add_rules(50, array(ASSETS_DIR . '/$Action' => 'SecureFileController'));
1342: [20:12:09] * zfmf1 has joined #silverstripe
1343: [20:13:51] * nepgear is now known as shakesoda
1344: [20:14:26] * UndefinedOffset quit (Quit: Leaving.)
1345: [20:18:41] * DigNZ has joined #silverstripe
1346: [20:18:42] * DigNZ quit (Remote host closed the connection)
1347: [20:18:56] * DigNZ has joined #silverstripe
1348: [20:28:10] * nickmolhoek has joined #silverstripe
1349: [20:28:10] * nickmolhoek quit (Remote host closed the connection)
1350: [20:28:25] * nickmolhoek has joined #silverstripe
1351: [20:32:55] * unsignedint quit (Remote host closed the connection)
1352: [20:41:15] * tankr has joined #silverstripe
1353: [20:47:07] <gumble> Hey, I found out how to addcomponents to edit, delete, view and everything the fields of my gridfield. The only thing missing is an "add" component which would make me able to add some DataObjects?
1354: [20:47:39] <gumble> or do I have to do that on my own?
1355: [20:50:25] <gumble> ah I'll try the modules :D
1356: [20:55:28] * zippy__ has joined #silverstripe
1357: [20:55:34] * todd_ quit (Ping timeout: 250 seconds)
1358: [20:55:35] * gelignite quit (Quit: http://bit.ly/nkczDT)
1359: [20:57:40] * Nivery quit (Quit: Nivery)
1360: [21:01:53] * MrJeremy has joined #silverstripe
1361: [21:02:07] <zippy__> Morning
1362: [21:02:19] <MrJeremy> Morning
1363: [21:04:23] * unsignedint has joined #silverstripe
1364: [21:05:52] <gumble> after time of searching I found out that I can add a 'new GridFieldAddNewButton' component to the gridfield (this component isn't mentioned in the docs!), now I have a 'Add New' button on the gridfield, but clicking it gives me 500 Internal Server Error without any furthur explanation. What can I do?
1365: [21:09:30] * willmorgan quit (Read error: Connection reset by peer)
1366: [21:10:03] <zippy__> gumble: In dev mode? Check your error logs / ss debug emals
1367: [21:17:54] * Jedateach has joined #silverstripe
1368: [21:18:52] * Pyromanik has joined #silverstripe
1369: [21:21:17] * metanat has joined #silverstripe
1370: [21:24:02] * r3v3rb has joined #silverstripe
1371: [21:25:01] <Peavers> Would someone be able to tell me why my code only counts times in pairs? it counts the difference between time 1 & 2, and then 3 & 4, then 5 & 6, but doesn't count between 2 & 3, 4 & 5, etc etc http://www.sspaste.com/paste/show/51ba383d92cae
1372: [21:25:43] * atmos has joined #silverstripe
1373: [21:25:44] <r3v3rb> anyone understand why a dropdown appears behind another element on iOS even though it's z-index is set higher?
1374: [21:25:54] <atmos> is it possible to adjst the width of the sitetree pane in ss3?
1375: [21:26:16] <r3v3rb> atmos: not that I've seen
1376: [21:26:42] <atmos> damn
1377: [21:26:43] <metanat> Peavers: What are you trying to achieve with your code?
1378: [21:26:57] <Peavers> get the difference between a bunch of times
1379: [21:27:34] <Pyromanik> r3v3rb: you don't understand how z-indexing works?
1380: [21:27:53] <r3v3rb> Pyromanik: ofcourse i do
1381: [21:27:55] <r3v3rb> :P
1382: [21:28:08] <Pyromanik> larger numbers do not mean 'in front'
1383: [21:28:32] <r3v3rb> :\
1384: [21:31:28] * coldblooded01 has joined #silverstripe
1385: [21:31:49] <coldblooded01> hi Willr_
1386: [21:31:57] <willr_> howdey
1387: [21:32:02] <coldblooded01> :)
1388: [21:32:03] <r3v3rb> Pyromanik: i can go to sleep now - all fixed :D
1389: [21:32:27] <coldblooded01> question, for your userform module. I'm just implemented it on one of my project
1390: [21:32:31] <coldblooded01> dev/build errors with
1391: [21:32:31] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/paccpams13.net/userforms/code/model/UserDefinedForm.php on line 402
1392: [21:32:52] <willr_> coldblooded01 got the wrong version
1393: [21:32:56] <coldblooded01> ah
1394: [21:32:59] <coldblooded01> thought so
1395: [21:33:14] <zippy__> when did those $db things become private, is that 3.1?
1396: [21:33:16] <coldblooded01> i've got the trunk framework version
1397: [21:33:32] <coldblooded01> 3.2 I believe
1398: [21:34:07] <atmos> anyone know why file upload might not be working? I can upload fine and it looks lik its placing it in the right folder, but the file 404s on viewing...
1399: [21:34:12] * r3v3rb quit (Quit: r3v3rb)
1400: [21:34:15] * zfmf1 has left #silverstripe
1401: [21:34:32] <willr_> 3.1 yep zippy
1402: [21:34:53] <willr_> Needed to be made private for the new config system improvements
1403: [21:35:12] <coldblooded01> ah damn
1404: [21:35:27] <coldblooded01> unwise to revert framework back to 3.0 :( any quick patch for this?
1405: [21:35:39] * metanat1 has joined #silverstripe
1406: [21:36:03] <willr_> I would recommend sitcking with 3.1. Lots of good work in there
1407: [21:36:16] <coldblooded01> so this will work with 3.1?
1408: [21:36:22] <coldblooded01> userforms
1409: [21:36:29] <willr_> Yep, just grab latest master of UDF
1410: [21:36:50] <coldblooded01> UDF?
1411: [21:36:59] <willr_> userdefinedforms
1412: [21:37:05] <willr_> or userforms, UF
1413: [21:37:06] <coldblooded01> will it have fixed CMS imageupload? so i'm able to upload image before creating the record
1414: [21:37:11] <coldblooded01> ah yes
1415: [21:37:12] <willr_> yep :)
1416: [21:37:13] <coldblooded01> ok
1417: [21:37:32] <coldblooded01> sorry, not imageupload. What I meant is just upload
1418: [21:37:39] * nickmolhoek quit (Ping timeout: 246 seconds)
1419: [21:37:55] * metanat quit (Ping timeout: 268 seconds)
1420: [21:39:14] <atmos> anyone for file upload?
1421: [21:40:19] <Peavers> no ideas metanat1?
1422: [21:41:49] <coldblooded01> SilverStripe 3.1.0-beta2 wise to use?
1423: [21:41:52] <coldblooded01> http://www.silverstripe.org/silverstripe-3.1.0-beta2-is-available/
1424: [21:42:35] * nickmolhoek has joined #silverstripe
1425: [21:42:36] * nickmolhoek quit (Remote host closed the connection)
1426: [21:42:59] * RojoD is now known as zz_Rojod
1427: [21:43:03] * zz_Rojod is now known as zz_rojod
1428: [21:52:20] * atmos quit (Ping timeout: 250 seconds)
1429: [21:52:49] * nickmolhoek has joined #silverstripe
1430: [21:52:50] * nickmolhoek quit (Remote host closed the connection)
1431: [21:55:21] <coldblooded01> SS_DateTime field in SS 3.1 Beta 3 pre-release has a bug. Always changes the Time to AM
1432: [21:55:29] <coldblooded01> even when PM is entered
1433: [21:55:38] * shakesoda is now known as nepgear
1434: [21:59:09] <irogue> coldblooded01: might pay to log it in Issues so someone fixes it :)
1435: [21:59:19] <coldblooded01> indeed
1436: [21:59:26] <coldblooded01> attempting to fix it now
1437: [22:06:24] * zz_rojod quit (Ping timeout: 248 seconds)
1438: [22:08:03] * Jedateach has left #silverstripe
1439: [22:08:29] <zippy__> wonder when the first RC will come out
1440: [22:09:06] <metanat1> Sorry Peavers was afk
1441: [22:10:30] <Peavers> all good dude, think I've just about got it sorted
1442: [22:10:41] * trent001 has joined #silverstripe
1443: [22:11:25] * mobiusnz quit (Quit: Leaving.)
1444: [22:11:29] <metanat1> Peavers: It is because you are going $lastTime = null
1445: [22:11:34] <Peavers> yeah I know
1446: [22:11:41] <metanat1> and because it is null it skips the next time round
1447: [22:11:44] <metanat1> cool
1448: [22:11:50] <Peavers> fixed that, but then it breaks my output lol
1449: [22:11:56] <Peavers> returns 15 minute | 22852195 minute | 22852200 minute |
1450: [22:12:05] <zippy__> zoo many minutes!
1451: [22:12:09] <zippy__> *soo
1452: [22:12:20] <Peavers> just a few aye ;)
1453: [22:12:25] <trent001> Hi there. Has anyone here ever had any trouble implementing a HTMLEditorField into a GridField is this posible?
1454: [22:12:59] <Peavers> because strtotime is being called twice,
1455: [22:13:00] <metanat1> Peavers: The reason it is probably doing that is because they are objects and you are just creating a reference if you do $lastTime = $time
1456: [22:13:03] * nickmolhoek has joined #silverstripe
1457: [22:13:05] * nickmolhoek quit (Read error: Connection reset by peer)
1458: [22:14:39] <Peavers> http://www.sspaste.com/paste/show/51ba4417a4680
1459: [22:14:45] <Peavers> the correct way to do it, if anyone cares
1460: [22:14:47] <Peavers> working correctly.
1461: [22:14:48] <metanat1> It'e probably easier to go, foreach ($times->toArray() as $key => $time) { } and then access the time you want to compare to by either looking at the key behind or the key ahead. SS3 or SS2.4?
1462: [22:15:13] <Peavers> using ss 3.1 but my above function works correctly now
1463: [22:15:18] <metanat1> cool
1464: [22:18:09] <Peavers> the question is how do I get those values back into the template... templates expect an ArrayList yeah?
1465: [22:18:25] <Peavers> so I could load the results from that loop into an array, create a new arrayList of that array on the return?
1466: [22:21:39] <trent001> I'm getting Error at line 302 of /Applications/MAMP/htdocs/silverstripe/framework/core/Object.php when I try and save anything from my grid field with a HTMLText option in it.
1467: [22:21:44] <trent001> :S
1468: [22:22:36] <trent001> Only on my 3rd day using SS here am find it real nice :)
1469: [22:23:29] <Peavers> Defragger?
1470: [22:24:14] <zippy__> In a template…. you can do <% if JobCompleted %> …..
1471: [22:24:27] <zippy__> where JobCompleted is a instance variable
1472: [22:24:33] <zippy__> what if I want to see if the job is NOT completed...
1473: [22:24:41] <zippy__> <% if !$JobCompleted %> ?
1474: [22:24:48] <zippy__> can you do a not in a template?
1475: [22:25:33] <nepgear> try <% if JobCompleted != 1 %>
1476: [22:25:44] <zippy__> JobCompleted is a date field
1477: [22:25:54] * nepgear shrugs
1478: [22:26:00] <zippy__> hm
1479: [22:27:08] <Pyromanik> good to hear trent001
1480: [22:27:32] <zippy__> Pyromanik: had crash?
1481: [22:27:44] <Pyromanik> trent001: you dont' put anytihng into a gridfield in terms of form fields
1482: [22:27:49] <Pyromanik> a gridfield just takes a list
1483: [22:28:00] <Pyromanik> that object can have an HTMLEditorField
1484: [22:28:06] <Pyromanik> and that'll work fine, eys.
1485: [22:28:16] <Pyromanik> zippy__: nup, well, not that I'm aware of
1486: [22:28:24] <zippy__> users will tell ya aye ;-)
1487: [22:29:14] <Pyromanik> zippy__: nah, email about reset after crash.
1488: [22:30:44] * Zauberfisch^idle quit (Read error: Connection reset by peer)
1489: [22:31:32] * Zauberfisch^idle has joined #silverstripe
1490: [22:35:06] <coldblooded01> Willr_ same error with 3.1 beta 3
1491: [22:35:15] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
1492: [22:37:02] * zippy__ quit (Read error: Connection reset by peer)
1493: [22:42:17] <Pyromanik> coldblooded01: sounds like you have the wrong version of userforms
1494: [22:42:39] <coldblooded01> its latest master from https://github.com/silverstripe/silverstripe-userforms
1495: [22:43:04] <coldblooded01> on http://www.silverstripe.org/pre-releases/
1496: [22:43:15] <Pyromanik> hasn't been updated to work with 3.1 then
1497: [22:43:30] <Pyromanik> probably why it reports Build:Failing
1498: [22:43:44] <trent001> Cheers pyro sorry I didn't explain myself well still getting my head around the lingo. I have assigned a HTMLText field to the Dataobject that will be used in my Gridfield.
1499: [22:44:08] <coldblooded01> doesnt work with 3.05 either
1500: [22:44:23] <Pyromanik> coldblooded01: because it's ....
1501: [22:44:30] <Pyromanik> gawd.
1502: [22:44:41] <Pyromanik> you've not got 3.1
1503: [22:44:49] <Pyromanik> otherwise it wouldn't give you the error about being public
1504: [22:44:50] <trent001> If I use standard Text instead of HTMLText all works fine however I want to use a WYSIWYG editor.
1505: [22:44:57] <Pyromanik> or you don't have the most up to date 3.1 at least
1506: [22:45:10] <Pyromanik> as static are now supposed to be private, which userforms' are.
1507: [22:45:20] * zippy__ has joined #silverstripe
1508: [22:45:26] <Pyromanik> and it'll give you the same error in 3.0.5 because it's the same error.
1509: [22:45:39] <Pyromanik> trent001: so what's not working?
1510: [22:45:40] <Pyromanik> error?
1511: [22:45:49] <Pyromanik> textarea but no tinymce?
1512: [22:46:11] <Pyromanik> remember to make your DB type HTMLText, not just Text
1513: [22:47:34] <trent001> If I use the HTMLText option in my $db = array I get Error at line 302 of /Applications/MAMP/htdocs/silverstripe/framework/core/Object.php
1514: [22:48:18] <trent001> yeah that's what I am doing db type is: 'Summary' => ' HTMLText(200)'
1515: [22:48:32] <coldblooded01> Pyro, i've got http://www.silverstripe.org/pre-releases/
1516: [22:48:35] <coldblooded01> that is 3.1
1517: [22:48:43] <trent001> then using new HTMLEditorField('Summary', 'Brief Summary')
1518: [22:48:52] <coldblooded01> with latest master of UserForms from https://github.com/silverstripe/silverstripe-userforms
1519: [22:49:09] <trent001> Probably making some noob mistake here as I am still getting my head around the syntax
1520: [22:49:35] <willr_> coldblooded01 try download 3.1 from github rather than beta
1521: [22:49:48] <Pyromanik> trent001: no numbers.
1522: [22:49:51] <willr_> I'm not sure if the private change made it into the beta
1523: [22:49:52] <Pyromanik> that's just for Varchar
1524: [22:50:30] <trent001> ok :) trying now.
1525: [22:50:35] <Pyromanik> coldblooded01: no, tha'ts not 3.1, that's 3.1-from.the.last.time.someone.made.a.tar.gz
1526: [22:51:02] <coldblooded01> lol
1527: [22:51:22] <Pyromanik> getting outdated versions and trying to use bleeding edge modules is a bad idea in any system around ;)
1528: [22:51:30] <trent001> the I get Uncaught ReflectionException: Class HTMLText does not exist
1529: [22:51:33] <Pyromanik> github all the things
1530: [22:51:42] <trent001> using 'Summary' => ' HTMLText'
1531: [22:51:46] <Pyromanik> trent001: hmm
1532: [22:51:50] <Pyromanik> that's odd
1533: [22:52:01] <willr_> Composer all of the things!
1534: [22:52:14] <Pyromanik> static $db = array('Summary'=>'HTMLText'); should work fine
1535: [22:52:31] <trent001> yeah probably my bad like I said only on my 3rd day with SS here have just moved over from code ignighter and getting my head around the syntax
1536: [22:52:50] <Pyromanik> trent001: sounds like you've maybe put your htmltext in as a has_one, not a $db field
1537: [22:53:10] <Pyromanik> trent001: syntax is PHP! :D
1538: [22:53:12] <trent001> public static $db = array(
1539: [22:53:12] <trent001> 'Title' => 'Varchar(255)',
1540: [22:53:12] <trent001> 'Summary' => ' HTMLText'
1541: [22:53:13] <trent001> );
1542: [22:53:20] <Pyromanik> you have a space
1543: [22:53:24] <Pyromanik> no space
1544: [22:53:39] <trent001> doh :)
1545: [22:53:39] <coldblooded01> https://github.com/silverstripe/silverstripe-framework thats the 3.1 trunk at latest?
1546: [22:53:41] <Pyromanik> :)
1547: [22:53:45] <trent001> lol thanks soo much
1548: [22:53:46] <coldblooded01> put UDF on there?
1549: [22:53:53] <Pyromanik> coldblooded01: probably
1550: [22:53:54] <Pyromanik> I lose track
1551: [22:54:14] <Pyromanik> yes, 3.1
1552: [22:54:14] <coldblooded01> thats what i had done initially
1553: [22:54:19] <trent001> yeah your right syntax is php its just a couple of small things to get my head around :)
1554: [22:54:21] <Pyromanik> try master then :P
1555: [22:54:27] <Pyromanik> trent001: yeh
1556: [22:54:35] <coldblooded01> sweet
1557: [22:54:46] <Pyromanik> but that's system architecture, not syntax ":P
1558: [22:56:01] <trent001> touche
1559: [22:56:41] <trent001> Hey thanks for your help sorry about the noob question :)
1560: [22:57:58] <coldblooded01> trying master for everythbing
1561: [22:58:01] <coldblooded01> everything*
1562: [22:58:12] <Pyromanik> trent001: everyone makes noob questions.
1563: [22:58:29] <Pyromanik> coldblooded01: try composer for everythign
1564: [22:59:16] <coldblooded01> Pyro, how do I do that?
1565: [22:59:28] <coldblooded01> applying master framework and master UDF
1566: [22:59:44] <coldblooded01> waiting on upload then shall dev/build with master codes, see how that goes first
1567: [23:00:25] <Pyromanik> oh wait what upload oh god no
1568: [23:00:45] <coldblooded01> uploading master upload and UDF
1569: [23:00:48] <coldblooded01> to server
1570: [23:01:07] <Pyromanik> 1) get a dev server
1571: [23:01:07] <Pyromanik> 2) get shell access
1572: [23:01:21] <coldblooded01> i know lol, need to but no time right now
1573: [23:01:32] <nepgear> linode <3
1574: [23:01:49] <zippy__> +1 for linode
1575: [23:02:09] <Pyromanik> less time than f'n around with ftp
1576: [23:02:32] <zippy__> who ftps's these days anyway
1577: [23:02:44] <coldblooded01> ah damn
1578: [23:02:48] <nepgear> git + rsync
1579: [23:02:52] <coldblooded01> master framework for SS just gave lots of errors on dev/build
1580: [23:02:53] <coldblooded01> [User Deprecated] Config static Notification::$db must be marked as private. Called from .
1581: [23:02:54] <coldblooded01> etc
1582: [23:03:00] <coldblooded01> no joy
1583: [23:03:52] <coldblooded01> any suggestion?
1584: [23:05:28] <coldblooded01> im going to 3.1 branch
1585: [23:06:03] <Pyromanik> how about
1586: [23:06:06] <Pyromanik> instead of using 3.1
1587: [23:06:10] <Pyromanik> you use 3.0.5
1588: [23:06:15] <Pyromanik> and you use userforms 1.0
1589: [23:06:24] <Pyromanik> and then everything will work
1590: [23:06:30] <willr_> coldblooded01 you'll need to update all your statics to private
1591: [23:06:33] <Pyromanik> and you won't be so pressed for time
1592: [23:06:35] <willr_> find / replace
1593: [23:08:14] <irogue> <3 AWS Sydney
1594: [23:09:01] <coldblooded01> whats the best way to replace static with private inside netbean project
1595: [23:09:02] <coldblooded01> ??
1596: [23:09:12] <coldblooded01> in all the files or just dataobject files?
1597: [23:09:19] <zippy__> find and replace like will said, only takes a few minutes
1598: [23:09:28] <zippy__> follow the error messages :)
1599: [23:09:39] <coldblooded01> ok
1600: [23:09:51] <willr_> public static with private static , not static with private btw
1601: [23:10:07] <Pyromanik> was just about to say that
1602: [23:11:37] <zippy__> hm, is there a way with the index method on the controller, to redirect if the index is in the url
1603: [23:11:38] <zippy__> eg
1604: [23:12:45] * jonshutt has joined #silverstripe
1605: [23:12:56] <zippy__> x
1606: [23:13:02] <zippy__> doing /foo is ok
1607: [23:13:07] <zippy__> but doing /foo/index will 301 to /foo
1608: [23:13:17] * nickmolhoek has joined #silverstripe
1609: [23:13:19] * nickmolhoek quit (Remote host closed the connection)
1610: [23:13:42] <jonshutt> Hi, wondering if anyone knows a way of using "extends DataExtension" to change a core dataobject Title from Varchar to Text?
1611: [23:14:54] <gumble> how would I do a template for a controller action? If I want a list which is returned by getList() only to be displayed when getList is called
1612: [23:15:03] <gumble> dunno if that is understanable
1613: [23:15:32] <Pyromanik> zippy__: you'll have to parse the URL manually in the index function I expect.
1614: [23:15:40] <Pyromanik> no wait
1615: [23:15:43] <zippy__> Pyromanik: was hoping to avoid that
1616: [23:15:51] <Pyromanik> $this->request->param('Action')
1617: [23:15:55] <metanat1> gumble: Controller_action.ss
1618: [23:15:56] <Pyromanik> == index ?
1619: [23:16:15] <Pyromanik> you can't do $this->Action, as it's set manually to index in handleAction
1620: [23:16:35] <Pyromanik> so test the URL directly manually (not parse it).
1621: [23:16:40] <Pyromanik> is what I meant
1622: [23:16:50] <Pyromanik> wrong words :<
1623: [23:17:07] <gumble> metanat1, thanks
1624: [23:17:57] <coldblooded01> Willr, im just going to use 3.1 from trunk
1625: [23:18:08] <coldblooded01> which UDF will work with it without fatal erroring
1626: [23:18:33] <coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
1627: [23:18:38] <coldblooded01> thats the error
1628: [23:18:48] * azureKnight has joined #silverstripe
1629: [23:19:20] <azureKnight> Did anybody ever come up with another smaller htmleditorfield? Like Unclecheese's back for his dom?
1630: [23:24:09] <azureKnight> I'm making a slideshow module, and prefer giving the user a not so… heavy field to give it captions.
1631: [23:24:39] <gumble> if my page $has_many Categories, how do I access them in the controller?
1632: [23:25:39] * chillu quit (Quit: chillu)
1633: [23:25:44] <priithansen> Could possibly be used as stand alone https://github.com/unclecheese/silverstripe-bootstrap-forms/blob/master/code/SimpleHtmlEditorField.php
1634: [23:29:54] <zippy__> gumble: Possibly, Categories()
1635: [23:29:57] <metanat1> gumble: You should be able to go $this->Categories()
1636: [23:30:34] <zippy__> gumble: foreach ($this->Categories() as $Category) { ..
1637: [23:36:19] <zippy__> So, I have a SS_Datetime on my page ($db array ('DateDone' => 'SS_Datetime, which I am trying to populate in the controller. $this->DateDone = SS_DateTime::now() or $this->DateDone->setValue(SS_DateTime::now()); don't appear to work
1638: [23:36:27] <zippy__> nothing in the docs to help
1639: [23:37:51] * azureKnight quit (Ping timeout: 260 seconds)
1640: [23:37:57] * spronk has left #silverstripe
1641: [23:38:40] <zippy__> doing this won't throw an error, but also won't save the value... $this->DateDone = SS_Datetime::Now(); $this->write();
1642: [23:38:49] * spronk has joined #silverstripe
1643: [23:39:10] * gumble quit (Remote host closed the connection)
1644: [23:41:58] * jonshutt quit (Ping timeout: 250 seconds)
1645: [23:43:40] <Pyromanik> 11:18 < coldblooded01> Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/www/XXX/silverstripe-userforms/code/model/UserDefinedForm.php on line 402
1646: [23:43:46] <Pyromanik> this error means that you are NOT using 3.1
1647: [23:44:21] <spronk> YOU KNOW NOTHING JON SNOW!
1648: [23:44:40] <Pyromanik> a few arrows will sort him out.
1649: [23:44:47] * robert_ quit (Read error: Connection reset by peer)
1650: [23:45:21] <Pyromanik> any tankr up in hizzle?
1651: [23:45:27] <Pyromanik> zxomg, tankr !
1652: [23:45:43] <Pyromanik> Getting free lunches I hear :D
1653: [23:45:57] <Pyromanik> also
1654: [23:46:07] <Pyromanik> 1 page checkout on swipestripe, ever done anything like it?
1655: [23:46:20] <Pyromanik> I'd like to be able to edit cart contents from checkout page
1656: [23:46:33] <Pyromanik> what do you suggest to be the best way to achieve this?
1657: [23:47:22] * robert_ has joined #silverstripe
1658: [23:47:22] * robert_ quit (Changing host)
1659: [23:47:22] * robert_ has joined #silverstripe
1660: [23:50:45] <coldblooded01> i am on 3.1
1661: [23:50:51] <coldblooded01> and master for UDF
1662: [23:50:59] <coldblooded01> _config.php says 3.1 too
1663: [23:51:03] <coldblooded01> for framework
1664: [23:51:37] <spronk> coldblooded01: oh
1665: [23:51:40] <spronk> coldblooded01: you may be on 3.1
1666: [23:51:45] <spronk> but you haven't updated your Page.php
1667: [23:52:00] <spronk> update Page.php and swap the public static $db for private static $db
1668: [23:52:25] <Pyromanik> you need to have EVERYTHING on 3.1
1669: [23:52:34] <Pyromanik> ie, Framework, CMS, AND installer
1670: [23:53:18] * Pyromanik suddenly remembers that Page.php isn't part of cms
1671: [23:53:19] <spronk> fucking hell
1672: [23:53:33] <coldblooded01> >.>
1673: [23:53:35] <coldblooded01> got ya
1674: [23:53:38] <spronk> SS seriously needs to display the actual message with errors in the CMS, instead ofj ust "notice on line blablabl"
1675: [23:55:18] <Pyromanik> spronk: it does
1676: [23:55:28] <spronk> where!?
1677: [23:55:33] <Pyromanik> dragonfly
1678: [23:55:38] <spronk> ohhh
1679: [23:55:43] <spronk> forgot about that shit
1680: [23:56:10] <Pyromanik> full error is dumped by GET request
1681: [23:56:15] <spronk> wait
1682: [23:56:20] <spronk> where find in dfly?
1683: [23:56:23] <coldblooded01> Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in /home/www/XXX/cms/code/model/ErrorPage.php on line 310
1684: [23:56:26] <Pyromanik> just the little note in the CMS itself isn't full.
1685: [23:56:35] <Pyromanik> coldblooded01: did you update page.php?
1686: [23:56:44] <Pyromanik> spronk: either console or network.
1687: [23:56:46] <spronk> coldblooded01: update your Page.php
1688: [23:56:46] <spronk> hmm
1689: [23:57:00] <Pyromanik> coldblooded01: the error message tells you EXACTLY what is wrong.
1690: [23:57:34] <coldblooded01> sweet
1691: [23:58:29] <Pyromanik> coldblooded01: look.
1692: [23:58:31] <Pyromanik> https://github.com/silverstripe/silverstripe-installer/blob/3.1/mysite/code/Page.php
1693: [23:58:35] <Pyromanik> it's very simple.
1694: [23:58:54] * folibis has joined #silverstripe
1695: [23:58:56] <Pyromanik> you are still not using 3.1 the full compliment.
1696: [23:58:58] <folibis> hi all!
1697: [23:59:06] <Pyromanik> privet folibis
1698: [23:59:12] <folibis> )

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