#silverstripe IRC Log

IRC log for 6 February 2013

All timestamps are in UTC.

1: [00:01:00] <catcher> SS have anything for permanent redirects of previous URLs? Or am I .htaccess-bound?
2: [00:03:00] <FrozenFire> https://github.com/ajshort/silverstripe-linkmapping
3: [00:03:00] <FrozenFire> I think it's shit, though.
4: [00:04:00] <FrozenFire> Hard to say. I've never worked with it, but someone I know has, and he had trouble.
5: [00:05:00] <catcher> so .htaccess
6: [00:06:00] <FrozenFire> Well, the other way you can go is using my 404 hijack scheme
7: [00:06:00] <FrozenFire> Writing your own mapper
8: [00:08:00] <FrozenFire> Which is basically just an extended ErrorPage with a 404 error code, which, on init, will try to match the URL to something (e.g. your mapper object), and then redirect based on that
9: [00:08:00] <catcher> that's pretty cool.
10: [00:09:00] <catcher> I think with only 1 or 2, .htaccess should do the trick.
11: [00:09:00] <catcher> But note to self, place them *above* the globbing rules.
12: [00:09:00] <FrozenFire> Perhaps
13: [00:10:00] <FrozenFire> And it's also prone to "why the hell is this portion of my application broken now?!?" moments
14: [00:10:00] <FrozenFire> I tend to avoid htaccess for such things, just because it's SAPI-specific
15: [00:11:00] <FrozenFire> That being, I find it best to make mapping the lowest priority
16: [00:11:00] <FrozenFire> So that if you want to have a new page in that place, you're not stuck mapped.
17: [00:13:00] <FrozenFire> Yes. Exactly.
18: [00:13:00] <catcher> But then the other rules supersede them, no?
19: [00:14:00] <catcher> right, that makes sense. This is a completely different url scheme that should always win.
20: [00:14:00] <FrozenFire> If you're doing a mapping of an old URL scheme which won't ever conflict, that's fine.
21: [00:14:00] <FrozenFire> In htaccess, you're basically saying "I want this to happen no matter what else could possibly happen"
22: [00:14:00] <FrozenFire> But if you're mapping a URL that *could* conflict, you're best off not using htaccess.
23: [00:15:00] <FrozenFire> Heh. SAPI problem?
24: [00:15:00] <catcher> strangely, it's working in 1 environment but not another.
25: [00:16:00] <catcher> not sure what that is, tbh
26: [00:17:00] * willr_ quit (Quit: willr_)
27: [00:17:00] <FrozenFire> Only Apache (and SAPIs that pretend to be it) will respect .htaccess
28: [00:17:00] <FrozenFire> Apache is a SAPI. IIS is a SAPI. CLI is a SAPI
29: [00:18:00] <catcher> Apache, same webserver setup on both environments
30: [00:18:00] * mrpink quit (Quit: Page closed)
31: [00:22:00] * mirrors quit (Quit: Page closed)
32: [00:55:00] * catcher quit (Quit: Leaving)
33: [00:58:00] * popeshoe quit (Ping timeout: 245 seconds)
34: [01:00:00] * popeshoe has joined #silverstripe
35: [01:02:00] * dendeffe quit (Quit: dendeffe)
36: [01:03:00] * dendeffe has joined #silverstripe
37: [01:09:00] <Rastafarii> Hi everyone!
38: [01:09:00] <Rastafarii> is there a way to enlarge cms-panel.west in admin?
39: [01:09:00] * Rastafarii has joined #silverstripe
40: [01:11:00] <FrozenFire> Through CSS?
41: [01:12:00] <Rastafarii> only way to enlarge it through css is to add !important
42: [01:12:00] <FrozenFire> Just be more specific
43: [01:12:00] <Rastafarii> in which case toggle won't work
44: [01:14:00] <FrozenFire> Oh. I see
45: [01:14:00] <FrozenFire> No, you're right.
46: [01:14:00] <FrozenFire> That's bad design on the part of whoever wrote that bit
47: [01:14:00] <Rastafarii> as far as I know
48: [01:15:00] <FrozenFire> But target it non-collapsed
49: [01:15:00] <FrozenFire> Welp, might have to use !important
50: [01:15:00] <Rastafarii> add !important - and try to collapse it
51: [01:16:00] <FrozenFire> Yeah, I know.
52: [01:16:00] <FrozenFire> You'd have to target :not(.collapsed)
53: [01:17:00] <FrozenFire> It's using some thoroughly silly pseudo-fluid design
54: [01:17:00] <FrozenFire> That being said, I don't know if the rest of the viewport will shift out of the way.
55: [01:18:00] <Rastafarii> .cms-panel.west { width: 250px !important; } .cms-panel.west.collapsed { width: 40px !important; }
56: [01:18:00] <Rastafarii> this did the trick :)
57: [01:18:00] <FrozenFire> That'd do it, yes.
58: [01:19:00] * Jakx has left #silverstripe
59: [01:20:00] <Rastafarii> thanks!
60: [01:26:00] * willr_ quit (Changing host)
61: [01:26:00] * willr_ has joined #silverstripe
62: [01:26:00] * willr_ has joined #silverstripe
63: [01:32:00] * howardgrigg has joined #silverstripe
64: [01:49:00] * bosie has joined #silverstripe
65: [01:57:00] <bosie> hello! wonder if anyone can improve my day off..!! i've been trawling google for the last few hours trying to find examples of gridfield being used on the front-end, specifically for editing. I can't find anything. does anyone know of any docs, or example code anywhere that I can use?
66: [02:14:00] <Bollig|DesignCty> bosie: sorry, I haven't heard of anything recently. I know there were a few attempts a couple of months back that weren't very successful, however I have no idea what that status of this is with 3.1 beta
67: [02:15:00] <bosie> Hello :) thanks for answering - do you mean that it doesn't work on the frontend? it's not just me not getting it?
68: [02:20:00] * SightUnseen has joined #silverstripe
69: [02:20:00] <Bollig|DesignCty> So it might be you... or it might not :)
70: [02:20:00] * SightUnseen has left #silverstripe
71: [02:20:00] <Bollig|DesignCty> bosie: Sorry I can't be more help! Keep in mind I've never tried it, just recall people discussing it on here and the dev mailing list. From memory, they didn't have much luck, but it was a while ago, and the 3.1 beta might have fixes in place...
72: [02:21:00] <bosie> ha ha :) OK, I might have a quick look at 3.1
73: [02:21:00] <Bollig|DesignCty> someone like simon_w, willr_ or sminnee should be able to give you a more definitive answer
74: [02:22:00] * howardgrigg quit (Remote host closed the connection)
75: [02:22:00] <bosie> thanks bollig :)
76: [02:23:00] * howardgrigg has joined #silverstripe
77: [02:28:00] * howardgrigg quit (Ping timeout: 264 seconds)
78: [02:39:00] <bosie> ah, well it seems to be a touch further on in 3.1, in that at least I get an edit button, which might be enough for me to do some javascript tomfoolery to get me over the line! so thanks Bollig :)
79: [02:49:00] * dendeffe quit (Quit: dendeffe)
80: [03:02:00] <Bollig|DesignCty> better than nothing hopefully :)
81: [03:21:00] <bosie> yep, sure is - finally getting somewhere today :) thanks for help!
82: [03:21:00] * howardgrigg has joined #silverstripe
83: [03:26:00] * instabil quit (Read error: Connection reset by peer)
84: [03:42:00] <willr_> simon_w did you say you found a way of having yml config based on live/dev mode?
85: [03:43:00] <willr_> Aha
86: [03:43:00] * simon_w|air has joined #silverstripe
87: [03:43:00] <simon_w|air> willr_, http://doc.silverstripe.org/framework/en/topics/configuration#exclusionary-rules
88: [03:44:00] <simon_w|air> Also, packing is so boring
89: [03:44:00] <simon_w|air> Yeah, I actually went and read the docs before complaining to Hamish :)
90: [03:45:00] <willr_> that's why you don't move.
91: [03:45:00] <willr_> TL:DR
92: [03:46:00] <simon_w|air> But this place is kinda horrible
93: [03:46:00] <simon_w|air> Also, move == party!
94: [03:47:00] * howardgrigg has joined #silverstripe
95: [03:47:00] * howardgrigg quit (Remote host closed the connection)
96: [03:48:00] <willr_> was a safety risk.
97: [03:48:00] <simon_w|air> You probably did
98: [03:48:00] <willr_> simon_w|air pretty sure I told you it was horrible when you moved in
99: [03:51:00] * howardgrigg quit (Ping timeout: 246 seconds)
100: [04:01:00] * perverse has joined #silverstripe
101: [04:27:00] * DigNZ has joined #silverstripe
102: [04:39:00] * cloph_away has joined #silverstripe
103: [04:40:00] * cloph_away1 quit (Ping timeout: 248 seconds)
104: [05:07:00] * howardgrigg has joined #silverstripe
105: [05:08:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
106: [05:17:00] * willr_ quit (Quit: willr_)
107: [05:56:00] * SightUnseen has joined #silverstripe
108: [06:05:00] * SightUnseen quit (Ping timeout: 264 seconds)
109: [06:09:00] * mrzero quit (Read error: Connection reset by peer)
110: [06:09:00] * mrzero has joined #silverstripe
111: [06:09:00] * mrzero quit (Changing host)
112: [06:09:00] * mrzero has joined #silverstripe
113: [06:19:00] * Error404NotFound has joined #silverstripe
114: [06:23:00] * perverse quit ()
115: [06:24:00] * Error404NotFound quit (Ping timeout: 272 seconds)
116: [06:30:00] * patJnr has joined #silverstripe
117: [06:31:00] * SightUnseen has joined #silverstripe
118: [06:36:00] * Error404NotFound has joined #silverstripe
119: [06:37:00] * SightUnseen quit (Ping timeout: 255 seconds)
120: [06:56:00] <patJnr> is there a way of turning off the cms preview in 3.1.0?
121: [07:07:00] * Shrike_Finland has joined #silverstripe
122: [07:13:00] * Bollig|DesignCty has joined #silverstripe
123: [07:29:00] * SightUnseen has joined #silverstripe
124: [08:05:00] * SightUnseen has left #silverstripe
125: [08:06:00] * gelignite has joined #silverstripe
126: [08:09:00] * zfmf has joined #silverstripe
127: [08:11:00] * Shrike_Finland quit (Read error: Connection reset by peer)
128: [08:11:00] * Shrike_Finland has joined #silverstripe
129: [08:20:00] * priithansen has joined #silverstripe
130: [08:25:00] * SightUnseen1 has joined #silverstripe
131: [08:25:00] * SightUnseen1 has left #silverstripe
132: [08:26:00] * Jakx has joined #silverstripe
133: [08:26:00] <Jakx> man, such a great day.
134: [08:27:00] * ARNHOFF has joined #silverstripe
135: [08:27:00] * ARNHOFF quit (Client Quit)
136: [08:28:00] <Jakx> whats the easiest way to validate an EmailField? is it something like $form->Fields()->dataFieldByName('Email')->validate()??
137: [08:28:00] * ARNHOFF has joined #silverstripe
138: [08:29:00] <zfmf> Jakx: use EmailField
139: [08:29:00] <guci0> Hello World!
140: [08:29:00] * guci0 has joined #silverstripe
141: [08:30:00] <Jakx> zfmf, yeah I am, and it is validating it at the front end with html5. I'm always very wary of validation in SS, I've never come across a difinitive way to do it in both javascript & php
142: [08:33:00] <zfmf> Jakx: i think its also validating at serverside
143: [08:34:00] <Jakx> zfmf, I guess I'll just have to assume that as I've not come across an easy to way to disable the front end validation
144: [08:34:00] <Jakx> zfmf, what do you typically do to validate your forms?
145: [08:34:00] <simon_w|air> Disable javascript :p
146: [08:34:00] <simon_w|air> Jakx, the default RequiredField validates the individual fields too
147: [08:35:00] <Jakx> simon_w|air, yeah good idea.
148: [08:35:00] <simon_w|air> Unless it's a type=email field with browser validation, in which case use an old browser
149: [08:36:00] <Jakx> last year I made a production site that had a form on almost every page. And I still don't have any approach to cleanly validating and error messaging forms. - how retarded is that.
150: [08:36:00] <simon_w|air> We only validate server side, and generally write a custom validator for each form
151: [08:37:00] <simon_w|air> Each form is usually its own class, so we have things like SignupForm and SignupForm_Validator
152: [08:38:00] * bummzack has joined #silverstripe
153: [08:40:00] <Jakx> simon_w, I try to. Here's an example for you. Right now I'm writing a custom template for a form. I've followed the documentation and have a $Message ready to render any form messages to the page...
154: [08:40:00] * ferge has left #silverstripe
155: [08:40:00] <zfmf> im also using netefxvalidator on some myprojects
156: [08:40:00] <Jakx> this is in my form action method:
157: [08:40:00] <zfmf> and for client side jquery validate
158: [08:40:00] <Jakx> 2 lines. I still don't get a message
159: [08:40:00] <Jakx> $form->sessionMessage('This is a test message', 'bad'); return $this->redirectBack();
160: [08:40:00] * ferge has joined #silverstripe
161: [08:42:00] <simon_w|air> Jakx, calling $Message twice?
162: [08:42:00] <simon_w|air> Probably with an <% if $Message %>
163: [08:43:00] <simon_w|air> use <% if $MessageType %> instead
164: [08:43:00] <bummzack> hey devs. Do you guys know how to keep a silverstripe session alive without cookies?
165: [08:44:00] <Jakx> simon_w|air, I've taken that into account and still no luck
166: [08:44:00] <bummzack> I'm trying to pass the session as url param or form field.. to no avail
167: [08:44:00] <simon_w|air> bummzack, have you told PHP to do that?
168: [08:44:00] <simon_w|air> Also, that's a rather bad idea
169: [08:45:00] <bummzack> simon_w|air yes i tried that
170: [08:45:00] <bummzack> for IE there's a workaround with some strange headers
171: [08:45:00] <bummzack> namely safari 5.x
172: [08:45:00] <bummzack> but the code in question runs in an iframe
173: [08:45:00] <bummzack> I know it's a bad idea
174: [08:45:00] <bummzack> which doesn't allow session cookies on some browsers
175: [08:46:00] <Jakx> simon_w|air, http://sspaste.com/paste/show/511218732fae4
176: [08:46:00] * guci0 quit (Ping timeout: 245 seconds)
177: [08:46:00] <simon_w|air> And all you need to do is tell PHP to do it
178: [08:47:00] <bummzack> hm.. i tried that but to no avail.. well.. i should probably build a small test-case without silverstripe to narrow it down.. if it's really a SS problem or if it's a php config issue
179: [08:47:00] <simon_w|air> session.use_only_cookies needs to be off, session.use_trans_sid needs to be on
180: [08:48:00] <bummzack> that's what I have
181: [08:50:00] * Zauberfisch quit (Ping timeout: 246 seconds)
182: [08:51:00] * MrGuits has joined #silverstripe
183: [08:52:00] * Zauberfisch has joined #silverstripe
184: [08:53:00] <bummzack> it seems to inject the session id in the form.. so that part works.. but validation seems to fail.. eg. all fields reset to empty fields
185: [08:55:00] * guci0 has joined #silverstripe
186: [08:56:00] * chillu23 has joined #silverstripe
187: [08:56:00] * chillu23 has joined #silverstripe
188: [08:56:00] * chillu23 quit (Changing host)
189: [08:58:00] * instabil has joined #silverstripe
190: [09:04:00] * kinglozzer has joined #silverstripe
191: [09:05:00] <Jakx> I can see the error message in the var_dump of the form and it still won't appear in my template
192: [09:07:00] <Jakx> simon_w|air, do you consider working with forms in SS easy?
193: [09:08:00] <patJnr> @jakx; have you tried custom validation?
194: [09:08:00] <patJnr> serverside
195: [09:09:00] <Jakx> which, tbh, is frustrating
196: [09:09:00] * dendeffe has joined #silverstripe
197: [09:09:00] <Jakx> patJnr, yeah. But my intention here is to really get the grasp of how to use the silverstripe functionality as effectively as possible
198: [09:10:00] <simon_w|air> Jakx, yup
199: [09:11:00] <Jakx> simon_w|air, so why is it that after effectively a year of working with forms, I'm still having these issues. It just doesn't seem intuitive enough.
200: [09:14:00] <patJnr> i might have a solutions for you but i need to ask a few questions
201: [09:14:00] <Jakx> patJnr, I'd certainly appreciate it :)
202: [09:14:00] <simon_w|air> Usually means you're doing weird things
203: [09:15:00] <patJnr> if someone types in "test@ttttest" you want it to return an error
204: [09:15:00] <Jakx> simon_w|air, well when I finally get my head around it. I'll be sure to write a set of documentation that defines what is considered not weird :)
205: [09:16:00] <Jakx> patJnr, yep. Which it does, using the stock EmailField validation
206: [09:16:00] <Jakx> but I only know this because I am seeing it in the var_dump of the form object at page render
207: [09:17:00] <patJnr> ok, in short what do you want the validation to do,
208: [09:17:00] <simon_w|air> Are you using a custom template to render the form?
209: [09:17:00] <patJnr> i dont think he is
210: [09:17:00] <patJnr> good question simon
211: [09:18:00] <patJnr> wait.. where is the __construct in you form then
212: [09:18:00] <Jakx> simon_w|air, yeah I am
213: [09:18:00] <patJnr> ?
214: [09:18:00] <simon_w|air> Jakx, and what are you using to render the fields?
215: [09:19:00] <Jakx> simon_w|air, in this example I'm using <% control Fields %> $Field <% end_control %>
216: [09:19:00] <patJnr> this looks like a form insode a controller http://sspaste.com/paste/show/511218732fae4
217: [09:20:00] <Jakx> patJnr, that is from inside a page controller yes
218: [09:20:00] <patJnr> and how are you able to use a custom template?
219: [09:20:00] <simon_w|air> Jakx, that would be why they're not showing. It's $FieldHolder that puts in the error div, or https://github.com/silverstripe/sapphire/blob/3.0/templates/forms/FormField_holder.ss#L7 if you don't want the entire fieldholder
220: [09:21:00] <Jakx> patJnr, that is how I'm doing it ^
221: [09:21:00] <simon_w|air> patJnr, one way: return array('NewsletterForm' => $this->NewsletterForm()->renderWith('Template'))
222: [09:22:00] <patJnr> ok, i got it
223: [09:23:00] <Jakx> simon_w|air, good call. ok that clears up where the error messages appear in the template. Is there a way I can access those messages inside the method which also instantiates the form?
224: [09:24:00] <Jakx> i.e my NewsletterForm() method
225: [09:24:00] <Jakx> or you may know patJnr :)?
226: [09:25:00] <simon_w|air> or empty
227: [09:25:00] <simon_w|air> With that being an array of array('fieldName' => blah, 'message' => blah, 'messageType' => blah)s
228: [09:25:00] <simon_w|air> $errorInfo = Session::get("FormInfo.{$form->FormName()}.errors");
229: [09:27:00] <Jakx> simon_w|air, great. see that alone allows me to do inline field validation
230: [09:30:00] <Jakx> simon_w|air, why does type=email front end validate an email field if there is a value in the field, but doesn't bother if it is blank?
231: [09:31:00] <simon_w|air> This the browser validation?
232: [09:31:00] <Zauberfisch> simon_w|air simon_w
233: [09:31:00] <simon_w|air> Probably because you don't have the required attribute
234: [09:32:00] <Zauberfisch> ping
235: [09:32:00] <simon_w|air> Or gnop, depending on which game you play
236: [09:32:00] <Zauberfisch> yeah, quiet all right, just to much work, as always
237: [09:32:00] <simon_w|air> pong!
238: [09:32:00] <Zauberfisch> yay
239: [09:32:00] <Jakx> lol
240: [09:32:00] <Jakx> hey Zauberfisch, hope you are well
241: [09:33:00] <Jakx> patJnr, thanks for your help mate :)
242: [09:34:00] <patJnr> pleasure, we always learn new things everyday
243: [09:35:00] <Jakx> simon_w|air, how do I set my emailfield to required?
244: [09:36:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
245: [09:36:00] <Jakx> simon_w|air, ah awesome. thx for your help
246: [09:36:00] <simon_w|air> Jakx, $emailField->setAttribute('required', 'required')
247: [09:36:00] <Jakx> ->setAttribute()?
248: [09:40:00] * SightUnseen has left #silverstripe
249: [09:40:00] * SightUnseen has joined #silverstripe
250: [09:43:00] * travis-ci has joined #silverstripe
251: [09:43:00] * bummzack quit (Quit: bummzack)
252: [09:43:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#10 (pulls/fsp-publishpages-return - c5219c1 : Ingo Schommer): The build failed.
253: [09:43:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/d0585e484abd^...c5219c1e7f23
254: [09:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/4613096
255: [09:43:00] * travis-ci has left #silverstripe
256: [09:46:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/603263e687e8^...2800a34f806a
257: [09:46:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#11 (pulls/on-callbacks - 2800a34 : Ingo Schommer): The build has errored.
258: [09:46:00] * travis-ci has joined #silverstripe
259: [09:46:00] * travis-ci has left #silverstripe
260: [09:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/4613109
261: [09:47:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1db0156832cf...b31dbc0b5f13
262: [09:47:00] <travis-ci> [travis-ci] silverstripe/sapphire#1331 (3.0 - b31dbc0 : Ingo Schommer): The build is still failing.
263: [09:47:00] * travis-ci has left #silverstripe
264: [09:47:00] * travis-ci has joined #silverstripe
265: [09:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4613030
266: [09:53:00] * travis-ci has left #silverstripe
267: [09:53:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/18c9a95996c5^...d289016bc38a
268: [09:53:00] <travis-ci> [travis-ci] chillu/sapphire#53 (pulls/on-callbacks - d289016 : Ingo Schommer): The build has errored.
269: [09:53:00] * travis-ci has joined #silverstripe
270: [09:53:00] * Jakx has left #silverstripe
271: [09:53:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4613104
272: [09:56:00] * travis-ci has left #silverstripe
273: [09:56:00] <travis-ci> [travis-ci] silverstripe/sapphire#1332 (3.1 - 18c9a95 : Ingo Schommer): The build has errored.
274: [09:56:00] * travis-ci has joined #silverstripe
275: [09:56:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4613099
276: [09:56:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b350ded87ce6...18c9a95996c5
277: [10:02:00] * dendeffe quit (Quit: dendeffe)
278: [10:03:00] * travis-ci has joined #silverstripe
279: [10:03:00] * travis-ci has left #silverstripe
280: [10:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4613124
281: [10:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/fbfc939fc4c2...8dae8a307615
282: [10:03:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#225 (3.1 - 8dae8a3 : Ingo Schommer): The build passed.
283: [10:05:00] <guci0> simon_w|air: one question, Is possible to set sharing /framework and /cms parent inside hierarchy of server's folders like: http://kohanaframework.org/3.1/guide/kohana/tutorials/sharing-kohana#sharing-system-and-modules
284: [10:06:00] * gelignite quit (Ping timeout: 272 seconds)
285: [10:07:00] * lx-berlin has joined #silverstripe
286: [10:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/18c9a95996c5...d289016bc38a
287: [10:11:00] * travis-ci has joined #silverstripe
288: [10:11:00] * travis-ci has left #silverstripe
289: [10:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4613144
290: [10:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1333 (3.1 - d289016 : Ingo Schommer): The build has errored.
291: [10:12:00] <simon_w|air> guci0, you can use symlinks
292: [10:14:00] <simon_w|air> Bye bye ss-log, see you soon
293: [10:25:00] * ss-log has joined #silverstripe
294: [10:31:00] * zfmf quit (Ping timeout: 272 seconds)
295: [10:37:00] * simon_w|air quit (Quit: This computer has gone to sleep)
296: [10:39:00] <Zauberfisch> is the use of $Layout hardcoded to SiteTree?
297: [10:39:00] <Zauberfisch> or can I do the same thing with controllers?
298: [10:39:00] <Zauberfisch> -> HomeController
299: [10:39:00] <Zauberfisch> Controller
300: [10:39:00] <Zauberfisch> I have:
301: [10:40:00] <Zauberfisch> FoobarController.ss // like Layout/Foobar.ss
302: [10:40:00] <Zauberfisch> HomeController.ss // like Layout/Page.ss
303: [10:40:00] <Zauberfisch> -> FoobarController
304: [10:40:00] <Zauberfisch> and templates:
305: [10:40:00] <Zauberfisch> Controler.ss // like Page.ss
306: [10:43:00] <Zauberfisch> ah
307: [10:43:00] <Zauberfisch> its working
308: [10:43:00] <Zauberfisch> yay
309: [10:43:00] <Zauberfisch> just a typo
310: [10:50:00] <Zauberfisch> :)
311: [10:50:00] <lx-berlin> Zauberfisch: good to see that you are still a ss developer :)
312: [10:51:00] <Zauberfisch> :/
313: [10:51:00] <Zauberfisch> yeah, just to busy to hang around here to much
314: [10:51:00] <lx-berlin> and also to busy for podcasting as i noticed :)
315: [11:11:00] * Error404NotFound quit (Disconnected by services)
316: [11:12:00] * Err404NotFound has joined #silverstripe
317: [11:14:00] * zfmf has joined #silverstripe
318: [11:14:00] <Shrike_Finland> Who is it possible?
319: [11:14:00] <Shrike_Finland> hi guys! Could you help a bit: I'l like to check on child page, for example what is the class of parent page so that I can do a bit different layout based on that.
320: [11:16:00] <Shrike_Finland> Idea is that using wrapper page, I render two child pages inside the parent page as 50% width on both and user can open the child page in full width also.
321: [11:17:00] <zfmf> $this->Parent()->ClassName
322: [11:17:00] <zfmf> try
323: [11:17:00] <Shrike_Finland> Hope you get the pont
324: [11:20:00] <kinglozzer> Shrike_Finland, zfmf: I wonder if you can do $Parent.ClassName in a template?
325: [11:21:00] <Shrike_Finland> Hmm! Let's test that, thanx for the tips!
326: [11:26:00] * FrozenFire quit (Ping timeout: 264 seconds)
327: [11:28:00] * Unlearned has joined #silverstripe
328: [11:28:00] <Unlearned> I have a little problem. I use Translatable ant it rocks for my multilanguage website, but the problem is - I add flags and if I select a flag, I get another version of page(another language), the problem is - if I select any other hyperlink from the page, the language is reseted
329: [11:28:00] <Unlearned> hello, everyone
330: [11:29:00] <Unlearned> it doesn't stay the same I chose, what can I do ?
331: [11:33:00] <kinglozzer> Unlearned: My guess is that you need to store the chosen language in a cookie
332: [11:33:00] * FrozenFire has joined #silverstripe
333: [11:33:00] <kinglozzer> So Cookie::set('translatable-locale', $locale);
334: [11:34:00] <kinglozzer> Then in your Page_Controller init() function
335: [11:34:00] <Unlearned> hm.. that's quite strange. The natural behaviour should be implemented, as Translatable is implemented, I draw the language flags(selections) and it can't hold the chosen language itself?
336: [11:34:00] <kinglozzer> Unlearned: I don't know. I don't use translatable, just what my guess would be from looking at the documentation
337: [11:34:00] <kinglozzer> You can do: if($locale = Cookie::get('translatable-locale)) { Translatable::set_reading_locale($locale); }
338: [11:34:00] <Unlearned> ?
339: [11:34:00] <Unlearned> what's the most quick way with minimal modifications to my already deployed website, kinglozzer
340: [11:35:00] <Unlearned> I was so excited about Translatable instead of cloning the whole website content tree and it looks so mysterious :)
341: [11:35:00] <Unlearned> damn
342: [11:35:00] <kinglozzer> The docs don't mention storing the language
343: [11:36:00] <Unlearned> kinglozzer, where should this belong ? Cookie::set('translatable-locale', $locale);
344: [11:36:00] <kinglozzer> Unlearned: Setting a cookie shouldn't take too much modification
345: [11:36:00] * patJnr quit (Ping timeout: 256 seconds)
346: [11:37:00] <kinglozzer> Wherever you switch the language
347: [11:38:00] <kinglozzer> Yes. They presumably all extend Page_Controller
348: [11:38:00] <lx-berlin> Page_controller init() ?
349: [11:38:00] <Unlearned> well, all my pages have language switch ability, it would be a big fail to include it in all of the files, maybe in some root file all the others extend ?
350: [11:43:00] <kinglozzer> lx-berlin: http://stackoverflow.com/questions/3965049/how-to-sort-enum-column-in-mysql-database
351: [11:43:00] <lx-berlin> hmm, is it possible to sort a DataObjectSet (SS2.4 project) by an ENUM field (so in this exact order, not alphabetically)
352: [11:44:00] <kinglozzer> It's ugly, but it's the only way
353: [11:45:00] * patJnr has joined #silverstripe
354: [11:45:00] <kinglozzer> I think you'll have to do an SQLQuery (or whatever the 2.4 equivalent is)
355: [11:45:00] <kinglozzer> I don't know how you'd do it on a DataObjectSet
356: [11:46:00] <Unlearned> lx-berlin, kinglozzer thanks for that, however some of my pages extend not the Page, but SiteTree where I can alter it safely ? where's the needed file ?
357: [11:47:00] <kinglozzer> Unlearned: You can't alter it safely, any upgrades will override SiteTree as it's in the CMS folder. They should extend Page, not SiteTree
358: [11:48:00] <Unlearned> so in which part should I write the code ?
359: [11:48:00] <Unlearned> ok
360: [11:48:00] <Unlearned> I write if ($locale ..) inside init() so where Cookie gets ?
361: [11:48:00] <lx-berlin> argh, phonecall
362: [11:49:00] <kinglozzer> I don't understand. In init(), you check if the cookie is set, if it is then you use it to set the locale
363: [11:49:00] <Unlearned> yeah! so not, where do I set the cookie? :)
364: [11:50:00] <kinglozzer> Do you have an action that changes language?
365: [11:50:00] <Unlearned> yes, that's what it is using
366: [11:50:00] <Unlearned> well no, I just enabled Translatable inside _config.php ant it works immediately
367: [11:50:00] <kinglozzer> Or is it just using http://exmaple.com/?locale=en_GB
368: [11:50:00] <kinglozzer> Okay
369: [11:52:00] <kinglozzer> So, before that code. Add: if ($set_locale = $this->request->getVar('locale')) { Cookie::set('translatable-locale', $set_locale); }
370: [11:53:00] <kinglozzer> Also make sure you do parent::init(); after all this
371: [11:53:00] <kinglozzer> Inside init() ^^
372: [11:54:00] * samthejarvis has joined #silverstripe
373: [11:55:00] <kinglozzer> Hold on
374: [11:55:00] <Unlearned> so now I have if ($set_locale... then parent::init() and then Cookie::set ?
375: [11:56:00] <kinglozzer> Unlearned: Like this http://pastie.org/6078785
376: [11:57:00] <kinglozzer> I think. I've never used it, just guessing from the docs
377: [11:57:00] <lx-berlin> kinglozzer: thanks for the link. Omg, i already used this sql in another project. Its not good being a developer if you always forget what you did before
378: [11:58:00] <kinglozzer> Haha, yeah I always do that
379: [12:03:00] <Unlearned> if I am on News and I change the language then go to Products - it resets, but if I go to news and change the language and go to a specific new - it stays
380: [12:03:00] <Unlearned> kinglozzer well that kinda works actually, the strange part is that it works on sub pages
381: [12:03:00] <Unlearned> I mean if I have News and Products and in home page I change the language and go to News the language is reseted
382: [12:03:00] <samthejarvis> hullo all, anyone know how to turn off modeladmin's scaffolding?
383: [12:03:00] <kinglozzer> Unlearned: That's probably because your News page type extends from a different class
384: [12:04:00] <kinglozzer> Make sure all your page types extend from Page, put that code in Page init().
385: [12:07:00] <samthejarvis> i have to say, the scaffolding in modeladmin should be disabled by default
386: [12:10:00] <Unlearned> kinglozzer, PageNews extends PageSub which extends... Page..
387: [12:19:00] <Unlearned> once I switch between "Page" items the language resets, once I switch between PageSub and Internal Page - languages stays
388: [12:19:00] <Unlearned> Page->PageSub->Internal page
389: [12:19:00] <Unlearned> so
390: [12:19:00] * ss-log has joined #silverstripe
391: [12:19:00] <Unlearned> and all the internal items extend PageSub
392: [12:21:00] <kinglozzer> When the language resets, is there a ?locale= on the URL?
393: [12:22:00] <kinglozzer> samthejarvis: You just posted this thread: http://www.silverstripe.org/data-model-questions/show/22375 ?
394: [12:24:00] * zfmf quit (Remote host closed the connection)
395: [12:26:00] * zfmf has joined #silverstripe
396: [12:26:00] <samthejarvis> kinglozzer: indeed
397: [12:26:00] <Unlearned> kinglozzer, there's not, sorry, I believe it's just because .htaccess is hiding it
398: [12:26:00] <kinglozzer> samthejarvis: Are you using updateCMSFields(FieldList $fields) in your DataExtension?
399: [12:27:00] <samthejarvis> kinglozzer: yep
400: [12:27:00] <kinglozzer> Unlearned: That's okay, there shouldn't be. Was just checking.
401: [12:27:00] <samthejarvis> kinglozzer: parent::getCMSFields includes the fields added by the extension
402: [12:28:00] <samthejarvis> kinglozzer: so there's always a few lines of code required to remove those default fields, it's just, messy
403: [12:28:00] <samthejarvis> kinglozzer: but it also includes the scaffolded (and useless) fields
404: [12:29:00] <kinglozzer> Or whatever you call your FieldList
405: [12:29:00] <kinglozzer> $fields * instead of $tabbedFields though
406: [12:29:00] <kinglozzer> samthejarvis: Yes, it has to. Perhaps if you do new FieldList() instead of parent::getCMSFields();, then when you're finished do $this->extend('updateCMSFields', $tabbedFields);
407: [12:30:00] <samthejarvis> cool, i'll have a look at this
408: [12:30:00] <kinglozzer> Unlearned: I don't know. When I do it on mine, it always gets the Cookie, regardless of if I switch page types. If you do: echo Cookie::get('translatable-locale');, does it always show the locale ?
409: [12:30:00] <Unlearned> kinglozzer, what should I do ?.. :)
410: [12:36:00] <samthejarvis> genius!
411: [12:36:00] <samthejarvis> hey, kinglozzer, that did it!
412: [12:37:00] <kinglozzer> Ah cool :)
413: [12:37:00] <kinglozzer> Ouch :P
414: [12:37:00] <samthejarvis> will have to implement this on all... 16 of my other dataobjects
415: [12:38:00] <samthejarvis> where i've had to do like, $remove_fields = array('fieldname', 'fieldname', blah); foreach($remove_fields as $field){removebyname}
416: [12:40:00] * bosie quit (Ping timeout: 245 seconds)
417: [12:52:00] * samthejarvis quit (Ping timeout: 245 seconds)
418: [12:57:00] <Unlearned> kinglozzer, now I see the problem
419: [12:57:00] <Unlearned> on any occasion
420: [12:57:00] <Unlearned> I echo out $this->request->getVar('locale') and it's empty
421: [12:58:00] <kinglozzer> Yes it should be empty, unless you have ?locale=xx_XX on your URL.
422: [13:03:00] <kinglozzer> ?locale is the 'var', so it will be empty unless that is on the end of the URL. Check if the cookie is always empty, or if it's ever empty.
423: [13:03:00] <Unlearned> damn, I am so new on SS
424: [13:04:00] <kinglozzer> Always empty? Even if you put ?locale=en_GB on the end of the URL?
425: [13:04:00] <Unlearned> is always always empty
426: [13:04:00] <Unlearned> this alone: $this->request->getVar('locale').
427: [13:04:00] <Unlearned> cookie by the way two(of course)
428: [13:05:00] <Unlearned> no, nowit appears, but I added it manually
429: [13:06:00] <kinglozzer> I thought you said it adds that to the URL when you click to select a language?
430: [13:09:00] <kinglozzer> When you click to select a language, it should redirect you to http://example.com?locale=en_GB. Then it sets a cookie. It checks if the locale is saved in the cookie and sets it. So it's either not detecting the ?locale=en_GB, not setting or getting the cookie properly, or the Translatable::set_reading_locale() isn't working
431: [13:10:00] * kinglozzer lunch time
432: [13:13:00] <Unlearned> kinglozzer I understand the method you have described, not the problem seems to be(before we can check the previous solution) is to get Translatable append locale to url
433: [13:16:00] * UndefinedOffset has joined #silverstripe
434: [13:27:00] * ferge has joined #silverstripe
435: [13:27:00] * ferge has left #silverstripe
436: [13:41:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
437: [14:20:00] <Unlearned> kinglozzer are you here? :)
438: [14:24:00] * Shrike_Finland quit (Quit: Leaving.)
439: [14:26:00] <kinglozzer> I'm here but I'll be busy this afternoon. What is the URL when you click on the flag/country name to change language?
440: [14:30:00] * Marvanni has joined #silverstripe
441: [14:31:00] <Marvanni> Does anyone have a working example for GridField where I van Edit manymany_extraFields on a many_many relation?
442: [14:43:00] <Unlearned> kinglozzer the problem is pretty small
443: [14:44:00] <Unlearned> if I could get Translatable to prefix the URL I would be done
444: [14:44:00] <Unlearned> but I just have /news /newsInAnotherLanguage
445: [14:44:00] <Unlearned> so I have not like
446: [14:44:00] <Unlearned> as I have different versions of each page, Translatable doesn't prefix URL with locale
447: [14:47:00] <kinglozzer> So instead of /news?locale=en_GB, you have /newsInAnotherLanuguage? Can you change /newsInAnotherLanguage to be a RedirectorPage that redirects to /news?locale=en_GB ?
448: [14:49:00] * Shrike_Finland has joined #silverstripe
449: [15:24:00] * Nivery has joined #silverstripe
450: [15:37:00] * C10ne quit (Quit: Page closed)
451: [15:37:00] * C10ne has joined #silverstripe
452: [15:46:00] * Friksel has joined #silverstripe
453: [15:48:00] <Friksel> hey guys, once in a while while updating Silverstripe code- and template-files (and building and flashing) to the server I get this error 'Sorry, there was a problem with handling your request. Generated with the default ContentController.ss template'.... After that there seems to be no way to view the site or CMS again without running the install.php again... Please, anybody knows a solution to this?
454: [15:50:00] <Friksel> It seems like the install.php not only sets up the database and creates the _config.php file inside the mysite-folder, it also writes some data somwhere else, but I am looking and looking and cannot find where... if I knew that I could backup those files and copy them back in case errors like this happen. Anybody?
455: [15:51:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
456: [16:29:00] <discorpia> Friksel: hmm, next time that happens, try deleting everything in the cache directory (default on unix is /tmp/silverstripe-cache-path-to-website)
457: [16:30:00] <discorpia> it's not impossible that one of the things install.php does is create a fresh cache/tempdir
458: [16:30:00] <discorpia> Friksel: i've had similar issues on a server cluster that had a faulty nfs sync, so the temp dir got corrupted
459: [16:34:00] * Shrike_Finland quit (Quit: Leaving.)
460: [16:34:00] * ferge has joined #silverstripe
461: [16:35:00] * ferge has left #silverstripe
462: [16:38:00] * patJnr quit (Read error: Connection reset by peer)
463: [16:38:00] * patJnr has joined #silverstripe
464: [16:39:00] <C10ne> Is there a way to tell Text.LimitWordCount not to show alt text from images?
465: [16:48:00] <Friksel> @discorpia: Thanks for your hints. I removed all files from the cache-dir (and also from within the sub-dirs in the cache dir), and that's normaly one of the first things I try, but somehow it's not (always?) working... re-installing was the thing that worked, and thank god (for the customer) all data was still in place :)
466: [16:49:00] <Friksel> ...but it's not realy comforting.. don't know where that error comes from, but after runing install.php everything is fine again, so it fixes something that was destroyed... strange
467: [16:50:00] * patJnr quit (Ping timeout: 260 seconds)
468: [16:53:00] * Friksel quit (Ping timeout: 245 seconds)
469: [16:58:00] * catcher has joined #silverstripe
470: [17:13:00] * kinglozzer quit (Remote host closed the connection)
471: [17:35:00] * Marvanni quit (Quit: Marvanni)
472: [17:36:00] * Marvanni has joined #silverstripe
473: [17:36:00] * Marvanni quit (Client Quit)
474: [17:43:00] * simon_w|air has joined #silverstripe
475: [17:55:00] <Nivery> i have a problem where pages that show up both in the database as site tree entries and on my actual site are not visible in CMS site tree
476: [17:56:00] <Nivery> i've verified that i'm not filtering the pages
477: [18:02:00] * simon_w|air quit (Quit: This computer has gone to sleep)
478: [18:17:00] * travis-ci has left #silverstripe
479: [18:17:00] * travis-ci has joined #silverstripe
480: [18:17:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#227 (3.0 - a0e965b : Ingo Schommer): The build has errored.
481: [18:17:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1525684e6870...a0e965b7b4d2
482: [18:17:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4622469
483: [18:17:00] * travis-ci has left #silverstripe
484: [18:17:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4622472
485: [18:17:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b31dbc0b5f13...a1beda14d124
486: [18:17:00] <travis-ci> [travis-ci] silverstripe/sapphire#1334 (3.0 - a1beda1 : Ingo Schommer): The build was fixed.
487: [18:17:00] * travis-ci has joined #silverstripe
488: [18:17:00] * zfmf quit (Remote host closed the connection)
489: [18:18:00] * zfmf has joined #silverstripe
490: [18:24:00] * chillu23 quit (Quit: chillu23)
491: [18:27:00] * Shrike_Finland has joined #silverstripe
492: [18:32:00] * lx-berlin has left #silverstripe
493: [18:45:00] * C10ne quit (Ping timeout: 245 seconds)
494: [18:52:00] * guci0 quit (Ping timeout: 245 seconds)
495: [18:53:00] * Infidel has joined #silverstripe
496: [18:53:00] * Rastafarii quit (Ping timeout: 245 seconds)
497: [18:53:00] * ARNHOFF has joined #silverstripe
498: [18:57:00] * Nivery quit (Quit: Nivery)
499: [18:58:00] * Nivery has joined #silverstripe
500: [19:06:00] * Infidel quit (Ping timeout: 245 seconds)
501: [19:28:00] * chillu has joined #silverstripe
502: [19:35:00] * irogue has joined #silverstripe
503: [19:36:00] * nickmolhoek quit (Remote host closed the connection)
504: [19:36:00] * nickmolhoek has joined #silverstripe
505: [19:36:00] * nickmolhoek has joined #silverstripe
506: [19:38:00] * Bollig|DesignCty has joined #silverstripe
507: [19:39:00] <Pyromanik> mid week holiday makes Thursday feel like Monday :<
508: [19:39:00] * Pyromanik has joined #silverstripe
509: [19:39:00] <simon_w> And tomorrow's still Friday!
510: [19:40:00] <Pyromanik> Yeh, that's a bit of a relief I guess.
511: [19:40:00] * Dynamic_Nic has joined #silverstripe
512: [19:43:00] <irogue> ka pai sminnee et al
513: [19:43:00] <Pyromanik> 3.1 released?
514: [19:44:00] <Pyromanik> irogue: ?
515: [19:45:00] <irogue> nah, winning the all-of-government contract
516: [19:47:00] <Pyromanik> simon_w: 'lo bob, u liek pie?
517: [19:47:00] <simon_w> Mmm, pie
518: [19:47:00] <Pyromanik> wow, wicked.
519: [19:47:00] <irogue> http://www.stuff.co.nz/technology/8270685/Huge-coup-for-local-software-firm
520: [19:51:00] * Stomach has joined #silverstripe
521: [19:52:00] * FrozenFire has to wonder whether that ends up being legal, mandating a single company's software
522: [19:53:00] <simon_w> They picked SilverStripe as the platform, not the agency
523: [19:53:00] <FrozenFire> Or if they'll let other SS-oriented companies bid on the projects.
524: [19:53:00] * Nivery quit (Quit: Nivery)
525: [19:54:00] * FrozenFire salivates a little
526: [19:54:00] <irogue> yeah
527: [19:54:00] <FrozenFire> :P
528: [19:54:00] <irogue> 33 agencies
529: [19:54:00] <irogue> but they all have to use SilverStripe
530: [19:55:00] <Pyromanik> ^
531: [19:55:00] <Pyromanik> and tendering
532: [19:55:00] <simon_w> FrozenFire, tender
533: [19:55:00] <Pyromanik> FrozenFire: probably by being an NZ based web dev company who uses SilversStripe.
534: [19:55:00] <irogue> FrozenFire: agency contracts have already been given
535: [19:55:00] <Pyromanik> mad
536: [19:55:00] <Pyromanik> "NOPE, HAS TO BE DRUPAL"
537: [19:55:00] <FrozenFire> So... how do you get on that list?
538: [19:55:00] <FrozenFire> Heh
539: [19:55:00] <Pyromanik> So those fuckers who INSISTED that we learn drupal about a month ago are now out of date.
540: [19:56:00] <irogue> [08:55] <Pyromanik> "NOPE, HAS TO BE DRUPAL"
541: [19:56:00] <Unlearned> hey, I see some acitivity. Maybe some of you can help me to get Translatable prefix the URL with locale ?
542: [19:57:00] <irogue> yeah, each department was using either Drupal, SS, SharePoint, or some crappy inhouse system
543: [19:57:00] <Pyromanik> Unlearned: you mean redirect to a subdomain?
544: [19:57:00] <simon_w> Unlearned, translatable really isn't set up for that
545: [19:57:00] <Pyromanik> irogue: quite a bit using drupal from what I know.
546: [19:57:00] <irogue> as @nzben pointed out, YAY NO MORE GOVT USING SHAREPOINT
547: [19:58:00] <Unlearned> as it holds no locale in a cookie or URL :(
548: [19:58:00] * FrozenFire seriously considers writing a BulkLoader status update callback patch
549: [19:58:00] <Unlearned> it resets on the hyperlink
550: [19:58:00] <Unlearned> what I have - multiple versions of each page, subpage and all the content, the problem is that once I selected another language
551: [19:58:00] <FrozenFire> So you can invoke a callback for status updates on each record processed...
552: [19:59:00] <FrozenFire> Still taking *way* long for a load to happen
553: [19:59:00] <Pyromanik> should hold it in session iirc
554: [19:59:00] <FrozenFire> I already made the stupid thing transactional (in my own loader)
555: [19:59:00] <Pyromanik> Unlearned: it shouldn't :<
556: [19:59:00] <catcher> Anyone experienced this before? RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
557: [20:00:00] <catcher> hahaha
558: [20:00:00] <Pyromanik> catcher: stop -f'n ?
559: [20:00:00] <Unlearned> heh... I have enabled it inside _config.php by a single line and all the content inside CMS immediately had "Translations" so I filled all of them, but I see no locale inside hyperlink, so the effect is this: I go to my page, change language, click on some link and the language is reseted to default locale
560: [20:00:00] <catcher> It's in the SS-provided .htaccess, and I don't want to brake my sitez
561: [20:01:00] <Pyromanik> you must link pages of a certain language to other pages of that language
562: [20:01:00] <Pyromanik> otherwise there is the ability to jump around like that
563: [20:01:00] <Pyromanik> Unlearned: pages are different
564: [20:02:00] <Pyromanik> the other thing that happens is that a page loads the default language if there is no translation in the current lang.
565: [20:03:00] <Unlearned> I mean, 100% of them :)
566: [20:03:00] <Unlearned> Pyromanik, all my content has translations
567: [20:03:00] <Unlearned> so there's no ability for me to track
568: [20:03:00] <Unlearned> I though I can track the selected locale with a Cookie, but website just doesn't construct Links with locale
569: [20:04:00] <catcher> This happens on stock SS .htaccess on standard Bluehost.
570: [20:04:00] <Pyromanik> Unlearned: also iirc there is more than one line to add to the _config.php
571: [20:04:00] <Unlearned> I would like something like site/en/news and site/lt/naujienos
572: [20:04:00] <Unlearned> but what I get is site/news and site/naujienos
573: [20:04:00] <Pyromanik> catcher: is it using apache or that other thing that's supposed to be a dropin replacement
574: [20:05:00] <irogue> bluehost? there's your problem :-P
575: [20:05:00] <Pyromanik> it fails?
576: [20:05:00] <Unlearned> I have done just i18n::set_locale(); Object::add_extension('SiteTree', 'Translatable') and Object::add_extension('SiteConfig', 'Translatable'); that's all
577: [20:05:00] <irogue> [09:04] <catcher> This happens on stock SS .htaccess on standard Bluehost.
578: [20:05:00] <Pyromanik> Unlearned: so if you visit yoursite/?locale=xx_XX ?
579: [20:05:00] <Pyromanik> and then click a menu link...
580: [20:06:00] <Unlearned> how so, Pyromanik ?
581: [20:06:00] <catcher> Pyromanik, it's Apache
582: [20:06:00] <Pyromanik> Unlearned: you have not set the default Locale.
583: [20:06:00] <Unlearned> Pyromanik then it works!
584: [20:07:00] <Pyromanik> Unlearned: just like it says to do in the docs
585: [20:08:00] <Pyromanik> https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md#setting-the-default-locale
586: [20:08:00] <Pyromanik> Unlearned: ^
587: [20:08:00] <Unlearned> Pyromanik, thanks a lot for the hints, I may find the answer on my own now! Thanks
588: [20:09:00] <Pyromanik> I hope it helps
589: [20:09:00] <Unlearned> I test it right now, Pyromanik
590: [20:10:00] <Pyromanik> https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md#translating-the-homepage
591: [20:11:00] <Pyromanik> infact, just read that whole page.
592: [20:11:00] <Pyromanik> it's full of good bits that you should do.
593: [20:12:00] <Unlearned> Pyromanik will do immediately. By the way, the missing part - Translatable::set_default_locale() didn't solve the problem
594: [20:13:00] <Pyromanik> mm, I suspected it might not
595: [20:13:00] <Pyromanik> read the whole doc, see if it helps you
596: [20:14:00] <Unlearned> reading right now, I will let you know how it goes, Pyromanik, thanks for your support a much :)
597: [20:14:00] <simon_w> FrozenFire, I'm going to send all the government agencies that want support your way, mkay? :p
598: [20:15:00] <Pyromanik> simon_w: so, the entirety of the NZ Govt?
599: [20:15:00] <simon_w> Pyromanik, pretty much. This is going to be fun :D
600: [20:15:00] <catcher> irogue, any way around it that you know of? (short of switching to a different host)?
601: [20:16:00] <Pyromanik> catcher: ask bluehost?
602: [20:16:00] * SightUnseen has joined #silverstripe
603: [20:16:00] <Pyromanik> simon_w: are you on the list?
604: [20:16:00] * SightUnseen has left #silverstripe
605: [20:17:00] <FrozenFire> simon_w, I'm almost inclined to say yes...
606: [20:17:00] <simon_w> Pyromanik, nope, nor do I want to be :)
607: [20:18:00] <Pyromanik> super high pressure environment, but NO fucking idea what they're up to.
608: [20:18:00] <Pyromanik> don't do it
609: [20:18:00] <Pyromanik> Govts are the worst to work for
610: [20:19:00] <Pyromanik> basically I guess
611: [20:19:00] <FrozenFire> At least they only want it yesterday and haven't run their advertising yet.
612: [20:19:00] <Pyromanik> only WORSE
613: [20:19:00] <FrozenFire> Ours ran their advertising a week again
614: [20:19:00] <simon_w> Haha, clients
615: [20:19:00] <Pyromanik> so basically they don't know what they want, but they want it yesterday.
616: [20:19:00] <Pyromanik> and just throw money down the drain until it gets done.
617: [20:19:00] <FrozenFire> So... all of our current clients, basically.
618: [20:19:00] <Pyromanik> yeah
619: [20:20:00] <Pyromanik> I knew this contractor that would fire the client if they said "marketing is launching advertising on #th of xyz"
620: [20:20:00] <FrozenFire> ago**
621: [20:21:00] <Pyromanik> or 'the launch date is ...'
622: [20:21:00] <FrozenFire> Yep. We've added a "we don't give a fuck" clause to contracts.
623: [20:22:00] <FrozenFire> If they decide they're running advertising, they have to give us <x> days in addition to the completion date.
624: [20:22:00] <FrozenFire> Otherwise we don't give a fuck.
625: [20:25:00] <simon_w> I think we've only had one launch on time in the almost three years we've been going
626: [20:25:00] <simon_w> It's been great
627: [20:26:00] <simon_w> t
628: [20:26:00] <simon_w> Also, totally your faul
629: [20:26:00] <FrozenFire> Naturally
630: [20:26:00] <Pyromanik> simon_w: wut
631: [20:26:00] <simon_w> If IRC didn't distract me all the time, I would code faster!
632: [20:26:00] <FrozenFire> The client's never late on documentation, payment, imagery, design.
633: [20:27:00] <Pyromanik> FrozenFire: hahahahahahahahahahahahahaa
634: [20:27:00] <Pyromanik> simon_w: ahaha
635: [20:28:00] <simon_w> Pyromanik, so, basically, your fault :p
636: [20:28:00] <simon_w> (also Bollig|DesignCty's)
637: [20:28:00] <Pyromanik> (unless you're NOT being sarcastic... in which case, where the f-balls do I get clients like that?)
638: [20:28:00] <FrozenFire> I don't know in what way I could possibly not be sarcastic in that statement.
639: [20:28:00] <FrozenFire> :P
640: [20:28:00] <FrozenFire> Every single project we have on the go right now is waiting on clients.
641: [20:29:00] * C10ne has joined #silverstripe
642: [20:30:00] <Pyromanik> FrozenFire: we have ...
643: [20:30:00] <Pyromanik> 40
644: [20:30:00] <Pyromanik> wholey shit, the list has gone down
645: [20:34:00] * zfmf has left #silverstripe
646: [20:34:00] <C10ne> anybody using translatable? I have a weird problem...
647: [20:35:00] <FrozenFire> After-the-fact translated sites.
648: [20:35:00] <C10ne> LOL, guess so
649: [20:35:00] <FrozenFire> Weird problems.
650: [20:35:00] <FrozenFire> That's pretty-much what Translatable is designed to cause
651: [20:36:00] <FrozenFire> So something like a PaaS?
652: [20:36:00] <sminnee> simon_w: yeah, but done as an actual product rather than "oh, I guess we can probably do that" :p
653: [20:36:00] <C10ne> killing me :P
654: [20:36:00] <simon_w> Ah, so like what you were for StartUP
655: [20:36:00] <C10ne> I've created a site, and it works well on localhost, but when uploaded it doesn't load CMSMain.Translatable.js
656: [20:36:00] <sminnee> yes, exacly.
657: [20:36:00] * ARNHOFF quit (Read error: Connection reset by peer)
658: [20:36:00] <sminnee> We're providing git, CI, staging, production, and a deployment tool.
659: [20:36:00] <sminnee> FrozenFire: We're basically acting as a hosting-provider-on-steriods (and simon_w irogue and everyone else)
660: [20:37:00] <simon_w> sminnee, I hear MattSS put hours into that. Hours! :p
661: [20:38:00] <sminnee> But yeah, it's specifically designed so that 3rd party developers / designers can work on sites on the platform.
662: [20:39:00] <FrozenFire> Sounds like something I'd never want to provide myself. :P
663: [20:39:00] <FrozenFire> Being on the receiving end of that wouldn't be fun.
664: [20:39:00] <FrozenFire> I know how much shit I give my hosting providers.
665: [20:42:00] <simon_w> Pyromanik, that thing on stuff from earlier
666: [20:42:00] <sminnee> www.stuff.co.nz/technology/8270685/Huge-coup-for-local-software-firm
667: [20:42:00] <sminnee> CWP
668: [20:42:00] <Pyromanik> sminnee: it seems I've only seen half of this conversation, what is this?
669: [20:42:00] <Pyromanik> yeah, saw that
670: [20:43:00] <sminnee> I was just saying what we were doing to build it
671: [20:43:00] <sminnee> GitLab + CI + Deployment Tool + Staging env + Prod env
672: [20:43:00] <sminnee> in the "this means more to the readers of #silverstripe than those of stuff.co.nz" kind of way
673: [20:43:00] <Pyromanik> guess I didn't read it properly
674: [20:43:00] <simon_w> What SilverStripe Ltd's actually doing
675: [20:45:00] <FrozenFire> So the NZ gov't is mandating the use of that platform?
676: [20:46:00] <sminnee> it's an opt-in thing.
677: [20:46:00] <sminnee> it'
678: [20:46:00] <sminnee> no.
679: [20:47:00] <sminnee> but it will be available for purchase, with all the govt requirements ticked, much more easily than going to RFP for a bespoke thign.
680: [20:48:00] <Pyromanik> yaeh, I'm still not following
681: [20:48:00] <Pyromanik> so DIA said "Use silverstripe" so you've set up a PaaS to help facilitate that?
682: [20:54:00] * Dynamic_Nic quit (Remote host closed the connection)
683: [20:55:00] <FrozenFire> https://github.com/MediaDevils/silverstripe-regionaldata By the by, this is proving to be extraordinarily useful.
684: [20:56:00] <FrozenFire> Still have to get around to parsing out the city information and hooking it up to the subdivisions (states/provinces), but don't have time right now
685: [20:56:00] <Pyromanik> I don't even what is?
686: [20:56:00] <FrozenFire> I forked burnbright's version to clean it up, fix it up and make it SS3-oriented. Also added postal code with lat+long data.
687: [20:57:00] <FrozenFire> I'll also be writing some form fields to bundle with it for creating locational relations through a form in a sensible way.
688: [20:57:00] <FrozenFire> Country, State/Province and ZipCode models with data.
689: [20:58:00] <FrozenFire> I'm using it for ecommerce
690: [21:04:00] * willr_ has joined #silverstripe
691: [21:04:00] * liam has joined #silverstripe
692: [21:09:00] <willr_> are you copying and pasting into tinymce?
693: [21:09:00] <priithansen> any good tips on how to use tinymce field without getting crapload of span, style and whatnot in the markup?
694: [21:09:00] <FrozenFire> Don't use TinyMCE
695: [21:09:00] <FrozenFire> Is the only tip I can offer.
696: [21:09:00] <irogue> [10:09] <FrozenFire> Don't use TinyMCE
697: [21:09:00] <irogue> superb advice
698: [21:10:00] * FrozenFire trades in his masculine genitalia
699: [21:10:00] <willr_> FrozenFire amen. Real men don't use the CMS.
700: [21:10:00] <priithansen> No pasting but after some fiddling around with image alignments and thing like that the html always looks like someone took a dump
701: [21:10:00] <willr_> pretty sure you'll have to fix broken html in tinymce by hand
702: [21:10:00] * FrozenFire uses the CMS extensively
703: [21:11:00] <FrozenFire> :D
704: [21:11:00] <FrozenFire> You guys know how to operate a forklift, right?
705: [21:11:00] <willr_> FrozenFire I hope that question is not related to the aforementioned genitalia
706: [21:12:00] <FrozenFire> priithansen, I've hacked in the StackOverflow markdown editor in the past.
707: [21:12:00] <priithansen> That's the thing I can manage it without the tinymce but clients won't know the first thing about it
708: [21:13:00] <FrozenFire> priithansen, Why would it?
709: [21:13:00] <willr_> priithansen I'd just suggest reporting any issues with the image insertion stuff as a ticket. Not a tinymce thing as that's custom code.
710: [21:13:00] <priithansen> FrozenFire was looking at someones markdown module for ss earlier but I think thats going to scare normal people even more
711: [21:13:00] <FrozenFire> There's also https://github.com/wolfv/silverstripe-markdowneditorfield
712: [21:13:00] <willr_> If you can reproduce how to break things
713: [21:13:00] <priithansen> that's the one
714: [21:14:00] <UndefinedOffset> FrozenFire... thats kinda funny I wrote a similar one XD wamp wamp lol
715: [21:14:00] <willr_> Markdown editor still doesn't do the fancy captions and image stuff that caused most of the issues in tinymce.
716: [21:14:00] <priithansen> normal people want to click a button and see a shiny image not ![Image Description](!
717: [21:14:00] <FrozenFire> Are all of your normal people HTML designers?
718: [21:15:00] <FrozenFire> Aloha being one
719: [21:15:00] <FrozenFire> There are also myriad other editors.
720: [21:16:00] <priithansen> Say for a news site with long editorials that want to include images in random places. I was thinking has_many relation with images and using short codes in textfield to link them into the text
721: [21:16:00] <simon_w> What's with editors and the GPL?
722: [21:16:00] <FrozenFire> Just use shortcodes
723: [21:16:00] <FrozenFire> priithansen, Don't use relations for that.
724: [21:17:00] <FrozenFire> Same with site links
725: [21:17:00] <FrozenFire> That's what the current editor already does.
726: [21:18:00] <FrozenFire> I'm not sure what magic is involved, but [file] shortcodes do work.
727: [21:18:00] <FrozenFire> So you think.
728: [21:18:00] <priithansen> images seem to be inserted with regular img tags?
729: [21:19:00] <FrozenFire> Someone else can correct me
730: [21:19:00] <FrozenFire> And sfaik, SS uses them
731: [21:22:00] <priithansen> local links are indeed using some magic href="[sitetree_link,id=3]"
732: [21:22:00] <simon_w> Well, there's file_link but no file
733: [21:23:00] <simon_w> but that doesn't resize it like the tinyMCE hooks do
734: [21:23:00] <Pyromanik> as usual, webkit still requires it's own rule :<
735: [21:23:00] <FrozenFire> Yeah, that.
736: [21:23:00] <simon_w> And you can do img src="[file_link,id=3]"
737: [21:30:00] * liam quit (Quit: liam)
738: [21:33:00] <priithansen> So any clever tips on how to structure the backend to let content author to use images with some layouts without letting them mess everything up. Can't imagine something like this http://goo.gl/dSVYf is being entered all into one wysiwyg field
739: [21:34:00] <FrozenFire> Don't try to fix what's already there.
740: [21:34:00] <FrozenFire> They basically wanted Microsoft Word.html
741: [21:34:00] <FrozenFire> I went through that with this one project we were on retainer for.
742: [21:34:00] <FrozenFire> priithansen, Just assume that WYSIWYG is a lost cause.
743: [21:37:00] * UndefinedOffset has joined #silverstripe
744: [21:37:00] * UndefinedOffset quit (Quit: Leaving.)
745: [21:37:00] <priithansen> I can imagine that webpage after couple of weeks when the client has had some time to *design* it's content
746: [21:38:00] <FrozenFire> priithansen, What they basically want is to be able to customize the template of the page, yes?
747: [21:38:00] <howardgrigg> priithansen: the verge actually hand writ the html for their feature stories
748: [21:38:00] <howardgrigg> a dev works with the writer
749: [21:38:00] <FrozenFire> As opposed to simply entering blocks of content.
750: [21:39:00] <FrozenFire> Because if that's the case, what you might want to do is essentially has_one Template and render with that template, letting them edit it.
751: [21:39:00] <FrozenFire> I know there are huge security concerns there, yes.
752: [21:39:00] <FrozenFire> But with clients like that who want to customize the ever-living fuck out of individual pages, that's pretty-well necessary.
753: [21:40:00] <priithansen> howardgrigg thank's for the insight I was playing all sorts of scenarios in my head of how such a thing could be managed
754: [21:40:00] <FrozenFire> Alternatively, have a completely separate content editor.
755: [21:41:00] * Stomach quit (Quit: Leaving.)
756: [21:41:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
757: [21:42:00] <howardgrigg> priithansen: http://www.reddit.com/r/web_design/comments/12gm3c/vox_media_product_team_builders_of_sb_nation/c6uv1yg
758: [21:42:00] <priithansen> FrozenFire: No particular client but just thinking that if I have hard time making the images behave right in the html editor I can't imagine my client's will have a good time with it
759: [21:42:00] * UndefinedOffset quit (Ping timeout: 245 seconds)
760: [21:42:00] <howardgrigg> sminnee: Awesome work by the way! Very exciting :)
761: [21:43:00] <howardgrigg> Champagne at HQ?
762: [21:43:00] <sminnee> Thanks howardgrigg :)
763: [21:48:00] <simon_w> It looks like Pyromanik has a reason to drink every day of the week
764: [21:48:00] <Pyromanik> mm yes, thirsty thrusday!
765: [21:52:00] <Pyromanik> Tipsy tuesday, wet lunch wednesday, thirsty thursday, friday, saturday.
766: [21:53:00] <Pyromanik> Sunday
767: [21:53:00] <simon_w> Monday?
768: [21:54:00] <Pyromanik> is just fuck'n monday. No one likes monday.
769: [21:54:00] <Pyromanik> freedom fridays, see'n mates satrudays and slow sip sundays
770: [21:54:00] <Pyromanik> monday
771: [21:55:00] <simon_w> I like monday!
772: [21:56:00] <Pyromanik> how about that?
773: [21:56:00] <Pyromanik> messy monday
774: [21:57:00] * gelignite has joined #silverstripe
775: [22:00:00] <simon_w> I guess. Seems kinda forced.
776: [22:00:00] * Stomach has joined #silverstripe
777: [22:02:00] * Nivery has joined #silverstripe
778: [22:11:00] * mobiusnz has joined #silverstripe
779: [22:15:00] * howardgrigg listening to Radio NZ talk about SilverStripe
780: [22:16:00] <spronk> midori mondays man
781: [22:20:00] <willr_> spronk that means today would be a tequila thursday?
782: [22:20:00] * liam has joined #silverstripe
783: [22:22:00] <irogue> sounds like a plan
784: [22:24:00] <Pyromanik> spronk: wow
785: [22:24:00] <Pyromanik> wow
786: [22:24:00] * Keksters has joined #silverstripe
787: [22:25:00] <Pyromanik> mostly due to the lack of the bar being stocked with anything yellow, red or blue.
788: [22:25:00] <Pyromanik> irogue: but... drupal is shit.
789: [22:25:00] <Pyromanik> no shit
790: [22:25:00] <Pyromanik> I used to do colour mondays
791: [22:25:00] <Pyromanik> Normally the colour was green.
792: [22:25:00] * irogue watches a bunch of drupal people raging on twitter about the govt SS thing
793: [22:26:00] <Pyromanik> irogue: tweet it, tweet it, tweet it
794: [22:26:00] <Pyromanik> @ everyone raging
795: [22:26:00] <Pyromanik> spronk: you'd be surprised how confused most bartenders get when you go "Something green"
796: [22:27:00] <Pyromanik> ss23: hey, did you know Heath Ledger died?
797: [22:27:00] <ss23> http://www.stuff.co.nz/technology/8270685/Huge-coup-for-local-software-firm
798: [22:27:00] <ss23> Not sure if posted here, but seems relevant
799: [22:27:00] <catcher> ha
800: [22:28:00] <irogue> we've only been discussing it all morning :-P
801: [22:28:00] * Unlearned has joined #silverstripe
802: [22:28:00] <Pyromanik> It was pretty big news back in the past, where you seem to be living.
803: [22:28:00] <willr_> It's a pretty big call from the govt. Considering most firms on their panel don't use silverstripe
804: [22:28:00] <Pyromanik> many go for the drupals
805: [22:29:00] <irogue> as long as not SharePoint, i'd still be happy
806: [22:29:00] <irogue> yeah
807: [22:29:00] <willr_> I figured it was going to be Drupal + SilverStripe as one of two options
808: [22:29:00] <willr_> Gotta wonder why then companies like Squiz made the list of 42 providers as well then
809: [22:29:00] <willr_> when they don't use either
810: [22:30:00] <irogue> cos for some crazy reason the chose the providers before choosing the platform
811: [22:31:00] <willr_> Well then it may was well be a drain that I work with..
812: [22:31:00] <Pyromanik> THROW MONEY DOWN DRAIN EVERY CHANCE YOU GET
813: [22:31:00] <Pyromanik> because govt
814: [22:32:00] <irogue> willr_: i see Squiz are listed as only "Front-end developers"
815: [22:32:00] <willr_> The providers list was only for front end / design ish things
816: [22:33:00] <irogue> e.g. heyday, dna
817: [22:33:00] <irogue> nah a lot of the providers are also listed as "Information architects"
818: [22:34:00] <willr_> Nah, that's for site structure etc
819: [22:34:00] <irogue> i'm assuming that means backend shiz
820: [22:35:00] <Stomach> yeah thats information architecture, not building it
821: [22:35:00] <irogue> yeah for sure
822: [22:35:00] <willr_> I assume backend providers is another list?
823: [22:37:00] <Pyromanik> Your mum is a backend provider!
824: [22:38:00] <ss23> Shits standardized, yo
825: [22:38:00] <ss23> Pyromanik: FUCK YOU
826: [22:38:00] <ss23> Man, whatever
827: [22:38:00] <ss23> I don't evne car
828: [22:38:00] <liam> is there a uuid data type in SS?
829: [22:38:00] <ss23> :"<
830: [22:38:00] <Pyromanik> liam: uuid?
831: [22:38:00] <simon_w> liam, no
832: [22:38:00] <ss23> Pyromanik: http://en.wikipedia.org/wiki/Universally_unique_identifier
833: [22:38:00] <Pyromanik> yeh
834: [22:38:00] <Pyromanik> I know
835: [22:38:00] <Keksters> Can you put list items into a TextareaField or am I better off using some other kind of field?
836: [22:38:00] <Pyromanik> just didn't realise it applied as a datatyp
837: [22:39:00] <ss23> Why not?
838: [22:39:00] <Pyromanik> (only ever used it with hdd mount'n)
839: [22:39:00] <Pyromanik> HTMLEditorField, ul list?
840: [22:39:00] <Keksters> Well I want to list bullet point summaries
841: [22:39:00] <Pyromanik> Keksters: define 'items' ?
842: [22:40:00] <liam> ok thanks
843: [22:40:00] <Pyromanik> irogue: yeh, I guessed as much. Just ever heard of uuid's being used like that
844: [22:40:00] * SightUnseen has left #silverstripe
845: [22:40:00] <Keksters> Within the context of a CMSfield
846: [22:40:00] <liam> simon_w: just use a varchar?
847: [22:40:00] <simon_w> liam, yes
848: [22:40:00] <irogue> Pyromanik: it's commonly used instead of an integer for primary keys
849: [22:40:00] * SightUnseen has joined #silverstripe
850: [22:43:00] <Keksters> Pyromanik does the HTMLEditorField exist within the CMS context? It's not in the documentation of FormField
851: [22:44:00] <Pyromanik> http://api.silverstripe.org/3.0/forms/fields-formattedinput/HtmlEditorField.html
852: [22:44:00] <simon_w> Too slow old man!
853: [22:44:00] <Keksters> Will try it out
854: [22:44:00] <Keksters> Ty
855: [22:44:00] <Keksters> lol
856: [22:44:00] <Pyromanik> BAH!
857: [22:44:00] <simon_w> http://api.silverstripe.org/3.0/forms/fields-formattedinput/HtmlEditorField.html
858: [22:44:00] <Pyromanik> yes
859: [22:45:00] <Pyromanik> pffft
860: [22:45:00] * Pyromanik grumbles about youth and clutches his aching back
861: [22:46:00] <Keksters> Oh man those are huge.
862: [22:46:00] <Pyromanik> yes
863: [22:46:00] <Pyromanik> but you can alter them
864: [22:46:00] <Pyromanik> you could gridfield
865: [22:46:00] <Keksters> Is that really the best solution? They'll only ever get used for bullet point lists..
866: [22:46:00] <Pyromanik> but seems kinda pointless
867: [22:46:00] <Pyromanik> mmm
868: [22:47:00] <Pyromanik> probably best
869: [22:47:00] <Keksters> Within the page that pulls the information from the Textarea?
870: [22:47:00] <Pyromanik> Call it "ListField", release as module
871: [22:47:00] <Pyromanik> esp. since no inline editing yet
872: [22:47:00] <Keksters> Why?
873: [22:47:00] <simon_w> Or parsing a TextareaField, making each line a li
874: [22:47:00] <Pyromanik> ^
875: [22:48:00] <Pyromanik> Keksters: well it's a bit overweight for an application like this
876: [22:48:00] <Keksters> It didn't like GridField.
877: [22:48:00] <Pyromanik> alternatively just make a controller function
878: [22:48:00] <Keksters> That sounds like it might be easier.
879: [22:48:00] <Pyromanik> that parses a textareafield
880: [22:49:00] <Pyromanik> but otherwise you should like it
881: [22:49:00] <Pyromanik> :P
882: [22:49:00] <Pyromanik> o
883: [22:49:00] <Keksters> No I'm saying I got a user error for changing my fields to GridFields
884: [22:49:00] <Pyromanik> Doing it wrong!
885: [22:49:00] * Keksters sighs about being back on the bottom
886: [22:49:00] <Pyromanik> :P
887: [22:49:00] * Pyromanik grumbles about unappreciative youth
888: [22:50:00] <Pyromanik> I'm not actually that old, simon_w is just being cheeky.
889: [22:50:00] * Nivery quit (Quit: Nivery)
890: [22:50:00] <Keksters> I figured.
891: [22:50:00] <Keksters> Haha, I get told about my youth from the 30 something year old in the office.
892: [22:51:00] * irogue giggles
893: [22:51:00] <Keksters> lol
894: [22:51:00] <Pyromanik> still, can't say I didn't also nearly giggle :P
895: [22:51:00] <Pyromanik> oh don't you start up irogue, she's the wrong gender for you buddy :P
896: [22:51:00] <irogue> [11:49] * Keksters sighs about being back on the bottom
897: [22:52:00] <Keksters> =P
898: [22:52:00] <Keksters> Who's the young one?
899: [22:53:00] <Keksters> I'm not quite sure how to step through each sentence.
900: [22:53:00] <Pyromanik> simon_w:
901: [22:53:00] <Pyromanik> or maybe ss23
902: [22:53:00] <Keksters> Now about parsing a Textarea
903: [22:53:00] <Pyromanik> line by line, i'd assume
904: [22:54:00] <Pyromanik> that uses php, not javascript :P
905: [22:54:00] <Pyromanik> spronk: me too
906: [22:54:00] <spronk> hoping this govt ss thing doesn't turn ss into an enterprise clusterfuck
907: [22:54:00] <Pyromanik> Keksters: nope, just a controller method
908: [22:54:00] <Pyromanik> string.split('\n').join('</li><li>')
909: [22:54:00] <Keksters> I assume I'd have to write a control for this?
910: [22:55:00] <Pyromanik> no need for controls
911: [22:55:00] <Keksters> I uh. Yeah I meant that.
912: [22:55:00] <Pyromanik> mm, then just $ParsedTextarea in your template
913: [22:58:00] <Pyromanik> Keksters: pretty much this: public function ParsedList(){ return '<ul><li>'.implode('</li><li>', explode("\n", $this->ListData)).'</li></ul>'; }
914: [23:00:00] <Keksters> Implode and explode are php commands?
915: [23:00:00] <Keksters> Interesting.
916: [23:01:00] <Keksters> I would have <% loop ParsedList %> $customfield <% end_loop %> ?
917: [23:01:00] <Keksters> So in the .ss
918: [23:02:00] <Pyromanik> depends if those mutliple textareas are then injected into an ArrayList
919: [23:02:00] <Keksters> I have multiple TextareaFields needing parsing =/
920: [23:02:00] <Pyromanik> umm
921: [23:03:00] <Keksters> I'm going to hazard a guess at.. no?
922: [23:03:00] <Pyromanik> what I mean is I have no idea how your model looks
923: [23:03:00] <Keksters> Yeah.
924: [23:04:00] <Pyromanik> 'Textarea1' => 'Text' ...
925: [23:04:00] <Keksters> Uhm.
926: [23:04:00] <Pyromanik> if you have something like $Textarea1, $Textarea2, $Textarea3, then no.
927: [23:04:00] <Keksters> No in the page.php for this pagetype
928: [23:04:00] <Pyromanik> yeah
929: [23:04:00] <Pyromanik> but
930: [23:04:00] <Pyromanik> shorthand
931: [23:04:00] <Pyromanik> shortand
932: [23:04:00] <Pyromanik> for $db
933: [23:04:00] <Keksters> What I've labelled the fields?
934: [23:05:00] <Keksters> Yes I've done that their respective names
935: [23:05:00] <Keksters> Words.
936: [23:05:00] <Pyromanik> right
937: [23:05:00] <Pyromanik> so probably want
938: [23:05:00] <Pyromanik> as opposed to has_many TextareaListObject
939: [23:05:00] <Keksters> *with their
940: [23:06:00] <Pyromanik> yeah
941: [23:06:00] <Keksters> And separately
942: [23:06:00] <Keksters> Yes
943: [23:06:00] <Pyromanik> but you only want to parse the textreas
944: [23:06:00] <Keksters> There's also a field that isn't a text area in that array.
945: [23:08:00] <Pyromanik> well
946: [23:08:00] <Pyromanik> hmm
947: [23:08:00] <Pyromanik> few ways to do it
948: [23:10:00] <Pyromanik> make another function that builds an array using a loop and the function above
949: [23:10:00] <Pyromanik> adjust function I put up before to take a parameter
950: [23:10:00] <Pyromanik> put that array into an ArrayList, return it
951: [23:11:00] <Pyromanik> <% loop ArrayList %>$ListData<% end_loop %>
952: [23:12:00] <Pyromanik> <% loop ListArrayList %>$Me.GenerateList<% end_loop %>
953: [23:12:00] <Pyromanik> then make a funciton on the controller that returns all the Textareas on the object in an arraylist
954: [23:12:00] <Pyromanik> although I'd probably make an extension to decorate TextareaField that formats it's data like the function I put up earlier
955: [23:12:00] <Pyromanik> something like that
956: [23:13:00] <Keksters> Hmm.
957: [23:13:00] <Keksters> Might have to off this to a developer.
958: [23:13:00] <Pyromanik> probably easier if they know their way around the framework.
959: [23:13:00] <Pyromanik> shoudln't take them long
960: [23:13:00] <Keksters> Mmmhm.
961: [23:18:00] <Colin[pi]> congrats silverstripe :P
962: [23:18:00] * Colin[pi] has joined #silverstripe
963: [23:18:00] <Colin[pi]> well I for one welcome our new overlords
964: [23:19:00] <Colin[pi]> it's still amazing news
965: [23:19:00] <Pyromanik> It is :)
966: [23:19:00] <Pyromanik> haha, but you're an Aussie Colin[pi] :P
967: [23:20:00] <Colin[pi]> I just saw it pop up on reddit, it was enough to make me utter a loud "WOAAAAAH"
968: [23:23:00] <Keksters> The government taking on SS?
969: [23:23:00] <Keksters> It was half the reason this company took on SS'
970: [23:23:00] <Keksters> They were going to go Drupal
971: [23:23:00] <Pyromanik> mmm
972: [23:24:00] <Keksters> It was pretty much a "We want anything but Wordpress" situation.
973: [23:26:00] <Colin[pi]> this is awesome news for the company, they must be over the moon
974: [23:26:00] <Colin[pi]> I want a wordpress site herp derp
975: [23:26:00] <Pyromanik> unless they're writing a blog, and have NO intention of extending past that
976: [23:26:00] <Pyromanik> even those who think they want wordpress
977: [23:26:00] <Pyromanik> everyone wants anything but wordpress
978: [23:27:00] <Pyromanik> but retards love it
979: [23:27:00] <Pyromanik> "it's so easy"
980: [23:27:00] <Pyromanik> LIES
981: [23:27:00] <Pyromanik> You just don't know what easy is
982: [23:27:00] <Colin[pi]> wp is a pile of shit
983: [23:27:00] <Pyromanik> whether you're templating or extending functions
984: [23:28:00] <Pyromanik> so it's stupidly popular
985: [23:28:00] * Pyromanik has left #silverstripe
986: [23:28:00] <Pyromanik> IT'S A PUN, GET IT!?
987: [23:28:00] <Colin[pi]> "I wwebsite as on the internet" - every wordpress user
988: [23:28:00] <Pyromanik> lunch time
989: [23:28:00] <Colin[pi]> herp derp
990: [23:28:00] <Pyromanik> emphasis stupidly
991: [23:32:00] <EPIK> what is this news about?
992: [23:33:00] * Unlearned has joined #silverstripe
993: [23:33:00] * Unlearned quit (Read error: No route to host)
994: [23:40:00] <mirrors> $this->stat('variable') to access a static $variable
995: [23:40:00] * mirrors has joined #silverstripe
996: [23:40:00] <mirrors> Hey everyone...i have noticed in some silverstripe modules that the author uses $this-
997: [23:40:00] <mirrors> instead of self::$variable
998: [23:41:00] <mirrors> can anyone tell which way i should use
999: [23:53:00] * SightUnseen has left #silverstripe
1000: [23:53:00] * SightUnseen has joined #silverstripe
1001: [23:53:00] * catcher quit (Quit: Leaving)
1002: [23:56:00] * gelignite quit (Quit: http://bit.ly/nkczDT)

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