#silverstripe IRC Log

IRC log for 1 March 2013

All timestamps are in UTC.

1: [00:00:00] <azureKnight> Hmm. Any idea how to solve this?
2: [00:01:00] <azureKnight> Couldn't run query: CREATE TABLE "BasicVideo" ( "ID" int(11) not null auto_increment, "ClassName" enum('BasicVideo') character set utf8 collate utf8_general_ci default 'BasicVideo'...
3: [00:01:00] <FrozenFire> What's the error?
4: [00:01:00] <FrozenFire> (That's the statement of what *couldn't* be done)
5: [00:02:00] <azureKnight> Wait.
6: [00:02:00] <azureKnight> http://www.sspaste.com/paste/show/512ff004ad62f
7: [00:02:00] <azureKnight> I see it.
8: [00:03:00] <FrozenFire> Can I see your BasicVideo.php?
9: [00:03:00] <FrozenFire> Might be defining a field weirdly.
10: [00:03:00] <azureKnight> Hmm, or not. Lol.
11: [00:04:00] <azureKnight> Sure, and thank you for the help.
12: [00:04:00] <azureKnight> http://www.sspaste.com/paste/show/512ff09847e17
13: [00:05:00] <FrozenFire> It's best to never define $indexes unless you know what you're doing
14: [00:05:00] <FrozenFire> Uhh
15: [00:05:00] <azureKnight> I was about to say the same thing.
16: [00:05:00] <azureKnight> Lol.
17: [00:05:00] <FrozenFire> And... you don't. :P
18: [00:05:00] <azureKnight> This is good to know.
19: [00:06:00] <FrozenFire> ID typically suffices as the primary index
20: [00:06:00] <FrozenFire> Rarely useful.
21: [00:06:00] * xini quit (Quit: Page closed)
22: [00:06:00] <FrozenFire> No worries. Even I don't remember how to define DataObject::$indexes
23: [00:07:00] <FrozenFire> Adding them is very memory-intensive and can slow everything down.
24: [00:07:00] <FrozenFire> Additional b-tree indexes (the default) are usually only used if you are searching heavily on a field.
25: [00:08:00] <azureKnight> I see.
26: [00:08:00] <azureKnight> Hmm.
27: [00:09:00] <FrozenFire> You might've been looking for DataObject::$searchable_fields
28: [00:10:00] <FrozenFire> Which controls which fields one searches by in a ModelAdmin
29: [00:10:00] <FrozenFire> (Among others)
30: [00:14:00] * LoveDuckie quit (Ping timeout: 244 seconds)
31: [00:15:00] <FrozenFire> You probably copied my code verbatim. :P
32: [00:15:00] * LoveDuckie has joined #silverstripe
33: [00:15:00] <azureKnight> It says the page does not exist on SiteConfig.
34: [00:15:00] <azureKnight> Hmm, I'm getting an error concerning the Link functions.
35: [00:16:00] <FrozenFire> I have an extension to SiteConfig that adds a has_one to PortfolioPage
36: [00:16:00] <azureKnight> Yeah, I edited that area, but wasn't sure exactly what that meant.
37: [00:16:00] <azureKnight> That I did.
38: [00:16:00] <FrozenFire> This lets me define what the "main" portfolio is
39: [00:16:00] * chillu quit (Quit: chillu)
40: [00:16:00] <azureKnight> Hence why I'm asking for how I might make this work for me?
41: [00:16:00] <azureKnight> Ahhh.
42: [00:17:00] <FrozenFire> That'd be the extension applied to SiteConfig
43: [00:17:00] <Pyromanik> I means flexibility
44: [00:17:00] <Pyromanik> it*
45: [00:17:00] <FrozenFire> http://www.sspaste.com/paste/show/512ff39877501
46: [00:17:00] <FrozenFire> You'd of course want to modify the naming there
47: [00:18:00] <azureKnight> Yeah. But I'm wondering if I want to use that method for what I'm doing.
48: [00:18:00] <azureKnight> Took you awhile to chime in, Pyromanik
49: [00:18:00] <FrozenFire> Pyromanik, You're probably not helping his confusion. :P
50: [00:18:00] <Pyromanik> Apply all 83 extensions to the siteconfig.
51: [00:18:00] <FrozenFire> Yeah, possibly not.
52: [00:18:00] <azureKnight> Hmm.
53: [00:19:00] <azureKnight> Right.
54: [00:19:00] <Pyromanik> I'm a busy man.
55: [00:19:00] <azureKnight> Ah.
56: [00:19:00] <FrozenFire> :P
57: [00:19:00] <FrozenFire> Then I'm outtie.
58: [00:19:00] <FrozenFire> For 40 more minutes
59: [00:19:00] <azureKnight> Yeah, he's been helping me a lot.
60: [00:19:00] <Pyromanik> FrozenFire's got you covered.
61: [00:20:00] <azureKnight> ...
62: [00:20:00] <azureKnight> Hopefully I can get this before then. Haha.
63: [00:20:00] * oddnoc quit (Quit: bye!)
64: [00:20:00] <azureKnight> So, with all that said and done, rather than having the Page - SiteConfig:: etc.
65: [00:20:00] <FrozenFire> You'll muddle through. I just have a "way" because I've done this pattern about a bajillion times.
66: [00:20:00] <FrozenFire> Yeah, with a has_many, it's probably a different dealie
67: [00:21:00] <FrozenFire> $this->BasicPage()->Link(...)
68: [00:21:00] <FrozenFire> So you get the page itself, and then link off of that
69: [00:21:00] <FrozenFire> Like, whatever the has_one on BasicVideo is
70: [00:21:00] <FrozenFire> You'd want to do $this->BasicVideos()->Link(...)
71: [00:22:00] <azureKnight> Ahh.
72: [00:22:00] <FrozenFire> In your BasicVideo::Link method
73: [00:23:00] <FrozenFire> In my case, all portfolio items were linking themselves off of a single central page
74: [00:23:00] <azureKnight> Super slowly. Sorry about my stupidity.
75: [00:23:00] <azureKnight> The gears are turning...
76: [00:23:00] <azureKnight> Ok.
77: [00:23:00] <FrozenFire> Yeah
78: [00:23:00] <azureKnight> So, drop your whole var for portfolio page and simply return it?
79: [00:23:00] <FrozenFire> So I could iterate all of my portfolio items on, say, the homepage, and have them still link to my portfolio page
80: [00:24:00] <azureKnight> Right, right.
81: [00:25:00] <FrozenFire> And that page's styling changes frequently.
82: [00:25:00] <FrozenFire> Man, Paul Irish sure messes with his CSS a lot
83: [00:25:00] <FrozenFire> :P
84: [00:25:00] <Pyromanik> azureKnight: no such thing as stupidity in this case, just shit you ain't learnt yet.
85: [00:25:00] <FrozenFire> I always refer to his blog for this one snippet of CSS that I like to use.
86: [00:25:00] <azureKnight> Thanks Pyromanik
87: [00:26:00] <FrozenFire> http://paulirish.com/2012/box-sizing-border-box-ftw/
88: [00:28:00] <azureKnight> Hmm. Ok.
89: [00:29:00] <Pyromanik> Case Sensitive
90: [00:29:00] <azureKnight> It's giving me a warning for modelasscontroller::getnestedcontroller() returned bad object type 'basicpage'
91: [00:29:00] <Pyromanik> BasicPage probably
92: [00:29:00] * FrozenFire laughs at modelasscontroller
93: [00:30:00] <Pyromanik> Model's have donkeys?
94: [00:30:00] * FrozenFire wants to control some models' asses
95: [00:30:00] <azureKnight> Ah.
96: [00:30:00] <azureKnight> Hmm, not that.
97: [00:30:00] <azureKnight> It's probably something else in my link function.
98: [00:31:00] <FrozenFire> Paste your code
99: [00:31:00] <azureKnight> The ->Link()
100: [00:31:00] <Pyromanik> or do you mean model's arses?
101: [00:31:00] <azureKnight> Or wait??? It might be my AbsoluteLink
102: [00:31:00] <azureKnight> Remember, it's butchered your code, so I apologize.
103: [00:32:00] <FrozenFire> :P
104: [00:32:00] <FrozenFire> Haha
105: [00:32:00] <azureKnight> Also, BasicPage is known as BasicTraining, I had to make that adjustment.
106: [00:32:00] <FrozenFire> Everyone butchers my code. That's why I'm excellent.
107: [00:32:00] <azureKnight> Hahaha.
108: [00:32:00] <azureKnight> http://www.sspaste.com/paste/show/512ff729b6ce8
109: [00:33:00] <FrozenFire> Is your BasicTrainingID set in this instance?
110: [00:33:00] <azureKnight> Ok??? Now repeat that as if you were speaking to a 10 year old...
111: [00:33:00] <Pyromanik> azureKnight: the stack trace is more useful in this occasion
112: [00:34:00] <FrozenFire> Basically saying, if it's got a BasicTraining set, link off of that.
113: [00:34:00] <azureKnight> Should that be instead of BasicTraining()?
114: [00:34:00] <azureKnight> FrozenFire: what do you mean?
115: [00:34:00] <FrozenFire> You might want to do $page = $this->BasicTraining()?:BasicTraining::get(); return $page->Link(...);
116: [00:35:00] <Pyromanik> it then shows you the line
117: [00:35:00] <Pyromanik> which is the path the program has taken from start to error.
118: [00:35:00] <Pyromanik> then it gives you a stack trace
119: [00:35:00] <azureKnight> Ahh.
120: [00:35:00] <FrozenFire> BasicTraining::get()->First() rather
121: [00:35:00] <Pyromanik> azureKnight: stack trace is the bit below the error
122: [00:35:00] <Pyromanik> you get the error
123: [00:35:00] <azureKnight> Right.
124: [00:35:00] <Pyromanik> it tells you what line it's on
125: [00:36:00] <Pyromanik> (most of the time)
126: [00:36:00] <Pyromanik> so you can see what it was trying to do before things went wrong
127: [00:36:00] <Pyromanik> as sometimes the error goes undetected until it causes a problem somewhere else in the program.
128: [00:36:00] <Pyromanik> stacktrace helps you see where it began
129: [00:37:00] <azureKnight> Director.php:314
130: [00:37:00] <azureKnight> Director::handleRequest(SS_HTTPRequest,Session,DataModel)
131: [00:37:00] <azureKnight> Director.php:119
132: [00:37:00] <azureKnight> Director::direct(/new-basic-training/,DataModel)
133: [00:37:00] <azureKnight> main.php:126"
134: [00:37:00] <azureKnight> "Bad result from url new-basic-training handled by ModelAsController controller: BasicTraining
135: [00:38:00] <azureKnight> I'm wondering...
136: [00:38:00] <FrozenFire> That's actually pretty... special.
137: [00:38:00] <azureKnight> Thank you.
138: [00:38:00] <FrozenFire> I've never seen that before.
139: [00:38:00] <Pyromanik> heh
140: [00:38:00] <FrozenFire> Did you have some crazy DataObjects as Pages shit going on before?
141: [00:38:00] <FrozenFire> o.O
142: [00:39:00] <FrozenFire> Maybe that's rearing its ugly half-baked head.
143: [00:39:00] <Pyromanik> are you using 3.1 azureKnight?
144: [00:39:00] <azureKnight> 3.0.3
145: [00:39:00] <Pyromanik> mmkay
146: [00:39:00] <azureKnight> Also this trace.
147: [00:39:00] <azureKnight> ModelAsController::getNestedController() returned bad object type 'BasicTraining'
148: [00:39:00] <azureKnight> ModelAsController.php:71
149: [00:39:00] <azureKnight> ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
150: [00:39:00] <azureKnight> Director.php:307
151: [00:39:00] <azureKnight> Director::handleRequest(SS_HTTPRequest,Session,DataModel)
152: [00:39:00] <azureKnight> Director.php:119
153: [00:39:00] <Pyromanik> BasicTraining extends Page, BasicTraining_Controller ?
154: [00:39:00] <azureKnight> Director::direct(/new-basic-training/,DataModel)
155: [00:39:00] <azureKnight> main.php:126
156: [00:39:00] <azureKnight> ...
157: [00:39:00] <Pyromanik> extends Page_Controller ?
158: [00:39:00] <azureKnight> I think I see it.
159: [00:40:00] * azureKnight sighs and cuts self.
160: [00:40:00] <azureKnight> Laughable.
161: [00:40:00] <azureKnight> And it's laughable.
162: [00:40:00] <azureKnight> I forgot to update my Controller.
163: [00:40:00] <azureKnight> It was still BasicPage.
164: [00:40:00] <azureKnight> Haha.
165: [00:40:00] <azureKnight> Yeah...
166: [00:40:00] <Pyromanik> and it is?
167: [00:41:00] <FrozenFire> Ah
168: [00:41:00] <azureKnight> Alright, so that's all working.
169: [00:42:00] * AlphaCactus quit (Ping timeout: 256 seconds)
170: [00:42:00] <azureKnight> It's taking me to an error page when I go to that url.
171: [00:42:00] <azureKnight> So, I think I'm near the home-stretch?
172: [00:43:00] <FrozenFire> Yeesh
173: [00:43:00] <Colin[pi]> has anyone made/used a mailing list system in SS?
174: [00:43:00] <azureKnight> http://www.sspaste.com/paste/show/512ff9a96f5b5
175: [00:43:00] <FrozenFire> Like, a full-stack mailing list server?
176: [00:44:00] <Colin[pi]> well nothing too crazy, db of members, compose a rich-text message, template it, queue it and send it
177: [00:44:00] <Colin[pi]> hideous?
178: [00:44:00] <FrozenFire> You'd want to go with something like GNU Mailman
179: [00:44:00] <FrozenFire> And use SS as a front-end to its API
180: [00:44:00] * LoveDuckie quit (Ping timeout: 255 seconds)
181: [00:45:00] <Colin[pi]> well I should say more of an e-newsletter thing than mailing list
182: [00:46:00] <FrozenFire> You have to deal with all of that subscription jazz
183: [00:46:00] <FrozenFire> Oh, not a newsgroup.
184: [00:46:00] <Colin[pi]> subscribe/unsubscribe, that sort of jazz
185: [00:46:00] <Colin[pi]> yeah sorry
186: [00:46:00] <FrozenFire> Okay. That's less... ugly.
187: [00:46:00] <Colin[pi]> hehe
188: [00:46:00] <FrozenFire> I typically just use Constant Contact or MailChimp
189: [00:46:00] <FrozenFire> I hate managing email.
190: [00:46:00] <FrozenFire> It's harder than you think.
191: [00:46:00] <FrozenFire> And have to make sure you're using reputable mail servers
192: [00:47:00] <azureKnight> FrozenFire: I'm getting the error page, so I think that's a good sign. Also, for my Link() on BasicVideo.php I made it be Link({$this->URLSegment}/{$action}")
193: [00:47:00] <Colin[pi]> yes me too, I wrote a module to do it on another platform, and it's a pain in the arse
194: [00:47:00] <FrozenFire> Mass mailings are one of those tricky logistical problems.
195: [00:47:00] <FrozenFire> azureKnight, That'd be wrong
196: [00:48:00] <azureKnight> I forgot my dollar sign in that little snippet I just wrote. Oops.
197: [00:48:00] <azureKnight> ?
198: [00:48:00] <FrozenFire> You either need to direct it to an action, or change the action behaviour of your controller.
199: [00:48:00] <FrozenFire> The latter being considerably more... bitchy.
200: [00:48:00] <azureKnight> So, we go with the former.
201: [00:49:00] <FrozenFire> Heh
202: [00:49:00] <FrozenFire> Good choice.
203: [00:49:00] <azureKnight> ;)
204: [00:49:00] <FrozenFire> The reason being that by default, Controller uses something like $Action/$ID/$OtherID to handle its internal routing
205: [00:50:00] <azureKnight> Hmm. Alright.
206: [00:50:00] <FrozenFire> You can make it $ID/$Action/$OtherID, but that makes it so that your controller can only handle those objects, and wouldn't have an index, for instance.
207: [00:50:00] <FrozenFire> It's complicated, and I've not had good experiences with it.
208: [00:50:00] <azureKnight> So, say I want the url to be like http://mysite/new-basic-training/basic-video
209: [00:50:00] <FrozenFire> It's best to use a standard RESTful URL scheme
210: [00:51:00] <azureKnight> Then, let's move away from that.
211: [00:51:00] <FrozenFire> You could change the item action to something like video
212: [00:51:00] <azureKnight> I'm willing to accept guidance.
213: [00:51:00] <FrozenFire> Yes
214: [00:51:00] <azureKnight> Would the above Url be one of the bitchy ones?
215: [00:52:00] <azureKnight> How might I do that?
216: [00:52:00] <FrozenFire> The way it basically works is that Director will route the request to your new-basic-training page's controller.
217: [00:52:00] <azureKnight> ?
218: [00:52:00] <azureKnight> ok
219: [00:52:00] <FrozenFire> That controller than takes over for the part of the URL that remains
220: [00:53:00] <FrozenFire> Which would be $ID/$OtherID
221: [00:53:00] <FrozenFire> That action then handles the remainder of the URL
222: [00:53:00] <FrozenFire> E.g. item
223: [00:53:00] <FrozenFire> In the standard $Action/$ID/$OtherID format, it routes the $Action to a method on itself if it can find it
224: [00:53:00] <FrozenFire> Which would be a request for a video.
225: [00:53:00] <FrozenFire> If you remove the $Action part, then that controller can *only* handle one type of request
226: [00:53:00] <azureKnight> Ok.
227: [00:54:00] <azureKnight> hmm...
228: [00:54:00] <FrozenFire> But that gets complicated quickly.
229: [00:54:00] <azureKnight> I don't like the sound of that...
230: [00:54:00] <FrozenFire> Now, there are ways to have multiple URL handling schemes for a controller
231: [00:54:00] <FrozenFire> The repercussion of that being that you couldn't, for instance, have a listing of videos.
232: [00:55:00] <azureKnight> :)
233: [00:55:00] <azureKnight> I wouldn't eliminate it, just curious how to cultivate it.
234: [00:55:00] <FrozenFire> I never do.
235: [00:55:00] <FrozenFire> Unless you have a very good reason for wanting to eliminate the action part, I wouldn't recommend it.
236: [00:55:00] <ajshort> it's not _that_ difficult to do if you really want it
237: [00:55:00] <azureKnight> Agreed.
238: [00:55:00] <FrozenFire> People won't care about that /new-basic-training/video/basic-video/ thing
239: [00:56:00] <kent_> thats ss in a nut shell, perfect for doing _that_ task, but doing stuff i little out side the box requires a bit more know how.
240: [00:56:00] <azureKnight> I like the_underscores.
241: [00:56:00] * eddiemonge has joined #silverstripe
242: [00:57:00] <FrozenFire> Indeed.
243: [00:57:00] <FrozenFire> SS is really, really easy if you do it its way.
244: [00:57:00] <azureKnight> I really want to study this a bit more to understand it. But unfortunately I gotta finish this project before I can.
245: [00:57:00] <kent_> i found in my 4 month absence that using other frameworks proved the most helpful in understanding ss
246: [00:57:00] <eddiemonge> is there a way to set the html title or label for a field defined in the db for a dataobject? (ss3)
247: [00:58:00] * gordon has joined #silverstripe
248: [00:58:00] <azureKnight> This dataobject->page is one of the final issues.
249: [00:58:00] <FrozenFire> If you try to do it another way, though, it screams at you until you cry.
250: [00:58:00] <FrozenFire> And you have to learn how to manipulate its guts in precise ways.
251: [00:58:00] <Colin[pi]> like with most frameworks I guess
252: [00:58:00] <FrozenFire> To some extent.
253: [00:58:00] * AlphaCactus has joined #silverstripe
254: [00:59:00] <FrozenFire> Usually it's that the people writing the code for SS have a certain "way" in mind, and if you vary from what they were thinking of having it do, you don't get the benefit of the path they've laid out for you.
255: [00:59:00] <FrozenFire> Not like they set up roadblocks
256: [00:59:00] <kent_> yeah, i think tho if your doing anything crazy custom, that ss probably isn't the best choic
257: [00:59:00] <azureKnight> So, FrozenFire what would it look like to do it the way you're saying?
258: [00:59:00] <FrozenFire> It's just not as polished.
259: [00:59:00] * gordon is now known as Guest53442
260: [00:59:00] <kent_> e
261: [01:00:00] <azureKnight> For the link statement.
262: [01:00:00] <FrozenFire> $page->Link("video/{$this->URLSegment}/{$action}");
263: [01:00:00] <kent_> but unless you have tried other ways, you don't appreciate what they have done for ya ;)
264: [01:00:00] <FrozenFire> azureKnight, Not sure what you mean
265: [01:01:00] <azureKnight> Ok. That's still rendering the error page.
266: [01:01:00] <azureKnight> So, I wonder where else I'm going wrong. Hmm.
267: [01:02:00] <howardgrigg> eddiemonge: not too sure what you're asking
268: [01:02:00] <howardgrigg> you can set the title of the page to whatever you like, use $MetaTags(false) <title>Whatever</title>
269: [01:02:00] <FrozenFire> howardgrigg, He's talking about the CMS fields
270: [01:02:00] <FrozenFire> Setting the field label
271: [01:03:00] <azureKnight> Is this part of my problem? public function item($request)
272: [01:03:00] <azureKnight> { $item = $this->BasicVideos()->filter("ID", $request->param("ID"))->First(); if(!$item) return $this->httpError(404); return $item->renderWith(array("BasicVideo", "Page")); }
273: [01:03:00] <howardgrigg> oh yea... lol
274: [01:03:00] <FrozenFire> azureKnight, Yeah, actually, what I usually do is return $this->renderWith(array("BasicVideo", "Page"), array("Video" => $item));
275: [01:04:00] <FrozenFire> azureKnight, It's a subtle distinction, but I actually find it solves many problems.
276: [01:04:00] <FrozenFire> Which is to say, rendering the BasicTraining page, but using the BasicVideo template, and injecting the template variable "Video" into it
277: [01:04:00] <eddiemonge> howardgrigg: i mean <label title="some descriptive text that shows on hover">
278: [01:05:00] <FrozenFire> { $item = $this->BasicVideos()->filter("ID", $request->param("ID"))->First(); if(!$item) return $this->httpError(404); return $this->renderWith(array("BasicVideo", "Page"), array("Video" => $item)); }
279: [01:05:00] <FrozenFire> Do that
280: [01:05:00] <azureKnight> You're too good to me. Thank you.
281: [01:05:00] <FrozenFire> Then in your template, you use $Video.Title for instance
282: [01:05:00] <azureKnight> Hm.
283: [01:05:00] <azureKnight> So, drop your statement at the last return? after the 404?
284: [01:06:00] <FrozenFire> The top scope remains the page/controller itself, and it's passed the video as Video
285: [01:06:00] <azureKnight> Ah.
286: [01:06:00] <FrozenFire> That solves problems like Menu() being available.
287: [01:07:00] * Colin[pi] quit (Ping timeout: 256 seconds)
288: [01:07:00] <azureKnight> hmm..
289: [01:08:00] <azureKnight> And that should return happily when the data object has been made in the BasicTraining.php
290: [01:08:00] <FrozenFire> Something like that, yeah.
291: [01:08:00] <azureKnight> So, my url in this case would be mysite/new-basic-training/video/title?
292: [01:08:00] <azureKnight> Hrmm.
293: [01:09:00] <FrozenFire> It will show the value in the field
294: [01:09:00] <howardgrigg> eddiemonge: you can use setAttribute()
295: [01:09:00] <azureKnight> Pencils ready.
296: [01:09:00] <azureKnight> Ahh...
297: [01:09:00] <azureKnight> It still is giving me the page not found page when I put in that url string.
298: [01:09:00] <FrozenFire> Something like that, yeah.
299: [01:09:00] <FrozenFire> One small note
300: [01:09:00] <FrozenFire> Since you added the URLSegment code *after* you created that initial object, you need to go back in and save it again
301: [01:10:00] <FrozenFire> But it's not actually saved in the database yet.
302: [01:10:00] <FrozenFire> So it can't look up by the field in the database, as the action will try to do.
303: [01:10:00] <FrozenFire> Because the form field will get the value of URLSegment from the object
304: [01:10:00] <howardgrigg> $textfield()->setAttribute('title', 'Your title');
305: [01:11:00] <FrozenFire> Works in 3.1, but only kinda
306: [01:11:00] <howardgrigg> oh eddiemonge actually there is a setDescription http://api.silverstripe.org/3.0/class-FormField.html#_setDescription
307: [01:11:00] <FrozenFire> I'd avoid setDescription
308: [01:11:00] <FrozenFire> It's half-baked
309: [01:11:00] <FrozenFire> Doesn't work in 3.0, that I know of.
310: [01:11:00] <azureKnight> Hmm, I dropped my db then rebuilt it.
311: [01:11:00] <azureKnight> Still getting the error on the url-string.
312: [01:11:00] <FrozenFire> Why?
313: [01:11:00] <azureKnight> Can't find the page.
314: [01:12:00] <FrozenFire> XD
315: [01:12:00] <FrozenFire> You don't have an object yet with that URLSegment?
316: [01:12:00] <azureKnight> I went into the cms and added it.
317: [01:12:00] <eddiemonge> howardgrigg: FrozenFire how/where do i specify either for a dataobject?
318: [01:12:00] <FrozenFire> eddiemonge, Do this.
319: [01:13:00] <FrozenFire> $field->setAttribute("title", "Your title");
320: [01:13:00] <FrozenFire> That'll put a title attribute on the field itself.
321: [01:14:00] * UncleCheese quit (Quit: UncleCheese)
322: [01:14:00] <eddiemonge> hmm ill check it out
323: [01:15:00] <eddiemonge> FrozenFire: yes
324: [01:15:00] <FrozenFire> Are you intending to have a sort of "help" for the CMS field?
325: [01:15:00] <eddiemonge> is there a way to override the settings in framework/admin/_config.php without commenting out the last line of framework/_config.php?
326: [01:16:00] <FrozenFire> Yeah, that's what FormField::setDescription is intended to remedy. It's a tricky question, annoyingly enough.
327: [01:16:00] <azureKnight> I'm probably doing something wrong between those two.
328: [01:16:00] * tankr quit (Quit: Leaving.)
329: [01:16:00] <azureKnight> http://www.sspaste.com/paste/show/5130015aa5245
330: [01:17:00] <FrozenFire> Oh wait, yeah, duh.
331: [01:17:00] <FrozenFire> :P
332: [01:18:00] <azureKnight> So, an issue with both phps? lol.
333: [01:18:00] <FrozenFire> Your item action should be video
334: [01:18:00] <FrozenFire> And you should be filtering by URLSegment instead of ID
335: [01:19:00] <FrozenFire> Nope, just one
336: [01:19:00] <FrozenFire> Your controller
337: [01:20:00] <FrozenFire> The one ID
338: [01:20:00] <FrozenFire> Just the first parameter to filter
339: [01:20:00] <azureKnight> Kk.
340: [01:20:00] <FrozenFire> The second ID there is in reference to the URL handler, which *is* ID
341: [01:20:00] <azureKnight> Ok.
342: [01:20:00] <azureKnight> So, change the ID's to URLSegment?
343: [01:21:00] <azureKnight> Ah
344: [01:24:00] * liam_ is now known as Guest58465
345: [01:24:00] * SightUnseen has joined #silverstripe
346: [01:24:00] * liam_ has joined #silverstripe
347: [01:25:00] * SightUnseen has left #silverstripe
348: [01:25:00] <azureKnight> Same issue. Hrm.
349: [01:27:00] <azureKnight> You said my item action should be video?
350: [01:27:00] <azureKnight> I think I overlooked that. What do I do?
351: [01:28:00] * Guest53442 is now known as elgrodo
352: [01:28:00] <FrozenFire> Consider it a moment to figure it out your own damn self. :P
353: [01:28:00] <azureKnight> Ha. Sorry. I'm looking at it, trying to figure it out.
354: [01:29:00] <azureKnight> Hmm. Actually, this may be really dumb to ask but what is the $action doing>
355: [01:30:00] <FrozenFire> It's actually not doing anything at the moment
356: [01:30:00] <azureKnight> cause the url you sent earlier was video/{$this->URLSegment}/{$action} and I honestly don't know what that's doing. I'd rather understand it than just copy.
357: [01:30:00] <FrozenFire> Which?
358: [01:32:00] * AlphaCactus quit (Ping timeout: 246 seconds)
359: [01:32:00] <azureKnight> ?
360: [01:32:00] <azureKnight> Hence the $action = null
361: [01:33:00] <FrozenFire> But you want the parameter there, so that if something calls it in that format, it won't cause an error
362: [01:33:00] <FrozenFire> You could completely discard it
363: [01:33:00] <FrozenFire> Yeah. It's just that things that are routed to typically have ::Link($action = null)
364: [01:33:00] <FrozenFire> And, in the future, you could add actions to the DataObject
365: [01:34:00] <azureKnight> Just keeping it there for the future.
366: [01:34:00] <azureKnight> Alright. That makes sense.
367: [01:34:00] <FrozenFire> In a sense, anyways.
368: [01:37:00] <azureKnight> Got it.
369: [01:37:00] <azureKnight> Thanks for that damned moment.
370: [01:37:00] <azureKnight> Ah...
371: [01:37:00] <azureKnight> ;)
372: [01:38:00] <FrozenFire> :P
373: [01:39:00] <azureKnight> If I use that, I can remove the "video" part, right?
374: [01:39:00] <azureKnight> Also.
375: [01:39:00] <azureKnight> public static $url_handlers = array('$ID!' => 'video');
376: [01:39:00] <FrozenFire> Yes. Probably.
377: [01:40:00] <azureKnight> Yeah, I'd have to hard-code it.
378: [01:40:00] * Guest58465 quit (Quit: Guest58465)
379: [01:40:00] <FrozenFire> But then you wouldn't have a standard URL handler
380: [01:42:00] <azureKnight> Which is yucky.
381: [01:46:00] * Bollig|DesignCty quit (Quit: Connection Reset by Mexicans with wirecutters)
382: [01:47:00] <azureKnight> I think I'm getting how it all works now, and also get to move this project along.
383: [01:47:00] <azureKnight> FrozenFire: thank you so much.
384: [01:47:00] <azureKnight> I'll have to buy you a beer sometime. :)
385: [01:48:00] <azureKnight> I'm sorta broke???
386: [01:48:00] <FrozenFire> Heh. Pay it forward in lieu of beer. :P
387: [01:48:00] <azureKnight> So, it's more like a cup of water, really.
388: [01:49:00] <azureKnight> :)
389: [01:49:00] <azureKnight> Seriously though.
390: [01:49:00] <azureKnight> Cheers.
391: [01:49:00] <FrozenFire> Happy to help
392: [01:49:00] <FrozenFire> :P That'd be my preference, having Celiac.
393: [01:49:00] <azureKnight> Then it works out.
394: [01:50:00] * Bollig|DesignCty has joined #silverstripe
395: [01:52:00] * AlphaCactus has joined #silverstripe
396: [01:53:00] * liam_ has joined #silverstripe
397: [01:54:00] * liam_ is now known as Guest28374
398: [02:08:00] * Err404NotFound has joined #silverstripe
399: [02:08:00] * Error404NotFound quit (Disconnected by services)
400: [02:16:00] * eddiemonge quit (Ping timeout: 245 seconds)
401: [02:17:00] * irogue quit ()
402: [02:25:00] * howardgrigg quit (Remote host closed the connection)
403: [02:26:00] * AlphaCactus quit (Ping timeout: 264 seconds)
404: [02:44:00] * AlphaCactus has joined #silverstripe
405: [03:05:00] <Pyromanik> client spends a heap of money getting an international facing shop made
406: [03:05:00] <Pyromanik> oh god, brilliance
407: [03:06:00] <Pyromanik> mascot cartoon and everything
408: [03:06:00] <Pyromanik> fantastic branding
409: [03:06:00] <Pyromanik> just visit their site today and they've changed one of their banners
410: [03:07:00] <Pyromanik> default calibri font
411: [03:07:00] <Pyromanik> what
412: [03:07:00] <Pyromanik> just
413: [03:07:00] <Pyromanik> plonked the mascot into MS Word, typed out a sentence complete with no less than four exclamation marks, screenshot it, then cropped and uploaded that screenshot it to the site.
414: [03:07:00] <Pyromanik> white spacing all messed up
415: [03:08:00] <Pyromanik> ay-may-ZING
416: [03:08:00] <Pyromanik> a-maz-ing.
417: [03:09:00] <spronk> link,?
418: [03:09:00] <spronk> wow
419: [03:15:00] * AlphaCactus quit (Ping timeout: 264 seconds)
420: [03:23:00] <Pyromanik> spronk: got removed
421: [03:23:00] <Pyromanik> "Brand police"
422: [03:23:00] <Pyromanik> aka "omfg, what are you doing, besides making us look bad?"
423: [03:23:00] <spronk> lul
424: [03:23:00] <Pyromanik> actually I lie
425: [03:23:00] <Pyromanik> http://tuataracovers.com/
426: [03:23:00] <Pyromanik> last slide
427: [03:31:00] * AlphaCactus has joined #silverstripe
428: [03:35:00] * PigeonFriend has joined #silverstripe
429: [03:35:00] * PigeonFriend quit (Remote host closed the connection)
430: [03:35:00] * mobiusnz quit (Quit: Leaving.)
431: [03:40:00] <spronk> eek
432: [03:45:00] * gordon_ has joined #silverstripe
433: [03:47:00] <spronk> classy
434: [03:48:00] * elgrodo quit (Ping timeout: 248 seconds)
435: [03:49:00] <Guest28374> how do you specify the title fields that appear for a dataobject in the modeladmin table again?
436: [03:51:00] <spronk> $summary_fields
437: [03:52:00] <Guest28374> thanks spronk. btw how did you get on with the oauth module yesterday?
438: [03:53:00] <spronk> the oauth php test client needs its Authorization: HTTP header adjusted so it reads Bearer instead of Oauth before the token
439: [03:53:00] <spronk> aaand you need to adjust RequestHeader.php in SS because routing doesn't work otherwise
440: [03:53:00] <spronk> got it working in the end
441: [03:54:00] * DigNZ quit (Quit: DigNZ)
442: [03:54:00] <Guest28374> spronk: ok nice. could you share the RequestHandler.php code with me please?
443: [03:55:00] <spronk> RequestHeader in 3.1 has been updated recently
444: [03:55:00] <spronk> it needs 3.1
445: [03:55:00] <spronk> mm
446: [03:55:00] <Guest28374> spronk: wait is this in the framework?
447: [03:55:00] <spronk> whichever it is
448: [03:55:00] <spronk> or without the s..
449: [03:55:00] <spronk> change latestParams to params
450: [03:55:00] <spronk> line 166
451: [03:55:00] <spronk> but
452: [03:56:00] <spronk> aaaand I think it has bugs
453: [03:58:00] <Guest28374> spronk: ok so line 166 is $action = str_replace("-", "_", $request->latestParam(substr($action,1))); what did you change it to?
454: [03:59:00] <spronk> just change $request->latestParam to $request->param
455: [04:00:00] <spronk> could be a bug in simon_w's code
456: [04:00:00] <spronk> I'm not entirely sure whether latestParam is the bug, but changing it doesn't appear to affect the CMS
457: [04:00:00] * nickmolhoek quit (Quit: nickmolhoek)
458: [04:00:00] <Guest28374> spronk: ok thanks. and where abouts in the php test client did you change the header name?
459: [04:00:00] <spronk> but latestParam is null at that point, so.. hmm
460: [04:01:00] <spronk> system/actions/api.php line 15
461: [04:01:00] <spronk> sec
462: [04:02:00] <spronk> because otherwise you get issues with PopController and ModelAsController
463: [04:02:00] <spronk> ah, and wjhatever controllers you use with RequiresOauth extension should inherit from Controller, and not Page_Controller
464: [04:03:00] <spronk> i'm not sure whether or not it's meant to work with page controllers - will have to wait for simon_w to get back to answer that one
465: [04:03:00] <spronk> also not sure what version of 3.1 he must be running to have it work...
466: [04:04:00] * AlphaCactus quit (Ping timeout: 245 seconds)
467: [04:06:00] * dendeffe has joined #silverstripe
468: [04:11:00] * mobiusnz has joined #silverstripe
469: [04:14:00] * cloph_away1 has joined #silverstripe
470: [04:16:00] * cloph_away quit (Ping timeout: 272 seconds)
471: [04:19:00] * simon_w|air has joined #silverstripe
472: [04:19:00] <simon_w|air> spronk, should be fixed. I never tested with nested controllers, so never came across it
473: [04:20:00] <spronk> simon_w|air: page controllers?
474: [04:21:00] <spronk> specifically after hfriedlander's latest updates
475: [04:21:00] <simon_w|air> Well, ModelAsController
476: [04:21:00] <spronk> oh
477: [04:21:00] <spronk> simon_w|air: did you notice any issues with the $Action writing stuff in RequestHandler ?
478: [04:21:00] <simon_w|air> I haven't done any SS3 stuff beyond fixing that for a couple of weeks
479: [04:22:00] * mobiusnz quit (Quit: Leaving.)
480: [04:22:00] <spronk> yeah. cheers :)
481: [04:22:00] <simon_w|air> Also, still on holiday
482: [04:22:00] <simon_w|air> Make a comment on the commit that did it, and someone will probably do something
483: [04:23:00] * simon_w|air quit (Client Quit)
484: [04:23:00] <spronk> mm
485: [04:38:00] * priithansen quit (Quit: priithansen)
486: [04:46:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
487: [04:54:00] * Guest28374 quit (Quit: Guest28374)
488: [05:12:00] * Colin[pi] has joined #silverstripe
489: [05:14:00] <spronk> does anyone know whether findAction is meant to find the actual action method on a controller?
490: [05:15:00] * DigNZ has joined #silverstripe
491: [05:15:00] <spronk> additionally, whether actions automatically populate the url_handlers var?
492: [05:20:00] * Pyromanik has left #silverstripe
493: [05:32:00] * Bollig|DesignCty quit (Ping timeout: 248 seconds)
494: [05:32:00] * AshKyd quit (Ping timeout: 248 seconds)
495: [05:33:00] * Error404NotFound has joined #silverstripe
496: [05:33:00] * AshKyd has joined #silverstripe
497: [05:36:00] * DigNZ quit (Quit: DigNZ)
498: [05:41:00] * Error404NotFound quit (Disconnected by services)
499: [05:41:00] * Err404NotFound has joined #silverstripe
500: [05:43:00] * Err404NotFound quit (Excess Flood)
501: [06:01:00] * priithansen has joined #silverstripe
502: [06:04:00] * dendeffe quit (Quit: dendeffe)
503: [06:35:00] * Shrike_Finland quit (Quit: Leaving.)
504: [06:36:00] * kent_ has left #silverstripe
505: [06:41:00] * dendeffe has joined #silverstripe
506: [06:51:00] * Motoservo quit (Quit: Motoservo)
507: [06:54:00] * Motoservo has joined #silverstripe
508: [07:16:00] * toebu quit (Remote host closed the connection)
509: [07:25:00] * azureKnight quit (Quit: azureKnight)
510: [07:32:00] * LoveDuckie has joined #silverstripe
511: [07:42:00] * AshKyd quit (Quit: bbl)
512: [07:47:00] * guci0 has joined #silverstripe
513: [07:47:00] <guci0> Morning!
514: [08:41:00] <guci0> http://www.youtube.com/watch?feature=player_embedded&v=mgmVOuLgFB0 Looks in a free time ... Very good motivation short film
515: [08:45:00] <guci0> And http://grupakarczew.pl/aktualnosci/motywacja/ ther is a other, second even better...
516: [08:53:00] * halkyon quit (Ping timeout: 240 seconds)
517: [08:57:00] * azureKnight has joined #silverstripe
518: [09:00:00] * kinglozzer has joined #silverstripe
519: [09:01:00] * azureKnight quit (Ping timeout: 240 seconds)
520: [09:05:00] * kinglozzer quit (Remote host closed the connection)
521: [09:05:00] * kinglozzer has joined #silverstripe
522: [09:07:00] * ajshort quit (Read error: Connection reset by peer)
523: [09:09:00] * azureKnight has joined #silverstripe
524: [09:10:00] * kinglozzer quit (Remote host closed the connection)
525: [09:11:00] * kinglozzer has joined #silverstripe
526: [09:12:00] <kinglozzer> Morning all
527: [09:13:00] * popeshoe quit (Quit: Leaving)
528: [09:14:00] * chillu has joined #silverstripe
529: [09:15:00] * popeshoe has joined #silverstripe
530: [09:16:00] <guci0> Morning!
531: [09:20:00] * gavric has joined #silverstripe
532: [09:21:00] * zfmf has joined #silverstripe
533: [09:25:00] * iamss has joined #silverstripe
534: [09:27:00] <kinglozzer> Can't watch it, I'm at work. I have caffeine as my motivation :D
535: [09:27:00] <guci0> kinglozzer: http://www.youtube.com/watch?feature=player_embedded&v=mgmVOuLgFB0 look, just in time for a good morning
536: [09:29:00] <guci0> It's not the dimension :)
537: [09:29:00] <guci0> like coffe
538: [09:33:00] <iamss> Hi guys, does anyone here tried to use the Flickr module
539: [09:33:00] <iamss> can we do caching in that module?
540: [09:38:00] <kinglozzer> iamss: I've never even heard of it, but can't you just use partial caching in the templates?
541: [09:39:00] <iamss> kinglozzer, got it ResfulService class has caching feature
542: [09:40:00] <kinglozzer> http://feross.org/fill-disk/
543: [09:44:00] * PigeonFriend quit (Ping timeout: 256 seconds)
544: [09:46:00] * PigeonFriend has joined #silverstripe
545: [09:49:00] * iamss quit (Ping timeout: 245 seconds)
546: [09:56:00] * DigNZ has joined #silverstripe
547: [09:57:00] * DigNZ quit (Client Quit)
548: [09:59:00] * nimeso quit ()
549: [10:00:00] * gavric quit (Ping timeout: 245 seconds)
550: [10:10:00] * lx-berlin has joined #silverstripe
551: [10:13:00] * ajshort has joined #silverstripe
552: [10:18:00] * Liquide quit (Ping timeout: 256 seconds)
553: [10:30:00] * ARNHOE has joined #silverstripe
554: [10:32:00] * Liquide has joined #silverstripe
555: [10:48:00] <kinglozzer> Euughhh. Trying to create a 3.1 branch of framework on my mac, every time I try to rebase I get a tonne of merge conflicts in yml lang files. Any idea how I'd fix this?
556: [11:00:00] * toebu has joined #silverstripe
557: [11:03:00] <kinglozzer> Never mind, fixed by deleting my repo and cloning it again
558: [11:10:00] <kinglozzer> Every time I think I'm finally getting used to Github, it screws me over :(
559: [11:10:00] <kinglozzer> Ahhh not fixed at all :(
560: [11:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1547 (post-2.4 - cbe2793 : Ingo Schommer): The build is still failing.
561: [11:11:00] * travis-ci has joined #silverstripe
562: [11:11:00] * Shrike_Finland has joined #silverstripe
563: [11:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c257fa799f1a...cbe27936300e
564: [11:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5157516
565: [11:11:00] * travis-ci has left #silverstripe
566: [11:14:00] <kinglozzer> Okay I've kinda solved it. I don't have a 3.1 framework branch yet, how do I create one correctly? I.e. pull the 3.1 branch to my repo
567: [11:15:00] <ajshort> kinglozzer: git checkout -t origin/3.1
568: [11:15:00] <ajshort> or you can use git clone -b 3.1 in the original clone
569: [11:16:00] <ajshort> is it listed in git branch?
570: [11:16:00] <ajshort> ...
571: [11:16:00] <kinglozzer> Except it doesn't :(
572: [11:16:00] <kinglozzer> 'fatal: branch 3.1 already exists'
573: [11:17:00] <ajshort> then it exists...
574: [11:17:00] <kinglozzer> Yep
575: [11:19:00] <ajshort> kinglozzer: so that branch exists, what is the actual problem?
576: [11:19:00] <ajshort> if you want to pull changes from the origin
577: [11:19:00] <ajshort> just checkout 3.1
578: [11:20:00] <ajshort> you can always delete it using git branch -d
579: [11:20:00] <ajshort> and git pull origin 3.1
580: [11:20:00] <kinglozzer> I get a tonne of merge conflicts when I try that
581: [11:20:00] <ajshort> you must have edited your 3.1 branch then
582: [11:21:00] <ajshort> read the rest of the message
583: [11:21:00] <ajshort> or use git reset to reset it to the origin
584: [11:21:00] <kinglozzer> I can't delete it :/ "The branch 3.1 is not fully merged"
585: [11:21:00] <kinglozzer> Ah :P
586: [11:23:00] <kinglozzer> Finally! Thanks ajshort. Github for mac refuses to acknowledge that it exists, but maybe it's a sign I should ditch it
587: [11:29:00] * dendeffe quit (Quit: dendeffe)
588: [11:30:00] * lx-berlin quit (Quit: lx-berlin)
589: [11:31:00] <ajshort> save yourself some typing :)
590: [11:31:00] <ajshort> git pull --rebase upstream 3.1
591: [11:31:00] <ajshort> heh
592: [11:31:00] <kinglozzer> ajshort Rebasing 3.1, git fetch upstream, git rebase upstream/3.1 right?
593: [11:32:00] <ajshort> how are you checking out the 3.1 branch?
594: [11:32:00] <kinglozzer> ARGH
595: [11:32:00] <kinglozzer> Merge conflicts
596: [11:32:00] <kinglozzer> Wtf?
597: [11:33:00] <kinglozzer> git checkout 3.1
598: [11:33:00] <ajshort> and then git checkout -t upstream/3.1
599: [11:33:00] <ajshort> try deleting the branch
600: [11:34:00] <kinglozzer> Okay, done
601: [11:35:00] <Colin[pi]> hey guys, if I want to provide fields to edit stuff for use throughout the site, is SiteConfig the best bet?
602: [11:37:00] <ajshort> probly
603: [11:37:00] <Colin[pi]> k thx :D
604: [11:40:00] <kinglozzer> Ah finally. ajshort I didn't delete the remote branch >.<
605: [11:40:00] * gordon_ quit (Remote host closed the connection)
606: [11:43:00] <Colin[pi]> my gf is cleaning the bathroom while I code... I am the luckiest man alive
607: [12:04:00] <guci0> :)
608: [12:04:00] <guci0> sometimes :)
609: [12:04:00] <guci0> my wife is great too...
610: [12:05:00] <Colin[pi]> :)
611: [12:05:00] * dendeffe has joined #silverstripe
612: [12:15:00] <Colin[pi]> nn guys
613: [12:19:00] * Colin[pi] quit (Ping timeout: 256 seconds)
614: [12:33:00] * azureKnight quit (Quit: azureKnight)
615: [12:40:00] * Fritz_ has joined #silverstripe
616: [12:50:00] * lx-berlin has joined #silverstripe
617: [12:55:00] * g4b0 has joined #silverstripe
618: [13:00:00] * kinglozzer Lunch
619: [13:10:00] * Liquide quit (Ping timeout: 255 seconds)
620: [13:13:00] * UndefinedOffset has joined #silverstripe
621: [13:14:00] * Error404NotFound has joined #silverstripe
622: [13:18:00] * Liquide has joined #silverstripe
623: [13:41:00] * Liquide quit ()
624: [13:42:00] * feejin has joined #silverstripe
625: [13:45:00] <priithansen> Can anyone shed some light if I'm moving the right way with this database relationship http://priithansen.com/level-db.png < I need to make sure that all the Categories belonging to one Standard share all the available Shifters. So it the checks where going rather long traversing throughout the relationship. So I made things like presented in the second diagram. Am I asking for trouble with those multiple relationships?
626: [13:45:00] <ajshort> chillu: I can't believe you use textmate :P
627: [13:46:00] <ajshort> yep
628: [13:46:00] <lx-berlin> hi all, i need to uprade an SS2.3 site to SS3.1. Unfortunately i noticed that all german special chars are not correctly saved in the mysql database. I think it was because at the times of 2.3 mysqlconnection wasnt set to utf8. Now i dont know how to export all tables to use them in 3.1
629: [13:46:00] <ajshort> sublime text 2 is a fair bit better, good to see
630: [13:46:00] <chillu> Huh? I use SublimeText2. You mean because of SilverScoop mention?
631: [13:47:00] <lx-berlin> how can i load a dump in ss3.1 that has all texts in correct utf8 ?
632: [13:47:00] <chillu> I've toyed around with it about half a year ago, but not really a fan of heavyweight IDEs. Are you using it?
633: [13:47:00] <chillu> That was just an example :D Yeah, I love love love ST2. My favourite feature is the multi-selection editing, use it all the time now
634: [13:47:00] <ajshort> have you tried phpstorm?
635: [13:48:00] <ajshort> yep
636: [13:48:00] <chillu> lx-berlin: http://doc.silverstripe.org/framework/en/trunk/changelogs/2.4.0#mysql-character-set-to-utf8-on-new-installations
637: [13:48:00] <ajshort> although from memory sublime text has plugins for xdebug and things like that, so i guess a heavier editor isn't really neccesary
638: [13:49:00] <ajshort> and i guess IDEs aren't as useful for PHP as compared to things like java
639: [13:49:00] <chillu> xdebug support is fairly basic, but I find that debuggers get in the way more than they help in PHP anyway 9 times out of 10
640: [13:50:00] <chillu> I'm running most git commands through ST2 as well, really efficient through the fuzzy matching it does
641: [13:50:00] <ajshort> true as well
642: [13:50:00] * UncleCheese has joined #silverstripe
643: [13:50:00] <chillu> https://github.com/Kindari/SublimeXdebug
644: [13:51:00] <ajshort> add an empty _config.php file to the gridfieldextensions directory
645: [13:51:00] <priithansen> ajshort: any idea why the fantastic gridfieldextensions module doesn't want to output any lang files with textcollector?
646: [13:51:00] * wolfv has joined #silverstripe
647: [13:52:00] <ajshort> it's a silverstripe bug where the translation stuff doesn't recognised modules without a _config.php file
648: [13:52:00] <priithansen> ah thanks
649: [13:53:00] <lx-berlin> chillu: this articles mentions that older SS versions should have MySQLDatabase::set_connection_charset('utf8'); in _config.php . But this website aready has lots of content in its database that is not correct utf8. Its working on the current 2.3 site. But how do i import a dump as correct utf8 to a clean ss3.1 databse ?
650: [13:53:00] <wolfv> Hi everybody, I am kind of stuck at gridfield. I am trying to get a simple three step thing going. A lottery -- you press a button and then either popup or redirect to a form (i got this working with a redirect) and then after you enter a number of "winners" I want to redirect to the page with the gridfield again
651: [13:54:00] <wolfv> I have looked hours on the add new gridfield handler stuff from the framework
652: [13:54:00] <wolfv> but somehow I can't figure it out
653: [13:54:00] <wolfv> has anybody examples or working code etc. for such a usecase?
654: [13:54:00] <chillu> lx-berlin: Which db cols do you have trouble with? Can you put the current schema (CREATE TABLE command) in a gist?
655: [13:54:00] <lx-berlin> a dump includes something like : F????r Klarheit sorgen
656: [13:55:00] <lx-berlin> i will paste it . just a second
657: [13:58:00] <lx-berlin> http://sspaste.com/paste/show/5130b3f92c762
658: [13:58:00] <priithansen> ajshort: would you care for a pull request of estonian translation for the gridfieldextensions module or should I keep it to myself?
659: [13:58:00] <ajshort> Hrmm
660: [13:59:00] <ajshort> Sure, I'll pull it in
661: [13:59:00] <ajshort> That module is still kinda in early development though, so it's quite likely that translation strings will change a lot
662: [13:59:00] <priithansen> I'm never sure with smaller modules and this language that only million people speak :)
663: [13:59:00] * dhn_ has joined #silverstripe
664: [13:59:00] <lx-berlin> the collations of each column is utf8. but i guess because ss2.3 didnt set the mysql connectoin to utf8, its not saved as correct utf8
665: [14:00:00] <lx-berlin> but if i want to import it in a clean ss3.1 database, it needs to be correct utf8 i think
666: [14:00:00] <ajshort> priithansen: it can't hurt to include it i guess
667: [14:00:00] <dhn_> Hi everyone, quick question: How can I override module specific language strings in SS3? putting a lang folder in mysite/ with the yml files does not work. Any ideas?
668: [14:00:00] <priithansen> ajshort: If it's going to be even more awesome i will surely keep the translation updated
669: [14:01:00] <ajshort> :)
670: [14:02:00] <dhn_> nevermind
671: [14:02:00] <dhn_> wrong project name
672: [14:02:00] <dhn_> now it works
673: [14:02:00] <lx-berlin> chillu: any tips how to transform such a dumpfile into valid utf8 ?
674: [14:03:00] <priithansen> UncleCheese: I had the translation ready just hours after your tweet but was waiting for my girlfriend who does translations for a living to wake and check it before submitting :)
675: [14:04:00] <chillu> lx-berlin: export without creating the DB structure. Do a dev/build on a new DB in the 3.1 install, then just import the data. I think the problem here is that you're inserting the data *before* running the first dev/build (with DEFAULT CHARSET=latin1)
676: [14:04:00] <UndefinedOffset> chillu ajshort... i really need to get my toolset out there >< DesignerX asked me to like the first of the month lol, just keeps getting back burnered http://dev.webbuildingcms.com/highlight-1.jpg
677: [14:05:00] <lx-berlin> chillu: thanks. I will give this a try. You are right. I wanted to import even the tablestructure.
678: [14:05:00] * ocm has joined #silverstripe
679: [14:05:00] <chillu> UndefinedOffset: you mean Eclipse customizations that you've done for SS?
680: [14:05:00] <ocm> howdy!
681: [14:07:00] <UndefinedOffset> chillu ya exactly :) I have a plugin that works well for myself and the other dev here at webbuilders group. Though I'm sure its got issues that i don't know about I'm a php developer the vast majority of the time
682: [14:07:00] <UndefinedOffset> working on a blog post for my own site which is going to get reposted on the webbuilders site (hopefully), just gotta sort out a few things and get it up on github
683: [14:08:00] * ARNHOE quit (Remote host closed the connection)
684: [14:09:00] <ajshort> cool! if only I still used eclipse :)
685: [14:10:00] <UndefinedOffset> lol mm, yay java and ugly amounts of memory usage
686: [14:13:00] <lx-berlin> chillu: running dev/build on ss3.1 and then only importing the records from a ss2.3 project is a little bit complicated, because for example in the table SiteTree the columns "MetaTitle" and "MetaKeywords" no longer exist
687: [14:14:00] <wolfv> @lx-berlin hehe, I just build a nice script for that
688: [14:14:00] <lx-berlin> so the tablestructur has changed.
689: [14:14:00] <Fritz_> Hi, I am using SS 3.x (tried both 3.0.5 and 3.1 beta2) with the Translatable Module. I have the simple theme in my themes directory and a custom theme (let's call it custom). Both in mysite/_config.php and also in the CMS Settings GUI I have set the custom theme to be used. Pages created in the default locale are working fine. But translated pages pull in themes/simple rather than themes/custom. Any ideas?
690: [14:15:00] <chillu> lx-berlin: True. Have you tried simply copying the existing DB and running a dev/build? Go through the 2.4, 3.0 and 3.1 upgrade docs to ensure any manual schema changes are done, but that should work in theory
691: [14:15:00] <lx-berlin> wolfv: for what exactly? adding those missing columns ?
692: [14:15:00] <lx-berlin> ok, i will now import structure+data at once and then run dev/build
693: [14:16:00] <chillu> How often do you deploy to your demo site?
694: [14:16:00] <chillu> ajshort: You're on fire with exts.ss.org! :) Very cool
695: [14:16:00] <ajshort> never :)
696: [14:16:00] <ajshort> chillu: getting close
697: [14:17:00] <ajshort> it's still running the old bitbucket code
698: [14:17:00] <ajshort> i need to implement two more features i think, then i'm going to recreate the demo site from scratch and document the process
699: [14:17:00] <wolfv> naa, kind of an importer: http://sspaste.com/paste/show/5130b84c64969
700: [14:18:00] <wolfv> you can specify an origin DB and a target DB
701: [14:18:00] <wolfv> It's not really performant, but useful to me ...
702: [14:18:00] <wolfv> and then change Enums, and unset columns etc.
703: [14:19:00] <lx-berlin> thanks, looks quite complex. I will take a deeper look a little bit later
704: [14:20:00] <chillu> @everybody If you want to see how an elegant cutting edge app can be coded in SS3, I really recommend going through the code of ajshort's https://github.com/silverstripe/extensions.silverstripe.org a bit :)
705: [14:21:00] * neildarlow has joined #silverstripe
706: [14:21:00] <ajshort> hah
707: [14:21:00] <ajshort> I'm not even using namespaces :P
708: [14:22:00] <chillu> Well, everything *apart* that hehe. We need to get some better docs (and core usage) of injector, its making a lot of sense when looking through your stuff
709: [14:22:00] <ajshort> yeah it's quite nice
710: [14:23:00] <neildarlow> Hi. I am using UserDefinedForms with SilverStripe-3.0.5. Is it normal for the field labels to appear _under_ their associated fields?
711: [14:23:00] <ajshort> i've been doing some java dev, so that gave me a bit more of an appreciation for it
712: [14:24:00] <neildarlow> ajshort: Simple?, yes
713: [14:24:00] <ajshort> neildarlow: are you using the default theme?
714: [14:24:00] <ajshort> it just sounds like a css styling issue
715: [14:25:00] <lx-berlin> chillu: importing structure+data in one dump and then running dev/build worked. But (as expexted) it didnt fix the special chars
716: [14:25:00] * EPIK quit (Ping timeout: 255 seconds)
717: [14:26:00] <lx-berlin> but i think i found a solution in the forum: "I had to manually convert the exported database dump: iconv --from-code UTF-8 --to-code ms-ansi -c usr_web46_1.sql > ms-ansi.txt"
718: [14:26:00] <lx-berlin> i will try this now
719: [14:26:00] <chillu> Hmm that's lossy, isn't it? To ansi?
720: [14:27:00] <lx-berlin> http://www.silverstripe.org/migrating-a-site-to-silverstripe/show/5849?start=16
721: [14:28:00] <lx-berlin> i dont know. I think i need to play around with iconv
722: [14:31:00] * neildarlow quit (Quit: Konversation terminated!)
723: [14:31:00] * sjeijk has joined #silverstripe
724: [14:37:00] * feejin quit (Remote host closed the connection)
725: [14:39:00] * sjeijk quit (Ping timeout: 245 seconds)
726: [14:40:00] * sjeijk has joined #silverstripe
727: [14:43:00] <sjeijk> hi all can some1 explain what makes silverstripe better then modx if so?
728: [14:45:00] * Shrike_Finland quit (Quit: Leaving.)
729: [15:06:00] * dhn_ quit (Ping timeout: 245 seconds)
730: [15:08:00] * Nivery has joined #silverstripe
731: [15:12:00] * ajshort quit (Quit: Leaving)
732: [15:13:00] * lx-berlin quit (Quit: lx-berlin)
733: [15:17:00] <g4b0> through Config::inst()->update($class, 'db', self::$translation_manifest[$class]);
734: [15:17:00] <g4b0> I'm trying to use add_to_class to add some field to a DataObject
735: [15:17:00] * wolfv quit (Ping timeout: 245 seconds)
736: [15:18:00] <g4b0> but Config::inst() doesn't create the db field
737: [15:19:00] <g4b0> do you kown why?
738: [15:19:00] * lx-berlin has joined #silverstripe
739: [15:20:00] * chillu quit (Quit: chillu)
740: [15:20:00] <g4b0> I think that it's the same problem of translatable-dataobject not working on SS 3.1
741: [15:24:00] * jcwacky has joined #silverstripe
742: [15:25:00] <jcwacky> Anyone able to help me with a basic booking form?
743: [15:26:00] <jcwacky> I've for a simple "Event" DO with Title, Price etc, and I need the ability for a user to click a Book Now link for an event, which will display a form showing the event & price, ask them to enter their Name & E-mail, and then submit.
744: [15:26:00] <PigeonFriend> ask away
745: [15:26:00] <PigeonFriend> jcwacky: it depends how much help you need
746: [15:27:00] <kinglozzer> jcwacky: Store the event ID in a hidden field
747: [15:27:00] <jcwacky> I'm just having trouble getting the event info to carry though to the form, and to stay there even during submission & validation.
748: [15:27:00] <jcwacky> I'm happy with the basics of forms, done loads of them.
749: [15:28:00] <jcwacky> And what's the best way to get it there? I've just been putting it in a URL param tom the book now link.
750: [15:28:00] <jcwacky> eg. /bookingform?eventid=8
751: [15:28:00] <PigeonFriend> jcwacky: yep, i agree with kinglozzer
752: [15:29:00] <PigeonFriend> if you're creating the FieldList in the controller, you'll have access to the param
753: [15:29:00] <PigeonFriend> so you can push it into a hidden field
754: [15:29:00] <jcwacky> yep, so happy with all that, but..
755: [15:30:00] <jcwacky> I've got code in BankTransferForm() which checks that ID, and gets the Title of the event, and then displays it in the form using a ReadOnlyField.
756: [15:30:00] <jcwacky> but when I submit the form, it's still looking for the URL params, but they're not there anymore because the form action doesn't include them.
757: [15:30:00] <jcwacky> which all works
758: [15:31:00] <kinglozzer> jcwacky: But they'll be stored in a hidden field
759: [15:32:00] <kinglozzer> new HiddenField('EventID', $this->request->param(... etc
760: [15:33:00] <kinglozzer> Then when you submit the form, doForm($data, $form), $data['EventID'[ will contain the ID
761: [15:33:00] <jcwacky> Yep, happy with that.
762: [15:39:00] <PigeonFriend> jcwacky: please cast that param as an int
763: [15:44:00] * Marvanni quit (*.net *.split)
764: [15:44:00] * jcwacky quit (*.net *.split)
765: [15:45:00] * Marvanni has joined #silverstripe
766: [15:45:00] * jcwacky has joined #silverstripe
767: [15:49:00] <priithansen> So am I shooting myself in the leg with Version2 http://priithansen.com/level-db.png < or Is that kind of intermixed relationships ok in mysql?
768: [15:49:00] <jcwacky> ok, think I've just going to store the id in a session variable, so that it will always be available.
769: [15:50:00] <priithansen> de what now?
770: [15:50:00] <PigeonFriend> priithansen: you're just denormalising, aren't you?
771: [15:51:00] <PigeonFriend> priithansen: well, almost, is you standard - shifter relationship right? wouldnt it be many-many?
772: [15:52:00] <priithansen> I suppose it could be wanted to keep the shifters separated between standards just to be sure :)
773: [15:53:00] <priithansen> I have to make sure that every category in one standard has all the shifters in that standard
774: [15:53:00] * gelignite has joined #silverstripe
775: [15:54:00] <priithansen> and in the first version got really longwinded to check that so I reorganised and it seems to work
776: [15:54:00] <priithansen> just wanted the check if I'm going against some obvious db structuring principles
777: [15:56:00] <priithansen> I'll have to read up on what denormalising means
778: [16:02:00] <priithansen> PigeonFriend: The Shifter - Category relation is many_many just for the extraFields. That's why the Standard - Shifter is has_many
779: [16:05:00] <PigeonFriend> priithansen: do you understand what normalisation, in DB architecture?
780: [16:06:00] <PigeonFriend> priithansen: http://en.wikipedia.org/wiki/Database_normalization
781: [16:06:00] <PigeonFriend> so DEnormalisation is where you deliberately store data more than one.
782: [16:06:00] <PigeonFriend> normalisation is NOT keeping multiple copies of the same thing
783: [16:06:00] <priithansen> keeping multiple copies of same data?
784: [16:07:00] <priithansen> Well that's not my coal with this at all :)
785: [16:07:00] <kinglozzer> None of you wanted to do any more work today, right? http://bombermine.com/#/play
786: [16:07:00] <PigeonFriend> for example, I do this sometimes. Im currently working on a site with lots of products and products have may categories: Food > Desert > Cakes > Item or Drinks > Fruit Juice > Item
787: [16:07:00] * cloph_away1 is now known as cloph
788: [16:08:00] <priithansen> So you are saying the first approach looks better?
789: [16:08:00] <PigeonFriend> sometimes i need to get all the products in a top level group. Well, i can run lots of queries (or a very complex one) to grab them, or I can denormalise it and store the top level category on the product so i can find them faster
790: [16:08:00] * lx-berlin quit (Quit: lx-berlin)
791: [16:09:00] <priithansen> yes that is the problem I was trying so solve
792: [16:09:00] <PigeonFriend> what it looks like to me you're doing is trying to link your object that you could infer through many queries by linking it directly
793: [16:09:00] <PigeonFriend> priithansen: yes, i think so, but you might want to denormalise small parts of data
794: [16:10:00] <priithansen> PigeonFriend: thanks for the insights I think I'll be ok with the version 2 for now then
795: [16:11:00] * svandragt has joined #silverstripe
796: [16:11:00] <priithansen> Was just afraid I was going against some big relational database nono's
797: [16:14:00] <svandragt> When I add an entwine onclick function to a DOM selector it replaces any existing onclick events is this intentional or am I doing something wrong?
798: [16:15:00] <PigeonFriend> svandragt: I dont know enough about entwine, but I assume you're doing something wrong, because the whole point of entwine is so that many things can hook into the same event, I thought
799: [16:19:00] <kinglozzer> svandragt: Can you pastie/gist your JS and I'll see if I can see anything that might be causing it. I don't know much about Entwine either though
800: [16:23:00] * dhn_ has joined #silverstripe
801: [16:24:00] <svandragt> http://jsfiddle.net/5rBtA/
802: [16:24:00] <dhn_> Hmm, can anyone give me a hint on how to override the method of another module class? useCustomClass and extending the original class does not work for me.
803: [16:26:00] <svandragt> I expect (wrongly probably) to see hello world but I only get world
804: [16:27:00] * dendeffe quit (Quit: dendeffe)
805: [16:28:00] <svandragt> http://jsfiddle.net/Kq3jr/ if the event handler is defined directly in the markup then entwine can hook into it but i can't get entwine to hook into itself.
806: [16:32:00] * Error404NotFound quit (Read error: Connection reset by peer)
807: [16:32:00] * ocm quit ()
808: [16:33:00] <kinglozzer> svangradit: http://jsfiddle.net/5rBtA/3/
809: [16:33:00] <kinglozzer> svandragt*
810: [16:33:00] <kinglozzer> You can ignore the var ss part
811: [16:34:00] <svandragt> ok that makes sense, thanks kinglozzer
812: [16:35:00] <kinglozzer> That's why all the core JS is wrapped in $.entwine('ss' function($) {... :)
813: [16:36:00] * kinglozzer quit (Remote host closed the connection)
814: [16:36:00] <kinglozzer> Anyways, weekend! Have a good one everyone
815: [16:38:00] <priithansen> UncleCheese: Is it possible to use the betterbuttons module but still have a Create button that let's you keep editing?
816: [16:51:00] * chillu has joined #silverstripe
817: [16:55:00] <cubix> hey everybody
818: [16:55:00] * cubix has joined #silverstripe
819: [16:57:00] <cubix> question: I am trying to get SiteConfig to work within a control. Understanding that SiteConfig is a Top Level Controller I tried the following
820: [16:58:00] <cubix> But it didnt work so I was wondering what I need to do
821: [16:58:00] <cubix> <% control Top %> $SiteConfig.Title <% end_control %>
822: [16:59:00] <cubix> Ah, OK Top is removed in SS3
823: [16:59:00] <svandragt> weekend! take care all
824: [17:05:00] * svandragt quit (Quit: Instantbird 1.3 -- http://www.instantbird.com)
825: [17:09:00] * lx-berlin has joined #silverstripe
826: [17:16:00] * cubix quit (Ping timeout: 245 seconds)
827: [17:18:00] * AlphaCactus has joined #silverstripe
828: [17:19:00] * AlphaCactus quit (Client Quit)
829: [17:23:00] <dhn_> Hmm, I have a list of files (Post attachments) and now want to show the files that are images as thumbnails. How do I approach this best? Can I just cast the files that are appropiate as images and return them?
830: [17:26:00] * Zauberfisch quit (Ping timeout: 246 seconds)
831: [17:27:00] * Zauberfisch has joined #silverstripe
832: [17:31:00] * g4b0 quit (Remote host closed the connection)
833: [17:42:00] * PigeonFriend quit (Read error: Connection reset by peer)
834: [17:56:00] * azureKnight has joined #silverstripe
835: [17:57:00] * ARNHOE has joined #silverstripe
836: [18:00:00] <azureKnight> So, did SS 3.0 remove Top? It says in the Documentation that it still works.
837: [18:01:00] <FrozenFire> Can't imagine that it did.
838: [18:01:00] * sonet has joined #silverstripe
839: [18:02:00] <UndefinedOffset> azureKnight no its not removed, but it functions somewhat different
840: [18:02:00] <azureKnight> ?
841: [18:03:00] <azureKnight> Yeah, in the Templates Doc for trunk, it says it's there, but the upgrading guide side that it was removed from the scope-exposing.
842: [18:03:00] <UndefinedOffset> it has scoping differences, like in an include Top doesn't return the current page. For example in the blog when the articles are looped through it uses an include to the BlogSummary template
843: [18:04:00] <UndefinedOffset> its just a scope change but it still works
844: [18:04:00] * lx-berlin quit (Quit: lx-berlin)
845: [18:04:00] <UndefinedOffset> if there was a Top in there it wouldn't return the blog holder
846: [18:05:00] <UndefinedOffset> hopefully you have a relationship like Parent or something you can poke into
847: [18:05:00] <UndefinedOffset> they also added Up which goes one level up in a loop for example, but again same rule applies with includes or using renderWith
848: [18:05:00] <azureKnight> Hmm??? But what if you wanted the included code to reference the top of whatever page it's in?
849: [18:06:00] <UndefinedOffset> if my hunch is correct (chillu correct me if I'm wrong) I believe that renderWith() and include spawn up anouther instance of SSViewer so the template scope is effectivly reset
850: [18:06:00] <azureKnight> Ah.
851: [18:07:00] <UndefinedOffset> never really looked too deep into that confusing bit of code ;)
852: [18:11:00] <azureKnight> Interesting. I'll bear that in mind.
853: [18:11:00] <FrozenFire> Yeah, the scope change did introduce bugs, though.
854: [18:12:00] <FrozenFire> E.g. $this->renderWith(array("Something", "Page"), array("Title" => $someTitle));
855: [18:12:00] <FrozenFire> Then $SiteConfig.Title will return that value
856: [18:12:00] <FrozenFire> I haven't fleshed out the exact details of the bug, but I know that if you set a field in a render called "Title", it'll override SiteConfig.Title
857: [18:13:00] <FrozenFire> Have that issue with rendering DataObjects, where I want to change the page title
858: [18:13:00] * Shrike_Finland has joined #silverstripe
859: [18:13:00] <UndefinedOffset> mm i've run into some as well :)
860: [18:14:00] * Shrike_Finland1 has joined #silverstripe
861: [18:15:00] * Juako has joined #silverstripe
862: [18:15:00] <Juako> Can anyone guide me in the right direction, I am starting as an independent online campaign manager, any ideas wich channels should i go? Thanks
863: [18:17:00] <FrozenFire> What sort of campaign manager?
864: [18:18:00] <FrozenFire> What are you looking for on IRC?
865: [18:18:00] <Juako> I found a couple of clients through mirc
866: [18:18:00] <FrozenFire> Keep in mind that it's not a place to advertise - at all
867: [18:18:00] <Juako> Google Adwords Professional - Linkedin - Facebook Ads manily
868: [18:18:00] * Shrike_Finland quit (Ping timeout: 248 seconds)
869: [18:18:00] * sonet quit (Quit: sonet)
870: [18:19:00] <Juako> In the past
871: [18:19:00] <Juako> I thought it was a good place to start my freelancer career
872: [18:19:00] <FrozenFire> Probably not. I'd suggest taking a look at bensgigs.com, or something like that.
873: [18:20:00] <Juako> As you can see you already gave me a hint where to start, thats what I was looking for
874: [18:20:00] <FrozenFire> IRC is primarily used by developers to communicate with each other.
875: [18:20:00] <Juako> I know what irc is for
876: [18:20:00] <Juako> I been using it for like years now
877: [18:20:00] <FrozenFire> Good. Just sounds like you're looking to advertise to people on IRC.
878: [18:20:00] <FrozenFire> Which will get you a harsh welcoming. :P
879: [18:21:00] <Juako> Is that a startup?
880: [18:22:00] <Juako> wont help me : (
881: [18:22:00] <Juako> yeah saw that
882: [18:22:00] <Juako> bengsgig
883: [18:22:00] <Juako> never heard of it
884: [18:22:00] * zfmf has left #silverstripe
885: [18:22:00] <FrozenFire> It's a service that freelance developers use to find leads on projects they can try.
886: [18:23:00] <FrozenFire> You may wish to join #freenode
887: [18:23:00] <FrozenFire> They basically just act as a constant automated search for certain keywords in certain classifieds/job posting feeds
888: [18:23:00] <FrozenFire> They might be better able to direct you to a channel that could help
889: [18:23:00] <Juako> thanks anyways
890: [18:24:00] <Juako> ty
891: [18:24:00] <Juako> oh i see
892: [18:24:00] <FrozenFire> SilverStripe is a web development framework
893: [18:24:00] * jcwacky quit (Quit: jcwacky)
894: [18:24:00] <Juako> there
895: [18:24:00] <Juako> btw, whats this channel about?
896: [18:25:00] * Shrike_Finland1 quit (Quit: Leaving.)
897: [18:25:00] * UncleCheese quit (Quit: UncleCheese)
898: [18:29:00] * Nivery quit (Quit: Nivery)
899: [18:34:00] <FrozenFire> Is there a sort of ListboxField for GridField?
900: [18:34:00] * lx-berlin has joined #silverstripe
901: [18:35:00] <FrozenFire> Need something simple for adding categories
902: [18:35:00] <FrozenFire> Hrmm, or maybe I'll replace the categories gridfield entirely with just a listbox, and move the categories creation thing elsewhere
903: [18:44:00] * dhn_ quit (Ping timeout: 245 seconds)
904: [18:48:00] <UndefinedOffset> FrozenFire I wonder if this would work for you https://github.com/sheadawson/silverstripe-quickaddnew
905: [18:48:00] <FrozenFire> Probably not, though a good thought.
906: [18:49:00] <FrozenFire> The categories themselves are more complicated than just title
907: [18:49:00] <FrozenFire> Trying to manage a many_many of items in categories
908: [18:49:00] <UndefinedOffset> ah
909: [18:50:00] * sjeijk quit (Quit: sjeijk)
910: [18:58:00] * Nivery has joined #silverstripe
911: [19:09:00] * UncleCheese has joined #silverstripe
912: [19:09:00] * UncleCheese quit (Client Quit)
913: [19:15:00] * sjeijk has joined #silverstripe
914: [19:31:00] * Nivery quit (Read error: Connection reset by peer)
915: [19:31:00] * Nivery has joined #silverstripe
916: [19:33:00] * UncleCheese has joined #silverstripe
917: [19:35:00] * lx-berlin has left #silverstripe
918: [19:40:00] * lx-berlin has joined #silverstripe
919: [19:47:00] * Spark_ has joined #silverstripe
920: [19:48:00] <Spark_> anyone here can help me?
921: [19:48:00] <Spark_> good afternoon
922: [19:50:00] * SightUnseen has joined #silverstripe
923: [19:51:00] <lx-berlin> Spark_: just ask and you will see
924: [19:54:00] <UncleCheese> Hi, Spark_
925: [19:54:00] <UncleCheese> what can i do for you today?
926: [19:55:00] * SightUnseen has left #silverstripe
927: [20:02:00] * lx-berlin has left #silverstripe
928: [20:03:00] <Spark_> i am trying to install silverstripe on altervista (an italian webhost based on apache with php and mysql) but when i launch install.ph
929: [20:03:00] <Spark_> *instal.php i get an error about an "infinite loop"
930: [20:04:00] <FrozenFire> Spark_, What PHP version, what SilverStripe version?
931: [20:04:00] <FrozenFire> Which?
932: [20:04:00] <Spark_> silverstripe last version
933: [20:04:00] <FrozenFire> 3.0.5?
934: [20:04:00] <Spark_> php version i don' t know, i know only it is php5
935: [20:04:00] <Spark_> wait i am going to check
936: [20:05:00] <FrozenFire> Upload a file to your web root called phpinfo.php with the contents: <?php phpinfo();
937: [20:05:00] <Spark_> ok
938: [20:05:00] <FrozenFire> That being said, I'm skeptical about your host being sufficient
939: [20:05:00] <FrozenFire> That will show you information about the PHP version installed on your web host.
940: [20:05:00] <Spark_> SilverStripe CMS v3.0.5
941: [20:06:00] <Spark_> 5.2.17
942: [20:07:00] <FrozenFire> PHP 5.2 is well past its end of life. It doesn't exist any more.
943: [20:07:00] <Spark_> oh no
944: [20:07:00] <FrozenFire> Yeah, that's not sufficient.
945: [20:07:00] <Spark_> http://reflexdev.altervista.org/phpinfo.php
946: [20:07:00] <FrozenFire> SilverStripe 3 requires PHP 5.3
947: [20:08:00] <Spark_> *5.2
948: [20:08:00] <Spark_> nope, 5.3
949: [20:08:00] <Spark_> ok, i have another website let me check if i can use that
950: [20:09:00] <FrozenFire> Yeah, those seem like economy shared hosting environments.
951: [20:09:00] <FrozenFire> If you are looking for inexpensive shared web hosting, I recommend something like Dreamhost.
952: [20:09:00] <Spark_> yes
953: [20:09:00] <FrozenFire> In other words, shitty.
954: [20:10:00] <FrozenFire> And it tends to only be about USD$100/year
955: [20:10:00] <FrozenFire> I've verified that SilverStripe 3 runs just fine on Dreamhost.
956: [20:10:00] <Spark_> the problem is that i am a student and i am 16 years old, i don' t have credit cards and don' t know abuot web
957: [20:11:00] <FrozenFire> Alternatively, if you are just wanting to mess about with SilverStripe, and don't need anyone else to be able to see it, you could run your site on your local computer in a virtual machine
958: [20:11:00] <FrozenFire> If you are interested in learning about PHP, and web development in general, you might want to join #phpmentoring
959: [20:12:00] <Spark_> nope, i' m italian
960: [20:12:00] <Spark_> here internet is a shit
961: [20:12:00] <FrozenFire> Not sure what you mean
962: [20:12:00] <Spark_> i mean internet connection is really slow
963: [20:13:00] <Spark_> and i have a pc to use as a web server :/
964: [20:13:00] <FrozenFire> Yeah. So you could run your own web server as a virtual machine on your computer.
965: [20:14:00] <FrozenFire> It sounds complicated, but it's not very.
966: [20:14:00] <Spark_> and, i can use php and html and css but i love pc development, not web-dev
967: [20:14:00] <Spark_> the main problem is still here, internet connection is too slow to make a web server
968: [20:14:00] * Nivery quit (Quit: Nivery)
969: [20:15:00] <FrozenFire> The web server would be on your own computer.
970: [20:15:00] <FrozenFire> Not sure what you mean by too slow to make a web server
971: [20:16:00] <FrozenFire> And then you can connect to it directly, as if it were another computer on your own network
972: [20:16:00] <FrozenFire> You would run VirtualBox, and install something like Ubuntu Server in a virtual machine
973: [20:16:00] <priithansen> FrozenFire: I think he means for serving customers
974: [20:17:00] <Spark_> i mean 0.30 Mbps in upload
975: [20:17:00] <FrozenFire> If you wish to just play with web development, you can run it locally.
976: [20:17:00] <FrozenFire> Web hosting isn't free.
977: [20:17:00] <FrozenFire> Yeah, if you want a website that others can see, you need web hosting.
978: [20:18:00] <FrozenFire> Alright. So you'll need to find yourself some suitable web hosting.
979: [20:18:00] <Spark_> no i want to use it for a website
980: [20:19:00] <Spark_> ok, i am going to search, thank for your help
981: [20:20:00] * Nivery has joined #silverstripe
982: [20:33:00] <Spark_> FrozenFire are silverstripe developer going to use webgl?
983: [20:34:00] <FrozenFire> Not sure how to answer that. WebGL is a web browser technology.
984: [20:34:00] <FrozenFire> It won't be part of SilverStripe itself, no.
985: [20:34:00] <FrozenFire> Anyone can use it, if they know how to develop for it.
986: [20:35:00] * nimeso has joined #silverstripe
987: [20:38:00] <Spark_> ehm, http://www.reflexdev.byethost3.com/phpinfo.php
988: [20:38:00] <Spark_> PHP Version 5.3.14 can i install on it?
989: [20:39:00] <FrozenFire> 5.3.14 should work, yes.
990: [20:40:00] <Spark_> i can use mysql
991: [20:40:00] <Spark_> thanks, do i need something else?
992: [20:41:00] <FrozenFire> The server requirements for SilverStripe 3.0 are listed there
993: [20:41:00] <FrozenFire> http://doc.silverstripe.org/framework/en/installation/server-requirements
994: [20:45:00] <Spark_> ok thanks another time it seems my webhost have everything i need
995: [20:47:00] <Spark_> FrozenFire i wrote a simple code cms, and.... silverstripe uses a framework, can i implement my cms on silverstripe without change the web-page style
996: [20:48:00] <Spark_> *theme
997: [20:48:00] <Spark_> users shouldn' t be able to see the difference about the rest of the website
998: [20:48:00] <FrozenFire> You can use the SilverStripe framework itself without the CMS
999: [20:49:00] <FrozenFire> That is, without SilverStripe's own CMS
1000: [20:50:00] <Spark_> but without cms can i access to the theme used for the website?
1001: [20:51:00] <FrozenFire> Yes. The theme is pretty separate from the CMS.
1002: [20:51:00] <FrozenFire> Which is a way of storing the structure of the website in the database.
1003: [20:51:00] <FrozenFire> The CMS acts to provide what is called the SiteTree
1004: [20:52:00] <FrozenFire> Since you are new to SilverStripe, I would not recommend doing so.
1005: [20:52:00] <FrozenFire> You can create your own controllers which will route requests to where they need to go, and render those responses using templates from your theme.
1006: [20:52:00] <FrozenFire> It's pretty advanced stuff, and you don't gain a whole lot from it.
1007: [20:54:00] <Spark_> ok. and, can i put some html code in an article created with CMS
1008: [20:54:00] <Spark_> ?
1009: [20:55:00] <FrozenFire> The field type for the default Content field on SiteTree is HTMLText
1010: [20:55:00] <FrozenFire> Yes.
1011: [20:55:00] <FrozenFire> The default editor being TinyMCe
1012: [20:56:00] <FrozenFire> Typically for custom pages, though, you might prefer to define your own fields that get inserted into a custom template for the layout of that page.
1013: [20:56:00] <Spark_> ok thanks.
1014: [20:57:00] <FrozenFire> I typically create templates for each "type" of page I have
1015: [20:57:00] <Spark_> i probably need to include http://alexgorbatchev.com/SyntaxHighlighter/ in the head of the pages, so i might be able to do it, right?
1016: [20:57:00] <FrozenFire> That would be included as part of your theme, yes.
1017: [20:57:00] <FrozenFire> And then one generic Page.ss, which I use for very simple content pages, where the layout can be the same for each one of them.
1018: [20:58:00] <FrozenFire> You should probably read the tutorials on silverstripe.org
1019: [20:58:00] <FrozenFire> http://doc.silverstripe.org/framework/en/tutorials/
1020: [20:58:00] <Spark_> oh, really good
1021: [20:58:00] <FrozenFire> They're very useful, unlike many tutorials.
1022: [20:59:00] <Spark_> ok i will do it, i know silverstripe is very powerful because a my friend told it me, i except that silverstripe will be better than joomla
1023: [21:02:00] <Spark_> *a friend of mine :D
1024: [21:03:00] <Spark_> oh i really need to study english better
1025: [21:13:00] * UndefinedOffset quit (Quit: Leaving.)
1026: [21:15:00] * Nivery quit (Quit: Nivery)
1027: [21:15:00] * nickmolhoek quit (Remote host closed the connection)
1028: [21:15:00] * nickmolhoek has joined #silverstripe
1029: [21:16:00] * nickmolhoek has joined #silverstripe
1030: [21:17:00] * priithansen quit (Quit: priithansen)
1031: [21:20:00] <nimeso> Has anyone set up a html5/phonegap app with secure login? I've got myself soooo confused. lol
1032: [21:27:00] * UncleCheese quit (Quit: UncleCheese)
1033: [21:29:00] * sjeijk quit (Quit: sjeijk)
1034: [21:30:00] * UncleCheese quit (Read error: Connection reset by peer)
1035: [21:30:00] * UncleCheese has joined #silverstripe
1036: [21:32:00] * UncleCheese has joined #silverstripe
1037: [21:36:00] * Colin[pi] has joined #silverstripe
1038: [21:37:00] * Nivery has joined #silverstripe
1039: [21:39:00] * wolfv has joined #silverstripe
1040: [21:40:00] <wolfv> When I have a GridField_URLHandler that displays a form. is there some way to get the Backlink to the parent site of the gridfield?
1041: [21:43:00] * UncleCheese quit (Quit: UncleCheese)
1042: [21:50:00] * wolfv quit (Ping timeout: 245 seconds)
1043: [21:52:00] <Spark_> good night FrozenFire i am going to go sleep
1044: [21:53:00] <Spark_> thanks, have a good night too
1045: [21:53:00] <FrozenFire> Have a good one
1046: [21:53:00] <Spark_> and thanks for your help, i installed silverstripe successfully, i will try it tomorrow
1047: [21:58:00] * Spark_ quit (Ping timeout: 245 seconds)
1048: [22:12:00] * DigNZ has joined #silverstripe
1049: [22:15:00] * chillu quit (Quit: chillu)
1050: [22:17:00] * ARNHOE quit (Remote host closed the connection)
1051: [22:18:00] * ARNHOE has joined #silverstripe
1052: [22:20:00] * DigNZ quit (Quit: DigNZ)
1053: [22:22:00] * ARNHOE quit (Ping timeout: 245 seconds)
1054: [22:34:00] * Juako quit ()
1055: [22:36:00] * Nivery quit (Quit: Nivery)
1056: [22:58:00] <joelpittet> When using composer does it usually hang for you guys?
1057: [23:02:00] <FrozenFire> This seems like the sort of question which answers itself.
1058: [23:07:00] * UncleCheese has joined #silverstripe
1059: [23:15:00] <FrozenFire> Maybe ask #composer
1060: [23:15:00] <joelpittet> it's new to me and I can't seem unfreeze, googling around
1061: [23:16:00] * EPIK has joined #silverstripe
1062: [23:16:00] * UncleCheese quit (Quit: UncleCheese)
1063: [23:18:00] * pippy_ has joined #silverstripe
1064: [23:19:00] * pippy quit (Ping timeout: 276 seconds)
1065: [23:23:00] * pippy_ quit (Ping timeout: 244 seconds)
1066: [23:23:00] * pippy has joined #silverstripe
1067: [23:25:00] * joelpitt_ has joined #silverstripe
1068: [23:26:00] * joelpittet quit (Ping timeout: 245 seconds)
1069: [23:28:00] * joelpitt_ quit (Read error: Connection reset by peer)
1070: [23:29:00] * joelpittet has joined #silverstripe
1071: [23:32:00] * samthejarvis has joined #silverstripe
1072: [23:33:00] * joelpitt_ has joined #silverstripe
1073: [23:35:00] * SphereSilver has joined #silverstripe
1074: [23:36:00] * joelpittet quit (Ping timeout: 260 seconds)
1075: [23:36:00] * samthejarvis quit (Ping timeout: 245 seconds)
1076: [23:53:00] <SphereSilver> Evening
1077: [23:56:00] <FrozenFire> For some.
1078: [23:57:00] <azureKnight> Yo.

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