#silverstripe IRC Log

IRC log for 10 January 2014

All timestamps are in UTC.

1: [00:07:58] * willr quit (Quit: willr)
2: [00:09:53] * nickmolhoek quit (Quit: nickmolhoek)
3: [00:12:04] <Colin[pi]> who here has used drupal more than fleetingly?
4: [00:17:11] <Pyromanik> afternoon?
5: [00:17:24] <Pyromanik> it's like he doesn't realise.
6: [00:17:39] <Pyromanik> g'nite y'all.
7: [00:26:07] * jrthomer quit (Remote host closed the connection)
8: [00:30:58] * UncleCheese has joined #silverstripe
9: [00:31:43] * nickmolhoek has joined #silverstripe
10: [00:38:22] * jedateach quit (Quit: jedateach)
11: [00:41:23] * Colin[pi] quit ()
12: [00:43:49] <unsignedint> Can anyone enlighten me as to why the following code 'return $this->renderWith("AccountPage_order", array("Order" => $order));' produces '[User Warning] None of these templates can be found in theme: Order.ss'
13: [00:43:55] * camfindlay has joined #silverstripe
14: [00:44:12] <unsignedint> The first parameter should be the template name, right? So it should look for AccountPage_order.ss
15: [00:44:36] <simon_w> unsignedint, because the first parameter isn't an array, so it assumes that func_get_args() is the list of templates
16: [00:44:38] <guzzlefry> uuhh
17: [00:45:04] <unsignedint> well when I wrap it in array the same thing happens
18: [00:45:07] <simon_w> Assuming it's a function that works like that
19: [00:45:15] <unsignedint> a la 'return $this->renderWith(array("AccountPage_order"), array("Order" => $order));'
20: [00:45:19] <unsignedint> its a controller action
21: [00:45:40] <unsignedint> I want to render that template, with a "$Order" variable present in it
22: [00:45:44] <guzzlefry> renderWith( string|array|SSViewer $template, array $customFields = null )
23: [00:46:25] <unsignedint> thats what I did. It refused to work
24: [00:46:49] <guzzlefry> Does Order.ss exist?
25: [00:46:56] <unsignedint> I also tried $this->customise(array("Order" => $order)); return array(); but that didnt work either
26: [00:47:13] <unsignedint> guzzlefry: no, and it never will. I want it to render AccountPage_order.ss and make a variable Order available
27: [00:47:23] <guzzlefry> oh, derp
28: [00:47:27] <guzzlefry> so wait
29: [00:47:44] <guzzlefry> unsignedint: is it on http://localhost/accountpage/order/ ?
30: [00:47:54] <unsignedint> yep
31: [00:48:01] <guzzlefry> i.e. that template should be used automatically...
32: [00:48:03] <unsignedint> the controller action is getting invoked
33: [00:48:11] <guzzlefry> Did you flush=all?
34: [00:48:16] <camfindlay> guzzlefry, anything around databases sounds good, even better if you can connect that idea with something silverstripe related ;)
35: [00:48:18] <unsignedint> if I return array() it works, but as soon as I try and customise() it stops
36: [00:48:34] <unsignedint> returning array() is useless because I want to make some variables available in the template
37: [00:48:34] <simon_w> unsignedint, return array('Order' => $order)
38: [00:48:38] <guzzlefry> unsignedint: return array("Order" => ...
39: [00:48:40] <guzzlefry> that :P
40: [00:49:01] <unsignedint> same error
41: [00:49:06] <unsignedint> ill pase controller code
42: [00:49:09] <unsignedint> paste*
43: [00:49:10] <guzzlefry> The missing Order.ss error?
44: [00:49:18] <unsignedint> yes
45: [00:49:35] <simon_w> unsignedint, are you doing an <% include Order %>?
46: [00:49:43] <unsignedint> nope
47: [00:50:02] <simon_w> or $Order and that has a forTemplate that does renderWith('Order')?
48: [00:50:21] <unsignedint> http://sspaste.com/paste/show/52cf410f21e60
49: [00:51:05] <unsignedint> maybe im confusing it because the variable I want to make available has the same name as the action
50: [00:51:08] <simon_w> unsignedint, line 45
51: [00:51:17] <unsignedint> oh shit
52: [00:51:20] <unsignedint> youre right
53: [00:51:21] <guzzlefry> :P
54: [00:51:48] * unsignedint facepalms self
55: [00:54:37] * mojo5000 quit (Remote host closed the connection)
56: [01:03:30] * Jayden90 quit (Ping timeout: 252 seconds)
57: [01:09:11] * jedateach has joined #silverstripe
58: [01:11:57] * willr has joined #silverstripe
59: [01:12:04] * oddnoc quit (Quit: bye!)
60: [01:14:21] * DigNZ quit (Quit: DigNZ)
61: [01:15:01] * DigNZ has joined #silverstripe
62: [01:16:34] * mojo5000 has joined #silverstripe
63: [01:28:23] * DigNZ quit (Quit: DigNZ)
64: [01:28:47] * DigNZ has joined #silverstripe
65: [01:41:13] <camfindlay> Anyone know if you have to do anything special with Travis CI setup to test 2.4 modules? Had a wee 2.4 module I wanted to have a go at setting up Travis on but can't get it to pass tests (even though tests pass locally). I haven't had much to do at all with Travis but interested to learn.
66: [01:42:19] <camfindlay> repo is https://github.com/camfindlay/silverstripe-suspendspammer - some code I proposed to try block some spammer activity on forums ;)
67: [01:44:59] <ss23> Cannot open file "suspendspammer/tests/.php".
68: [01:45:00] <ss23> lol
69: [01:47:13] <ss23> Too hard for me, sorry
70: [01:47:46] <ss23> camfindlay: You could change the script: to be "ls suspendspammer/test" to see if the files are as you expect
71: [01:49:29] <camfindlay> I just followed the process I have seen in other modules + the travis support module doc to run the tests in phpunit. but good idea to ls that dir.
72: [01:49:45] <ss23> Do we have any 2.4 sites on Traivs?
73: [01:49:54] <ss23> Wouldn't be suprised if our travis support script just didn't even work with it
74: [01:52:37] * nickmolhoek quit (Quit: nickmolhoek)
75: [01:52:57] * nickmolhoek has joined #silverstripe
76: [02:02:42] <jedateach> camfindlay: have you seen https://github.com/silverstripe-labs/silverstripe-travis-support ?
77: [02:03:31] <camfindlay> yeah I have seen that, am I missing something in my repo?
78: [02:04:47] <jedateach> just looked at the travis results
79: [02:04:50] <jedateach> I had the same issue
80: [02:04:53] <jedateach> just checking what the fix is
81: [02:05:35] <jedateach> see if borrowing from my config helps: https://github.com/burnbright/silverstripe-omnipay/blob/master/.travis.yml
82: [02:05:43] <jedateach> camfindlay.
83: [02:06:15] * mojo5000 quit (Remote host closed the connection)
84: [02:06:45] <camfindlay> jedateach, so could be the dir name you're saying?
85: [02:06:56] <jedateach> ah, its the installer-name composer config. I've submitted a patch already
86: [02:07:10] <jedateach> https://github.com/silverstripe-labs/silverstripe-travis-support/issues/2
87: [02:08:00] <jedateach> ...or rather just an issue
88: [02:08:15] <camfindlay> nice, so fix for now is to add the mv command in to my travis config... then later hope they roll your patch in :)
89: [02:08:29] <jedateach> yep!
90: [02:09:36] <camfindlay> I'll give that a go
91: [02:23:24] <camfindlay> nice that worked except for my psql test...
92: [02:24:15] <camfindlay> title vs lower case mysql -> psql
93: [02:38:52] * DigNZ quit (Quit: DigNZ)
94: [02:42:18] <ss23> simon_w: Know of any quick ways to get code execution if you have admin access?
95: [02:43:03] <simon_w> Nope
96: [02:43:04] <ss23> I remmeber there's some sqli around some importing stuff, but I haven't had time to track it down yet
97: [02:43:10] <ss23> hmmmmm, kk
98: [02:44:48] <simon_w> ss23, WHERE'S OUR CAKE?
99: [02:45:20] <simon_w> https://twitter.com/stripetheweb/status/421472052814426112
100: [02:45:54] <ss23> XD
101: [02:45:55] <ss23> You wish
102: [02:45:58] <ss23> You never do shit for us!
103: [02:46:02] <ss23> (compared to StW)
104: [02:46:29] <simon_w> What about all the stuff I do for you through them?
105: [02:46:37] <ss23> simon_w: But I checked for you, we have no spare cakes, otherwise I would walk one down
106: [02:46:40] <ss23> lol
107: [02:46:46] <ss23> simon_w: You don't even take me out for lunch anymore!
108: [02:48:32] <unsignedint> are you and simon_w breaking up?
109: [02:49:40] <ss23> :(
110: [02:49:44] <ss23> First of all, he stopped taking me out to lunch
111: [02:49:50] <ss23> then shortly after, he's said he's moving *away*
112: [02:49:52] <ss23> To a different COUNTRY
113: [02:49:53] <ss23> ;_;
114: [02:50:58] <spronk> bro
115: [02:51:00] <spronk> rejected
116: [02:51:17] <simon_w> It gets better. I'm moving to a different country for someone else.
117: [02:51:42] <ss23> lol
118: [02:51:44] <ss23> He's right.
119: [02:51:53] <unsignedint> Its ok ss23. You will find love again
120: [02:52:03] * Colin[pi] has joined #silverstripe
121: [02:52:12] <unsignedint> on the beers yet Colin[pi]?
122: [02:52:26] <Colin[pi]> nope! just got a coffee though
123: [02:52:42] <unsignedint> close enough
124: [02:52:46] <unsignedint> cant wait till 5pm
125: [02:52:51] * zippy__ quit (Quit: zippy__)
126: [02:52:53] <unsignedint> work is sloooow today
127: [02:53:00] <ss23> :(
128: [02:53:02] <ss23> Sometimes I wonder, unsignedint
129: [02:53:12] <Colin[pi]> heh I have work to do but I'm feeling very "Friday"
130: [02:53:46] <unsignedint> ss23: You can always turn to drugs?
131: [02:54:09] <unsignedint> yeah damn Friday being motivation sapping
132: [02:54:10] <ss23> lol
133: [02:54:16] <ss23> implying that I don't do drugs already
134: [02:54:22] <ss23> ohshit coworers are here
135: [02:54:23] <ss23> I MEAN
136: [02:54:27] <ss23> implying that I would consider doing drugs.
137: [02:54:30] <Colin[pi]> caffeine is a drug
138: [02:54:33] <ss23> YEAH
139: [02:54:36] <ss23> you got my back, Colin[pi]
140: [02:54:39] <Colin[pi]> *shifty eyes*
141: [02:55:27] <unsignedint> anyone up to anything interesting this weekend?
142: [02:55:33] * unsignedint is brewing some cider
143: [02:57:22] * Guits quit (Ping timeout: 246 seconds)
144: [02:57:44] <Colin[pi]> cider! nice.. I brewed some beer a long, long time ago.. wouldn't mind having another crack at it
145: [02:58:29] <unsignedint> its pretty fun
146: [02:58:38] <unsignedint> I have ~120 bottles sitting in the shed maturing
147: [02:58:45] <Colin[pi]> which fruit, apple?
148: [02:59:07] <unsignedint> My first batch was *drinkable* but not very good. Still got smashed off it though
149: [02:59:10] <unsignedint> yeah apple
150: [02:59:16] <unsignedint> I made pear cider too but apple was better
151: [02:59:29] <unsignedint> im trying a pear and strawberry as well (will put it on next week)
152: [02:59:40] <unsignedint> I just buy kits atm, dont know how to make it form scratch
153: [02:59:44] <unsignedint> from*
154: [02:59:45] <Colin[pi]> did it come out anything like rekorgilig (or however the fuck you spell it)
155: [03:00:01] <unsignedint> I dont actually drink rekoderlig, too expensive. So no idea
156: [03:00:08] <unsignedint> It was more like monteiths, just slightly sweeter
157: [03:00:27] <Colin[pi]> I got my sister hooked on it, now she curses me for the same reason (it's expensive, damn you!!)
158: [03:00:38] <unsignedint> haha yeah my mum is hooked on it
159: [03:01:00] <Colin[pi]> they have a cheaper analogue in Aldi, it's actually pretty good
160: [03:01:05] <unsignedint> she only likes the blackcurrant one though so I stay away from it
161: [03:01:07] <unsignedint> oh really?
162: [03:01:12] <unsignedint> is that your regular haha
163: [03:01:42] <Colin[pi]> this one http://www.aldiliquor.com.au/renberg-swedish-cider-strawberry-lime
164: [03:02:00] <unsignedint> jesus thats expensive
165: [03:02:11] <unsignedint> 15 bottles for $60... fuck that!
166: [03:02:25] * unsignedint can make 23 litres for $40
167: [03:02:26] <Colin[pi]> that's actually cheap compared to rekorgilig
168: [03:02:40] <unsignedint> oh yeah thats right, Australia has insane liquor prices
169: [03:03:24] * mobiusnz quit (Quit: Leaving.)
170: [03:03:25] <Colin[pi]> check this out then: http://danmurphys.com.au/product/DM_365443/rekorderlig-premium-strawberry-lime-cider-500ml
171: [03:03:49] <Colin[pi]> $82 for 15 :D
172: [03:04:45] <unsignedint> would you like some napkins with that? for cleaning up your bleeding ass
173: [03:04:54] <Colin[pi]> 'STRAYA
174: [03:05:00] <Colin[pi]> everything is fucking expensive
175: [03:05:12] <unsignedint> do the wages offset it?
176: [03:05:17] <Colin[pi]> mine don't LOL
177: [03:05:24] <unsignedint> haha that sucks then
178: [03:05:30] <Colin[pi]> remind me why I freelance again?
179: [03:05:35] <unsignedint> thought the 'strayans paid quite a bit for good developers
180: [03:05:41] <unsignedint> oh yeah thats right you freelance
181: [03:05:46] <Colin[pi]> poor freelancer..
182: [03:05:52] <unsignedint> you freelance because you can work in the nude
183: [03:05:52] <Colin[pi]> well
184: [03:05:56] <Colin[pi]> some months good
185: [03:06:00] <Colin[pi]> some months VERY good
186: [03:06:01] <Colin[pi]> others shitty
187: [03:06:04] <Colin[pi]> now is shitty
188: [03:06:09] <Colin[pi]> quiet time of year
189: [03:06:14] <unsignedint> the joys of freelancing I guess, no constant income
190: [03:06:23] <unsignedint> do things normally pick up around the end of feb?
191: [03:06:35] <Colin[pi]> should do
192: [03:06:55] <Colin[pi]> I have a lot of money waiting to come in.. but the projects keeeep onnnnn dragggginnng
193: [03:07:52] <ss23> https://www.google.co.nz/search?q=silverstripe+greaterthanoreqla rofl rofl rofl
194: [03:08:00] <ss23> (courtesy of camfindlay)
195: [03:08:09] <Colin[pi]> lol
196: [03:18:02] * Guits has joined #silverstripe
197: [03:18:14] * DigNZ has joined #silverstripe
198: [03:21:32] <Colin[pi]> http://www.silverstripe.com/about-us/team/ceo/sam-minnee/
199: [03:21:34] <Colin[pi]> and like any good geek, he’s not too old for a few hours of Assasin’s Creed on a Sunday afternoon
200: [03:21:38] <Colin[pi]> he’s not too old for a few hours of Assasin’s Creed on a Sunday
201: [03:21:46] <Colin[pi]> few hours of Assasin’s Creed on
202: [03:21:49] <Colin[pi]> Assasin’s Creed
203: [03:21:51] <Colin[pi]> >_<
204: [03:22:42] <simon_w> You missed the bit were he pretends he's not old
205: [03:24:14] <Colin[pi]> he's not THAT old
206: [03:26:04] <Colin[pi]> you can't spell Assassin without TWO ASSES
207: [03:32:29] <ss23> hahah
208: [03:32:30] <ss23> trudat
209: [03:32:31] <ss23> I'll fix
210: [03:32:53] <Colin[pi]> i will machine gun refesh until done
211: [03:32:57] <Colin[pi]> *refresh also
212: [03:32:59] <ss23> lol
213: [03:33:01] <ss23> FIXING NOW
214: [03:35:10] <ss23> Colin[pi]: Fucking liar, it's already fixed and you didn't say anything
215: [03:35:15] <Colin[pi]> ah HA
216: [03:35:20] <Colin[pi]> I saw it refresh
217: [03:35:22] <Colin[pi]> LOL
218: [03:35:53] <Colin[pi]> thanks ss23 :D
219: [03:40:04] * nickmolhoek quit (Quit: nickmolhoek)
220: [03:43:36] * camfindlay has left #silverstripe
221: [03:45:41] * mobiusnz has joined #silverstripe
222: [03:56:13] <Colin[pi]> oh crap I think I'm low on beer DL
223: [03:56:15] <Colin[pi]> D:
224: [03:56:21] <ss23> :O
225: [03:56:57] * DigNZ quit (Remote host closed the connection)
226: [03:57:19] <Colin[pi]> phew have some, not cold though
227: [03:57:24] <Colin[pi]> in the fridge :D
228: [04:00:55] * willr quit (Quit: willr)
229: [04:07:49] * zippy__ has joined #silverstripe
230: [04:07:49] * jedateach quit (Ping timeout: 272 seconds)
231: [04:12:41] * cloph_away has joined #silverstripe
232: [04:13:11] * cloph quit (Ping timeout: 260 seconds)
233: [04:24:26] * UncleCheese quit (Quit: UncleCheese)
234: [04:27:57] * zippy__ quit (Quit: zippy__)
235: [04:29:53] * qill has joined #silverstripe
236: [04:31:04] <qill> hello!
237: [04:34:02] * jrthomer has joined #silverstripe
238: [04:34:30] <Colin[pi]> helo qill
239: [04:36:02] <qill> I was wondering if it's possible to set a FileFields Label ? I want to add *'s for required fields and list allowed file types
240: [04:36:17] <qill> thats for a front end form, not in the cms
241: [04:38:38] * jrthomer quit (Ping timeout: 264 seconds)
242: [04:44:28] * DigNZ has joined #silverstripe
243: [04:45:00] <simon_w> qill, the second argument to the field's constructor is used as the label
244: [04:45:22] <Colin[pi]> qill: could also use a LiteralField to make a list of file types
245: [04:47:09] <qill> Colin: Thanks! $resume = new FileField('Resume', "Resume *");
246: [04:47:16] <qill> with $resume->setRightTitle("Allowed file types: PDF, DOC");
247: [04:47:22] <qill> gets me there. : )
248: [04:48:39] <qill> it would be awesome if adding required validation to a field added a class to the surrounding div, that way *'s could be added with css :after and colored in etc
249: [04:48:50] <qill> thats not possible though right?
250: [04:55:07] * jrthomer has joined #silverstripe
251: [04:55:10] * simon_w quit (Quit: This computer has gone to sleep)
252: [04:57:50] <Colin[pi]> qill: I thought it did, did you inspect the source?
253: [05:02:36] <qill> yep, no. it adds required=required and aria required to the field.
254: [05:12:38] * DigNZ quit (Quit: DigNZ)
255: [05:14:14] * DigNZ has joined #silverstripe
256: [05:15:44] * DigNZ quit (Client Quit)
257: [05:20:51] * DigNZ has joined #silverstripe
258: [05:21:05] * DigNZ quit (Client Quit)
259: [05:34:41] * simon_w has joined #silverstripe
260: [05:43:15] * metanat quit (Ping timeout: 260 seconds)
261: [05:45:03] * DigNZ has joined #silverstripe
262: [05:45:04] * DigNZ quit (Client Quit)
263: [06:07:28] <qill> how is the value of a hidden field set?
264: [06:07:31] <qill> $facility = new HiddenField ("FacilityID");
265: [06:07:38] <qill> $facility->setValue($this->Id);
266: [06:07:45] <qill> no worky.
267: [06:07:48] <qill> : (
268: [06:09:28] <qill> oh, wait. ignore me.
269: [06:09:35] <qill> $facility->setValue($this->ID);
270: [06:09:40] <qill> ID
271: [06:23:46] * DigNZ has joined #silverstripe
272: [06:24:30] * DigNZ quit (Client Quit)
273: [06:39:31] * Shrike_Finland has joined #silverstripe
274: [06:45:18] * Shrike_Finland quit (Quit: Leaving.)
275: [06:47:35] <Zauberfisch> wasnt there a method on all string fields that lets me stripp all html?
276: [06:49:05] * Guits quit (Read error: Connection reset by peer)
277: [06:49:36] <guzzlefry> sounds familiar
278: [06:54:19] <guzzlefry> Zauberfisch: maybe Convert::xml2raw()?
279: [06:54:39] <Zauberfisch> nah, I could swear there was a built in way to stringfield
280: [06:54:45] <Zauberfisch> like $Content.NoHTML
281: [06:56:40] <Zauberfisch> ah, NoHTML actually exists I think
282: [06:56:44] <Zauberfisch> but
283: [06:57:10] <Zauberfisch> I think it strips <b>foo</b> fully, not just the tags, but the whole content
284: [07:01:59] <guzzlefry> 0.o
285: [07:02:20] <guzzlefry> Where is this field?
286: [07:05:03] <guzzlefry> I'd just extend it and add a function that calls strip_tags()
287: [07:05:38] <Zauberfisch> well, I am just gonna leave it like it is at the moment
288: [07:05:54] <Zauberfisch> its varchar, so the html is escaped
289: [07:06:07] <Zauberfisch> no time to extend stringfield
290: [07:10:07] * mobiusnz quit (Quit: Leaving.)
291: [07:26:30] <simon_w> Zauberfisch, NoHTML?
292: [07:27:18] <simon_w> Though that's only on Text
293: [07:27:53] <simon_w> Zauberfisch, and NoHTML calls strip_tags which just removes the tags, not the content
294: [07:37:05] <simon_w> Hurry up and link, dammit!
295: [07:53:07] <guzzlefry> simon_w: Is there a built-in way to use <input type="image"> for form actions?
296: [08:00:22] * guzzlefry guesses no. :P
297: [08:02:54] * zippy__ has joined #silverstripe
298: [08:09:50] * ARNHOE has joined #silverstripe
299: [08:12:30] <simon_w> guzzlefry, there's an attribute you can set on FormAction
300: [08:15:36] <guzzlefry> yay, thanks :)
301: [08:15:41] <guzzlefry> You saved the day.
302: [08:16:37] <guzzlefry> well...hrm
303: [08:21:23] <guzzlefry> $action->setUseButtonTag(true);
304: [08:21:23] <guzzlefry> $action->setButtonContent('<img src="test.png" />');
305: [08:21:25] <guzzlefry> like that? 0.o
306: [08:41:30] * NobrainerWeb has joined #silverstripe
307: [08:41:37] <NobrainerWeb> Hi guys
308: [08:42:29] <NobrainerWeb> Doing a bit of work on my section module - changed my relation between pages and section DO to many_many, so i can share sections across pages
309: [08:44:30] <NobrainerWeb> previous i was able to move a section from one page to another, by just changing the related PageID: https://github.com/NobrainerWeb/Silverstripe-Section-Module/blob/master/code/dataobjects/Section.php#L122-L130 - Question is, how do i do this on a many_many relation?
310: [09:01:30] * micmania1 has joined #silverstripe
311: [09:02:42] * joelpittet quit (Remote host closed the connection)
312: [09:03:09] * joelpittet has joined #silverstripe
313: [09:07:50] * joelpittet quit (Ping timeout: 252 seconds)
314: [09:10:43] * violetina has joined #silverstripe
315: [09:17:23] * elementz has joined #silverstripe
316: [09:29:55] * qill quit (Ping timeout: 272 seconds)
317: [09:30:01] * NobrainerWeb quit (Quit: NobrainerWeb)
318: [09:34:20] * Shrike_Finland has joined #silverstripe
319: [09:34:25] * g4b0_ has joined #silverstripe
320: [09:40:42] * NobrainerWeb has joined #silverstripe
321: [09:51:31] * NobrainerWeb quit (Quit: NobrainerWeb)
322: [09:54:35] * NobrainerWeb has joined #silverstripe
323: [09:58:05] * g4b0_ quit (Quit: Sto andando via)
324: [10:02:03] * joelpittet has joined #silverstripe
325: [10:04:42] <guzzlefry> Does DropdownField::validate() automatically check that the options weren't tampered with?
326: [10:06:27] * joelpittet quit (Ping timeout: 260 seconds)
327: [10:10:22] * Sj0hn has joined #silverstripe
328: [10:11:52] * jcwacky has joined #silverstripe
329: [10:12:39] <jcwacky> What's the best way to duplicate Form action buttons above the form, as well as the ones below it?
330: [10:12:54] * nz_dre has joined #silverstripe
331: [10:34:25] <Colin[pi]> jcwacky: use a custom form template and render the actions
332: [10:35:15] * zippy__ quit (Quit: zippy__)
333: [10:35:43] * NobrainerWeb quit (Quit: NobrainerWeb)
334: [10:38:27] * nz_dre quit (Remote host closed the connection)
335: [10:38:57] * nz_dre has joined #silverstripe
336: [10:40:48] * nz_dre has left #silverstripe
337: [10:43:54] <micmania1> guzzlefry, no idea. Try it :)
338: [10:57:18] <micmania1> i'm starting to understand the Before & After yml stuff and hell hasn't frozen over. SUCCESS!
339: [11:11:42] <Sj0hn> Can some1 take a look at my code on next and previous object: http://paste2.org/WaefVnjH
340: [11:11:53] <Sj0hn> it gives Object->__call(): the method 'fortemplate' does not exist on 'BuyPrint' error
341: [11:12:01] <Sj0hn> i stole this method from the blog btw xD
342: [11:18:18] <Sj0hn> I dont really understand the error..
343: [11:20:38] * Pyromanik has joined #silverstripe
344: [11:23:58] <Pyromanik> wholey shit. Put CV on reed.co.uk midday yesterday, get phone call this morning from a recruiter. HAYAI DESU.
345: [11:24:38] <jcwacky> Colin[pi]: Thanks, working great!
346: [11:24:44] * jcwacky has left #silverstripe
347: [11:26:52] * Colin[pi] quit ()
348: [11:37:58] <micmania1> Sj0hn, you're trying to render a DataObject (BuyPrint) straight to the template
349: [11:38:24] * elementz is now known as jottr
350: [11:38:45] <micmania1> the templating engine tries to call a method forTemplate() when you do this, so you either need to add the forTemplate method and render it out, or call your dataobject differently in the template
351: [11:39:42] <Sj0hn> ok, i've added this function forTemplate() { return $this->renderWith('BuyPrints_show'); } and it works fine now :)
352: [11:40:16] <Sj0hn> thnx
353: [11:44:33] <Sj0hn> well it renders fine now.. still have to get the next and previous function working..
354: [11:50:49] * joelpittet has joined #silverstripe
355: [11:55:11] * joelpittet quit (Ping timeout: 260 seconds)
356: [12:16:31] * jottr quit (Read error: Operation timed out)
357: [12:50:24] <Pyromanik> Sj0hn, it's possibly easier to just alter your template to output the correct things than to add code all over the place.
358: [12:50:31] <Pyromanik> but, maybe not.
359: [12:56:28] * violetina quit (Remote host closed the connection)
360: [12:57:59] * violetina has joined #silverstripe
361: [13:03:53] <Sj0hn> I've adjusted this code from SSBits which works quite better then the other code.. http://www.ssbits.com/tutorials/2009/creating-previous-and-next-buttons-on-a-page/
362: [13:04:55] <Sj0hn> i used *
363: [13:05:54] <Sj0hn> Pyromanik, i used the DataobjectAsPage module so i'm not sure if that would work
364: [13:13:46] * UndefinedOffset has joined #silverstripe
365: [13:40:04] * joelpittet has joined #silverstripe
366: [13:41:57] <Pyromanik> urgh, outdated tutorials and redundant modules :<
367: [13:42:10] <Pyromanik> still, if it works it works!
368: [13:42:14] <Pyromanik> :>
369: [13:44:17] * joelpittet quit (Ping timeout: 245 seconds)
370: [13:53:59] <micmania1> I just found an issue with using widgets in SiteConfig on ss2.4 :(
371: [13:54:12] <micmania1> Apparently it doesn't like sorting.
372: [13:56:55] <Pyromanik> SiteConfig doesn't have some of the things that other components need.
373: [13:57:32] <Pyromanik> you might be able to get around it by $siteconfigFields->push(new HiddenField('SiteConfigID', null, $siteconfig->ID))
374: [13:59:16] <Pyromanik> micmania1 ^
375: [13:59:40] <Pyromanik> check out a blog entry page and or see if the widget editor code relies on something like that
376: [13:59:49] <Pyromanik> eg. I know CTF does.
377: [13:59:55] <Pyromanik> (oh you, 2.4)
378: [14:00:55] <micmania1> The site was developed ages ago. Just putting in a little hack as I don't have the time on it
379: [14:01:02] <Pyromanik> HAHAHAHHAHAHA
380: [14:01:27] <Pyromanik> "Welcome to the Vodafone Pay As You Go credit line. You have ... NO ... credit - HAPPY NEW YEAR"
381: [14:01:30] <Pyromanik> ROFL ROFL
382: [14:09:38] <Pyromanik> micmania1, know them feels. Luckily I don't have that pain anymore :P
383: [14:21:02] * ARNHOE quit ()
384: [14:36:05] * Stomach quit (Ping timeout: 265 seconds)
385: [14:37:01] * OxFF1 has joined #silverstripe
386: [14:46:02] * Shrike_Finland quit (Quit: Leaving.)
387: [15:08:48] * qlex has joined #silverstripe
388: [15:08:54] * qlex says hi
389: [15:09:12] <qlex> Zauberfisch: i certainly hope you're here and you'll get my message regarding the userforms :)
390: [15:09:15] <qlex> i was to remind my elf
391: [15:09:18] <qlex> myself
392: [15:28:33] * joelpittet has joined #silverstripe
393: [15:33:35] * joelpittet quit (Ping timeout: 260 seconds)
394: [16:03:41] * r3v3rb has joined #silverstripe
395: [16:03:50] <r3v3rb> hello
396: [16:04:12] <Pyromanik> roflwut "Software Developer - Visual Baisc"
397: [16:04:23] <Pyromanik> NOT REALLY A SOFTWARE DEVELOPER THEN ARE YOU :P
398: [16:04:31] <Pyromanik> sup r3v3rb
399: [16:04:37] <r3v3rb> this
400: [16:04:39] <r3v3rb> ;)
401: [16:04:48] <r3v3rb> so I have a controller called courses that displays my 'EmailMessage' dataobjects
402: [16:05:00] <Pyromanik> right.
403: [16:05:15] <r3v3rb> I want to add commenting to the page when viewing the EmailMessage dataobject on the website
404: [16:05:32] <Pyromanik> I uhh... what?
405: [16:05:52] <r3v3rb> however adding Commenting::add('EmailMessage') into _config.php makes no difference
406: [16:06:17] <r3v3rb> hehe, its me and my complicated way of doing things again :D
407: [16:06:19] <Pyromanik> shock horror, comments are bad.
408: [16:06:21] <Pyromanik> :P
409: [16:06:39] <r3v3rb> Pyromanik: I know, client wants them though and who am I to tell them otherwise
410: [16:06:40] <Pyromanik> yeah but I mean, why would anyone ever comment on an email message to a course?
411: [16:06:52] <Pyromanik> I just... this is one of those things better explained with a picture I think :P
412: [16:07:01] <Pyromanik> r3v3rb, the expert!
413: [16:07:04] <Pyromanik> !!
414: [16:07:18] <r3v3rb> ok, the site sends an email to all course members
415: [16:07:25] <Pyromanik> right
416: [16:07:26] <r3v3rb> which is stored as a dataobject in the course
417: [16:07:32] <Pyromanik> yup
418: [16:07:51] <Pyromanik> 'the site' being 'a course admin'?
419: [16:07:54] <r3v3rb> so many dataobjects 'EmailMessage' make up the course - cron job sends the messages one a day
420: [16:08:07] <Pyromanik> o,0
421: [16:08:14] <Pyromanik> automated email based training.
422: [16:08:17] <r3v3rb> yes
423: [16:08:19] <Pyromanik> Riiiight.
424: [16:08:19] <Pyromanik> ok
425: [16:08:28] <Pyromanik> that sounds like a legit qualification :P
426: [16:08:45] <Pyromanik> fuck, want pizza again.
427: [16:09:09] <Pyromanik> the hell is wrong with this country and making me desire pizza frightningly often?
428: [16:09:45] <r3v3rb> then the email has a link to the 'EmailMessage' which logs them in using their hash from the dB - thanks simon_w for the idea - once they are viewing the 'EmailMessage' via the course controller - I need to allow these dimwits to be able to post a comment regarding the course/message
429: [16:10:01] * r3v3rb has Pizza in da oven cooking
430: [16:10:16] <Pyromanik> r3v3rb, well I almost had an answer for you until that!
431: [16:10:18] <Pyromanik> xD
432: [16:10:27] <Pyromanik> ok so hmm
433: [16:10:35] <r3v3rb> Pyromanik: which country? NZ or UK did you emigrate yet?
434: [16:10:40] <Pyromanik> an email message links to an email message which can accept messages?
435: [16:11:37] <Pyromanik> The one that's almost dark.
436: [16:11:45] <Pyromanik> It's like being back in Christchurch in July.
437: [16:11:47] * Sj0hn quit (Ping timeout: 245 seconds)
438: [16:12:09] <r3v3rb> so I added 'Commenting::add('EmailMessage'), so I had hoped it would pick up the comments are enabled bit and show the forms as necessary
439: [16:12:15] <r3v3rb> Pyromanik: whereabouts?
440: [16:12:21] <Pyromanik> see message -.-
441: [16:12:44] <Pyromanik> yeah, it picks it up probably, but no template doodackies.
442: [16:12:57] <Pyromanik> $CommentsForm perhaps in your template, or whatever it's supposed to be.
443: [16:13:05] * r3v3rb tries
444: [16:13:10] <Pyromanik> $ALLLLtheComments
445: [16:15:35] <r3v3rb> $CommentForm fails :(
446: [16:16:01] <r3v3rb> dev/build shows no EmailMessage-Comments tables being built by the way
447: [16:16:32] <Pyromanik> yeh because it'll be manymany
448: [16:16:37] <Pyromanik> oh right yeah
449: [16:16:40] <Pyromanik> duh
450: [16:16:53] <Pyromanik> has_many is the one with no extra table.
451: [16:17:26] <r3v3rb> might add many_many ('Comments' and see if I can break everything
452: [16:17:52] <Pyromanik> haha, naw
453: [16:18:00] <Pyromanik> just apply the doodacky right
454: [16:18:04] <Pyromanik> extension
455: [16:18:10] <Pyromanik> sorry, hunger affects thought
456: [16:19:25] * qlex has left #silverstripe
457: [16:22:49] <r3v3rb> indeed
458: [16:24:11] <Pyromanik> I think the comments module is a bit... bad.
459: [16:24:26] <Pyromanik> seems to be a recurring theme in this channel recently. You're the third person I've helped with it.
460: [16:24:31] <Pyromanik> Not that I've helped yet...
461: [16:24:40] <r3v3rb> lmao
462: [16:24:42] <r3v3rb> true
463: [16:24:51] <r3v3rb> maybe just roll my own shit for this instead
464: [16:25:20] <r3v3rb> has_many comments /add/comment /edit/comment /delete etc etc
465: [16:27:04] <Pyromanik> yeah well could do
466: [16:27:07] <r3v3rb> pah, was hoping for an easy fix for this last part
467: [16:27:07] <Pyromanik> or fix the comment module
468: [16:27:13] <Pyromanik> seems a little easier
469: [16:27:16] <Pyromanik> maybe.
470: [16:27:27] <r3v3rb> maybe, if I knew what was actually broke
471: [16:28:29] <Pyromanik> start with ::add
472: [16:28:47] <r3v3rb> lol
473: [16:28:49] <r3v3rb> great
474: [16:30:21] <Pyromanik> it'll probably just apply extensions
475: [16:30:28] <r3v3rb> so basically this is working properly: $class::add_extension('CommentsExtension');
476: [16:30:38] <r3v3rb> not*
477: [16:30:45] <Pyromanik> so then you check they apply
478: [16:31:01] <Pyromanik> well yeah, probably because $class:: may or may not be legit.
479: [16:31:27] <r3v3rb> easier to manually add class extension then?
480: [16:33:57] <r3v3rb> bbiab, pizza time!
481: [16:35:22] <Pyromanik> d:
482: [16:35:37] <Pyromanik> D: !! to make matters worse just got a text from Papa John's :S
483: [16:35:55] <Pyromanik> Buy one get one free (excluding small)
484: [16:36:02] <Pyromanik> :< would do me for 2 days
485: [16:36:12] <Pyromanik> WANT, but won't :/
486: [16:58:25] <r3v3rb> hang on a moment, if the comment module requires a sitetree object to have 'allow comments' turned on on each sitetree object - should I add this to each 'EmailMessage' in some form?
487: [17:07:32] <r3v3rb> hmm, so has_commenting returns true - just no form to add the comments :\
488: [17:16:58] * joelpittet has joined #silverstripe
489: [17:21:55] * joelpittet quit (Ping timeout: 272 seconds)
490: [17:25:36] <r3v3rb> ugh, so comments depends on GridFieldBulkEditing and that is broken... Nice :D
491: [17:25:48] <r3v3rb> in Admin that is
492: [17:31:02] <r3v3rb> no fair, why are comments still not working on a dataobject being viewed through a controller
493: [17:34:26] * jrthomer quit (Remote host closed the connection)
494: [17:38:56] <r3v3rb> bbl time for a break
495: [17:39:16] <r3v3rb> and mwoah PIZZA
496: [17:39:21] * r3v3rb quit (Quit: r3v3rb)
497: [17:57:32] * jrthomer has joined #silverstripe
498: [18:01:52] * jrthomer quit (Remote host closed the connection)
499: [18:02:07] * jrthomer has joined #silverstripe
500: [18:05:55] * r3v3rb has joined #silverstripe
501: [18:12:31] <Pyromanik> r3v3rb, it shouldn't.
502: [18:12:38] <Pyromanik> depend on the other module
503: [18:12:41] <Pyromanik> so far as I know.
504: [18:13:16] <Pyromanik> I think you're just not accessing the form output var properly or through the wrong scope in the template.
505: [18:14:59] <r3v3rb> Pyromanik: maybe, but when I added the Comments folder and went to the admin section it threw the dependancy error, that added everything is fine
506: [18:15:04] <r3v3rb> except no comment form
507: [18:15:14] <r3v3rb> $CommentsForm outputs zilch
508: [18:15:26] <Pyromanik> yeah, but the var might not be $CommentsForm
509: [18:15:31] <r3v3rb> I have even tried sedning through the rendersWith
510: [18:15:38] <r3v3rb> it is I checked the class
511: [18:15:39] <Pyromanik> might just be $Comments, or all sorts.
512: [18:15:39] <r3v3rb> ;)
513: [18:15:43] <Pyromanik> oh yeh
514: [18:16:12] <r3v3rb> sending* 'CommentsForm' => $message->CommentsForm() as I found in a forum post
515: [18:17:28] <Pyromanik> no see that's CommentingController
516: [18:17:32] <Pyromanik> you're not in a controller
517: [18:17:43] <Pyromanik> you're on your page, in a dataobject
518: [18:18:58] <r3v3rb> kind of, I'm in a controller pushing a dataobject(that has commenting enabled) to a page
519: [18:19:13] <r3v3rb> course extends controller ;)
520: [18:19:54] <Pyromanik> yeah, seems that the extension also defines CommentsForm
521: [18:20:02] <r3v3rb> indeed
522: [18:20:09] <r3v3rb> so what to use
523: [18:20:13] <Pyromanik> which creates a controller and gets the form
524: [18:20:22] <r3v3rb> driving me nuts this afternoon
525: [18:20:42] <Pyromanik> well, I'd start by hacking CommentsForm in the extension to dump out some HTML and ensure it's being called correctly
526: [18:21:09] <r3v3rb> I can only imagine its not as I get no output to the browser at all
527: [18:22:14] <Pyromanik> oh, so no output whatsoever, or just no output for that particular var?
528: [18:23:07] <r3v3rb> dataobject is perfect, just no $CommentsForm output
529: [18:23:12] <Pyromanik> right
530: [18:23:29] <Pyromanik> well, try $CommentsForm.Debug
531: [18:23:34] <r3v3rb> good shout
532: [18:24:08] <Pyromanik> because it looks like CommentsForm() returns some ugly as hell voodoo with a manual SSViewer call
533: [18:25:05] <r3v3rb> Name:CommentsForm ... etc etc Table : Blank Value : Blank
534: [18:25:46] <Pyromanik> yeh, wrong scope I'd say.
535: [18:26:02] <Pyromanik> CommentsForm should return HTML it looks like.
536: [18:26:07] <r3v3rb> aye
537: [18:26:22] <Pyromanik> coming from CommentsInterface.ss
538: [18:26:26] <r3v3rb> not sure how I can be 'out' of scope though
539: [18:26:50] <r3v3rb> I have no <% with %> or <% loop %> going on
540: [18:27:02] <Pyromanik> well it needs to be called in the scope of an object created from whichever class has the extension applied
541: [18:28:08] * CodeTrap has joined #silverstripe
542: [18:28:11] <Pyromanik> and .Debug always did confuse me anyway, so I'd go back to hacking in comments/code/extensions/CommentsExtension.php
543: [18:28:28] <r3v3rb> omg, what a muppet
544: [18:28:30] <Pyromanik> output something solid and identifiable
545: [18:28:35] <Pyromanik> ensure it's being called.
546: [18:28:35] <r3v3rb> please forgive me
547: [18:28:43] <Pyromanik> mahnahmanah?
548: [18:29:01] <r3v3rb> $message->commentsForm didn;t work because I stupidly forgot the ()!!!
549: [18:29:06] <r3v3rb> shite
550: [18:29:17] <Pyromanik> right, well. crisis averted!
551: [18:29:56] <r3v3rb> Pyromanik: lets hope so
552: [18:30:51] * gelignite has joined #silverstripe
553: [18:41:59] * pippy__ has joined #silverstripe
554: [18:45:00] * pippy quit (Ping timeout: 265 seconds)
555: [18:47:12] * r3v3rb quit (Quit: r3v3rb)
556: [18:50:12] * mojo5000 has joined #silverstripe
557: [18:50:37] * mojo5000 quit (Read error: Connection reset by peer)
558: [18:50:59] * mojo5000 has joined #silverstripe
559: [19:05:47] * joelpittet has joined #silverstripe
560: [19:06:33] * pippy has joined #silverstripe
561: [19:08:27] * pippy__ quit (Ping timeout: 245 seconds)
562: [19:10:29] * joelpittet quit (Ping timeout: 248 seconds)
563: [19:11:05] * pippy quit (Ping timeout: 246 seconds)
564: [19:12:46] * pippy has joined #silverstripe
565: [19:24:17] * r3v3rb has joined #silverstripe
566: [19:27:04] * CodeTrap quit (Ping timeout: 272 seconds)
567: [19:31:16] * CodeTrap has joined #silverstripe
568: [19:36:34] <r3v3rb> Pyromanik: If you ever fancy a day out by the South Coast - I'll buy you fish and chips or Pizza if you fancy a true Italian one, thanks for the help earlier
569: [19:44:51] * willr has joined #silverstripe
570: [19:50:47] * CodeTrap quit (Ping timeout: 252 seconds)
571: [20:00:32] * joelpittet has joined #silverstripe
572: [20:01:44] <Pyromanik> r3v3rb, ha cheers :)
573: [20:01:51] <Pyromanik> Might take you up on that at some point :)
574: [20:02:06] <Pyromanik> only... when the south coast is actually safe for a change...
575: [20:02:16] <Pyromanik> :P
576: [20:10:00] * joelpitt_ has joined #silverstripe
577: [20:12:41] * joelpit__ has joined #silverstripe
578: [20:12:47] * joelpittet quit (Ping timeout: 252 seconds)
579: [20:13:12] <r3v3rb> Pyromanik: no flooding here mate
580: [20:13:23] <Pyromanik> lucky you!
581: [20:14:02] <Pyromanik> omg I think I just found the perfect job, but now I have to write an f'n cover letter and get a bank account and probably a haircut :<
582: [20:15:24] <Pyromanik> urgh, that moment you think "man I could do this" then you see it... "Word derp theme development"
583: [20:15:30] <Pyromanik> (unrelated job ad)
584: [20:15:32] * joelpitt_ quit (Ping timeout: 245 seconds)
585: [20:15:34] <Pyromanik> lol
586: [20:15:38] <Pyromanik> NOPE
587: [20:18:25] <r3v3rb> noooooo
588: [20:18:54] <Pyromanik> ??
589: [20:19:43] <Pyromanik> oh man, I also liked the ad that was basically "we make web aps for ourselves and sell them. You will need to be a clean coder and have a creative entreprenurial mind"
590: [20:20:29] <Pyromanik> Basically "come work for us so we can claim any good money making idea you come up with and build it first"
591: [20:20:50] <Pyromanik> lawl - if I have a money making idea I'll just build it myself, derp.
592: [20:20:52] <r3v3rb> yes indeed
593: [20:21:13] <r3v3rb> right bbl, time to get son
594: [20:21:20] * r3v3rb quit (Quit: r3v3rb)
595: [20:24:45] <willr> Pyromanik but they'd probably have the ability to put a team behind your idea and make it awesome
596: [20:24:58] <willr> building apps by yourself sucks.
597: [20:26:46] <Azure> Man. I still don't understand that ImagickBackend notice that I keep on getting when flushing a page that uses that backend for images.
598: [20:26:59] <simon_w> Azure, blame FrozenFire
599: [20:27:02] <Azure> That being "Undefined variable: backgroundColor"
600: [20:27:32] * Azure had to change a line in the image backend code in order to actually use imagick.
601: [20:28:07] <Azure> I opened an issue about it, but iirc it didn't go through because other changes had to be made (which I didn't know how to do.)
602: [20:28:34] * joelpit__ quit (Read error: No route to host)
603: [20:28:54] <FrozenFire> Which backend?
604: [20:28:56] * joelpittet has joined #silverstripe
605: [20:28:58] <FrozenFire> Oh wait, Imahick
606: [20:29:01] <FrozenFire> Imagick, rather
607: [20:29:08] * joelpittet quit (Remote host closed the connection)
608: [20:29:12] <FrozenFire> Yeah, that one was... mostly a PoC
609: [20:29:21] <simon_w> FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
610: [20:29:23] <Azure> That being https://github.com/silverstripe/silverstripe-framework/pull/2655
611: [20:29:33] <FrozenFire> To aim for maximum results compatibility with the original GD code, I basically ported it line-for-line.
612: [20:30:03] * Azure uses imagick for fancy automatic blurring and stuff.
613: [20:30:11] <FrozenFire> You're welcome.
614: [20:30:11] <FrozenFire> :P
615: [20:30:26] <Azure> lol
616: [20:30:55] <FrozenFire> Feel free to completely rewrite the Imagick backend
617: [20:31:31] <FrozenFire> I wrote the backend support stuff not because I wanted Imagick, but rather because I wanted to offload the image processing to a remote service
618: [20:38:05] * micmania1 has joined #silverstripe
619: [20:39:08] * mojo5000 quit (Remote host closed the connection)
620: [20:42:14] <willr> simon_w I'll be in the US over your leaving period (and pretty much march/april/may). Will have to come crash Canberra.
621: [20:42:51] <simon_w> willr, might want to wait until we find a place then, since we'll be living in her parents' house to start with
622: [20:43:19] <willr> Yeah, will do the housewarming perhaps.
623: [20:45:38] <simon_w> I guess we'll have to have one then
624: [20:54:02] * OxFF1 quit (Ping timeout: 252 seconds)
625: [21:03:36] * UndefinedOffset quit (Quit: Leaving.)
626: [21:03:58] * willr quit (Quit: willr)
627: [21:13:23] <Azure> hm... There's a way to access dataobjects from a page individually as their own "pages", right?
628: [21:14:00] <Azure> i.e. /photography/commercial-photography/show/2 (or whatever)
629: [21:20:17] <simon_w> Well, you have to write it
630: [21:40:45] <Azure> Of course. I would have to use routes? Or look for a module or something that enables it.
631: [21:41:46] <simon_w> assuming photography/commercial-photography is a page, then you just need a show action
632: [21:48:15] <Pyromanik> sups
633: [21:48:31] <Pyromanik> [09:25] <@willr> building apps by yourself sucks.
634: [21:48:39] <Pyromanik> yeh this is true, but that's not how the ad was written.
635: [21:48:51] <Pyromanik> If they're looking for partners they shouldn't be advertising for employees :P
636: [21:51:57] <Pyromanik> Azure, you can either just write an action named show (to enable your example withe the ID in the URL) or use routes if you want to get fancypants and use actual slugged titles or something.
637: [21:52:06] <Pyromanik> I wrote a umm... shit I dunno if I have a copy. Sec.
638: [21:54:30] <Pyromanik> aww shiiiiiiii....t
639: [21:55:10] <Pyromanik> That moment when you find the backup of all your componentry work made at your previous employ is just an empty folder :<
640: [21:55:12] <Pyromanik> guts.
641: [21:56:00] <guzzlefry> :(
642: [21:56:15] <Azure> :x
643: [21:56:25] <Pyromanik> might have moved it off my phone
644: [21:56:31] * Pyromanik crosses fingers
645: [21:56:36] <Pyromanik> there was some good shit in there.
646: [21:56:45] <Pyromanik> I was going to polish stuff up and release it
647: [22:00:05] <Pyromanik> fff, gut
648: [22:00:07] <Pyromanik> s
649: [22:00:17] <Pyromanik> I guess it's maybe on a hard drive somewhere in NZ still :<
650: [22:00:30] * mojo5000 has joined #silverstripe
651: [22:00:34] <Pyromanik> sthie.
652: [22:00:37] <Pyromanik> shit*
653: [22:01:25] <Pyromanik> extreme disappoint son.
654: [22:04:02] * mojo5000 quit (Remote host closed the connection)
655: [22:07:23] * oddnoc has joined #silverstripe
656: [22:08:00] <Pyromanik> well shit, sorry Azure, but it's not too hard to write a doodacky to do it the slugged url segment way.
657: [22:08:03] <Pyromanik> if you wished.
658: [22:08:37] <Azure> Ah
659: [22:12:10] <Pyromanik> huzzah, I found them!
660: [22:12:47] <Azure> woo
661: [22:13:35] <Azure> I just wonder if I could add the actions to a module's pagetype via an extension.
662: [22:13:46] <Pyromanik> YUS, even got the RESTful consumer stuff :D
663: [22:13:53] <Pyromanik> man I'm good.
664: [22:14:36] <Pyromanik> Azure, umm, in theory probably yes.
665: [22:15:13] <Pyromanik> provided allowed_actions works (it should)
666: [22:15:32] <Pyromanik> ie, allowed actions on the extension affecting the 'owner'
667: [22:15:43] <Azure> aha
668: [22:16:07] <Pyromanik> but that of course means that they'll need to be predefined
669: [22:17:50] <Azure> I see
670: [22:19:08] <Pyromanik> ie, the use won't have any control
671: [22:19:27] <Pyromanik> you'll be defining actions (thus routes) such as show, edit, delete, etc.
672: [22:19:45] <Azure> mm
673: [22:19:49] <Pyromanik> which is fine, but it depends on the system design and if it fits in well, etc.
674: [22:24:23] <Azure> Might be better to just alter the module itself I suppose.
675: [22:44:45] * violet- has joined #silverstripe
676: [22:45:49] <Pyromanik> sounds like a terrible idea Azure
677: [22:45:50] * violetina quit (Ping timeout: 264 seconds)
678: [22:46:37] <Azure> I still would need to add in the action under $allowed_actions in the module's pagetype, right?
679: [22:55:47] * mojo5000 has joined #silverstripe
680: [23:13:07] * jrthomer quit (Remote host closed the connection)
681: [23:16:10] <micmania1> Anybody tried loading the demo site? Its really slow, not something i'd comfortably share with somebody looking for a CMS platform.
682: [23:19:56] <guzzlefry> There's a demo site?
683: [23:20:15] <ss23> Which one, micmania1?
684: [23:20:19] <guzzlefry> oh, found it
685: [23:20:19] <ss23> I can take a look at it if you want
686: [23:20:19] <micmania1> demo.silverstripe.org
687: [23:20:28] <ss23> seems fast here
688: [23:20:29] <ss23> :O
689: [23:20:32] <micmania1> I think its running on the master branch too
690: [23:20:33] <guzzlefry> uhh
691: [23:20:40] <guzzlefry> http://demo.silverstripe.com/ <-- not much going on there.
692: [23:20:46] <ss23> Yeah, near instant for me
693: [23:20:59] <micmania1> you tried logging into the admin section?
694: [23:21:01] <ss23> Yeah
695: [23:21:14] <ss23> micmania1: Maybe just your connection?
696: [23:21:15] <micmania1> the pages section takes ages for me. I tried a few weeks ago too and has the same issue
697: [23:21:22] <ss23> iirc we hst that one at rackspace
698: [23:21:38] <ss23> yeah
699: [23:21:44] <Pyromanik> [11:46] <Azure> I still would need to add in the action under $allowed_actions in the module's pagetype, right?
700: [23:21:46] <Pyromanik> yeah, right.
701: [23:21:46] <mojo5000> hola senors
702: [23:21:53] <ss23> micmania1: Not much we can do, sorry. You could try setting up your own demo closer to you maybe might help
703: [23:22:06] <Pyromanik> you're on late micmania1
704: [23:22:07] <mojo5000> Q: CMS admin add-on: editing lang.yml files
705: [23:22:24] <mojo5000> is there an existing one that anyone can recommend?
706: [23:22:52] <Pyromanik> hola mojo5000
707: [23:23:13] <mojo5000> hey hey
708: [23:23:16] * willr has joined #silverstripe
709: [23:23:23] <micmania1> ss23 i'm getting 23mbs. Maybe its location?
710: [23:23:25] <Pyromanik> mojo5000, sorry I don't follow your question
711: [23:23:33] <mojo5000> lang.yml files
712: [23:23:40] <Pyromanik> yes
713: [23:23:41] <mojo5000> i want them to be avail in the cms
714: [23:23:42] <micmania1> Pyromanik, yep. Personal projects :)
715: [23:23:46] <Pyromanik> what?
716: [23:23:53] <mojo5000> to edit through the interface
717: [23:23:55] <Pyromanik> mojo5000, you mean, to edit?
718: [23:23:57] <mojo5000> yes
719: [23:23:59] <mojo5000> make sense?
720: [23:24:00] <Pyromanik> why?
721: [23:24:03] <Pyromanik> no.
722: [23:24:10] <Pyromanik> do languages change that often?
723: [23:24:26] <mojo5000> client is doing complete EFIGS
724: [23:24:39] <mojo5000> want them to be able to do through nice CMS interface
725: [23:24:43] <Pyromanik> I'm pretty sure the rules of English are the same as when I learnt them nearly 30 years ago
726: [23:24:49] <Pyromanik> EFIGS
727: [23:24:52] <mojo5000> lol
728: [23:24:52] <Pyromanik> please define?
729: [23:25:03] <mojo5000> english french italian german spanish
730: [23:25:12] <mojo5000> need to translate into 5 other languages
731: [23:25:18] <mojo5000> and they will roll out one by one
732: [23:25:20] <Pyromanik> yeah I'm not following.
733: [23:25:23] * mobiusnz has joined #silverstripe
734: [23:25:38] <mojo5000> but as they for example want to work on their german site
735: [23:25:50] <mojo5000> it will take them a few days/weeks to supply german content
736: [23:25:56] <Pyromanik> right, it sounds like you want translatable or fluent modules.
737: [23:26:07] <Pyromanik> yes, content has nothing to do with yml files.
738: [23:26:14] <mojo5000> and edit the primary ge_GE.yml file as well
739: [23:26:22] <mojo5000> yr not getting it. :)
740: [23:26:24] <Pyromanik> but why?
741: [23:26:37] <Pyromanik> I'm reasonably sure the German translation is pretty complete.
742: [23:26:38] <mojo5000> non-developers
743: [23:26:46] <Pyromanik> yeah you're not getting it I think.
744: [23:26:48] <mojo5000> NOT FOR THE CMS ITSELF
745: [23:26:52] <Pyromanik> you want a multi language site.
746: [23:26:57] <mojo5000> yes
747: [23:27:03] <mojo5000> i've got a multilanguage site
748: [23:27:11] <Pyromanik> YES, YML FILES HAVE _NOTHING_ TO DO WITH TRANSLATIONS
749: [23:27:22] <mojo5000> AAARRRRGGGG. :)
750: [23:27:29] <Pyromanik> [12:26] <mojo5000> NOT FOR THE CMS ITSELF
751: [23:27:38] <Pyromanik> this is EXACTLY what the yml files are for, and do.
752: [23:27:40] <Pyromanik> nothing more.
753: [23:27:42] <mojo5000> we are using i18ln, translatable, and translateable data objects
754: [23:27:47] <Pyromanik> right.
755: [23:27:47] <Pyromanik> so
756: [23:28:14] <Pyromanik> the issue is...?
757: [23:28:14] <mojo5000> News:
758: [23:28:15] <mojo5000> AUTHOR: 'Author'
759: [23:28:15] <mojo5000> DATE: 'Date'
760: [23:28:16] <mojo5000> VIEW_CATEGORIES: 'VIEW CATEGORIES'
761: [23:28:18] <mojo5000> READ_FULL_ARTICLE: 'READ FULL ARTICLE'
762: [23:28:20] <mojo5000> Media:
763: [23:28:22] <mojo5000> IMAGE: 'Image'
764: [23:28:24] <mojo5000> VIDEO: 'Video'
765: [23:28:27] <Pyromanik> yeah don't do that.
766: [23:28:33] <mojo5000> so this for example is an english part of the yml file for particular labels
767: [23:28:46] <Pyromanik> yes.
768: [23:28:51] <mojo5000> i am not going to have every one of these items in the db
769: [23:28:56] <Pyromanik> and there are spanish and german and others last time I looked.
770: [23:29:17] <Pyromanik> yeah but they're not in the DB in the first place.
771: [23:29:18] <mojo5000> for larger content - yes, this is part of a translatable page
772: [23:29:49] <mojo5000> start over: i want someone to be able to edit this file easily through the cms rather than the file system.
773: [23:30:02] <Pyromanik> answer: sounds like a terrible idea.
774: [23:30:08] <mojo5000> that is the basic ask. is there an existing add-on to do this or not? :)
775: [23:30:23] <Pyromanik> there's a website that manages all the translation files.
776: [23:30:29] <Pyromanik> go and edit the translation.
777: [23:30:50] <Pyromanik> Otherwise you've done a poor job of explaining yourself.
778: [23:30:57] <mojo5000> i'm telling you man, this is not translation files for Silverstripe
779: [23:31:01] <Pyromanik> yml files are not intended to be edited, ever.
780: [23:31:04] <mojo5000> these are for my app
781: [23:31:07] <Pyromanik> right
782: [23:31:14] <Pyromanik> so they're completely separate
783: [23:31:27] <mojo5000> en:
784: [23:31:27] <mojo5000> General:
785: [23:31:27] <mojo5000> WEAPON_SCHEMATICS: 'Weapon Schematics'
786: [23:31:29] <mojo5000> CHARACTERS: 'Characters'
787: [23:31:31] <mojo5000> MEDIA: 'Media'
788: [23:31:32] <mojo5000> NEWS: 'News'
789: [23:31:33] <Pyromanik> despite that SS has all this stuff built in.
790: [23:31:35] <mojo5000> COMMUNITY: 'Community'
791: [23:31:37] <mojo5000> SHOP: 'Shop'
792: [23:31:39] <mojo5000> SELECT_YOUR_REGION: 'Select Your Region'
793: [23:31:41] <mojo5000> PLAY_NOW: 'Play Now'
794: [23:31:43] <mojo5000> SHARE: 'Share'
795: [23:31:45] <mojo5000> LINKS: 'Links'
796: [23:31:47] <mojo5000> this is an example
797: [23:31:51] <mojo5000> and this is for my individual app
798: [23:31:54] <mojo5000> and this works great
799: [23:31:55] <Pyromanik> right.
800: [23:31:57] <Pyromanik> ok
801: [23:32:14] <mojo5000> it is under /mysite/lang
802: [23:32:25] <mojo5000> this is particular to my individual app
803: [23:32:26] <Pyromanik> so, make 5 translation files and why bother editing them?
804: [23:32:38] <mojo5000> i'm not making the other 4
805: [23:32:41] <mojo5000> someone else is
806: [23:32:49] <mojo5000> and we are handing off an english version of the site
807: [23:32:57] <Pyromanik> right.
808: [23:32:59] <mojo5000> and someone else has to come in and do the translation
809: [23:33:03] <mojo5000> make sense now?
810: [23:33:08] <Pyromanik> Yes and no.
811: [23:33:16] <Pyromanik> Yes I finally understand.
812: [23:33:28] <Pyromanik> no it doesn't make sense to have an edit area in the CMS.
813: [23:33:36] <Pyromanik> despite that they're non developers.
814: [23:34:12] <Pyromanik> if you want an admin panel for it, I'm afraid you'll have to build one.
815: [23:34:16] <Pyromanik> extend leftandmain etc.
816: [23:34:49] <mojo5000> k, thanks, i just wanted to know if one existed already, thought i had seen one part of add-ons.
817: [23:35:04] <Pyromanik> well, you can search addons, but not that I'm aware of.
818: [23:35:11] <micmania1> UncleCheese made one for 2.4 but it would take quite a bit of work to make it ss3 compatible
819: [23:35:17] <Pyromanik> I know some folks have done some things like that in the past, but yeh.
820: [23:35:42] <Pyromanik> micmania1, there have been more recent things for that. There was a chap asking how to read/write yml files once.
821: [23:35:45] * travis-ci has joined #silverstripe
822: [23:35:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1769 (3.0 - dd801bd : Will Rossiter): The build passed.
823: [23:35:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/f59c47fd8e35...dd801bdb0bfd
824: [23:35:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16754699
825: [23:35:45] * travis-ci has left #silverstripe
826: [23:35:50] <Pyromanik> some time late last year
827: [23:36:18] <Pyromanik> you could search logs for that, I know he came back and declared the answer
828: [23:37:47] <mojo5000> http://www.leftandmain.com/silverstripe-modules/2011/05/13/langeditor/
829: [23:37:58] <mojo5000> here, yes, not v3 compatible
830: [23:38:03] <mojo5000> anyways, thanks guys
831: [23:39:10] <Pyromanik> shouldn't be too hard to hard code some interface to the specific translations you need.
832: [23:39:54] <Pyromanik> although if you've left it open to have more translations added later it could be more troublesome but not overly hard to generate an interface to make translation files for each lang.
833: [23:41:34] * Liquide has joined #silverstripe
834: [23:52:20] * jrthomer has joined #silverstripe
835: [23:57:27] * jrthomer quit (Ping timeout: 276 seconds)

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