#silverstripe IRC Log

IRC log for 22 May 2013

All timestamps are in UTC.

1: [00:01:01] <zippy__> Morning
2: [00:01:33] * nikrolls has joined #silverstripe
3: [00:08:16] * MrJeremy has joined #silverstripe
4: [00:09:45] * nikrolls quit (Ping timeout: 248 seconds)
5: [00:10:31] <Pyromanik> morn'n Colin[pi]
6: [00:10:59] * priithansen quit (Quit: priithansen)
7: [00:12:02] * nikrolls has joined #silverstripe
8: [00:12:54] * MrJeremy quit (Read error: Connection reset by peer)
9: [00:13:05] * MrJeremy has joined #silverstripe
10: [00:22:17] * pevjan has joined #silverstripe
11: [00:23:36] * DesignerX has joined #silverstripe
12: [00:25:27] <MrJeremy> Is there a way to send an array from a template to a function?
13: [00:25:27] <MrJeremy> e.g. <% loop $someFunctionIMade('widgets',array('1','2')) %>
14: [00:25:41] <MrJeremy> seems to send "array" to parameterb
15: [00:26:17] * nickmolhoek quit (Ping timeout: 248 seconds)
16: [00:26:31] <simon_w> MrJeremy, nope. All arguments from the template are strings
17: [00:26:57] <MrJeremy> oh, guess I will overload that function
18: [00:27:01] <Colin[pi]> if you really need to, why not send a string and explode it?
19: [00:27:13] <MrJeremy> yeah was tempted to do that
20: [00:27:34] <MrJeremy> I thought it would be possible tho
21: [00:27:56] <MrJeremy> thanks
22: [00:31:20] <simon_w> Or, func_get_args()
23: [00:31:22] <Pyromanik> logic in controllers, view data only in templates.
24: [00:33:03] * MrJeremy quit (Ping timeout: 276 seconds)
25: [00:37:20] * MrJeremy has joined #silverstripe
26: [00:38:57] * spronk has left #silverstripe
27: [00:44:45] * MrJeremy quit (Ping timeout: 276 seconds)
28: [00:45:20] * MrJeremy has joined #silverstripe
29: [00:46:53] * Bollig|DesignCty has joined #silverstripe
30: [00:47:47] * Motoservo quit (Ping timeout: 240 seconds)
31: [00:49:58] * Bollig|DesignCty quit (Client Quit)
32: [00:54:25] * Bollig|DesignCty has joined #silverstripe
33: [00:55:12] * Motoservo has joined #silverstripe
34: [00:59:59] * Motoservo quit (Ping timeout: 252 seconds)
35: [01:08:52] * PapaBearNZ has joined #silverstripe
36: [01:11:22] <PapaBearNZ> I'm having some difficulty on a new Rimu VPS getting SS3 to install. I've tried with the tarball and I've tried with Composer and I get problems with both. The tarball always tells me that I need mod_rewrite and AllowOverride (which I've checked and both are set correctly for the directory) and Composer gives me a 404 error trying to download the framework from https://api.github.com/repos/silverstripe/sapphire/zipball/3.0
37: [01:11:57] <PapaBearNZ> I would appreciate any guidance to try to resolve this issue as I would greatly love to get this VPS configured correctly so I can use it for a new client host box.
38: [01:13:39] <zippy__> Are you sure they're on? Are you able to browse to yourdomain.x ?
39: [01:14:07] <PapaBearNZ> yes - I can run the installer from the tarball.
40: [01:14:23] <PapaBearNZ> it fails at the point where it is testing friendly urls.
41: [01:14:41] <zippy__> If you edit the .htaccess file, and just add xxxx to the top - if the page still loads and you don't get a 500 error, it's not reading the .htaccess
42: [01:15:02] <PapaBearNZ> ok. Let me try that. bbiab
43: [01:17:56] * Jedateach has left #silverstripe
44: [01:19:25] <zippy__> You restarted apache after setting up the vhost / configuring etc?
45: [01:20:04] <PapaBearNZ> yes I have. I've just tried the test you recommended and I get a server error with the modified .htaccess. So it's obviously reading the .htaccess file.
46: [01:20:34] <PapaBearNZ> I've restarted apache a couple of times since the change. Do you want me to paste in my virtual host section?
47: [01:22:07] <zippy__> is mod write really on? in the htaccess remove the if statement
48: [01:22:27] <zippy__> <IfModule mod_rewrite.c>
49: [01:22:35] <zippy__> and see if it falls over
50: [01:22:41] <zippy__> don't forget the closing one
51: [01:22:42] <PapaBearNZ> According to the httpd.conf yes mod rewrite is on. I'll try that suggestion. just a sec.
52: [01:23:26] <PapaBearNZ> it's enough to just # out the open and close tags for the <IfModule...> yes?
53: [01:24:36] <PapaBearNZ> same result with the <IfModule > removed.
54: [01:25:08] <zippy__> the page fails to load?
55: [01:25:10] <zippy__> yes it is
56: [01:25:27] <PapaBearNZ> I'm not the worlds best server admin. Is there a log somewhere that will tell me what the installer is seeing ?
57: [01:26:18] <zippy__> Did you get the same server error when you commented out those IfModule?
58: [01:26:50] <PapaBearNZ> the installer still runs if that's what you mean. I've not got as far as the standard site (logging into the cms, etc) No server error. Just the installer stopping with "Friendly URLs are not working"
59: [01:27:15] <simon_w> That shouldn't stop it
60: [01:29:00] <simon_w> What happens if you continue with the installation anyway?
61: [01:29:42] <PapaBearNZ> How do I continue? If I refresh it just complains that the _config file needs to be removed to retry the installation.
62: [01:30:12] <simon_w> So you've already run the installer?
63: [01:30:16] * lerni quit (Remote host closed the connection)
64: [01:30:16] <simon_w> site.com/
65: [01:30:52] <simon_w> Probably need to let dev/build finish first
66: [01:31:36] <PapaBearNZ> site address gives me the standard homepage for SS3.
67: [01:32:25] <simon_w> Sounds installed to me
68: [01:34:11] <zippy__> if you go to site.com/error do you get a "nice" error page?
69: [01:34:36] <zippy__> I guess you could just go to /admin/ and login, that will prove the .htaccess / rewrite
70: [01:34:48] <PapaBearNZ> I'm used to seeing the installer finish with the removal of the install files and logging into the cms.
71: [01:35:14] <PapaBearNZ> I can login to the cms and it's showing SEO friendly urls (no index.php/url mess)
72: [01:35:38] <PapaBearNZ> just curious as to why it's reporting a failure when there isn't one?
73: [01:35:46] <simon_w> Probably got Apache set up to not report its modules
74: [01:36:01] <simon_w> Which is one reason why it's just a warning, not an error
75: [01:36:20] <PapaBearNZ> Oh! That makes sense. Where would I go to check that?
76: [01:37:26] <PapaBearNZ> Also why is Composer not able to install. I followed the instructions in the documentation to install composer to the server. But I've never used it before so don't know what the issue might be.
77: [01:37:48] <PapaBearNZ> (install SS I mean. Composer itself installed fine :) )
78: [01:39:21] <PapaBearNZ> Thank you very much for your help! I'm glad the site is working. And the cms is letting me move around, etc so that's all good.
79: [01:40:23] * OldTom quit (Quit: Lost terminal)
80: [01:41:52] <PapaBearNZ> Time to build the theme for the client :)
81: [01:56:28] <zippy__> If I have a controller that extends from Page_Controller - I want to add a function which is public accessible - I don't need to add a route, if I just declare it as - public function verify(SS_HTTPRequest $request) { ?
82: [01:56:34] <zippy__> it seems to work just fine, just want to make sure...
83: [01:58:03] * PapaBearNZ has left #silverstripe
84: [02:05:34] <simon_w> Hmm, I should probably see if the 3.0 namespace implementation has the same bug that the 2.4 one does
85: [02:09:08] * travis-ci has joined #silverstripe
86: [02:09:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#37 (3.1 - abad856 : Sean Harvey): The build passed.
87: [02:09:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e2553fa86434...abad85653431
88: [02:09:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7378471
89: [02:09:09] * travis-ci has left #silverstripe
90: [02:28:42] * DigNZ1 has joined #silverstripe
91: [02:30:17] * DigNZ1 quit (Client Quit)
92: [02:36:35] * nickmolhoek has joined #silverstripe
93: [02:36:35] * nickmolhoek quit (Remote host closed the connection)
94: [02:36:50] * nickmolhoek has joined #silverstripe
95: [03:16:05] <Colin[pi]> I believe I already owned one of these but I can't recall if it was VHS or Betamax: http://i.imgur.com/64fsw51.jpg
96: [03:17:57] <zippy__> Is there a way,with the cms, to add a 'note' or description to the tab. I want to add a comment at the top of the tab. Adding fields is fine, but can a note/description be added?
97: [03:19:21] <DesignerX> hi, the CMS is running a bit slow for me , is this "expected" in ss3.1 beta3 & is there anyway I can improve the speed ?
98: [03:20:49] <Colin[pi]> Zippy: literalfield?
99: [03:21:20] <Colin[pi]> DesignerX: i've found all of the 3.x branch to be a bit slow for me... :\ but wasn't sure if it was just my box
100: [03:22:44] <DesignerX> Colin[pi]: :( lets hope it will get faster soon , otehrwise I will have to push editing pages to the front-end
101: [03:24:06] <Colin[pi]> i'd be interesting in running some more execution profiling actually, to see where the bottlenecks are
102: [03:24:11] <Colin[pi]> *interested
103: [03:30:30] <zippy__> Colin[pi]: Thanks, I will check
104: [03:36:04] <Colin[pi]> or LabelField mebbe
105: [03:38:21] <simon_w> DesignerX, got an opcode cache running?
106: [03:38:58] <DesignerX> I will check, its shared hosting BTW ( provided by the client)
107: [03:41:10] <DesignerX> simon_w: shouldnt opcode be listed in phpinfo() ?
108: [03:41:24] <simon_w> Well, the name of one
109: [03:41:34] <simon_w> Shard hosting isn't likely to come with them
110: [03:42:26] <Colin[pi]> shared hosting is likely to be painful for performance :\
111: [03:42:37] <Colin[pi]> and gives little option for tweaking it, typically
112: [03:44:12] <DesignerX> true, when I have more time I will test SS3.1 on my VPS & see how it performs
113: [03:44:30] <zippy__> Colin[pi]: Literalfield field worked perfect
114: [03:44:48] <Colin[pi]> yay
115: [03:45:33] <DesignerX> zippy__: you also have $Field->setRightTitle() if you need to set small text under an input field
116: [03:46:20] <zippy__> DesignerX: Noted. I had 5~ lines
117: [03:47:50] <zippy__> Another thing I just noticed, by default in the CMS and Content HTMLfield sits below it's label. But if you add your own HTMLField it sits beside the label, it looks a bit wack
118: [03:49:04] * Pat_TAS has joined #silverstripe
119: [03:49:13] <Pat_TAS> can anyone help me with a blog issue?
120: [03:49:25] <Pat_TAS> namely, RSSFeed?
121: [03:50:20] <Colin[pi]> what's the trouble Pat_TAS?
122: [03:53:28] <simon_w> zippy__, $field->addExtraClass('stacked');
123: [03:54:13] <zippy__> simon_w: thanks!
124: [03:54:27] <Pat_TAS> Pretty simple really, just trying to alter the rss page title - at this stage it is stuck as 'blog' and I have no idea where it is being defined from.
125: [03:54:56] <simon_w> Pat_TAS, the title of your blog page
126: [03:55:28] <Pat_TAS> <@simon_w> yes, so for instance the example is 'the coolest news around' etc.
127: [03:55:36] <Colin[pi]> isn't it the third param of the new RSSFeed() constructor?
128: [03:55:47] <Colin[pi]> mine is "Latest Blog Posts"
129: [03:55:59] * pevjan quit (Remote host closed the connection)
130: [03:56:41] <Pat_TAS> and you're using the blog module <@colin[pi]>?
131: [03:57:36] <Colin[pi]> my own blog module :)
132: [03:57:47] <Colin[pi]> but I pass that into the RSSFeed constructor
133: [03:58:00] <Colin[pi]> does the std blog module provide that option?
134: [03:58:09] <simon_w> Colin[pi], like I said, it uses the title
135: [03:58:46] <Pat_TAS> The title of what exactly? I haven't defined 'blog' as a page title anywhere
136: [03:59:13] * pevjan has joined #silverstripe
137: [03:59:48] <simon_w> Pat_TAS, the blog holder page. It'll use " Blog" if one isn't set
138: [03:59:56] <simon_w> and it needs to be the Title, not just the Menu Title
139: [04:00:11] * zippy__ quit (Quit: zippy__)
140: [04:01:04] * cloph_away quit (Ping timeout: 246 seconds)
141: [04:05:54] * cloph_away has joined #silverstripe
142: [04:11:17] * Pat_TAS quit (Quit: Page closed)
143: [04:27:47] * pevjan quit (Remote host closed the connection)
144: [04:47:20] * Shrike_Finland quit (Quit: Leaving.)
145: [04:47:41] * Shrike_Finland has joined #silverstripe
146: [04:49:37] * Shrike_Finland quit (Client Quit)
147: [04:57:17] * pevjan has joined #silverstripe
148: [05:00:29] * DigNZ quit (Quit: DigNZ)
149: [05:07:17] * nickmolhoek quit (Quit: nickmolhoek)
150: [05:12:56] * SightUnseen has joined #silverstripe
151: [05:15:18] * guci0 has joined #silverstripe
152: [05:15:23] <guci0> Howdy!
153: [05:15:40] * gumble has joined #silverstripe
154: [05:17:09] * SightUnseen has left #silverstripe
155: [05:33:28] * pevjan quit (Remote host closed the connection)
156: [05:40:32] * pevjan has joined #silverstripe
157: [06:00:47] * Hippiee has joined #silverstripe
158: [06:10:37] <Colin[pi]> hmm if I'm getting a � coming down with a tweet via the twitter api, that sounds like a charset encoding issue right?
159: [06:12:24] * DigNZ has joined #silverstripe
160: [06:12:24] * DigNZ quit (Client Quit)
161: [06:28:20] * DigNZ has joined #silverstripe
162: [06:28:20] * DigNZ quit (Client Quit)
163: [06:36:51] * Error404NotFound has joined #silverstripe
164: [06:42:16] * zfmf1 has joined #silverstripe
165: [07:03:27] * priithansen has joined #silverstripe
166: [07:11:07] * pevjan quit (Remote host closed the connection)
167: [07:12:46] * DrCuriosity quit (Ping timeout: 248 seconds)
168: [07:13:05] * lerni has joined #silverstripe
169: [07:14:29] * robert_ has joined #silverstripe
170: [07:14:29] * robert_ quit (Changing host)
171: [07:14:29] * robert_ has joined #silverstripe
172: [07:17:01] * lerni quit (Read error: Connection reset by peer)
173: [07:17:29] * lerni has joined #silverstripe
174: [07:58:00] * kinglozzer has joined #silverstripe
175: [08:17:22] * willmorgan has joined #silverstripe
176: [08:17:34] * popeshoe quit (Quit: Leaving)
177: [08:21:46] * popeshoe has joined #silverstripe
178: [08:25:51] * jcwacky quit (Read error: Connection reset by peer)
179: [08:29:01] * Zauberfisch|idle quit (Read error: Connection reset by peer)
180: [08:44:32] <kinglozzer> If I have a page controller method that uses $this->SomeField, how can I fill that field for a unit test? I understand the use of fixtures, but how do I get an instance of it that will use my fixture? "new Page_Controller" obviously won't do it
181: [08:45:38] <kinglozzer> Specifically, I have a method for showing/hiding stuff in the template based on whether $this->Date is in the past
182: [08:48:36] * PigeonFriend has joined #silverstripe
183: [08:51:04] * openbees has joined #silverstripe
184: [08:51:44] <willmorgan> kinglozzer: i think you could potentially populate the controller with a mock data record
185: [08:52:07] <kinglozzer> willmorgan: Any idea how? :P
186: [08:52:11] <willmorgan> yeah
187: [08:52:28] <kinglozzer> $controller->dataRecord = new PAge... etc
188: [08:52:28] <kinglozzer> ?
189: [08:52:58] <openbees> Hello guys is there any way to create half yearly task ? SS 2.4 . Can't find any inbuilt class .. can i extend ScheduledTask ?
190: [08:52:58] <willmorgan> that's right
191: [08:53:12] <kinglozzer> Okay I'll give it a go, thanks
192: [08:53:15] <DesignerX> hi, how to set the Image resolution in SS, its returning a loew res images !
193: [08:53:17] <willmorgan> you might have to subclass Page_Controller to add the method that allows you to set the dataRecord
194: [08:53:23] <DesignerX> loq *
195: [08:53:43] <PigeonFriend> openbees: the scheduled tasks are just a convenience class. just create a task that extends CLIController and add a cron that runs twice yearly
196: [08:54:08] <PigeonFriend> DesignerX: GD::set_image_quality
197: [08:54:16] <willmorgan> kinglozzer: unless you use Reflection to make the property accessible at runtime
198: [08:54:38] <willmorgan> which might actually be better, because then you are modifying less code so your tests are more accurate and less prone to meta error
199: [08:54:58] <kinglozzer> ?
200: [08:55:04] <openbees> PigeonFriend Thanks .. I will give a try
201: [08:55:06] <kinglozzer> Sorry, hit the up arrow
202: [08:55:17] <kinglozzer> Will do, cheers willmorgan
203: [08:55:26] <willmorgan> no worries
204: [08:58:28] <openbees> PigeonFriend I was under in impression that all logic for ScheduledTask is core ScheduledTask Class .. that worked like charm .. thanks again
205: [08:59:02] <DesignerX> PigeonFriend: thanks, worked fine
206: [09:00:19] <PigeonFriend> openbees: yer, its been removed from 3.1 because they don't do anything really. They just help you run all your 'hourly tasks' at once. The CLIController has all the logic to run the tasks.
207: [09:02:26] <kinglozzer> willmorgan: I can set the datarecord with Reflection, but $this->Date doesn't seem to access the datarecord. $this->dataRecord->Date works fine, but $this->Date doesn't. Is it cheating to just directly set $pageController->Date = date('Y-m-d'); in my test?
208: [09:03:35] <willmorgan> kinglozzer: I think the answer to your question lies in ContentController->__get or similar.
209: [09:03:46] <simon_w|air> kinglozzer, $pageController = new PageController($mockRecord);
210: [09:04:10] <simon_w|air> Stop making it difficult :p (and the problem was you weren't setting the failover)
211: [09:04:49] <willmorgan> boom, simon_w nails it again
212: [09:05:09] <kinglozzer> Haha, thanks simon_w|air
213: [09:05:47] <willmorgan> PigeonFriend: reply to my jabber messages plz, thx <3
214: [09:10:45] * lx-berlin_ has joined #silverstripe
215: [09:26:12] * r3v3rb has joined #silverstripe
216: [09:29:03] * Shrike_Finland has joined #silverstripe
217: [09:32:23] <r3v3rb> ok, todays test is as follows: I have two classes that I need to associate with a page and allow a user in the cms to choose upto 4 of those items (from either class) which will then be displayed in the page. CheckBoxSetField or GridField with an array of classes passed to them?
218: [09:32:42] <r3v3rb> using 3.0.5 btw
219: [09:35:29] <kinglozzer> r3v3rb: I'd personally use a CheckboxSetField
220: [09:35:50] <kinglozzer> Well, two checkboxsetfields :P
221: [09:35:58] <r3v3rb> and can I set a maximum set of fields that can be chosen?
222: [09:36:03] <r3v3rb> I'm not sure you can
223: [09:36:12] <kinglozzer> Ahhh I see.
224: [09:36:27] <kinglozzer> Hmm, you could with some custom javascript, but that'd be a pain
225: [09:36:28] <r3v3rb> so i'm hoping GridField may offer the ability
226: [09:36:51] <r3v3rb> DOM had it in ManyManyDataObjectManager afaik...
227: [09:38:25] <r3v3rb> just trying to figure the relations I need and whether I can pass GridField an array of classes to work off
228: [09:38:29] <lx-berlin_> r3v3rb: you could try the rule "max_number_checkboxes_checked" in the netefxValidator
229: [09:38:55] <r3v3rb> lx-berlin_: working in 3.0.5?
230: [09:38:56] <lx-berlin_> should work but i didnt use it for quite a while
231: [09:39:11] <lx-berlin_> i think so. if not let me know :)
232: [09:39:15] <r3v3rb> :D
233: [09:39:46] <lx-berlin_> new CheckboxSetField("Trips","Select up to three trips (included in rental fee for the flat)",
234: [09:39:47] <lx-berlin_> array( "1" => "Museum tour", "2" => "Amusement Park", "3" => "Sightseeing bus tour", "4" => "Theater", "5" => "Adventure Swimming Pool" )),
235: [09:39:47] <lx-berlin_> ...
236: [09:39:47] <lx-berlin_> $rule_Trips_OnlyThreeTrips = new NetefxValidatorRuleFUNCTION("Trips", "Only three trips are included.", 'error',
237: [09:39:47] <lx-berlin_> array('NetefxValidatorLibraryCheckbox', 'max_number_checkboxes_checked', array('field' => 'Trips', 'max' => 3)));
238: [09:39:53] <kinglozzer> r3v3rb: I don't think you can pass an array of classes (I may be wrong). The way to do it is create a 'base' DataObject (if you're talking about 2 classes of advert for example, 'AdvertBase'), then your two classes would extend 'AdvertBase'. You then pass 'AdvertBase' into the GridField
239: [09:41:39] <r3v3rb> actually in the CMS can I access the children of a page? as these two items all appear as child objects to the holding page
240: [09:41:50] <r3v3rb> $this->Children hopefully
241: [09:45:00] * zippy__ has joined #silverstripe
242: [09:45:40] <zippy__> Evening
243: [09:45:52] <r3v3rb> morning :)
244: [09:45:56] <lx-berlin_> tag
245: [09:50:51] <lx-berlin_> any news about the releasedate of 3.1 stable ? Should i use it for a new project that starts today and has to be finished in 3 month ? Will the stable version be available in the next 3 month ?
246: [09:51:04] <r3v3rb> so no access to $this->Children() in a class :(
247: [09:51:40] <lx-berlin_> i wouldnt like to go live with a beta version
248: [09:51:48] <r3v3rb> lx-berlin_: me either :\
249: [09:52:04] * Shrike_Finland quit (Quit: Leaving.)
250: [09:52:33] <lx-berlin_> but i think noone knows when the release will be at the moment
251: [09:53:25] <r3v3rb> come on - how do i get tose pesky child pages in a class controller - not a template
252: [09:53:29] <r3v3rb> those*
253: [09:53:37] <kinglozzer> lx-berlin_: I've got no idea. I have a project being released in just under a month that's being built in 3.1
254: [09:53:57] <r3v3rb> kinglozzer: living on the edge in Norwich again I see !
255: [09:54:03] <kinglozzer> r3v3rb: SiteTree::get()->where('ParentID', $this->ID); ?
256: [09:54:08] <kinglozzer> Haha yep
257: [09:54:14] <kinglozzer> Client knows it's only in beta
258: [09:54:23] <kinglozzer> They'll get beta3 if that's all that's available ;)
259: [09:54:27] <r3v3rb> lemme try dat: SiteTree::get()->where('ParentID', $this->ID);
260: [09:56:13] <lx-berlin_> i think i will give 3.1 a try. Its still enough time to test it and maybe switch
261: [09:57:38] <r3v3rb> kinglozzer: strangely with four child pages that returns an empty datalist when called from the page controller
262: [09:57:53] <r3v3rb> going to try moving to class not controller
263: [09:58:48] <DesignerX> hi,when I do $Content.limitwordcount(20) , any HTML (like <b> or <li> ) is being replaced by * , any work around ?
264: [10:01:34] <r3v3rb> DesignerX: what version of ss?
265: [10:01:40] <DesignerX> 3.1
266: [10:02:07] <r3v3rb> sorry can't help, maybe kinglozzer can shed some light as he's knee deep in a 3.1 project ;)
267: [10:05:14] <kinglozzer> DesignerX: Try $Content.Summary(20)
268: [10:05:25] <onre> is there some sort of special flush method to make silverstripe re-read .yml language files?
269: [10:06:47] <DesignerX> kinglozzer: works, but it removes all HTML ( all styling) , but I guess better then having stars :)
270: [10:07:35] <onre> hm. looks like the file is read every time - if i introduce a syntax error, that gets noted
271: [10:07:44] <kinglozzer> DesignerX: Yeah it does, the only alternative is to create your own method for doing it and add it as an extension to HTMLText
272: [10:07:47] <r3v3rb> got it kinglozzer ->where('ParentID = '.$this->ID) else it sees the two items as an array in your original example :D
273: [10:08:09] <kinglozzer> But it's nearly impossible to do that and include tags - it's a complicated regexp to work out if something's a tag or a word ;)
274: [10:08:24] <kinglozzer> Ah :P
275: [10:09:00] <Colin[pi]> suggestions on object class to extend to make a shopping cart accessible site wide?
276: [10:09:13] <Colin[pi]> dataobject, viewabledata, object, controller?
277: [10:09:50] <r3v3rb> Colin[pi]: isn't the shopping cart a session?
278: [10:09:54] <kinglozzer> Colin[pi] DataObject probably. Member, for example, is accessible site wide and that's a DataObject
279: [10:10:32] <Colin[pi]> ok and then have a page_controller extension responsible for operating on the cart via the request?
280: [10:10:34] <r3v3rb> or do you mean for storing the contents when saving the cart data to the db?
281: [10:10:42] <Colin[pi]> no, just in the session
282: [10:11:28] <r3v3rb> colin I would setup a controller and a route for all work in the cart and the related session probably
283: [10:11:48] <Colin[pi]> k this is my thinking too :)
284: [10:11:58] * gumble quit (Ping timeout: 248 seconds)
285: [10:12:07] <Colin[pi]> simon_w said it was a bad idea to persist the whole thing in the session, so perhaps just the item data?
286: [10:12:28] <r3v3rb> the whole thing?
287: [10:12:44] <Colin[pi]> i.e. cart object.. as opposed to an array of IDs=>qty
288: [10:18:32] <simon_w|air> r3v3rb, kinglozzer, don't use ->where(), you want ->filter('ParentID', $this->ID)
289: [10:18:45] <r3v3rb> simon_w|air: thanks
290: [10:19:13] <Colin[pi]> it's like having your Dad chime in every now and then isn't it? while shaking his finger at you (thanks simon_w ;P)
291: [10:19:49] <simon_w|air> Not to mention I'm a lot younger than you :p
292: [10:19:53] <simon_w|air> Anyway, to the bed thing
293: [10:20:42] <r3v3rb> argh, noooooo wait simon_w|air
294: [10:20:44] <r3v3rb> :)
295: [10:21:50] * r3v3rb needs more info on taking this DataList and then giving the client a GridField with a checkbox to allow them to choose which to display
296: [10:22:52] <simon_w|air> r3v3rb, CheckboxSetField
297: [10:23:08] <r3v3rb> better idea than GridField then :)
298: [10:24:16] <r3v3rb> basically what would the relation need to be between my homepage and the two classes that feed this checkboxset?
299: [10:24:39] <r3v3rb> many_many <> belongs_many_many ?
300: [10:25:14] <r3v3rb> because to generate the checkboxset I am using the earlier code : $child = SiteTree::get()->filter('ParentID', $this->NewsLinkID);
301: [10:26:11] <r3v3rb> I am confused.com :D because its not using the ORM properly ;)
302: [10:31:04] * nikrolls quit (Ping timeout: 276 seconds)
303: [10:32:22] * MrJeremy quit (Ping timeout: 276 seconds)
304: [10:32:46] <r3v3rb> I think I need a better way than this! :D
305: [10:32:54] * MrJeremy has joined #silverstripe
306: [10:34:09] <kinglozzer> r3v3rb: Can you explain the scenario, or a similar example? What are your classes etc? Might help :)
307: [10:34:20] <r3v3rb> heh, sure
308: [10:35:56] <r3v3rb> I have two classes - NewsItem and EventItem which I need to allow the client to choose upto 4 for display on the HomePage in a single area. And thats four between the types so it could be four of one type, zero of the other. 2 & 2 or 3 & 1 for example
309: [10:36:32] <r3v3rb> they should then be able to set the order of those items in the homepage too, using drag and drop - hence I was looking at the GridField
310: [10:37:28] <r3v3rb> previously it was easy I had two distinct areas on the home page latest news & latest events, now they want to combine the two...
311: [10:38:01] <kinglozzer> Ah, tough one
312: [10:38:06] <r3v3rb> :)
313: [10:38:09] <r3v3rb> isn't it
314: [10:39:48] <r3v3rb> I'm thinking I may have to resolve to a single class and an enum to determine output type - ie: Choose Page Type: 'Event'/'News'
315: [10:39:58] <kinglozzer> I think you'll need a 'base' class like I suggested earlier, so then you'll only have one relation (Homepage manymany itembase) instead of one for both news and events, and also so that the sortorder isn't messed up with two different classes
316: [10:40:04] <kinglozzer> Or that ^^
317: [10:40:31] <kinglozzer> As I don't know how a 'base' class would work with pages, because you don't want them to add a page with a 'base' page type
318: [10:40:38] <r3v3rb> so in your way I would do - Item extends Page - then NewsItem extends Item
319: [10:40:43] <kinglozzer> Yep
320: [10:42:04] <r3v3rb> shite, and only today to get this fixed :) hooray for deadlines
321: [10:42:10] <kinglozzer> Ouch
322: [10:42:35] <lx-berlin_> or you say a HomePage has_many FeaturedItems. And a FeaturedItem has_one News and has_one Event but you are only allowed to select one of both. Does this make sense ? :)
323: [10:42:38] <r3v3rb> Nothing like a bit of pressure
324: [10:42:57] <kinglozzer> That's a neat idea ^^
325: [10:43:03] <r3v3rb> lx-berlin_: yes, but they need to fill a space with four items :(
326: [10:43:17] <kinglozzer> So they'd add four 'FeaturedItem's
327: [10:43:22] <lx-berlin_> and maybe this helps for this approach: https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/code/GridFieldAddNewMultiClass.php
328: [10:43:23] <r3v3rb> lx-berlin_: re-read it yes I get t
329: [10:43:24] <r3v3rb> it
330: [10:43:50] <lx-berlin_> although i am not sure if i understand the usage of this module right
331: [10:44:20] <lx-berlin_> but sounds like choosing records from both classes
332: [10:45:02] <r3v3rb> me either, I don't want them creating new items from the GF though, just a display of whats in the system and like DOM a checkbox to determine its association with the homepage
333: [10:45:31] <r3v3rb> from the manymanyDOM
334: [10:45:42] <lx-berlin_> i never used DOM, sorry
335: [10:46:18] <lx-berlin_> but for the limitation of 4 objects, this should be possible with NetefxValidator by creating your own rule
336: [10:46:36] <lx-berlin_> even if you have to sum the elements of 2 CheckboxFIelds
337: [10:46:56] <r3v3rb> ok
338: [10:47:03] * Nightjar has joined #silverstripe
339: [10:47:23] <r3v3rb> why on earth did I say this should be straight forward to client :\
340: [10:47:33] <lx-berlin_> lol
341: [10:47:49] <Nightjar> rule of thumb, never ever utter any sentence similar to that in front of a client
342: [10:48:08] <r3v3rb> Nightjar: lol
343: [10:48:30] <Nightjar> instead train yourself to go "I'll look into that for you" then send them a quote for double what you think it might be based on your investigations into the subject
344: [10:48:33] <r3v3rb> well, I guess I thought SS would be sweet and handle multiclasses
345: [10:48:40] <Nightjar> ?
346: [10:48:50] <Nightjar> multiwhat
347: [10:48:57] * Nightjar reads logs
348: [10:49:17] <r3v3rb> a relation from one item too multiple classes in a GridFIeld of some other sortable table
349: [10:49:26] <Nightjar> easy
350: [10:49:36] <Nightjar> step 1: make a common base class for these objects
351: [10:49:38] <Colin[pi]> r3v3rb I'm guilty of saying that to clients in the past too :\
352: [10:49:49] <kinglozzer> r3v3rb: You should be able to prevent them creating more than four 'FeaturedItems'
353: [10:49:51] <Nightjar> step 2: insteall GridFieldExtensions module
354: [10:50:06] <Nightjar> step 3: $TemplateList.Limit(4)
355: [10:50:16] <kinglozzer> canCreate($member=null) { return (FeaturedItem::get()->count() >= 4); }
356: [10:50:23] <Nightjar> no
357: [10:50:29] <Nightjar> let them make as many as they want
358: [10:50:38] <Nightjar> just allow re-ordering
359: [10:50:47] <Nightjar> tell them that only top four will display.
360: [10:50:58] <Nightjar> can even use a LiteralField to tell them as such.
361: [10:51:17] <r3v3rb> Okay I'm scared now
362: [10:51:36] <r3v3rb> extra modulesm literalfields let them do more than I want them too...
363: [10:51:38] <r3v3rb> hehe
364: [10:51:38] <Nightjar> why, because I solved your problem in 3 steps and in ~20 seconds?
365: [10:51:46] <kinglozzer> Haha
366: [10:51:49] <lx-berlin_> kinglozzer: will your canCreate function return an error message in the cms ?
367: [10:52:06] <kinglozzer> lx-berlin_: No idea. Should prevent the 'Add new' button appearing though
368: [10:52:13] <lx-berlin_> ah, ok
369: [10:52:17] <Nightjar> lx-berlin_: it will if you tell it to.
370: [10:52:29] <r3v3rb> Nightjar: but, as kinglozzer pointed out I don't want them being able to create a Page of type 'BaseClass' any where?
371: [10:52:40] <kinglozzer> canCreate() { return false; }
372: [10:52:43] <Nightjar> r3v3rb: don't let them.
373: [10:52:46] <kinglozzer> Then on the child classes, return true
374: [10:52:52] <Nightjar> r3v3rb: take a look at how ajshort manages that
375: [10:53:00] <Nightjar> also, what kinglozzer said.
376: [10:53:14] <r3v3rb> kinglozzer: Nightjar - I am away to have at it!
377: [10:53:27] <Nightjar> or, if it does let you create base classes and there's one that serves as a nice base, no problem.
378: [10:53:44] <Nightjar> github.com/ajshort/GridFeildExtensions
379: [10:53:46] <r3v3rb> well that was page
380: [10:53:49] <Nightjar> glhf
381: [10:54:03] <Nightjar> r3v3rb: huh what?
382: [10:54:04] <zippy__> mmm, I am trying to add an extension to member - but no success. I have created MemberRole.php inside /mysite/code/ - which extends from DataExtension…. but I am getting
383: [10:54:06] <zippy__> Fatal error: Call to undefined method Member::add_role() in /.../mysite/_config.php on line 43
384: [10:54:10] <Nightjar> you want to add pages to a page?
385: [10:54:16] <r3v3rb> Nightjar: the two classes already extend page
386: [10:54:34] <Nightjar> r3v3rb: and you want to embed these into another page?
387: [10:58:43] * lx-berlin_ quit (Ping timeout: 252 seconds)
388: [11:00:47] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
389: [11:01:46] <kinglozzer> Wtf? One of my unit tests includes: class MyTestPage extends Page implements TestOnly {} and it's still being included in the 'Add page' menu?!
390: [11:04:10] <zippy__> argh… Fatal error: Object::add_extension() - Can't find extension class for "MemberRole - it's just not working out for me!
391: [11:04:36] <kinglozzer> Anyone have any idea why my test page type is being added to the 'Add Page' form when it implements TestOnly?
392: [11:04:56] <kinglozzer> zippy__: Either your arguments are in the wrong order, or you need to do a /dev/build?flush=all
393: [11:05:31] <Nightjar> yeh, class either isn't logged in the manifest, or it looks like you're trying to add a class to an extension.
394: [11:05:51] <zippy__> ah dev build, of course
395: [11:06:12] <Nightjar> as opposed to an extension to a class
396: [11:09:22] <zippy__> div build sorted it
397: [11:11:22] <kinglozzer> I'm really confused. /dev/build lists all the class names, my test class isn't in that list - so it's not being picked up by a dev/build. But when I click to add a page, it's present in the list of page types
398: [11:11:31] <kinglozzer> I've done a flush and everyting
399: [11:11:45] <kinglozzer> Maybe it's cached. I'll try another browser
400: [11:12:01] <kinglozzer> Nope
401: [11:12:04] <kinglozzer> Wtf?!
402: [11:15:08] <kinglozzer> chillu: class CareerPageTest_ClassA extends Page implements TestOnly { }, it's showing up in the 'add page' list, it's in the SiteTree enum, but it /isn't/ displayed on the /dev/build screen's list of classes.
403: [11:15:24] <kinglozzer> Any ideas why on earth it's there?
404: [11:15:37] <willmorgan> maybe it checks differently in the two different places
405: [11:15:56] <willmorgan> it might also be because you could be logged in as an admin and it shows all of them there?
406: [11:15:58] <kinglozzer> But it should never be added to the database if it implements TestOnly :S
407: [11:16:25] <kinglozzer> There are loads of other Page types that implement TestOnly from the core tests that aren't displayed
408: [11:16:31] <zippy__> If you have a belongs_has_many = array('Foo' => 'Foos'); should you be able to access it via $xxx->Foo() ?
409: [11:17:31] <willmorgan> zippy__: your array is flipped incorrectly
410: [11:17:41] <zippy__> ahhh
411: [11:17:42] <willmorgan> also
412: [11:17:46] <willmorgan> do you mean $belongs_many_many?
413: [11:17:52] <willmorgan> the opposite of a has_many is a has_one
414: [11:18:18] <zippy__> sorry, should just post the real code
415: [11:18:18] <zippy__> static $belongs_many_many = array('Products' => 'ProductPage');
416: [11:18:35] <willmorgan> that looks correct to me
417: [11:26:38] <kinglozzer> Argh. My test class still won't go away!
418: [11:26:54] <Nightjar> did you implement the interface?
419: [11:27:08] <kinglozzer> It implements TestOnly
420: [11:27:34] <Nightjar> does it implement it though? or is it a magic interface like HiddenClass?
421: [11:27:38] <kinglozzer> If I comment the class out, it's removed from the SiteTree enum field. As soon as I remove the comments, it's added again by a dev build
422: [11:28:14] <kinglozzer> Nightjar: I have no idea, I'm just using the same method as other DataObjects - implementing TestOnly should stop them being added to the database
423: [11:29:00] <kinglozzer> It's the same method that the core tests use for test Page types as well
424: [11:29:10] <Nightjar> kinglozzer: yes but what I'm saying is that there's a different between class Blah extends BlahBlah implements TestClass { and ACTUALLY implementing the test interface
425: [11:29:50] <Nightjar> though I'd expect an error on not having it correctly implemented
426: [11:29:56] <kinglozzer> Nightjar: It's like HiddenClass in that there are no methods to implement
427: [11:30:09] <Nightjar> did you spell it right?
428: [11:30:12] <kinglozzer> Yep
429: [11:30:13] <kinglozzer> :P
430: [11:30:17] <Nightjar> :P
431: [11:30:57] <Nightjar> sorry man, no idea
432: [11:31:03] <Nightjar> I suspect something bung with the manifest
433: [11:31:35] <Nightjar> because afaik no method explicitly filters test classes out
434: [11:31:50] <Nightjar> I assume it's done at manifest level
435: [11:32:05] <Nightjar> could be well wrong though
436: [11:32:10] <Nightjar> probably am.
437: [11:32:17] <Nightjar> Unfortunately it's bed time for me though.
438: [11:32:20] <Nightjar> ciao
439: [11:32:23] <kinglozzer> Cya
440: [11:33:56] <PigeonFriend> chillu: I've submitted a patch for the _ss_environment.php / open_basedir issue (https://github.com/silverstripe/silverstripe-framework/issues/1866)
441: [11:34:16] * DesignerX quit (Ping timeout: 264 seconds)
442: [11:39:37] * Nightjar has left #silverstripe
443: [11:42:15] * Zauberfisch^idle has joined #silverstripe
444: [11:43:37] <willmorgan> kinglozzer: did you look at the environment builder?
445: [11:43:45] <willmorgan> at least it'll tell you what's going on
446: [11:44:15] <kinglozzer> willmorgan: Yep, it's not mentioned in the environment builder, but it's still being added to the enum list for SiteTree
447: [11:44:33] <kinglozzer> That list comes from ClassInfo::subclassesFor()
448: [11:44:41] <kinglozzer> Which loads the list from the manifest
449: [11:44:59] <kinglozzer> I've tried completely deleting the cache folder and it's still showing up
450: [11:45:20] <kinglozzer> Anyway, I can't concentrate when I'm hungry :P
451: [11:45:26] * kinglozzer lunch
452: [11:45:50] <willmorgan> kinglozzer: SiteTree.php: https://dl.dropbox.com/u/4215179/clips/2013-05-22_12-45-33.png
453: [11:46:59] <kinglozzer> Yeah HiddenClass is for hiding page types that are added to the database, but classes that implement TestOnly shouldn't ever be added in the first place :/
454: [11:47:15] <kinglozzer> So they should never make it into the list returned by self::page_type_classes()
455: [11:47:31] <kinglozzer> Anyway, bbl
456: [11:48:42] <willmorgan> seems like a bug to me
457: [12:11:46] * UndefinedOffset has joined #silverstripe
458: [12:13:39] * openbees quit (Ping timeout: 256 seconds)
459: [12:27:20] * openbees has joined #silverstripe
460: [12:30:18] * ARNHOE has joined #silverstripe
461: [12:48:15] <zfmf1> is there a way to load different templates with include in templates? example : <% include $handyTabSS %> dont work :D
462: [12:50:43] <zippy__> why not extract out the common code to a proper include?
463: [13:01:58] * ARNHOE quit (Remote host closed the connection)
464: [13:08:01] <r3v3rb> any ideas why 'link existing' is disabled in a GridField by default?
465: [13:08:05] * Colin[pi] quit (Ping timeout: 276 seconds)
466: [13:12:11] <r3v3rb> and why does unlinking a relation unpublish the original at the same time?
467: [13:15:33] <r3v3rb> http://sspaste.com/paste/show/519cc4d83c3c4 current code
468: [13:16:02] <r3v3rb> shows the items based on the currently chosen NewsLinkID which is the actual NewsPage in the Site
469: [13:17:35] * zippy__ quit (Quit: zippy__)
470: [13:21:41] * zippy__ has joined #silverstripe
471: [13:22:26] * zippy__ quit (Client Quit)
472: [13:22:35] <r3v3rb> okay, fixed $this->Pages() was needed, now to limit the classes using MultiClass :D
473: [13:30:33] * lx-berlin_ has joined #silverstripe
474: [13:38:42] * r3v3rb quit (Quit: r3v3rb)
475: [13:47:19] <kinglozzer> Wtf... I have some strange stuff going on. I added a $has_one relation to a class that was already in the DB, SS wouldn't pick it up on a /dev/build, only a /dev/build?flush=all would pick it up.. :S
476: [14:04:46] <willmorgan> kinglozzer: i bet that's because the class config was cached
477: [14:05:42] <kinglozzer> But that sort of thing should surely be flushed on a /dev/build, at least I think it is normally
478: [14:05:50] <kinglozzer> Technology just hates me today, one of those days
479: [14:23:24] * travis-ci has joined #silverstripe
480: [14:23:24] <travis-ci> [travis-ci] chillu/sapphire#158 (pulls/htmleditorfield-stacked - 30b53e6 : Ingo Schommer): The build is still failing.
481: [14:23:24] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/19aab3c3cef2...30b53e65fe75
482: [14:23:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7393466
483: [14:23:24] * travis-ci has left #silverstripe
484: [14:31:26] * Nivery has joined #silverstripe
485: [14:38:31] <willmorgan> i suspect there are a few teething issues left in the config system for things like tha
486: [14:38:34] <willmorgan> +t
487: [14:41:36] * travis-ci has joined #silverstripe
488: [14:41:36] <travis-ci> [travis-ci] chillu/sapphire#160 (pulls/ajaxunique-remove - a824864 : Ingo Schommer): The build has errored.
489: [14:41:36] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/d0144ee4c6dd^...a824864f04a7
490: [14:41:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7393877
491: [14:41:36] * travis-ci has left #silverstripe
492: [14:41:55] * osterlaus has joined #silverstripe
493: [14:45:45] * Error404NotFound quit (Read error: Connection reset by peer)
494: [14:46:19] * travis-ci has joined #silverstripe
495: [14:46:19] <travis-ci> [travis-ci] chillu/sapphire#159 (pulls/ajaxunique-remove - cb1f95e : Ingo Schommer): The build has errored.
496: [14:46:19] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/a824864f04a7...cb1f95e51eff
497: [14:46:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7393867
498: [14:46:19] * travis-ci has left #silverstripe
499: [14:46:37] * Error404NotFound has joined #silverstripe
500: [14:46:46] * Error404NotFound quit (Read error: Connection reset by peer)
501: [14:50:22] * travis-ci has joined #silverstripe
502: [14:50:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#44 (3.1 - 21f69c7 : Ingo Schommer): The build passed.
503: [14:50:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/abad85653431...21f69c72bb6d
504: [14:50:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7393728
505: [14:50:23] * travis-ci has left #silverstripe
506: [14:53:20] * willmorgan quit (Quit: Ciao mateys.)
507: [14:54:13] * r3v3rb has joined #silverstripe
508: [15:08:23] * openbees quit (Read error: Operation timed out)
509: [15:11:57] * UndefinedOffset quit (Quit: Leaving.)
510: [15:19:19] * UndefinedOffset has joined #silverstripe
511: [15:20:28] * travis-ci has joined #silverstripe
512: [15:20:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#46 (3.1 - 214515f : Ingo Schommer): The build passed.
513: [15:20:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/21f69c72bb6d...214515f232dd
514: [15:20:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7394346
515: [15:20:28] * travis-ci has left #silverstripe
516: [15:28:39] * catcher has joined #silverstripe
517: [15:36:32] * lx-berlin_ quit (Ping timeout: 246 seconds)
518: [15:37:34] * kinglozzer quit (Remote host closed the connection)
519: [15:38:38] * openbees has joined #silverstripe
520: [15:39:55] * kinglozzer has joined #silverstripe
521: [15:45:39] * priithansen quit (Quit: priithansen)
522: [15:53:59] * samthejarvis has joined #silverstripe
523: [15:54:31] <kinglozzer> My MySQL server is still screwed. It's being caused by a 'sleep' process. If I have just one, it dies completely with a "gone away" error
524: [15:57:02] <catcher> kinglozzer, any clues in your error logs?
525: [15:57:15] <kinglozzer> Nope, nothing in there at all
526: [15:57:35] <catcher> how about your webserver error/access logs around that point in time?
527: [15:59:20] <kinglozzer> Again nothing :/
528: [16:01:44] <zfmf1> is a query always executed in the foreach? when i have?? $getstockinfo = StockHandy::get()->filter(array('ID' => $stok,'ShopID'=>$this->shop->ID)); whats the best way to check if its not null??? if($getstockinfo->count()>0) is there something other then count? ????
529: [16:02:23] * jrthomer quit (Remote host closed the connection)
530: [16:03:19] * jrthomer has joined #silverstripe
531: [16:13:27] * kinglozzer quit (Remote host closed the connection)
532: [16:14:39] <samthejarvis> Question on routing here: Is there any way to route /example/edit/33 (matches /example/edit/$ID) and /example/edit/EditForm (matches /example/edit/$Action) to the same controller?
533: [16:16:10] <samthejarvis> currently I have one rule (/example/edit/$Action) and two urls, /example/edit/item/30 and /example/edit/EditForm
534: [16:18:06] <samthejarvis> i can't move it all up one level to /example/$Action/$ID, giving me /example/edit/33/ and /example/EditForm, because /example/$Action is used for something else
535: [16:18:14] <samthejarvis> and is in another controller
536: [16:21:04] * lerni quit (Remote host closed the connection)
537: [16:26:18] <FrozenFire> samthejarvis, Probably, though you wouldn't find me doing it.
538: [16:27:12] <samthejarvis> hehe, righto
539: [16:27:34] <samthejarvis> yeah, its against the silverstripe pattern, but I'm a bit vain when it comes to URLs
540: [16:27:37] * osterlaus has left #silverstripe
541: [16:27:55] <FrozenFire> Not really against the SilverStripe pattern.
542: [16:27:59] <FrozenFire> Against the RESTful URL pattern.
543: [16:28:17] <samthejarvis> indeed
544: [16:29:11] <FrozenFire> Nobody really cares about URLs in the end except developers
545: [16:29:21] <FrozenFire> So I'd say, make them as sane as possible
546: [16:29:34] <FrozenFire> Mixing action and ID in the same segment is a recipe for disaster
547: [16:29:49] <samthejarvis> Yeah, heh.
548: [16:29:50] <FrozenFire> Since you'd be using segment pattern matching
549: [16:30:01] <FrozenFire> E.g. matching \d+ and \w+
550: [16:30:14] <FrozenFire> Or something like that
551: [16:30:51] * lerni has joined #silverstripe
552: [16:38:32] * samthejarvis quit (Ping timeout: 250 seconds)
553: [16:44:24] <FrozenFire> Gah. Chrome keeps on offering to translate my CMS from Swedish
554: [16:44:30] <FrozenFire> It's in English.
555: [16:49:50] <catcher> Looks like the CMS 'myprofile' section depends on Page access, which results in a bug for accounts with no Page access.
556: [16:50:24] <catcher> what would be the best way to grant access explicitly to just that page, or at least disable the link?
557: [16:51:05] * lerni quit (Remote host closed the connection)
558: [17:00:34] * Colin[pi] has joined #silverstripe
559: [17:08:26] * priithansen has joined #silverstripe
560: [17:09:13] * r3v3rb quit (Quit: r3v3rb)
561: [17:09:15] * Konkona has joined #silverstripe
562: [17:09:58] * r3v3rb has joined #silverstripe
563: [17:10:05] <Konkona> hi
564: [17:10:11] <Konkona> need a help badly here
565: [17:10:27] <Konkona> I have a silverstripe website
566: [17:10:39] <Konkona> migrated the site
567: [17:10:49] <Konkona> its giving inter server error now
568: [17:10:55] <Konkona> can anyone help?
569: [17:11:16] <Konkona> http://thelookagency.com.au/
570: [17:11:22] <Konkona> this is the site
571: [17:11:56] <catcher> Konkona, looks like an incorrect username or password for your DB
572: [17:12:03] <catcher> Konkona, fix in mysite/_config.php
573: [17:12:34] <Konkona> actually i just tried editing the .htaccess a litte
574: [17:12:42] <Konkona> and now it show this mysql error
575: [17:12:59] <Konkona> i reverted the changes back
576: [17:13:09] <Konkona> but it now still shows this mysql err
577: [17:13:21] <Konkona> previously it was 500 error
578: [17:13:52] <catcher> now, you need to get it connected to your db :)
579: [17:15:20] <Konkona> where do i find mysite folder?
580: [17:15:31] <Konkona> it doesn't seems to be there
581: [17:16:02] <Konkona> _config.php file is under sapphire folder
582: [17:16:05] <catcher> not that one
583: [17:16:12] <catcher> wherever your custom php code is
584: [17:16:33] <catcher> By default, it's in a folder called 'mysite' in the docroot (same level as 'sapphire')
585: [17:16:53] <catcher> Once you're in there, you should also put the site in 'live' mode
586: [17:16:58] <catcher> (after it's fixed, anyway)
587: [17:17:07] <Konkona> thelooka@thelookagency.com.au [~/public_html]# ls -al total 680 drwxr-x--- 11 thelooka nobody 4096 May 23 03:14 ./ drwx--x--x 12 thelooka thelooka 4096 May 23 01:37 ../ -rw-r--r-- 1 thelooka thelooka 642240 Sep 21 2009 agency.zip drwxr-xr-x 3 thelooka thelooka 4096 May 22 18:38 assets/ drwxr-xr-x 2 thelooka thelooka 4096 Apr 17 2012 cgi-bin/ drwxr-xr-x 10 thelooka thelooka 4096 Aug 27 2009 cms/ drwxr-xr-x 8
588: [17:17:29] <Konkona> but there is no folder mysite
589: [17:17:32] <Konkona> :(
590: [17:18:08] <Konkona> ./ ../ agency.zip assets/ cgi-bin/ cms/ dataobject_manager/ googlesitemaps/ .htaccess jsparty/ sapphire/ swfupload/ system/
591: [17:18:17] <Konkona> only these are there
592: [17:18:39] <FrozenFire> simon_w, ping
593: [17:18:53] <catcher> you need themes & mysite from wherever your migration source.
594: [17:19:25] <catcher> it could possibly be called something else, but probably not. What's in agency.zip?
595: [17:20:07] <catcher> although if it's trying to connect, there must be a db config happening somewhere. What's in system/?
596: [17:21:29] <FrozenFire> Konkona, You should probably change your password, by the way.
597: [17:21:34] * Nivery quit (Quit: Nivery)
598: [17:21:51] <FrozenFire> It's displaying on the error page
599: [17:22:16] <Konkona> in systems, ./ ../ code/ _config.php css/ flash/ icons/ images/ javascript/ templates/
600: [17:22:26] <Konkona> these are files
601: [17:22:45] <Konkona> thelookagency.com.au/agency.zip
602: [17:22:51] <Konkona> u can try and see
603: [17:23:16] <openbees> Konkona systems looks like mysite folder
604: [17:23:22] <catcher> sort of
605: [17:23:29] <catcher> Konkona, edit system/_config.php
606: [17:24:02] <Konkona> there is the password
607: [17:24:06] <catcher> get your credentials right, and then change your password as FF suggested
608: [17:24:08] <Konkona> shud i change that?
609: [17:24:23] <catcher> Konkona, why are you migrating the site if you don't know the DB credentials?
610: [17:25:32] * azureKnight has joined #silverstripe
611: [17:25:42] <Konkona> it has already been migrated by one of the server admin on the request of a customer
612: [17:26:15] * jcwacky has joined #silverstripe
613: [17:28:36] <catcher> Konkona, The DB is being served off of localhost, did you migrate the DB?
614: [17:29:06] * Nivery has joined #silverstripe
615: [17:29:39] <catcher> Konkona, if the DB hasn't been set up, you need to define a username & pass & import the DB.
616: [17:29:42] <Konkona> should i add the user again in cpanel and then edit the _config ?
617: [17:29:54] * r3v3rb quit (Quit: r3v3rb)
618: [17:29:59] <Konkona> yes db is migrated
619: [17:30:40] <openbees> that would be good .. give new user access on migrated db
620: [17:33:03] * openbees quit (Quit: Leaving)
621: [17:35:27] <Konkona> no luck
622: [17:35:33] <Konkona> :(
623: [17:35:46] <Konkona> change the user and tried but still the same error
624: [17:36:24] <Konkona> will check with the server admin if the migration was done correctly?
625: [17:42:47] * ARNHOE has joined #silverstripe
626: [17:45:26] * ARNHOE quit (Remote host closed the connection)
627: [17:47:45] <catcher> Konkona, you need to be able to connect with your DB via an active acct, and your system/_config.php needs those proper credentials. Then you can test the actual migration.
628: [17:58:55] * joelpittet has joined #silverstripe
629: [18:01:32] * lerni has joined #silverstripe
630: [18:05:51] * lerni quit (Ping timeout: 256 seconds)
631: [18:06:56] * Konkona quit (Ping timeout: 250 seconds)
632: [18:08:36] * Colin[pi] quit (Ping timeout: 256 seconds)
633: [18:31:31] * gumble has joined #silverstripe
634: [18:45:26] * joelpittet quit (Remote host closed the connection)
635: [18:48:58] * joelpittet has joined #silverstripe
636: [19:15:54] * joelpittet quit (Ping timeout: 248 seconds)
637: [19:17:58] * joelpittet has joined #silverstripe
638: [19:24:03] * willmorgan has joined #silverstripe
639: [19:34:01] * MrJeremy quit (Ping timeout: 252 seconds)
640: [19:35:16] * MrJeremy has joined #silverstripe
641: [19:35:31] * simon__w|air has joined #silverstripe
642: [19:37:08] * zfmf1 quit (Ping timeout: 252 seconds)
643: [19:37:56] * discorpi1 has joined #silverstripe
644: [19:41:13] * joelpittet quit (Ping timeout: 260 seconds)
645: [19:42:54] * simon_w|air quit (*.net *.split)
646: [19:42:55] * discorpia quit (*.net *.split)
647: [19:44:08] * joelpittet has joined #silverstripe
648: [19:45:59] * SightUnseen has joined #silverstripe
649: [19:46:31] * SightUnseen has left #silverstripe
650: [19:46:39] * DigNZ has joined #silverstripe
651: [19:46:44] * travis-ci has joined #silverstripe
652: [19:46:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#48 (3.1 - ac0e324 : Ingo Schommer): The build passed.
653: [19:46:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/214515f232dd...ac0e324e1c84
654: [19:46:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7402653
655: [19:46:44] * travis-ci has left #silverstripe
656: [19:55:52] * zippy__ has joined #silverstripe
657: [19:55:56] * zippy__ quit (Remote host closed the connection)
658: [20:01:27] * Nivery quit (Read error: Connection reset by peer)
659: [20:01:39] * Nivery has joined #silverstripe
660: [20:05:46] * travis-ci has joined #silverstripe
661: [20:05:46] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#383 (3.0 - f64488b : Ingo Schommer): The build passed.
662: [20:05:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/041a8bd5a737...f64488b0d8c0
663: [20:05:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7402772
664: [20:05:46] * travis-ci has left #silverstripe
665: [20:06:09] * lerni has joined #silverstripe
666: [20:11:34] * Nivery quit (Quit: Nivery)
667: [20:11:39] * lerni quit (Ping timeout: 256 seconds)
668: [20:11:41] <simon_w> FrozenFire, gnop
669: [20:11:47] * zippy__ has joined #silverstripe
670: [20:11:51] <zippy__> Morning
671: [20:13:21] <FrozenFire> simon_w, Could I get a copy of that composite field you used for storing multiple fields in an array in the database? I need to do exactly that.
672: [20:13:38] <FrozenFire> Dynamically-generated formfield set needing to be serialized into the database as a single field.
673: [20:13:44] <simon_w> You're using Postgres?
674: [20:13:53] <FrozenFire> Ah, no. I'm using MySQL
675: [20:14:07] <simon_w> Okay, I'll grab our serialisation one then
676: [20:14:12] <FrozenFire> Great. Thanks
677: [20:15:01] <simon_w> http://sspaste.com/paste/show/519d2738778ed
678: [20:15:13] <simon_w> You'll probably need to change addToQuery() for 3.0 support
679: [20:15:45] <FrozenFire> Heh. Boy that's a lot of code for one thing. But, thanks. :P
680: [20:18:56] <simon_w> Yeah, it was like one of the first things James did when he was hired, having never used SilverStripe before :p
681: [20:18:58] * MrJeremy quit (Ping timeout: 245 seconds)
682: [20:19:35] * sekjal has joined #silverstripe
683: [20:20:38] <sekjal> is there an easy way to create an instance of a data model without saving the content to the database? I'd like to have some temporary objects with the same structure as permanent ones
684: [20:21:08] <simon_w> sekjal, $obj = new ClassNamne; $obj->Field = $blah;
685: [20:21:09] <zippy__> don't call write?
686: [20:21:13] * MrJeremy has joined #silverstripe
687: [20:21:50] <sekjal> ... I had this sneaking suspicion it was going to be that easy
688: [20:21:59] <sekjal> sorry, still a bit of n00b with SS
689: [20:22:19] <sekjal> okay, so instantiate the new object, populate, but don't write, and I should be good?
690: [20:22:40] <simon_w> yup
691: [20:22:47] <sekjal> perfect. thanks!
692: [20:23:01] <simon_w> And if you need a list of them, use ArrayList
693: [20:23:05] <sekjal> I'm working on the EventCalendar module, trying to get ICS Feeds to work
694: [20:25:07] * UndefinedOffset quit (Quit: Leaving.)
695: [20:25:22] * travis-ci has joined #silverstripe
696: [20:25:22] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#49 (3.1 - ee784c3 : Ingo Schommer): The build passed.
697: [20:25:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ac0e324e1c84...ee784c366343
698: [20:25:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7403201
699: [20:25:22] * travis-ci has left #silverstripe
700: [20:29:34] * travis-ci has joined #silverstripe
701: [20:29:34] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#384 (3.1 - 417bef9 : Ingo Schommer): The build passed.
702: [20:29:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/b2e935375549...417bef994833
703: [20:29:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7403625
704: [20:29:34] * travis-ci has left #silverstripe
705: [20:35:53] * gelignite has joined #silverstripe
706: [20:36:36] <gumble> I made a new theme, build, flushed and set the cms to the new theme but all pages stay empty. can anyone help?
707: [20:37:04] <Pyromanik> sekjal: ics feeds do work
708: [20:37:16] <Pyromanik> but the ICSWriter is not specification compliant
709: [20:37:35] <Pyromanik> you're probably calling ics function? It's a trap. The one you want is ical()
710: [20:37:58] <Pyromanik> sekjal: basically just never ever use the events_calendar and you'll be a happy chappy.
711: [20:38:14] <Pyromanik> unfortunately though sometimes it's unavoidable.
712: [20:38:26] * lerni has joined #silverstripe
713: [20:39:08] <simon_w> gumble, what do you mean by empty?
714: [20:40:53] <gumble> simon_w: nothing on them. when I open the source code, it's empty. so just as empty as could be
715: [20:41:12] <gumble> page source
716: [20:41:18] <simon_w> In dev mode and got display_errors turned on?
717: [20:41:34] <gumble> wait a sec I haven't checked that
718: [20:43:25] * r3v3rb has joined #silverstripe
719: [20:43:40] <r3v3rb> hi all
720: [20:43:41] <gumble> simon_w: I have it turned on now and no errors are displayed. I have the ecommerce module installed if that matters
721: [20:44:08] <simon_w> do you have a Page.ss? Have you flushed (not dev/build) after changing theme?
722: [20:44:32] <r3v3rb> just had to pop back to an old 2.4 project and adding a dropdownfield to DOM results in no output in the getCMSFieldsForPopUp - any ideas?
723: [20:44:48] <gumble> simon_w: yes I have both Page.ss in template and Layout folder containt the important variables I think and I have flushed
724: [20:44:51] <simon_w> r3v3rb, adding it wrong
725: [20:44:59] <r3v3rb> simon_w: ;) lol
726: [20:45:27] <simon_w> gumble, does ?debug=1&showtemplates=1 show anything useful?
727: [20:45:58] <gumble> when running dev build or just anywhere simon_w ?
728: [20:46:21] <simon_w> Well, it'll need to be on some page that tries to load a template
729: [20:46:54] <Pyromanik> r3v3rb: get your multiclass thing working?
730: [20:47:07] <r3v3rb> Pyromanik: yep :)
731: [20:47:15] <gumble> simon_w: no it too doesn't show anything
732: [20:47:20] <r3v3rb> not quite as fancy as i wanted but working
733: [20:47:51] <simon_w> gumble, either you're not in dev mode, or you're getting an error before the theme is loaded and display_errors is Off
734: [20:48:15] <r3v3rb> Pyromanik, the 'Link Existing' allows a user to add any page not just the two classes I wanted but hey, they know their site they should be able to figure out what to add or not!
735: [20:49:07] <gumble> simon_w: I have "Director::set_environment_type("dev");" in mysite/_config.php
736: [20:52:10] <r3v3rb> so I'm using : new DropdownField("AdLinkID", "Link to page", DataObject::get("Page")->map('ID', 'Title')),
737: [20:52:32] <r3v3rb> ends up as a hidden input, not a select dropdown
738: [20:52:39] <gumble> simon_w: but as I change the theme back to simple it now isn't working either. isn't there another error log in a text file or something?
739: [20:52:44] <sekjal> Pyromanik: is there a different module to read in external iCal feeds?
740: [20:52:48] <sekjal> iCal.php?
741: [20:52:57] <simon_w> gumble, turn display_errors On
742: [20:55:38] <sekjal> got to catch my bus home. thanks for the help, y'all!
743: [20:55:45] * sekjal quit (Quit: Leaving)
744: [20:56:49] <r3v3rb> so anything wrong with that dropdown declaration?
745: [20:56:54] <gumble> simon_w: I now have these three lines: " ini_set('display_errors', 1);
746: [20:56:54] <gumble> error_reporting(E_ALL);
747: [20:56:54] <gumble> Director::set_environment_type("dev"); " at the top of my _config.php, still nothing
748: [20:57:12] <simon_w> gumble, and what if the error's before then?
749: [20:57:49] <gumble> ok, so where could I put it simon_w?
750: [20:57:54] <simon_w> php.ini
751: [20:59:19] * Jedateach has joined #silverstripe
752: [21:01:25] * r3v3rb hits head against wall
753: [21:02:39] <gumble> simon_w: I now have set all the default values for error to On in there so doesn't matter as long as I am not in production mode all errors should be shown but nothing
754: [21:09:34] <Pyromanik> r3v3rb: I don't see anything with that dropdown field in itself
755: [21:09:57] <r3v3rb> anything wrong? or anything right ? :P
756: [21:11:54] <Pyromanik> nothing wrong, only in how it's being used in the context of the whole, not that specific declaration
757: [21:14:18] <r3v3rb> Pyromanik: the strange thing is it gets added as a 'hidden' field of input type, not an option select type
758: [21:14:43] <Pyromanik> r3v3rb: yeah, because as I said in the message
759: [21:14:50] <r3v3rb> sure
760: [21:14:56] <Pyromanik> CTF thinks that it's the parent relation inverse
761: [21:18:24] <Pyromanik> why ftp when you can scp!
762: [21:25:10] <gumble> simon_w: I reall now activated errors at every possible point, still getting blank pages. guess I have to reinstall silverstripe
763: [21:25:56] * priithansen quit (Quit: priithansen)
764: [21:28:33] * gelignite quit (Quit: http://bit.ly/nkczDT)
765: [21:28:58] * r3v3rb goes trolling through DOM source
766: [21:29:03] <r3v3rb> coffee inhaled
767: [21:30:15] * nikrolls has joined #silverstripe
768: [21:31:56] <simon_w> chillu, https://scrutinizer-ci.com/g/simonwelsh/silverstripe-framework/inspections/369ec546-6d61-4bcb-87db-7d7380689f28 :)
769: [21:32:05] <simon_w> Just tidying up the travis side
770: [21:33:20] <chillu> w00t! So its not checking line lengths now, only all other rules (mainly tabs vs. spaces for now)?
771: [21:33:37] <r3v3rb> Pyromanik: i reckon i must be missing something here - the only stuff I see in DOM is setParentClass and setSourceID and I dont see how that helps in creating a dropdown menu in a PopUp
772: [21:33:50] <simon_w> chillu, it's doing both
773: [21:34:07] <gumble> I'm going to sleep now, tomorrow is a new day, hope the shit works then. good night
774: [21:34:34] * gumble quit (Quit: Leaving.)
775: [21:34:58] <r3v3rb> Pyromanik: i should add I just took two swigs of 70% proof homemade liquor from my Spanish relatives before drinking my coofeeee ;)
776: [21:35:03] * lerni quit (Remote host closed the connection)
777: [21:35:09] <simon_w> chillu, I'll fix all the existing errors once I've cleaned up travis and make a separate PR
778: [21:35:44] <r3v3rb> simon_w: so the DropdownField is usable in a DOM getCMSFields_forPopUp?
779: [21:36:01] <simon_w> r3v3rb, yes, though it is DOM. Just use CTF :p
780: [21:36:27] <r3v3rb> lol, I could but CTF is sooooooo butt ugly :)
781: [21:37:11] <simon_w> And DOM isn't? :p
782: [21:37:43] * pex has joined #silverstripe
783: [21:37:49] <r3v3rb> but the dropdown doesn't appear in the CTF either simon_w - just tested
784: [21:38:14] <simon_w> Adding a hidden AdLinkID?
785: [21:38:53] * azureKnight quit (Quit: I'm asleep. ZZZzzz…)
786: [21:38:54] <r3v3rb> it is
787: [21:39:05] <r3v3rb> simon_w: yes thats whats occuring
788: [21:39:20] <simon_w> So stop adding it?
789: [21:39:47] <r3v3rb> what? I'm not adding the hidden field its being set somehow
790: [21:40:26] <simon_w> Tell the CTF to stop managing the relation?
791: [21:41:06] <r3v3rb> huh, how, never had to do that before?
792: [21:41:58] <simon_w> $field->manageRelation = false; or some such
793: [21:42:22] <simon_w> I doubt you've tried providing a drop down for the reverse side of the relation you're managing before too
794: [21:43:10] <r3v3rb> oh I see what you are saying
795: [21:43:33] <Zauberfisch^idle> I am having troubles with the ?t collector
796: [21:43:42] <Zauberfisch^idle> _t
797: [21:43:54] <Zauberfisch^idle> it runs fine on the same files in mysite
798: [21:44:07] <Zauberfisch^idle> but breaks if I run it in a folder other than mysite
799: [21:44:33] <simon_w> got a lang folder in there?
800: [21:44:52] <Zauberfisch^idle> yep
801: [21:44:59] <Zauberfisch^idle> not a permission issue either
802: [21:45:09] <Zauberfisch^idle> hold on, I|ll have the error message in a sec
803: [21:45:35] <simon_w> chillu, it looks like Scrutinizer just checks changed files
804: [21:45:44] <simon_w> that's rather useful
805: [21:45:46] <Zauberfisch^idle> actuallz
806: [21:45:48] <Zauberfisch^idle> I was wrong
807: [21:46:02] <Zauberfisch^idle> Fatal error: Cannot create references to/from string offsets nor overloaded objects in framework/i18n/i18nTextCollector.php on line 577
808: [21:46:21] <Zauberfisch^idle> I rememer this line of code, I had this error once before, but can|t remember
809: [21:46:21] <FrozenFire> Is there a way to generate a link from the scope of a DataObject's getCMSFields to its current ItemRequest?
810: [21:46:23] * joelpittet quit (Read error: Connection reset by peer)
811: [21:46:34] <FrozenFire> Actually, nevermind.
812: [21:46:43] <FrozenFire> Thought of a better way.
813: [21:47:26] * lerni has joined #silverstripe
814: [21:48:15] * r3v3rb slinks away… fixed it!
815: [21:49:01] * r3v3rb copy/pasted the $x = new DataObjectManager - should have been using HasManyDataObjectManager! lol
816: [21:49:36] <r3v3rb> time to sleep!
817: [21:49:43] * lerni quit (Remote host closed the connection)
818: [21:50:20] * joelpittet has joined #silverstripe
819: [21:50:23] <Zauberfisch^idle> hmmm
820: [21:50:34] <Zauberfisch^idle> isolated it to 2 files
821: [21:50:39] <Zauberfisch^idle> will dive further
822: [21:50:55] <Zauberfisch^idle> must be a invalid _t tag somewhere
823: [21:51:30] * azureKnight has joined #silverstripe
824: [21:52:47] * joelpittet quit (Read error: Connection reset by peer)
825: [21:52:48] * joelpitt_ has joined #silverstripe
826: [21:58:46] * nikrolls quit (Ping timeout: 276 seconds)
827: [21:59:22] * nikrolls has joined #silverstripe
828: [22:01:46] * nikrolls quit (Read error: Connection reset by peer)
829: [22:03:24] * nikrolls has joined #silverstripe
830: [22:04:51] <zippy__> Does a pages ID never change, even if publishing/unpublishing etc
831: [22:07:55] <simon_w> yes
832: [22:13:15] <Zauberfisch^idle> ah
833: [22:13:15] <Zauberfisch^idle> omg
834: [22:13:15] <Zauberfisch^idle> I failed
835: [22:13:23] <Zauberfisch^idle> the issue was a invalid tag
836: [22:14:00] * r3v3rb quit (Quit: r3v3rb)
837: [22:14:36] <Zauberfisch^idle> _t(".Foo", "Foo")
838: [22:14:44] <Zauberfisch^idle> my misstake then
839: [22:14:46] <Zauberfisch^idle> works now
840: [22:19:29] * joelpitt_ quit (Remote host closed the connection)
841: [22:19:47] * joelpittet has joined #silverstripe
842: [22:25:00] * DigNZ quit (Quit: DigNZ)
843: [22:25:42] * pex quit (Quit: pex)
844: [22:30:46] * joelpittet quit (Remote host closed the connection)
845: [22:31:27] * willmorgan quit (Quit: Leaving.)
846: [22:33:00] <zippy__> simon_w: yes it changes, or never changes? :)
847: [22:33:13] <simon_w> zippy__, it never changes
848: [22:33:25] <zippy__> btw, quite liking PhpStorm as an IDE atm - after coming from Sublime Edited - much niched than Zend/Eclipse as well
849: [22:33:33] * pevjan has joined #silverstripe
850: [22:33:45] * pevjan quit (Client Quit)
851: [22:33:48] <zippy__> the autocomplete is very handy, being able to do Member::cu - and it has the auto complete there...
852: [22:38:07] * DigNZ has joined #silverstripe
853: [22:38:08] * DigNZ quit (Remote host closed the connection)
854: [22:38:22] * DigNZ has joined #silverstripe
855: [22:44:23] * simon_w quit (Ping timeout: 245 seconds)
856: [22:46:22] * simon_w has joined #silverstripe
857: [22:48:32] <MrJeremy> netbeans is good
858: [22:50:27] <xyphoid> i like netbeans but it's totally awful at syncing remote files
859: [22:53:10] * DrCuriosity has joined #silverstripe
860: [22:57:04] <zippy__> is netbeans java based?
861: [22:57:04] <zippy__> zend/eclipse - I had a feeling it was
862: [22:57:40] <MrJeremy> netbenas is java bases I think
863: [22:57:51] <MrJeremy> I do not use its sinc feature
864: [23:00:52] * travis-ci has joined #silverstripe
865: [23:00:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#54 (3.0 - 2e2c922 : Ingo Schommer): The build passed.
866: [23:00:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/17ac2e36fc97...2e2c9226a425
867: [23:00:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7409763
868: [23:00:52] * travis-ci has left #silverstripe
869: [23:06:32] <unsignedint> Whats the best way to hide page types from the CMS? I have installed the Forum module but am not using it yet and want to hide the Forum and ForumHolder page types from the CMS to stop the client getting confused, but I also dont want to modify the module files
870: [23:08:09] * unsignedint quit (Read error: Connection reset by peer)
871: [23:08:11] * azureKnight quit (Quit: Gone.)
872: [23:08:30] * unsignedint has joined #silverstripe
873: [23:09:36] * chrisrio has joined #silverstripe
874: [23:09:46] <chrisrio> hey gents - what is the SS way to set HTTP status codes?
875: [23:10:24] <chrisrio> SS sends headers out before I can set em using PHP header()
876: [23:12:42] <Pyromanik> $this->repsponse->blah
877: [23:12:50] <Pyromanik> look at SS_HTTPResponse
878: [23:12:51] * simon_w quit (Ping timeout: 240 seconds)
879: [23:12:52] * guci0 quit (Ping timeout: 250 seconds)
880: [23:13:37] <Pyromanik> chrisrio: http://api.silverstripe.org/3.0/class-SS_HTTPResponse.html
881: [23:14:28] * zippy__ quit (Quit: zippy__)
882: [23:16:28] * joern_ has joined #silverstripe
883: [23:17:15] * simon_w has joined #silverstripe
884: [23:17:19] * joelpittet has joined #silverstripe
885: [23:18:15] * joelpittet quit (Remote host closed the connection)
886: [23:19:29] * joelpittet has joined #silverstripe
887: [23:21:39] * joelpittet quit (Remote host closed the connection)
888: [23:32:52] * joelpittet has joined #silverstripe
889: [23:33:15] * joelpittet quit (Remote host closed the connection)
890: [23:39:49] * DigNZ quit (Quit: DigNZ)
891: [23:40:13] * joelpittet has joined #silverstripe
892: [23:41:04] * DigNZ has joined #silverstripe
893: [23:46:54] * DigNZ quit (Quit: DigNZ)
894: [23:47:24] * simon_w quit (Ping timeout: 256 seconds)
895: [23:49:10] * simon_w has joined #silverstripe
896: [23:49:59] * Colin[pi] has joined #silverstripe

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