#silverstripe IRC Log

IRC log for 12 December 2013

All timestamps are in UTC.

1: [00:00:00] <antmas> not really travelling as such, but not staying at home though
2: [00:02:33] * UncleCheese quit (Quit: UncleCheese)
3: [00:04:46] <antmas> oh yeah
4: [00:04:54] <antmas> a few people followed my on Twitter the last week
5: [00:05:12] <antmas> I know Snowman23 and Colin[pi] did
6: [00:05:30] <antmas> anyone happen to know who '@michaelkors9CAT' is?
7: [00:05:30] <Snowman23> :O
8: [00:05:33] <Snowman23> Not me
9: [00:05:47] <antmas> Snowman23: YES YOU DID
10: [00:05:51] <Snowman23> o.o
11: [00:05:54] <Snowman23> I meant I don't know who that is
12: [00:06:00] <antmas> oh
13: [00:06:02] <antmas> :P
14: [00:06:05] <Snowman23> I now have coworkers and clients following me on Twitter
15: [00:06:13] <Snowman23> I should probably delete all those tweets that might get me fired...
16: [00:06:18] <antmas> just thought it might be someone from here...
17: [00:06:26] <Snowman23> maybe, but not one I recognize!
18: [00:06:36] <Snowman23> I feel liek I was meant to be doing something at lunch today...
19: [00:06:42] <antmas> someone from New Jersey apparently
20: [00:07:00] <antmas> guzzlefry: ?
21: [00:07:47] <antmas> ok no
22: [00:07:49] <antmas> It's a bot
23: [00:07:51] <antmas> :P
24: [00:08:12] <antmas> 9 tweets and following 2k people
25: [00:10:24] <Jayden90> Anyone know how to restrict TreeDropdownField to only allow selection of pages of a particular class?
26: [00:11:51] <Jayden90> Can't realy see anything that would do it here: http://api.silverstripe.org/3.1/class-TreeDropdownField.html
27: [00:11:57] <antmas> Jayden90: AllowedChildren?
28: [00:13:51] <Jayden90> antmas: Where is that? It won't help to set that on the page itself. Will this do it? I don't get it: http://api.silverstripe.org/3.1/class-TreeDropdownField.html#_filterMarking
29: [00:15:34] <Jayden90> Hmm http://api.silverstripe.org/3.1/class-TreeDropdownField.html#_setFilterFunction
30: [00:16:51] <Jayden90> No explanation in the API how to actually use the setFilterFunction. What do i pass it?
31: [00:34:46] <Ryan-Toast> Day long xmas party tomorrow, aww yiss.
32: [00:36:05] * Liquide quit ()
33: [00:40:09] * SMaction quit ()
34: [00:43:29] <guzzlefry> huh?
35: [00:43:33] <guzzlefry> antmas: I'm from Florida.
36: [00:53:45] * UncleCheese has joined #silverstripe
37: [01:02:33] <antmas> guzzlefry: nvm, thought it might have been you
38: [01:02:37] <antmas> turns out it's a bot :P
39: [01:11:07] * zippy__ has joined #silverstripe
40: [01:11:21] <Ryan-Toast> Snowman23: That's why I don't add people I work with.
41: [01:11:26] <zippy__> antmas: impacted tooth?
42: [01:11:50] <zippy__> antmas: just had 3 fillings yesterday. replacements from ones several years ago
43: [01:12:32] <antmas> zippy__: yeah for bottom one, top one is on a funny angle so is causing chaos with ulcers on my cheek
44: [01:12:44] <antmas> zippy__: what time did you go? I was there at 4
45: [01:12:50] <antmas> also
46: [01:13:02] <antmas> w00t, spotify free is now on iOS and Android
47: [01:13:30] <zippy__> 1:15-2:25~
48: [01:13:34] <zippy__> richmond dental?
49: [01:13:39] <zippy__> 2:45 rather
50: [01:14:00] <antmas> zippy__: yeah, the one by my work
51: [01:14:19] <antmas> and across the ally from the dairy
52: [01:14:44] <zippy__> yea
53: [01:15:19] <antmas> zippy__: what'd that cost you?
54: [01:15:26] <zippy__> not sure yet
55: [01:15:40] <zippy__> wife sorting it :)
56: [01:15:45] <antmas> :P
57: [01:15:50] <zippy__> I just ran out of there like a girl
58: [01:15:58] <zippy__> \o/ with the arms flaiing about
59: [01:16:41] <antmas> lol
60: [01:16:48] <antmas> I heard they are the cheapest in tasman
61: [01:16:59] <Ryan-Toast> lol
62: [01:17:06] <Ryan-Toast> \o/
63: [01:17:06] <antmas> see you later Pandora :P
64: [01:17:10] <Ryan-Toast> _o_
65: [01:17:19] <antmas> o=
66: [01:17:20] <Ryan-Toast> /o\
67: [01:17:21] <Ryan-Toast> lol
68: [01:32:30] * joelpittet quit ()
69: [01:50:28] * Jayden90 quit (Quit: Jayden90)
70: [01:57:27] * Azure has joined #silverstripe
71: [01:57:53] * lab-notes quit (Ping timeout: 252 seconds)
72: [02:11:50] * lab-notes has joined #silverstripe
73: [02:16:42] * lab-notes quit (Ping timeout: 246 seconds)
74: [02:57:07] * nhorstmeier_ has joined #silverstripe
75: [03:04:07] * wracu quit (Ping timeout: 272 seconds)
76: [03:05:59] * Jayden90 has joined #silverstripe
77: [03:08:54] * Ryan-Toast quit (Quit: Ryan-Toast)
78: [03:16:45] <antmas> -_- TPB is down
79: [03:18:15] <Snowman23> Why are you loking at work?!
80: [03:21:09] <guzzlefry> antmas: They just changed TLDs again.
81: [03:21:15] <guzzlefry> I think it's .ax now...
82: [03:26:30] <irogue_> .org has pretty much always redirected to the correct tld they're using, so i just always go there
83: [03:26:33] <irogue_> seems to be .ac now
84: [03:27:52] * Snowman23 has left #silverstripe
85: [03:27:52] * Snowman23 has joined #silverstripe
86: [03:29:20] * nhorstmeier has joined #silverstripe
87: [03:29:45] <nhorstmeier> thanks @Snowman23
88: [03:29:56] <Snowman23> :)
89: [03:30:09] * nhorstmeier_ quit (Quit: Page closed)
90: [03:32:32] <antmas> Snowman23: not looking from here, VPN'ing to home :)
91: [03:32:38] <antmas> guzzlefry: and yeah it is
92: [03:33:21] <antmas> wait
93: [03:33:25] <antmas> nope, not .ax
94: [03:34:05] <antmas> .ac works
95: [03:34:30] <guzzlefry> antmas: They must think they're...pretty cool.
96: [03:34:54] <antmas> guzzlefry: ZING!
97: [03:40:13] <irogue_> hmmm, what to dinner tonight...
98: [03:40:46] <antmas> irogue_: I was wondering the same thing
99: [03:40:52] <antmas> I'm thinking Thai
100: [03:44:35] * antmas quit (Quit: Page closed)
101: [03:49:12] * joelpittet has joined #silverstripe
102: [03:57:41] * nickmolhoek quit (Quit: nickmolhoek)
103: [04:01:10] * SightUnseen has joined #silverstripe
104: [04:03:33] * SightUnseen has left #silverstripe
105: [04:08:10] * cloph_away quit (Ping timeout: 246 seconds)
106: [04:13:04] * cloph_away has joined #silverstripe
107: [04:19:00] <Jayden90> is there a way to pass an array as a custom template function parameter?
108: [04:20:44] <guzzlefry> ArrayList?
109: [04:21:51] <Jayden90> guzzlefry: Thats how to shoot a loopable list from php to the template. I need to do the opposite
110: [04:22:49] <Jayden90> I have an awsome function that currently only accepts strings, would be nice to be able to pass a list <% loop $FilterChildren(...)
111: [04:23:31] <Jayden90> Current example: <% loop $FilterChildren('all', 'TreatmentPage') %>
112: [04:24:34] <Jayden90> Would like: <% loop $FilterChildren('all', 'TreatmentPage,BlahPage,ContactPage,EtcPage') %>
113: [04:24:40] <Jayden90> Might just explode on comma
114: [04:24:47] <Snowman23> https://twitter.com/SlingshotNZ/status/410983865545523200 I guess someone forgot to tell them!
115: [04:25:34] * nhorstme_ has joined #silverstripe
116: [04:28:14] * nhorstmeier quit (Ping timeout: 240 seconds)
117: [04:28:26] * Bollig|DesignCty quit (Ping timeout: 264 seconds)
118: [04:29:52] * CodeTrap quit (Ping timeout: 260 seconds)
119: [04:30:49] * CodeTrap has joined #silverstripe
120: [04:37:41] <Jayden90> Relating to my earlier question, $MyTemplateFunction('list, items, like, this') exploded in the php seems to be the best way to pass a list from the template
121: [04:38:55] * SightUnseen has joined #silverstripe
122: [04:44:50] * DigNZ quit (Quit: DigNZ)
123: [04:55:20] * DigNZ has joined #silverstripe
124: [04:56:41] * joelpittet quit (Remote host closed the connection)
125: [04:57:13] * UncleCheese quit (Quit: UncleCheese)
126: [04:57:29] * new_learner has joined #silverstripe
127: [05:08:39] * DigNZ quit (Quit: DigNZ)
128: [05:18:20] * SightUnseen has left #silverstripe
129: [05:21:13] * UncleCheese has joined #silverstripe
130: [05:32:18] * nhorstme_ quit ()
131: [05:32:20] * UncleCheese quit (Quit: UncleCheese)
132: [05:32:26] * robert_ has joined #silverstripe
133: [05:33:30] * robert_ has left #silverstripe
134: [05:40:54] * Bollig|DesignCty has joined #silverstripe
135: [05:43:27] * Bollig|DesignCty quit (Read error: Connection reset by peer)
136: [05:50:43] * joelpittet has joined #silverstripe
137: [05:51:08] * cloph_away quit (Ping timeout: 240 seconds)
138: [05:55:23] * Colin[pi] quit (Ping timeout: 272 seconds)
139: [05:56:08] * cloph_away has joined #silverstripe
140: [06:01:28] <new_learner> $fields->addFieldToTab("Root.Main", new UploadField('Foto','Capa do &Aacute;lbum (392 x 268)'), 'Content');
141: [06:02:32] <new_learner> after this line ...i want to call setAllowedFileCategories('image')......how can i do this??
142: [06:05:16] * guzzlefry has left #silverstripe
143: [06:08:02] * shakesoda is now known as flatsoda
144: [06:08:17] * flatsoda is now known as shakesoda
145: [06:26:28] <Zauberfisch23> new_learner: there are 2 ways to do that
146: [06:27:34] <new_learner> i m learner and will be happy to learn both
147: [06:30:44] <Zauberfisch23> http://paste2.org/v5HnWpNC
148: [06:33:34] <new_learner> thnx Zauberfisch23
149: [06:49:26] * Jayden90 quit (Ping timeout: 264 seconds)
150: [06:58:50] * robert_ has joined #silverstripe
151: [06:58:50] * robert_ quit (Changing host)
152: [06:58:50] * robert_ has joined #silverstripe
153: [07:13:43] * simon_w|air has joined #silverstripe
154: [07:14:15] * Azure quit (Quit: My MBP went to sleep.)
155: [07:16:07] * abitran quit (Ping timeout: 250 seconds)
156: [07:16:17] * abitran has joined #silverstripe
157: [07:32:51] * joelpittet quit (Remote host closed the connection)
158: [07:41:16] * Colin[pi] has joined #silverstripe
159: [07:42:22] * zippy___ has joined #silverstripe
160: [07:42:36] * zippy__ quit (Ping timeout: 260 seconds)
161: [07:42:36] * zippy___ is now known as zippy__
162: [08:18:25] * ARNHOE has joined #silverstripe
163: [09:08:28] * Shrike_Finland has joined #silverstripe
164: [09:08:34] <Shrike_Finland> Hi,
165: [09:09:15] <Shrike_Finland> TinyMCE alternative any good: http://imperavi.com/redactor/
166: [09:16:48] * kinglozzer has joined #silverstripe
167: [09:16:53] * violetina has joined #silverstripe
168: [09:28:51] <Zauberfisch23> Shrike_Finland: haven't seen that one before
169: [09:28:54] <Zauberfisch23> nice to know
170: [09:29:21] <Zauberfisch23> but as its not FOSS, its not an option for silverstripe :/
171: [09:30:23] <Zauberfisch23> well, actually, the OEM license for 400$ might actually work
172: [09:34:39] <simon_w|air> We've started using http://ckeditor.com for our frontend editing
173: [09:35:59] <new_learner> i have mistakenly commited something in git but haven't pushed it ....so how can i undo that commit?
174: [09:37:15] <simon_w|air> git reset HEAD~1
175: [09:37:20] <simon_w|air> maybe with a --hard
176: [09:49:05] <Marvanni2> <% if LinkingMode not link %> why does this always return true, even when the value is link?
177: [09:53:25] <Marvanni2> ah its just !=, I thought not was the not equal operator...
178: [09:55:12] <new_learner> http://paste2.org/3bF2GO5y ..what is $area here??
179: [09:57:49] <kinglozzer> new_learner: class name
180: [09:59:27] <new_learner> how can class name start with $ ?
181: [09:59:33] <new_learner> is it allowed?
182: [10:00:55] * simon_w|air quit (Quit: This computer has gone to sleep)
183: [10:02:08] * dangerdan has joined #silverstripe
184: [10:02:52] <new_learner> http://paste2.org/cddVayX4 am i correct in this link??
185: [10:04:12] <dangerdan> my getCMSValidator seems to be broken? even for pages i thought had required fields (ie page titles) it lets me enter a blank field, is this right?
186: [10:07:21] <kinglozzer> new_learner: You don't need the create(), but it looks correct apart from that
187: [10:07:42] <kinglozzer> dangerdan: Which version of SS? I think it was fixed ~3.1.x
188: [10:09:09] <kinglozzer> Ah I'm thinking of a different issue with deleting/restoring pages with getCMSValidator()
189: [10:09:16] <kinglozzer> It should work fine
190: [10:16:23] <dangerdan> yeah i'm on 3.1
191: [10:16:41] <dangerdan> its not just pages, its on everything, if i try add it to dataobjects, it does nothing :S
192: [10:19:36] <kinglozzer> dangerdan: Can you paste it somewhere?
193: [10:29:09] <dangerdan> the code?
194: [10:29:13] <dangerdan> for the model?
195: [10:29:57] <kinglozzer> The getCMSValidator()
196: [10:30:57] <dangerdan> http://pastebin.com/ANAP8pRv
197: [10:36:12] <kinglozzer> Looks fine to me, I've got a similar validator that works fine in 3.1.2
198: [10:37:45] <Shrike_Finland> ckeditor seems very nice too. Simon, was it easy to implement it on frontend?
199: [10:38:28] <Colin[pi]> I just facepalmed so hard my hand is now sticking out the back of my head
200: [10:38:57] <Colin[pi]> on one of my sites, in the admin there is a field for multiple email addresses
201: [10:39:09] <Colin[pi]> I get an email from the client
202: [10:39:27] <Colin[pi]> they ask "I cant remember how to separate the address, is it a colon or semi colon?"
203: [10:39:43] * g4b0_ has joined #silverstripe
204: [10:39:49] <Colin[pi]> immediately next to the field, it says "(separate addresses with a comma)"
205: [10:39:54] <Colin[pi]> RIGHT NEXT TO THE FIELD
206: [10:39:58] <Colin[pi]> ON THE SCREEN
207: [10:40:17] <kinglozzer> :P
208: [10:40:22] <Colin[pi]> FFFFFFFUUUU
209: [10:40:28] <kinglozzer> But... you can do the thinking for me
210: [10:49:27] <g4b0_> hi all
211: [10:49:38] <Snowman23> lol
212: [10:49:39] <g4b0_> big problem with GridField:
213: [10:50:26] <g4b0_> Page has_one DOContainer
214: [10:50:40] <g4b0_> DOContainer many_many DO
215: [10:51:12] <g4b0_> Editing Page I would like to have a GridField
216: [10:51:28] <g4b0_> showing DOContainer DataObjetcs
217: [10:51:34] <g4b0_> it works fine
218: [10:52:58] <g4b0_> GridField::create("DOContainer.DOs", "DOContainer", $this->owner->DOContainer()->DOs())->setConfig($config);
219: [10:53:33] <g4b0_> but GridFieldAddExistingAutocompleter can't link DO
220: [10:53:48] <g4b0_> it fails its XHR request
221: [10:55:09] <g4b0_> the code: http://pastebin.com/X2HfXm6Z
222: [10:56:14] <g4b0_> any ideas?
223: [10:56:41] <kinglozzer> g4b0_: What's the error from the XHR request
224: [10:58:12] <g4b0_> the URL
225: [10:58:21] <g4b0_> is wrong
226: [10:59:39] <g4b0_> http://sstest.zk/admin/pages/edit/EditForm/field/FooterBar.Widgets?locale=it_IT
227: [11:00:13] <g4b0_> thats the XHR URL when I click on "Link Existing" button
228: [11:00:28] <g4b0_> look at the end of the URL
229: [11:00:34] <g4b0_> FooterBar.Widgets
230: [11:01:01] <g4b0_> FooterBar is the has_one relationship name
231: [11:03:31] <g4b0_> I solved by myself !!
232: [11:03:58] <g4b0_> error was on line 54
233: [11:04:13] <g4b0_> the first argument of GridField::create
234: [11:04:20] <g4b0_> must be $name
235: [11:04:34] <g4b0_> and not "$name.Widgets"
236: [11:12:53] * dangerdan quit (Quit: Page closed)
237: [11:36:14] * Colin[pi] quit (Ping timeout: 264 seconds)
238: [11:40:21] * NobrainerWeb has joined #silverstripe
239: [11:41:18] <NobrainerWeb> Hi
240: [11:42:02] <NobrainerWeb> Anyone managed to get the CalendarWidget from unclecheese/silverstripe-event-calendar to start on monday and not sunday?
241: [11:42:11] * new_learner quit (Ping timeout: 272 seconds)
242: [11:43:39] <NobrainerWeb> I found the file javascripts/lang/calendar_en.js and made my own _da.js version - there is an option to set startOnMonday: true or false. Setting it to true does not seem to have any effect though :-(
243: [11:44:20] * g4b0_ quit (Ping timeout: 260 seconds)
244: [11:47:22] * zippy__ quit (Quit: zippy__)
245: [11:54:51] <NobrainerWeb> Ok i found some info here: https://github.com/unclecheese/silverstripe-event-calendar/pull/24
246: [12:44:14] * fe has joined #silverstripe
247: [12:44:37] * fe is now known as Guest71510
248: [12:48:59] <Guest71510> Anyone able to give me some help with composer / git?
249: [12:51:35] <Zauberfisch23> maybe
250: [12:54:31] <Guest71510> I'm trying to install silvertripe/ecommerce using composer: composer create-project --no-dev silverstripe/installer ./ecommercetest 3.1.x-dev
251: [12:56:10] <Guest71510> I know that it's a dev version but it clearly has a few bugs and I need to get the latest fixes from the master branch but don't really want to do:composer create-project --no-dev silverstripe/installer ./ecommercetest dev-master because it requires the master branch of silverstripe 3,1
252: [12:57:26] <Guest71510> So I'm trying to keep SS3.1 at a known stable version but get the commerce module working by somehow getting the latest commits from the master branch of the module.
253: [13:00:19] * g4b0_ has joined #silverstripe
254: [13:08:45] * violetina quit (Remote host closed the connection)
255: [13:10:08] * violetina has joined #silverstripe
256: [13:12:00] * UndefinedOffset has joined #silverstripe
257: [13:17:22] <Zauberfisch23> Guest71510: I am not sure if you can seperate that using the comandline
258: [13:17:48] <Zauberfisch23> but you can just open the composer.json in your favourite text editor and define the versions per package there
259: [13:19:16] <Guest71510> Zauberfisch23: Thanks, I'll try that - was a bit concerned re dependencies.
260: [13:22:52] <Guest71510> Zauberfisch23: composer complains; sunnysideup/ecommerce dev-master requires silverstripe/framework 3.1.x-dev -> no matching package found. I'm trying to avoid installing silverstripe/framework 3.1.x-dev because I don't know what it will break.
261: [13:23:45] <Zauberfisch23> well, then you are out of luck I guess
262: [13:24:07] <Zauberfisch23> if ecommerce lists 3.1 as a dependency, maybe it depends on a bugfix that is only in the latest version?
263: [13:24:28] <Zauberfisch23> this is not the fault of composer, composer is doing exactly what it sould
264: [13:24:47] <kinglozzer> It's the ecommerce module's fault, it's composer.json was last updated 3 months ago
265: [13:24:54] <Zauberfisch23> or that
266: [13:25:14] <Zauberfisch23> you can of course submit a pull request to fix the composer file of the module
267: [13:25:17] <kinglozzer> 3.1.2 is more recent than that, so it should at most be >= 3.1.2
268: [13:36:04] <Guest71510> OK, thanks, I'll try and do that - not sure how at the moment... I think I'll have to set up a separate project with the dev-master version of Silverstripe and the ecommerce module, make the changes and then do a pull request.
269: [13:36:54] <Guest71510> I'm a bit new to pull requests but I need to get my head round it so I can send bug fixes upstream.
270: [13:41:49] <Zauberfisch23> Guest71510: on github, open the ecommerce module, click on "fork", and then you have it as a repo on your github account
271: [13:42:04] <Zauberfisch23> then make the fix you want to
272: [13:42:10] <Zauberfisch23> and then press on the pull request button
273: [13:42:13] <Zauberfisch23> thats basicly it
274: [14:26:52] * Shrike_Finland quit (Quit: Leaving.)
275: [14:32:50] * catcher has joined #silverstripe
276: [14:43:21] <Guest71510> kinglozzer and Zauberfisch23: Thanks, I've just forked my first github repo. :-)
277: [14:52:38] <Zauberfisch23> Guest71510: also, you can make composer use your own fork
278: [14:53:04] <Zauberfisch23> see an example in my boilerplate:
279: [14:53:04] <Zauberfisch23> https://github.com/Zauberfisch/silverstripe-boilerplate/blob/dev/composer.json#L16
280: [15:05:58] <NobrainerWeb> Zauberfisch23: Do you need to add that to packagist to use it then or?
281: [15:07:14] <NobrainerWeb> Zauberfisch23: nvm, i get it
282: [15:07:35] <NobrainerWeb> time to go home, brain has shutdown for today
283: [15:07:42] * NobrainerWeb quit (Quit: NobrainerWeb)
284: [15:14:01] <kinglozzer> Is anyone else running Win 8 in VMWare?
285: [15:14:29] <kinglozzer> It's unusably slow for me, no idea why, has plenty of CPU / memory allowance
286: [15:19:42] <Marvanni2> Hi, I have a usecase where I create x amount of children for a certain pagetype
287: [15:19:59] <Marvanni2> after the CMS form is submitted the method updatetreenodes is called
288: [15:20:11] <Marvanni2> But this only gets the newly created tree item
289: [15:20:19] <Marvanni2> i need to get the children as well
290: [15:20:30] <Marvanni2> any idea how to get those on page save?
291: [15:27:12] <lewellyn> kinglozzer: make sure you have VT-x enabled.
292: [15:28:20] <kinglozzer> It is enabled, 2 cpu cores allowed, 4gb RAM :/
293: [15:36:41] <kinglozzer> Well, CPU usage is at a constant 100% and task manager refuses to open
294: [15:38:48] <Marvanni2> ok to narrow it down... any examples how to call 'core' entwine functions?
295: [15:40:50] * ARNHOE quit ()
296: [15:45:55] <kinglozzer> Marvanni2: $('selector').function() directly should work
297: [15:46:00] <kinglozzer> I /think/
298: [15:46:25] * Azure has joined #silverstripe
299: [15:53:43] <Marvanni2> like this?
300: [15:53:43] <Marvanni2> $('.cms-tree').entwine('ss.tree').updateNodesFromServer(1)
301: [16:11:28] * pessimismoefasti has joined #silverstripe
302: [16:12:22] <pessimismoefasti> Hello, someone has spammed the forum area of the silvestripe.org site
303: [16:18:51] <kinglozzer> Marvanni2: Maybe, or possibly $('.cms-tree').updateNodesFromServer(1);
304: [16:19:02] <kinglozzer> Though you might need to be in the 'ss' entwine namespace
305: [16:22:01] <kinglozzer> So $.entwine('ss', function($) { $('form').entwine({ onsubmit: function() { $('.cms-tree').updateNodesFromServer(1);} }); });
306: [16:22:03] <kinglozzer> Or something
307: [16:29:45] * g4b0_ quit (Quit: Sto andando via)
308: [16:31:51] * houleness has joined #silverstripe
309: [16:33:36] <houleness> Can I get the current page ID in the cms while create a new dataobject? In other words, I'm trying to filter categories associated with the current page with a line of code like this - $categories = ListCategory::get()->filter("ListPageID","$this->CurrentPage()->ID")->sort("Category ASC"); What can I use for the CurrentPage()->ID bit?
310: [16:35:29] <houleness> @Zauberfisch23 any ideas how I can do that?
311: [16:36:52] <houleness> Here's a look at my current getCMSFields function - http://www.sspaste.com/paste/show/52a9e3ac1fd55
312: [16:37:12] <houleness> All works, I just can't pull in the categories associated with that page
313: [16:38:32] <Marvanni2> you have a has_many relation?
314: [16:40:48] <houleness> yeah a ListCategory has_one ListPage and a ListPage has_many ListCategory
315: [16:41:29] <Marvanni2> so you can do $this->ListCategories()->sort("Category ASC") ?
316: [16:41:35] <houleness> The problem is the ListItem hasn't established it's relationship with the list page yet, because it's before save
317: [16:42:06] <kinglozzer> houleness: I might be misunderstanding, but can't you do $this->CurrentPage()->ListCategories()->sort("Category ASC")?
318: [16:42:09] <kinglozzer> Oh ^^ :P
319: [16:42:29] <houleness> @Marvanni2 ohhhh!!! lemme check on that
320: [16:43:11] <houleness> oh that won't work because I need the categories associated with the page not the list items
321: [16:43:58] <Marvanni2> then wat kin says...?
322: [16:44:11] <kinglozzer> If it's before the object has been saved you might be out of luck
323: [16:44:14] <houleness> That gives me "the method 'currentpage' does not exist on 'ListItem'"
324: [16:44:14] <Marvanni2> $this->RelatedPage()->ListCategories()->sort() ;
325: [16:44:36] <houleness> I'm thinking there's gotta be a way to get the page ID in the CMS
326: [16:44:46] <houleness> of the page associated with the current DO
327: [16:44:57] <kinglozzer> houleness: If you've not saved it, then it's not associated
328: [16:45:01] <kinglozzer> That's the problem
329: [16:45:26] <houleness> Right, but it's in places like the breadcrumbs so there is some relation there
330: [16:45:58] <Marvanni2> maybe try to get the gridFields parent
331: [16:46:19] <houleness> Right, I'm thinking something along those lines
332: [16:48:24] <kinglozzer> houleness: Some people use Controller::curr()->getRequest()->params() etc to try and parse the ID out of the URL
333: [16:48:53] <kinglozzer> Not sure if you can access the GridField from getCMSFields() but might be worth a try as well
334: [16:49:12] <houleness> Can I get that if the url is something like this - http://mysite.com/admin/pages/edit/EditForm/field/ListItems/item/new
335: [16:49:24] <kinglozzer> Ah, no
336: [16:54:20] <Marvanni2> http://sspaste.com/paste/show/52a9e7cfa06d6
337: [16:54:24] <Marvanni2> this is there...
338: [16:54:40] <Marvanni2> also updateNodesFromServer exists
339: [16:54:47] <Marvanni2> but this.updateNodesFromServer(135); does nothing
340: [16:55:27] <houleness> I wouldn't even know where to start with that
341: [16:58:27] * houleness has left #silverstripe
342: [16:58:28] <Marvanni2> hehe i asked it before :)
343: [16:58:29] <Marvanni2> http://logs.simon.geek.nz/index.php?date=2013-11-19
344: [16:58:36] <Marvanni2> and you answered as well
345: [16:58:41] <Marvanni2> still no joy :)
346: [16:59:55] <kinglozzer> Ah, I'd just found houleness' solution: Controller::curr()->currentPage()->ID
347: [16:59:58] <kinglozzer> :P
348: [17:00:19] * houleness has joined #silverstripe
349: [17:00:24] <kinglozzer> houleness: Controller::curr()->currentPage()->ID
350: [17:00:50] <kinglozzer> Marvanni2: You're telling it to update the tree node as soon as it spots the .cms-tree div, so right on first page load probably
351: [17:01:20] <kinglozzer> Home time!
352: [17:01:26] <kinglozzer> Good luck both of you :P
353: [17:01:32] * kinglozzer quit ()
354: [17:02:19] <houleness> Thanks for the help guys! This bandaid works - http://www.sspaste.com/paste/show/52a9e9a13e8cc
355: [17:02:32] <houleness> But I hate to make the content managers have to do this extra step
356: [17:04:09] <houleness> Bah, no dice with Controller::curr()->currentPage()->ID
357: [17:14:40] * houleness quit (Quit: houleness)
358: [17:25:38] * joelpitt_ has joined #silverstripe
359: [17:29:56] * Azure quit (Quit: Textual IRC Client: www.textualapp.com)
360: [17:33:28] * Azure has joined #silverstripe
361: [18:12:07] * SightUnseen has joined #silverstripe
362: [18:12:41] * SightUnseen has left #silverstripe
363: [19:00:58] * joelpittet has joined #silverstripe
364: [19:03:52] * joelpitt_ quit (Ping timeout: 240 seconds)
365: [19:04:39] * robert___ has joined #silverstripe
366: [19:05:21] * antmas has joined #silverstripe
367: [19:05:35] <antmas> morning!
368: [19:06:16] <antmas> Snowman23: turns out, Doll is actually spelt Dole in my context :P
369: [19:06:21] <antmas> never knew that :O
370: [19:06:32] * robert_ quit (Ping timeout: 240 seconds)
371: [19:24:10] * antmas quit (Quit: Page closed)
372: [19:24:32] * antmas has joined #silverstripe
373: [19:37:01] * DigNZ has joined #silverstripe
374: [19:38:27] <antmas> is there a term for web side banners?
375: [19:41:48] * abitran quit (Ping timeout: 246 seconds)
376: [19:41:56] * abitran has joined #silverstripe
377: [19:44:41] * simon_w has joined #silverstripe
378: [19:47:05] * unsignedint has joined #silverstripe
379: [19:47:16] <unsignedint> morning fellows
380: [19:47:36] <unsignedint> does anyone know if there is, or was an effort to, replicate getCMSFields_forPopup() in SS3
381: [19:48:21] <unsignedint> It seems silly to use a GridField just to have the ability to edit the properties of a has_one DataObject
382: [19:48:33] * zippy__ has joined #silverstripe
383: [19:49:00] <unsignedint> and no I dont want to make those properties part of the main object and include all the fields in getCMSFields()
384: [19:50:03] <simon_w> unsignedint, http://addons.silverstripe.org/add-ons/simonwelsh/hasoneedit lets you add the fields to getCMSFields() while still storing them in the has_one
385: [19:50:28] <unsignedint> oh, perfect. thanks!
386: [19:50:54] <unsignedint> oooh first package I have seen on packagist that wasnt using github :P
387: [19:52:34] <simon_w> Well, packagist can't handle most of mine :p
388: [19:55:25] * Ryan-Toast has joined #silverstripe
389: [20:01:22] <catcher> simon_w, do you think that's likely to end up in core?
390: [20:01:30] <simon_w> catcher, no
391: [20:01:56] * travis-ci has joined #silverstripe
392: [20:01:56] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#679 (3.1 - 288303c : Ingo Schommer): The build passed.
393: [20:01:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/dec2be38fa6b...288303c43c29
394: [20:01:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/15360837
395: [20:01:56] * travis-ci has left #silverstripe
396: [20:08:42] * travis-ci has joined #silverstripe
397: [20:08:42] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#680 (post-2.4 - 61370e4 : oilee80): The build passed.
398: [20:08:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/4ec85a412f0e...61370e411647
399: [20:08:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/15362349
400: [20:08:42] * travis-ci has left #silverstripe
401: [20:15:28] <zippy__> raining in welly?
402: [20:17:16] <Ryan-Toast> Is there a way that you can use sitetree to display all pages content on one template? Like a one pager?
403: [20:19:17] * UncleCheese has joined #silverstripe
404: [20:19:25] * SightUnseen has joined #silverstripe
405: [20:20:00] <catcher> Ryan-Toast, you could write a function to retrieve all pages & concatenate their content
406: [20:20:05] * SightUnseen has left #silverstripe
407: [20:21:18] <Ryan-Toast> catcher: Cool, would that just be a custom SQL, or is there a method for pulling page content?
408: [20:23:20] <catcher> Ryan-Toast, you can use the ORM, just have it return a DataList of all Page subclasses (unless you extend SiteTree directly), and in the template, <% loop Pages %>$Content<% end_loop %>
409: [20:23:47] * joelpittet quit (Remote host closed the connection)
410: [20:23:57] <Ryan-Toast> catcher: Cheers :) Thiniking of making a one page theme. Because they're easy.
411: [20:24:48] <catcher> cool :)
412: [20:25:44] <Ryan-Toast> catcher: May make it an optional display for https://github.com/Rhym/ss_boilerplate
413: [20:45:45] * Oishi has joined #silverstripe
414: [20:46:24] <Oishi> Hey there, we're having some issues pushing a dev site live, perhaps not strictly due to silverstripe, but it does appear we're seeing old files, even though images and HTML are being served from the right location
415: [20:47:09] <Oishi> Doing a rebuild shows some older errors that show that some files are not the latest
416: [20:47:14] <unsignedint> have you done a /dev/build?flush=1 ?
417: [20:47:27] <unsignedint> oh
418: [20:47:29] <unsignedint> shoudl have read
419: [20:47:57] * unsignedint would delete the cache folders and try again
420: [20:47:59] <Oishi> I did a flush=all
421: [20:48:04] <unsignedint> also verify that the files are indeed the latest versions
422: [20:48:22] <Oishi> looking through my timesheets, and the days the files were edited it does seem so
423: [20:48:42] <unsignedint> can you open a file on the server and verify the content is correct?
424: [20:48:50] <Oishi> yeah I have and it is
425: [20:48:56] <unsignedint> strange
426: [20:49:19] <unsignedint> and youre certain the site is being served from the correct location
427: [20:50:17] <Oishi> my web guy is sure of it, and the URL seems right
428: [20:54:56] * violet- has joined #silverstripe
429: [20:55:24] <catcher> Oishi, what's looking wrong? If it's images, be sure the the assets/ folder is up to date.
430: [20:55:41] * violetina quit (Ping timeout: 245 seconds)
431: [20:56:09] <Oishi> It's basically reverted to pre-dev
432: [20:56:22] <Ryan-Toast> Does anyone here make games?
433: [20:56:25] <Oishi> looking at files, it appears the new ones don't resolve from the IP
434: [20:56:47] <Oishi> so the site is displaying correctly, but made up of the older files, poor database :s
435: [20:57:05] <Oishi> it's like the IP is a rewrite rather than redirect
436: [20:57:55] <Oishi> the IP is also showing random ports for the initiator column on chrome dev tools, xx.xx.xx.xx/:5, , xx.xx.xx.xx/:6, , xx.xx.xx.xx/:11, , xx.xx.xx.xx/:8,
437: [20:58:08] <catcher> Oishi, are the files wrong? Or the content in each page?
438: [20:59:31] <Oishi> The content is pretty similar between the two, so it's hard to tell
439: [20:59:39] <Oishi> but the template files are definitely wrong
440: [21:21:03] * Guest71510 quit (Ping timeout: 272 seconds)
441: [21:21:56] * UndefinedOffset quit (Quit: Leaving.)
442: [21:24:55] * robert___ is now known as robert_
443: [21:32:33] <unsignedint> lol, microsoft thinks im a "victim" of software counterfeiting
444: [21:32:45] <Ryan-Toast> dat cracked windows.
445: [21:32:53] <unsignedint> inorite?
446: [21:33:08] <Ryan-Toast> I have a MSDN account, so I get all their shit for free.
447: [21:33:10] <unsignedint> I do have a legit CD key but its for windows 7 home premium and I wanted ultimate
448: [21:33:59] <unsignedint> well lucky for some :P I used to have a MSDN account when I was doing my degree as part of an agreement with the polytech and microsoft but when I graduated it got axed
449: [21:35:51] <Ryan-Toast> I can give you as key if you want
450: [21:39:26] <antmas> MSDN is awesome
451: [21:40:16] <Ryan-Toast> antmas: I did a presentation at TechED last year, and they gave me a lifetime membership :)
452: [21:40:48] <antmas> Ryan-Toast: wow, you presented?
453: [21:40:54] <Ryan-Toast> antmas: Yeah, just 20 mins
454: [21:41:01] <antmas> yeah we get lifetime subs here too
455: [21:41:31] <Ryan-Toast> I was one of the first people in NZ to do the Frontend app qualification or whatever, so I just talked about the benifits.
456: [21:41:49] <antmas> Ryan-Toast: nice
457: [21:41:57] <antmas> I'll be there next year
458: [21:42:19] <Ryan-Toast> antmas: I'm at a different workplace now, so I doubt I'll go again because I'll have to pay for it :P
459: [21:42:31] <antmas> Ryan-Toast: bugger
460: [21:42:40] <antmas> Yeah we send 2 people each year
461: [21:42:54] <Ryan-Toast> That and I don't care about C# anymore :P
462: [21:42:59] <antmas> they got given bloody Nokia 1020s this year
463: [21:43:07] <Ryan-Toast> Wow, awesome.
464: [21:43:18] <Ryan-Toast> I got a lanyard, and some pens :P
465: [21:43:29] <Ryan-Toast> After party was sick though.
466: [21:43:59] <antmas> I'm at a weird spot with my work
467: [21:44:19] <zippy__> ?
468: [21:44:28] <antmas> got an offer to tender for some admin work plus an extra 20k per year as the current person is retiring next year
469: [21:44:40] <antmas> just not sure if I want my career to go that way >.>
470: [21:45:04] <antmas> still doing dev though
471: [21:45:08] <antmas> just extra work
472: [21:45:23] <Ryan-Toast> Do what makes you wake up in the morning and go "Work today, that's okay"
473: [21:45:45] <antmas> Ryan-Toast: I'm there already - love my job
474: [21:45:53] <zippy__> reminds me of that Steve Jobs video...
475: [21:45:59] <zippy__> woo another wicket down...
476: [21:46:06] <antmas> the extra money is super tempting
477: [21:46:10] <zippy__> antmas: maybe ask to do a 3 month trial?
478: [21:46:15] <antmas> will probably look good on my CV too
479: [21:46:19] <antmas> zippy__: yeah I might
480: [21:46:20] <Ryan-Toast> antmas: Personnally I wouldn't take a payrise for admin work.
481: [21:46:36] <antmas> Ryan-Toast: not even easy admin work?
482: [21:46:44] <Ryan-Toast> antmas: Nah.
483: [21:47:03] <antmas> Ryan-Toast: yeah I'm on the fence
484: [21:47:09] <Ryan-Toast> antmas: I love doing front end stuff all day, and implementing/creating new technologies.
485: [21:47:10] <antmas> still, heaps of time to decide
486: [21:47:28] <zippy__> what is the 'admin' work? is it server admin, or is it staff management or what
487: [21:47:31] <antmas> Ryan-Toast: oh it is more that than what the typical 'admin' role would voer
488: [21:47:33] <antmas> cover*
489: [21:47:54] <antmas> it's admin for a major customer database software package
490: [21:48:07] <Ryan-Toast> antmas: Ah, right.
491: [21:48:20] <zippy__> take it on then delegate the role :D
492: [21:48:41] <antmas> zippy__: well, the major work comes from the software company themselves (based in Napier)
493: [21:49:08] <antmas> I would just have to oversee it, do quick fixes and suggest changes/upgrades to the bosses
494: [21:51:55] <antmas> zippy__: lunch next Thursday?
495: [21:52:04] <antmas> would be good to put face to name :)
496: [21:52:06] <Ryan-Toast> Wow: http://torrentfreak.com/pirate-bay-founder-held-in-solitary-confinement-without-a-warrant-131211/
497: [21:52:11] <zippy__> yeap, or Wednesday?
498: [21:52:20] <zippy__> Thursday actually
499: [21:52:36] <antmas> zippy__: yeah too many meetings Wednesday
500: [21:52:39] <zippy__> woo another wicket down… :)
501: [21:52:52] <zippy__> meetings lol , reminds me of olden days
502: [21:53:08] * antmas has nothing to do until Creative Cloud installs
503: [21:53:18] <zippy__> have a meeting :)
504: [21:53:20] * antmas twiddles thumbs
505: [21:53:37] <antmas> zippy__: I just had one :O
506: [21:54:08] <antmas> Snowman23: do you guys have 'designers'?
507: [21:54:48] * travis-ci has joined #silverstripe
508: [21:54:48] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1661 (3.1 - 8d796cb : Ingo Schommer): The build passed.
509: [21:54:48] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d81c3570aff9...8d796cbea080
510: [21:54:48] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/15367462
511: [21:54:48] * travis-ci has left #silverstripe
512: [21:55:34] <antmas> man
513: [21:55:43] <antmas> never got to super markets on dole day
514: [21:55:46] <antmas> go*
515: [21:56:01] <antmas> some shadey mofos around
516: [22:02:36] * antmas quit (Quit: Page closed)
517: [22:03:05] * antmas has joined #silverstripe
518: [22:05:23] * unsigned_ has joined #silverstripe
519: [22:05:56] * CodeTrap quit (Ping timeout: 260 seconds)
520: [22:07:48] * unsignedint quit (Ping timeout: 260 seconds)
521: [22:08:31] * CodeTrap has joined #silverstripe
522: [22:09:47] * SightUnseen has joined #silverstripe
523: [22:10:05] * SightUnseen has left #silverstripe
524: [22:12:37] * joelpittet has joined #silverstripe
525: [22:17:00] * guzzlefry has joined #silverstripe
526: [22:17:09] * joelpittet quit (Ping timeout: 246 seconds)
527: [22:17:50] <guzzlefry> Is my client glitch, or does no one in here have ops?
528: [22:19:45] <catcher> guzzlefry, client glitch, it appears
529: [22:19:53] <antmas> guzzlefry: ops?
530: [22:19:53] <guzzlefry> hm
531: [22:19:57] * guzzlefry has left #silverstripe
532: [22:20:08] * guzzlefry has joined #silverstripe
533: [22:20:12] <guzzlefry> odd
534: [22:20:17] <antmas> ops
535: [22:20:18] <antmas> what is
536: [22:20:22] <guzzlefry> operator
537: [22:20:29] <guzzlefry> admin basically
538: [22:20:33] <antmas> ah
539: [22:20:37] <simon_w> No, moderator
540: [22:20:56] <guzzlefry> err, yeah that :P
541: [22:23:36] * wracu has joined #silverstripe
542: [22:24:28] <wracu> I'm trying to use an Upload field in the CMS to add pics to my DataObjects but the config items prevent it from working properly...
543: [22:25:02] <wracu> $uploadField->setCanAttachExisting(false); this works to remove the button allowing the user to select existing files on the server..... but it prevents the upload of further files
544: [22:25:17] <wracu> ironically... the drag and drop still works, its just the button to select files that stops working
545: [22:25:24] <wracu> any idea why this might be?
546: [22:27:45] <wracu> also tried $uploadField->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif')); but this doesn't seem to limit the field in any way...
547: [22:38:10] * violet- quit (Remote host closed the connection)
548: [22:39:19] <antmas> ooh
549: [22:39:28] <antmas> so good having up to date photoshop back again
550: [22:46:13] * catcher quit (Quit: Leaving)
551: [22:52:40] * Colin[pi] has joined #silverstripe
552: [22:55:38] <simon_w> Someone should fill up my drink bottle for me
553: [22:55:43] <Colin[pi]> YES LET ME
554: [22:56:01] * Colin[pi] fills simon_w's drink bottle with cachaca
555: [22:56:11] <Ryan-Toast> 5 minutes until beer 'o' clock, no need for drink bottles.
556: [22:56:24] <simon_w> Bleugh
557: [22:56:42] <Colin[pi]> Ryan-Toast: direct IV into the body
558: [22:56:58] <Ryan-Toast> Colin[pi]: EYEBALLS WORK IN A SIMILAR VEIN.
559: [22:57:03] <Ryan-Toast> Oh, that's the capslock button.
560: [22:58:35] * Oishi quit (Ping timeout: 272 seconds)
561: [23:19:38] * micmania1 has joined #silverstripe
562: [23:22:31] * Ryan-Toast quit (Quit: Ryan-Toast)
563: [23:33:56] * SightUnseen has joined #silverstripe
564: [23:36:04] * SightUnseen quit (Client Quit)
565: [23:39:40] * SightUnseen has joined #silverstripe
566: [23:41:37] * SightUnseen has left #silverstripe
567: [23:43:02] <Colin[pi]> yay christmas logo: http://praxis.net.au/
568: [23:43:05] <Colin[pi]> \o/
569: [23:43:24] <simon_w> Classy
570: [23:43:36] * Oishi has joined #silverstripe
571: [23:43:37] <Colin[pi]> ur damn right
572: [23:43:42] <simon_w> Also, Canberra postcard photo!
573: [23:44:29] <Oishi> Hey, I seem to be getting you don't have permission to access /framework/main.php on this server again, if I remember correctly nuking framework seemed to fix it last time
574: [23:44:51] <Colin[pi]> simon_w: and what of it?
575: [23:45:08] <simon_w> I haven't been to either parliament house
576: [23:45:17] <simon_w> What sort of Canberra tourist am I? :p
577: [23:45:24] <Colin[pi]> simon_w: you're not missing much
578: [23:45:41] <Colin[pi]> except seeing how taxpayer dollars being thrown down the drain
579: [23:48:32] * SightUnseen has joined #silverstripe
580: [23:50:47] <simon_w> Colin[pi], I like how you keep using "we" in all your copy :p
581: [23:51:21] <simon_w> Oishi, does the web user have read access to the framework folder and all the files in it?
582: [23:51:49] <Colin[pi]> simon_w: me myself and I, of course
583: [23:52:29] * SightUnseen quit (Client Quit)
584: [23:54:36] * UncleCheese quit (Quit: UncleCheese)

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