#silverstripe IRC Log

IRC log for 26 October 2015

All timestamps are in UTC.

1: [00:03:31] * novaweb quit (Remote host closed the connection)
2: [00:03:38] <spronk> coliinn
3: [00:09:39] * novaweb has joined #silverstripe
4: [00:10:46] <Colin[pi]> spronk: holiday right?
5: [00:10:50] <spronk> labour day
6: [00:10:51] <spronk> mm
7: [00:11:28] * novaweb_ has joined #silverstripe
8: [00:12:21] <Colin[pi]> hey knew it
9: [00:12:26] <Colin[pi]> whenever its quiet in here
10: [00:12:34] <Colin[pi]> "hmm, must be holiday"
11: [00:13:05] * novaweb_ quit (Read error: Connection reset by peer)
12: [00:13:11] <spronk> mm :D
13: [00:13:16] * novaweb quit (Read error: Connection reset by peer)
14: [00:13:27] * novaweb has joined #silverstripe
15: [00:42:13] * novaweb quit (Remote host closed the connection)
16: [01:27:15] * spronk quit (Quit: bleep bleep bloop bloop)
17: [01:39:28] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
18: [01:42:48] * novaweb has joined #silverstripe
19: [01:47:12] * novaweb quit (Ping timeout: 255 seconds)
20: [02:00:15] * spronk has joined #silverstripe
21: [02:45:23] * Colin[pi] quit (Quit: dicks)
22: [03:09:01] * Motoservo quit (Read error: Connection reset by peer)
23: [03:09:16] * Motoservo has joined #silverstripe
24: [03:18:29] * Motoservo quit (Read error: Connection reset by peer)
25: [03:29:06] * novaweb has joined #silverstripe
26: [03:33:33] * novaweb quit (Ping timeout: 256 seconds)
27: [03:35:28] * Motoservo has joined #silverstripe
28: [05:21:01] <ss-helper> How to get child pages and use it's data on another page type? - http://stackoverflow.com/questions/33338904/how-to-get-child-pages-and-use-its-data-on-another-page-type
29: [05:33:36] * spronka has joined #silverstripe
30: [05:34:34] * spronka quit (Client Quit)
31: [05:34:59] * novaweb has joined #silverstripe
32: [05:36:01] <ss-helper> How to get child pages and loop through it's data on another page type? - http://stackoverflow.com/questions/33338904/how-to-get-child-pages-and-loop-through-its-data-on-another-page-type
33: [06:06:23] * spronk quit (Quit: I may need a longer sleep timer...)
34: [06:36:02] <ss-helper> Silverstripe routing issue to sub folders - http://stackoverflow.com/questions/33339621/silverstripe-routing-issue-to-sub-folders
35: [06:43:31] * spronk has joined #silverstripe
36: [07:03:37] * Mike123 has joined #silverstripe
37: [07:05:32] * krofek__ quit (Ping timeout: 268 seconds)
38: [07:25:49] * spronk quit (Quit: I may need a longer sleep timer...)
39: [07:28:04] <Mike123> MOrning
40: [07:35:34] * spronka has joined #silverstripe
41: [08:00:21] <novaweb> Evening
42: [08:00:25] <novaweb> ^^
43: [08:21:25] * novaweb quit (Remote host closed the connection)
44: [08:23:57] <nontgor> afternoon
45: [08:29:48] * swaiba has joined #silverstripe
46: [08:32:43] * spronka quit (Read error: Connection reset by peer)
47: [08:33:48] * spronka has joined #silverstripe
48: [08:33:50] * novaweb has joined #silverstripe
49: [08:37:39] * Copperis has joined #silverstripe
50: [08:50:34] * elgabbu quit (Quit: Page closed)
51: [08:50:49] * elgabbu has joined #silverstripe
52: [09:02:39] * stnvh has joined #silverstripe
53: [09:22:46] * slievr_ has joined #silverstripe
54: [09:25:36] * slievr quit (Ping timeout: 246 seconds)
55: [09:45:08] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
56: [09:47:10] * vanny has joined #silverstripe
57: [09:47:18] <vanny> hi all
58: [09:58:22] * nontgor quit (Ping timeout: 260 seconds)
59: [10:05:02] * spronka has joined #silverstripe
60: [10:19:02] * gordon has joined #silverstripe
61: [10:19:26] * gordon is now known as Guest87029
62: [10:19:31] * Guest87029 is now known as nontgor
63: [10:20:18] * vanny quit (Quit: Page closed)
64: [10:22:59] * rytiz2873 has joined #silverstripe
65: [10:23:43] <rytiz2873> Hi! I need to add Birthday field to member. What is the best way to do this?
66: [10:26:23] * Otterpocket has joined #silverstripe
67: [10:27:12] <Otterpocket> Anyone using Bootstrap Via Composer?
68: [10:42:55] * koffee_ has joined #silverstripe
69: [10:42:56] <ss-helper> koffee_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
70: [10:43:13] <koffee_> guys
71: [10:43:28] <koffee_> i have an ss_report
72: [10:44:13] <koffee_> im creating a new DataObject and feeling in some data. the problem is that with full permissions i can see the data in the report and without admin permissions it just says no items found
73: [10:44:15] <koffee_> any clue?
74: [10:44:22] <koffee_> filling*
75: [10:44:38] <madmatt> rytiz2873: You want to create a MemberExtension that extends DataExtension, than attach that to the Member class by creating a YAML config file tha looks like this:
76: [10:44:41] <madmatt> Member:
77: [10:44:45] <madmatt> extensions:
78: [10:44:52] <madmatt> - MemberExtension
79: [10:45:06] <madmatt> then just define your $db static as normal on that extension class and it'll get added to the Member object
80: [10:45:35] <madmatt> koffee_: Define a canView() method on your DataObject sub-class and have it return true or false depending on the user permissions
81: [10:45:57] <koffee_> but im doing it like this: $currPage = new DataObject(); $currPage->PageTitle = $page->Title;
82: [10:46:09] <madmatt> e.g. you can do public function canEdit($member = null) { return Permission::check('ADMIN") || Permission::check('SomeOtherRole') }
83: [10:46:44] <madmatt> oh I see
84: [10:46:57] <madmatt> You probably just want to use ArrayData, rather than DataObject
85: [10:47:50] <madmatt> DataObject is expected to be set in the database, and you don't create a DataObject class directly, so if you're building data for a report like that, use $currPage = new ArrayData(array('PageTitle' => $page->Title));
86: [10:49:53] <koffee_> well done that seems to solved the issue ;)
87: [10:53:59] * novaweb quit (Remote host closed the connection)
88: [11:09:33] * elgabbu quit (Ping timeout: 246 seconds)
89: [11:12:06] * CodeTrap has joined #silverstripe
90: [11:12:07] * CodeTrap quit (Client Quit)
91: [11:16:19] <Mike123> Anyone used burnbright's ss-shop ? need help a bit with it :/
92: [11:24:11] <swaiba> http://www.silverstripe.org/community/forums/e-commerce-modules/ <--- Mike123 :)
93: [11:27:41] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
94: [11:29:21] <Otterpocket> I am rendering my Page and SpecificPage stuff, how can I dynamically render another part of the page, as I have tabbed content?
95: [11:32:54] <Otterpocket> Basically in my controller I need do renderWith ChildContentPartial ContentPageTemplate PageTemplate
96: [11:39:43] <rytiz2873> You want to create a MemberExtension that extends DataExtension, than attach that to the Member class by creating a YAML
97: [11:39:59] <rytiz2873> ups
98: [11:40:07] <rytiz2873> Thanks!
99: [11:49:50] * r3v3rb has joined #silverstripe
100: [11:49:56] <r3v3rb> morning all, just…
101: [11:51:05] <r3v3rb> http://sspaste.com/paste/show/562e133ad96fb << why does the created has_many get assigned to the original page and not the newly created translation?!?! Worked on my surface, but the same code on my Mac is not :|
102: [11:54:37] <swaiba> r3v3rb shouldn't $item->duplicate() be $item->duplicate(false) ?
103: [11:55:09] <r3v3rb> swaiba maybe also has_many appears to use ResourceID not ClassnameID for example
104: [11:55:27] <swaiba> so you don't' initially write the duplicate
105: [11:55:36] <swaiba> don't follow second comment...
106: [11:58:38] <r3v3rb> I had it writing to a field called ‘ClassnameID’ with the ID of the parent
107: [11:58:45] <r3v3rb> instead of resourceID
108: [12:00:07] <r3v3rb> working apart from getting duplicates of each has_many! :D
109: [12:08:55] <swaiba> shouldn't $item->duplicate() be $item->duplicate(false) <--- r3v3rb this didn't help?
110: [12:09:17] <r3v3rb> swaiba <- it is set to that, but still doubling the duplication
111: [12:09:24] <swaiba> :(
112: [12:09:46] <swaiba> can you step through and see the step it creates the duplicate?
113: [12:10:07] <swaiba> or do loads of vardumps with row count (with a filter) to see same thing?
114: [12:10:15] <r3v3rb> I am, and its doing what it should but repeatin the foreach ( $originalPage chunk
115: [12:10:31] <r3v3rb> steppinh in phpstorm
116: [12:10:36] <r3v3rb> stepping*
117: [12:13:19] <r3v3rb> I think the problem comes in setting the correct ID to the has_one on the new item
118: [12:13:26] <r3v3rb> part of the problem anyway
119: [12:18:09] * koffee_ quit (Ping timeout: 246 seconds)
120: [12:19:13] <r3v3rb> nope, its me! lol, the non (false) had duped them into the original and was creating the dupe dupe!
121: [12:22:44] <r3v3rb> now to handle the has_many’s > has_many !
122: [12:25:36] * UndefinedOffset has joined #silverstripe
123: [12:31:12] <swaiba> r3v3rb - I thought so - I was sure I'd had this myself
124: [12:32:11] <r3v3rb> lol, the biggest issue is if I define the has one as something other than the classname - ie resource => page or some such then the code posted breaks it needs to be able to know the has_one relation…
125: [12:34:26] <r3v3rb> must say its great fun manually creating parts of the translations!
126: [12:34:40] <r3v3rb> why SS doesn’t by default I do not know…
127: [12:41:12] <r3v3rb> Ta dA! correctly doooped, no for has_manies > has_manies! lmao
128: [12:41:20] <r3v3rb> now*
129: [12:43:03] * Otterpocket quit (Remote host closed the connection)
130: [12:43:45] <rytiz2873> maybe somebody can share registration tutorial for ss3.1 ?
131: [12:54:52] * cloph quit (Remote host closed the connection)
132: [12:59:38] * cloph_away has joined #silverstripe
133: [13:01:05] <swaiba> rytiz2873 - https://github.com/silverstripe-australia/silverstripe-memberprofiles
134: [13:01:18] <swaiba> "allows you to create a page that allows users to register and/or manage their profile"
135: [13:01:57] <swaiba> r3v3rb - i guess it depends on the module used for the translations... AFAIK it's not a core module and the best ones are not silverstripe anymore
136: [13:02:49] <r3v3rb> ah ha, I’m using SS Translatable
137: [13:03:02] <r3v3rb> swaiba: ^^
138: [13:03:38] <r3v3rb> works nicely with language_prefix module to create domain.com/en domain.com/de etc etc
139: [13:08:05] <swaiba> I wish there was only one module, makes choosing one much harder :S
140: [13:47:11] * DimiStripe quit (Read error: Connection reset by peer)
141: [13:47:27] * DimiStripe has joined #silverstripe
142: [14:02:48] * Mike123 quit (Ping timeout: 246 seconds)
143: [14:09:05] <r3v3rb> swaiba: totally
144: [14:21:11] * Otterpocket has joined #silverstripe
145: [14:28:04] * r3v3rb = winning
146: [14:36:36] <Otterpocket> Is it possible to load a different partial using the controller?
147: [14:37:07] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
148: [14:37:26] * Motoservo has joined #silverstripe
149: [14:42:29] * Motoservo quit (Ping timeout: 268 seconds)
150: [14:56:55] * muskie9 has joined #silverstripe
151: [15:06:16] <ss-helper> Silverstripe URL Mapping - http://stackoverflow.com/questions/33348949/silverstripe-url-mapping
152: [15:08:36] * marijnk has joined #silverstripe
153: [15:10:58] <marijnk> Is there a way to extend GridField->newRowClasses() method? Extending GridField and creating my own class CustomGridField: protected function newRowClasses($total, $index, $record) results in a [Warning] Missing argument 1 for GridField::__construct(), unless I change the call to CustomGridField, which is what I want to avoid because I want to replace all GridFields...
154: [15:14:51] <Otterpocket> Rendering 3 templates anyone?
155: [15:15:09] <Otterpocket> Page->PageContent->TabContent ?
156: [15:18:22] <ec8or> anyone using blog and forum?
157: [15:18:52] <ec8or> i want an automatic thread created per blog post and use that for comments, is there anything built that does that already?
158: [15:29:55] * elgabbu has joined #silverstripe
159: [15:33:29] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
160: [15:33:44] * vanny has joined #silverstripe
161: [15:33:55] <vanny> morning all, who is awake :)
162: [15:34:36] * MarkGuinn has joined #silverstripe
163: [15:39:17] <Otterpocket> Using a variable is <% include ? is it possible?
164: [15:40:55] * MarkGuinn quit (Quit: Textual IRC Client: www.textualapp.com)
165: [15:41:02] * muskie9 has joined #silverstripe
166: [15:41:45] * MarkGuinn has joined #silverstripe
167: [15:42:38] * muskie9 quit (Client Quit)
168: [15:43:40] * muskie9 has joined #silverstripe
169: [15:45:51] * cloph_away is now known as cloph
170: [15:52:46] * Motoservo has joined #silverstripe
171: [16:04:35] * rytiz2873 quit (Ping timeout: 260 seconds)
172: [16:05:59] * krofek has joined #silverstripe
173: [16:21:00] * vanny quit (Quit: Page closed)
174: [16:25:03] <ss-helper> Re: [silverstripe-dev] Config static for field descriptions? - https://groups.google.com/d/msg/silverstripe-dev/CUSLk6-_cII/73rHSjUcBgAJ
175: [16:34:51] <AlphaCactus> Otterpocket, you might be able to render the template into the customise if that would work for your scenario
176: [16:43:00] <Otterpocket> I just created a new method on the page that renderWith a partial using the action name to know what partial to loa
177: [16:43:04] <Otterpocket> load*
178: [16:43:16] <Otterpocket> Seems to wrok ok
179: [16:43:20] <Otterpocket> work*
180: [16:48:39] * gelignite has joined #silverstripe
181: [16:59:26] <swaiba> anyone got some advice on 2.4 changepassword
182: [16:59:54] <swaiba> I've got a system that is sending the reset email link, then when you click on it it tells you that you must be logged in
183: [17:02:17] <cloph> swaiba: still in draft mode maybe?
184: [17:02:38] <cloph> what does the message say exactly? something like "click here to view the published content"?
185: [17:02:40] <swaiba> the password reset form, no it's a standard silverstripe controller / form
186: [17:03:09] <swaiba> it's says "you must login to change your password" cloph
187: [17:12:24] <swaiba> it's coming from http://api.silverstripe.org/2.4/source-class-Security.html#586
188: [17:17:32] <swaiba> I think I've got it, strange that it ever worked"!
189: [17:32:01] * Otterpocket quit (Quit: Leaving)
190: [17:52:10] * novaweb has joined #silverstripe
191: [18:09:06] * novaweb quit (Remote host closed the connection)
192: [18:14:38] * wmk has joined #silverstripe
193: [18:25:09] <ss-helper> Re: [silverstripe-dev] Config static for field descriptions? - https://groups.google.com/d/msg/silverstripe-dev/CUSLk6-_cII/uIbI860iBgAJ
194: [18:29:33] * novaweb has joined #silverstripe
195: [18:29:44] * novaweb quit (Remote host closed the connection)
196: [18:31:57] * novaweb has joined #silverstripe
197: [18:32:42] * novaweb quit (Remote host closed the connection)
198: [18:34:07] * novaweb has joined #silverstripe
199: [18:38:23] * novaweb quit (Ping timeout: 252 seconds)
200: [18:54:19] <AlphaCactus> we've run into a lot of "strange that it ever worked" stuff over the years...
201: [19:00:08] * vanny has joined #silverstripe
202: [19:00:20] <vanny> hey all
203: [19:00:59] <vanny> how do I clear the $form->addErrorMessage() after it has show once
204: [19:15:10] <r3v3rb> swaiba: you about?
205: [19:16:54] * kerozene quit (Ping timeout: 268 seconds)
206: [19:19:31] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
207: [19:19:51] * novaweb has joined #silverstripe
208: [19:20:36] * muskie9__ has joined #silverstripe
209: [19:22:27] <muskie9__> vanny this will clear all messages, not sure if there's something for a particular message... but since it's really just a Session message you could probably call the Session::clear() for that one value: http://api.silverstripe.org/3.1/source-class-Form.html#1166-1171
210: [19:23:51] * muskie9 quit (Ping timeout: 256 seconds)
211: [19:24:32] * muskie9__ is now known as muskie9
212: [19:25:43] * novaweb quit (Remote host closed the connection)
213: [19:26:40] * kerozene has joined #silverstripe
214: [19:28:25] * helenclarko has joined #silverstripe
215: [19:38:12] <vanny> hmmm. so if I put sessionclear for message at the start of the form function it will clear it after it has shown once
216: [19:38:42] <Firesphere> Yes.
217: [19:38:42] * novaweb has joined #silverstripe
218: [19:43:11] <vanny> thanks :)
219: [19:43:56] <Firesphere> It does, however, depend on what you're actually want to achieve (I haven't seen any code or got your question ;) )
220: [19:44:49] <muskie9> vanny is it a persisting form message that doesn't go away? I've had that
221: [19:50:50] * novaweb quit (Remote host closed the connection)
222: [19:51:02] * novaweb has joined #silverstripe
223: [19:51:39] * BrewNaked has joined #silverstripe
224: [19:52:51] <BrewNaked> Good morning/afternoon/evening all...
225: [19:53:44] <muskie9> o/
226: [19:54:02] <BrewNaked> Has anyone written up or come across any kind of comparison of 3rd-party search engines used with SS? (e.g. Sphinx, Lucene, Solr...)
227: [19:54:17] <Firesphere> Comparison? no.
228: [19:54:38] <Firesphere> But Lucene and Solr are a completely different type of search engine than the onboard search method
229: [19:56:36] * adrexia has joined #silverstripe
230: [19:59:24] <BrewNaked> I'm looking for something that can be run on the server with the SS website and has the ability to have localized search functionality and an extendable "dictionary" of common misspellings.
231: [20:00:40] <BrewNaked> I was hoping that someone did some of my work for me and wrote up a list of features that are/aren't included in each of the engines to know where I should start.
232: [20:00:58] <Firesphere> Ah, like that.
233: [20:01:09] <Firesphere> Well, you can forget about the SilverStripe search for a dictionary
234: [20:01:58] <Firesphere> It's a flat SQL search, whereas Solr and such have some sort of way of logically searching and more logic in and/or methods etc.
235: [20:02:17] <Firesphere> There are modules for lucene search e.g.
236: [20:08:15] <adrexia> Solr can do that
237: [20:08:20] <adrexia> also, google site search ;)
238: [20:08:37] <BrewNaked> I don't suppose that anyone here is running Sphinx, Lucene or Solr within SS that might have some insights?
239: [20:09:10] <adrexia> I've worked on projects that used Sphinx, but that was a few years ago and I didn't really touch that part
240: [20:09:15] <BrewNaked> Google's CSE isn't an option because we are likely going to need to provide "local" proxy versions of the server in multiple countries... some of which don't much like Google.
241: [20:09:20] <adrexia> but Sphinx was largely superseeded by Solr
242: [20:09:42] <adrexia> never useedd Lucene
243: [20:09:43] * novaweb quit (Remote host closed the connection)
244: [20:10:06] * novaweb has joined #silverstripe
245: [20:10:08] <Firesphere> You'd have to install and configure the engine you want. I've never done that myself.
246: [20:10:09] <adrexia> yeah, fair enough
247: [20:10:25] <adrexia> there are good-ish docs on solr and silverstripe
248: [20:10:41] <Firesphere> Nyeholt works. https://github.com/nyeholt/silverstripe-solr
249: [20:10:57] <adrexia> (not that I'm selling Solr, it causes pain, but it's a popular choice )
250: [20:11:23] <helenclarko> Morning o/
251: [20:11:25] <adrexia> https://github.com/silverstripe-labs/silverstripe-fulltextsearch
252: [20:11:52] * Copperis quit (Quit: Leaving)
253: [20:11:59] <adrexia> https://github.com/silverstripe-labs/silverstripe-fulltextsearch-localsolr
254: [20:14:05] * Motoservo has joined #silverstripe
255: [20:15:03] <Firesphere> Hmmmm, my RPi is doing something weird, can't connect to it anymore :|
256: [20:16:02] * novaweb quit (Remote host closed the connection)
257: [20:16:36] * novaweb has joined #silverstripe
258: [20:20:57] * novaweb quit (Ping timeout: 255 seconds)
259: [20:21:01] * UndefinedOffset quit (Quit: Leaving.)
260: [20:26:19] * Stomach has joined #silverstripe
261: [20:38:41] * novaweb has joined #silverstripe
262: [20:49:13] * camfindlay has joined #silverstripe
263: [20:49:18] * zippy has joined #silverstripe
264: [20:49:40] <zippy> Morning
265: [20:51:11] * micmania1 has joined #silverstripe
266: [20:51:16] * Stomach quit (Read error: Connection reset by peer)
267: [20:51:22] <Firesphere> Hey zippy
268: [20:51:54] <zippy> Hello :)
269: [20:52:20] <zippy> is it possible to make it so all 'pages' need to be logged in, without having to make sure they are set to need to be logged in in the CMS?
270: [20:52:30] <zippy> I am thinking in the Page.php init I can do a check and redirect..
271: [20:52:38] <Firesphere> Make the root require being logged in?
272: [20:52:48] <Firesphere> Why would you want to do that by the way?
273: [20:53:05] <muskie9> zippy the site settings model admin, set the access to logged in
274: [20:53:38] <zippy> Firesphere: it's an internal app only sort of thing
275: [20:53:50] <zippy> Firesphere: and there isn't a root page as such, since the home page and all that are "root" pages
276: [20:53:51] <Firesphere> Ah, well, then what muskie9 says
277: [20:53:55] <zippy> muskie9: thanks, that looks like it
278: [20:54:16] <muskie9> 👍
279: [20:55:01] * TheVoid quit (Ping timeout: 246 seconds)
280: [20:56:40] * Stomach has joined #silverstripe
281: [20:56:46] * novaweb quit (Remote host closed the connection)
282: [20:57:22] * novaweb has joined #silverstripe
283: [20:57:30] * novaweb quit (Read error: Connection reset by peer)
284: [20:57:57] * novaweb has joined #silverstripe
285: [21:01:25] * novaweb quit (Read error: Connection reset by peer)
286: [21:02:01] * novaweb has joined #silverstripe
287: [21:04:26] * Stomach quit (Read error: Connection reset by peer)
288: [21:04:34] * Stomach_ has joined #silverstripe
289: [21:06:28] <ss-helper> SIlver Stripe Bad gate way on admin/pages only - http://stackoverflow.com/questions/33355391/silver-stripe-bad-gate-way-on-admin-pages-only
290: [21:13:38] * MarkGuinn quit (Quit: Textual IRC Client: www.textualapp.com)
291: [21:14:21] * marijnk quit (Ping timeout: 246 seconds)
292: [21:15:00] * BrewNake_ has joined #silverstripe
293: [21:15:00] * BrewNaked quit (Read error: Connection reset by peer)
294: [21:17:30] * DanaeNZ has joined #silverstripe
295: [21:17:41] <DanaeNZ> morning o/
296: [21:17:54] * novaweb quit (Remote host closed the connection)
297: [21:28:28] * Covalent has joined #silverstripe
298: [21:28:29] <ss-helper> Covalent: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
299: [21:30:06] <Covalent> I am having an issue installing SilverStripe on Bluehost. It gives me errors (cannot ALTER tables and mod_rewrite not enabled) that bluehost has confirmed are set correctly. Mod_rewrite is enabled by default, and the user has full permissions on the database. How can I fix this?
300: [21:30:12] * novaweb has joined #silverstripe
301: [21:30:47] <novaweb> o/
302: [21:32:31] <muskie9> Covalent it's an old thread, but might give some insight: https://www.silverstripe.org/community/forums/installing-silverstripe/show/14347
303: [21:34:14] <Covalent> It's basically saying I should ignore the warning or go to another host?
304: [21:35:17] <muskie9> I'd say see if you can ignore it... there have been a couple sites I've done where the client used blue host and I was able to run SilverStripe with minimal issues (other than it wasn't the best server/hosting level)
305: [21:36:10] <Covalent> Any thoughts on why it can't alter tables?
306: [21:36:29] <ss-helper> SilverStripe - Bad gateway error on admin/pages - http://stackoverflow.com/questions/33355391/silverstripe-bad-gateway-error-on-admin-pages
307: [21:36:33] <muskie9> that sounds like a db permissions issue, don't think I've ever come across that in my experience
308: [21:36:58] <Covalent> Is there a better host that you recommend?
309: [21:36:58] * antmas has joined #silverstripe
310: [21:37:25] <muskie9> we used to use DreamHost, but not use RackSpace
311: [21:37:43] <muskie9> we'll be giving the SilverStripe platform a go pretty quick too
312: [21:38:33] <novaweb> Covalent, http://www.besthosting.org/5-best-hosting-for-silverstripe/
313: [21:38:52] <novaweb> or if you're a bit of a nerd you can set up a droplet on Digital Ocean...
314: [21:39:10] <Firesphere> A DO-droplet plus ServerPilot works pretty much out of the box.
315: [21:39:22] <Firesphere> Plus, SSH, git etc. is installed for you, and firewall etc. is setup.
316: [21:39:23] <muskie9> ya, DO is solid too
317: [21:39:37] <Firesphere> You don't even have to be such a geek to do use ServerPilot
318: [21:40:09] <antmas> morning all o/
319: [21:40:20] <ss-helper> Re: SilverStripe 4.0: File Deletion / Security Discussion - https://groups.google.com/d/msg/silverstripe-dev/PihYhP3ZTN8/JEafeE4tBgAJ
320: [21:40:30] <helenclarko> antmas, o/
321: [21:40:31] <novaweb> Has anyone ever come across getTitle() on DataObjects inserting ghost <br> tags in to the html ( loop DataObject This is the title <ghost br> <ghost br> This is the date end_loop )
322: [21:40:44] <novaweb> \o
323: [21:41:21] <novaweb> (title and date have been concatenated using getTitle())
324: [21:41:41] * TheVoid has joined #silverstripe
325: [21:42:30] <Firesphere> Only if it's a custom getTitle() method
326: [21:42:33] <novaweb> perhaps using Title.XML will work? let's see.
327: [21:43:56] <novaweb> yes .XML fixed it
328: [21:44:10] * wmk quit (Ping timeout: 240 seconds)
329: [21:44:30] <DanaeNZ> deadlines suck, I must just go drown in coffee
330: [21:44:42] <muskie9> DanaeNZ I hear that
331: [21:44:45] <novaweb> DanaeNZ i'm on about day 30 of madness
332: [21:44:55] <Firesphere> Hey DanaeNZ
333: [21:44:59] <DanaeNZ> i wish i had 30 days
334: [21:45:04] <DanaeNZ> yo Firesphere
335: [21:45:55] <antmas> anyone know about these anti-sulphite things you can have to stop headaches when drinking?
336: [21:46:05] <antmas> and no, not hungover today :P
337: [21:46:30] <Firesphere> Drink a bunch of water and have a standard painkiller?
338: [21:46:46] <antmas> :P
339: [21:46:58] <antmas> doesn't work with me, can't go near painkillers when drinking
340: [21:47:24] <antmas> I have an allergy to sulphites - but someone mentioned there is something you can have to neutralise it
341: [21:47:30] <antmas> but I've never heard of it!
342: [21:50:12] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
343: [21:52:34] * Colin[pi] has joined #silverstripe
344: [21:53:25] <antmas> Colin[pi]: o/
345: [21:53:30] <Colin[pi]> antmas: o/
346: [21:54:28] <adrexia> +1 for Digital Ocean
347: [21:58:09] <camfindlay> morning o/
348: [21:58:20] <camfindlay> yeah DO is great +1
349: [21:58:47] <Firesphere> I have DO, OVH and PCExtreme servers
350: [21:58:58] <camfindlay> also managed to get Bitnami to improve their stacks for SilverStripe recently so those work pretty much production ready out of the box now too
351: [21:59:57] <camfindlay> did a talk on Bitnami a while back and had a whinge about a few things haha
352: [22:00:17] <novaweb> o/
353: [22:00:30] <adrexia> yeah, they can be a release or two bvehind on some software
354: [22:01:03] <novaweb> On topic, for SS tutorials. Anyone know of a good OS X ScreenCast, points if free or open sauce
355: [22:01:18] <novaweb> *screencast software
356: [22:01:19] <adrexia> but it's not that hard to update once everything is setup, and it is sort of cool that they do the setup deploy thing for you :)
357: [22:01:32] <Firesphere> novaweb: It's build into Quicktime
358: [22:01:51] <adrexia> I didn't really see the point...then I found software I wasn't used to. :D
359: [22:01:57] <Firesphere> That's how I made this one: https://www.youtube.com/watch?v=ZP6ECT9Sev4
360: [22:02:06] <camfindlay> +1 QT
361: [22:02:29] <Firesphere> QT works, only it's slightly annoying with the typing-recording-volume
362: [22:03:00] <Firesphere> QT is just, setup mic and go
363: [22:04:58] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
364: [22:06:30] * Covalent quit (Ping timeout: 246 seconds)
365: [22:10:01] * spronk has joined #silverstripe
366: [22:10:22] <ss-helper> Re: RFC: Adding ReactJS to SilverStripe CMS - https://groups.google.com/d/msg/silverstripe-dev/WcjutNP-raQ/95udSfsuBgAJ
367: [22:14:19] * DLJoseph has joined #silverstripe
368: [22:14:20] <ss-helper> DLJoseph: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
369: [22:21:17] <vanny> im having trouble clearing the forms->addErrorMessage after has been shown once. What is the trick
370: [22:22:15] <Firesphere> $form->clearMessage()?
371: [22:24:17] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
372: [22:24:42] <vanny> that clears it alright, but now it doesn't show it once :P
373: [22:24:54] <Colin[pi]> vanny: it's stored in the session
374: [22:25:25] <Colin[pi]> vanny: so the form handler code sets the message, then does a redirectBack() to the form page, where it's shown, but after that it should be cleared from the session automatically
375: [22:26:34] <vanny> that is where it wasnt getting cleared.
376: [22:26:57] <vanny> even if you left the page and come back it would just have the message (good or bad at the top of the form)
377: [22:28:24] <Colin[pi]> vanny: once the form renders (i.e. $Form) it's supposed to clear it's message
378: [22:28:30] <vanny> I am using a custom form layout, so I wonder if that makes a difference
379: [22:29:00] <Firesphere> The SS-template? I vaguely remember you'll have to add the $clearMessage at the end of it to work properly
380: [22:29:19] <Colin[pi]> Firesphere: Form has a forTemplate() with a ->clearMessage() in it
381: [22:29:27] <Colin[pi]> so once it renders itself, it should clear the message
382: [22:29:43] <Firesphere> With a custom template, $forTemplate is never called
383: [22:30:01] <Colin[pi]> Firesphere: yes it is
384: [22:30:09] <Colin[pi]> if you using a $template = "MyCustomForm"
385: [22:30:16] <Colin[pi]> it still gets called
386: [22:30:20] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
387: [22:32:41] <vanny> ok, more digging required :P
388: [22:33:07] <Colin[pi]> vanny: you have a custom form class?
389: [22:33:15] <Colin[pi]> class MyCustomForm extends Form ?
390: [22:33:32] <Colin[pi]> or you using setTemplate("MyTemplate") ?
391: [22:33:51] <Firesphere> Colin[pi]: If I recall correctly, if you name the Template to the same as your FormClassName, it'll render with that, and not address forTemplate
392: [22:34:12] <Firesphere> But, as I said, I vaguely remember, I'm not sure, but the problem sounds familiar to me ;)
393: [22:34:50] <Colin[pi]> Firesphere: mm maybe if it's doing some automagic stuff, idk... I can see from the source code though if you use ->setTemplate("MyTemplate") on the form instance, it *should* still clear the message in the forTemplate() method
394: [22:35:39] <Firesphere> Hmmm, I might've even had this issue on WGC project...
395: [22:37:18] * DLJoseph quit (Ping timeout: 246 seconds)
396: [22:38:22] <Firesphere> Feeling slightly too tired to get up and get my laptop
397: [22:38:30] <Colin[pi]> Firesphere: use the force
398: [22:38:40] <Firesphere> Too tired.
399: [22:41:51] * DanaeNZ quit (Remote host closed the connection)
400: [22:43:09] <Firesphere> Maybe I could get Tesla to fetch my laptop
401: [22:44:42] * DanaeNZ has joined #silverstripe
402: [22:45:43] <helenclarko> Might have salad for lunch
403: [22:46:05] <Firesphere> Lunch? Is it lunchtime??
404: [22:46:12] <DanaeNZ> you don't make friends with salad
405: [22:46:25] <Firesphere> You make friends with pizza
406: [22:46:34] <helenclarko> It was a joke... OKAY!
407: [22:46:39] <DanaeNZ> I had Sal's pizza twice this weekend
408: [22:46:46] <DanaeNZ> trying to get your salad coutn up helenclarko
409: [22:46:48] <camfindlay> DanaeNZ: not salad again…
410: [22:46:49] <DanaeNZ> count*
411: [22:47:26] <helenclarko> DanaeNZ, It'll never happen while you are online... I'll never beat you :(
412: [22:47:34] <DanaeNZ> muahahaha
413: [22:47:38] <Firesphere> Hmmm, the biggest dutch webshop, calls other company names "inappropriate language"
414: [22:47:40] <Firesphere> WHAT!?
415: [22:55:24] <ss-helper> Re: SilverStripe 4.0: File Deletion / Security Discussion - https://groups.google.com/d/msg/silverstripe-dev/PihYhP3ZTN8/j8aXXecxBgAJ
416: [22:55:24] <ss-helper> Re: SilverStripe 4.0: File Deletion / Security Discussion - https://groups.google.com/d/msg/silverstripe-dev/PihYhP3ZTN8/YysBMmExBgAJ
417: [22:56:11] * krofek quit (Read error: Connection reset by peer)
418: [22:58:57] <vanny> ok $clearMessage worked (when I remembered to save the file) - I've been looking at the screen to long
419: [22:59:00] * Liquide has joined #silverstripe
420: [23:00:51] * mahfuz has joined #silverstripe
421: [23:10:25] <ss-helper> Re: [silverstripe-dev] Re: RFC: Adding ReactJS to SilverStripe CMS - https://groups.google.com/d/msg/silverstripe-dev/WcjutNP-raQ/CXlFu0oyBgAJ
422: [23:11:08] * BrewNake_ quit ()
423: [23:12:34] * pandaux has joined #silverstripe
424: [23:12:35] <ss-helper> pandaux: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
425: [23:12:53] * BrewNaked has joined #silverstripe
426: [23:13:25] <pandaux> Does anyone know how to
427: [23:14:21] <DanaeNZ> pandaux: yes
428: [23:14:54] <antmas> DanaeNZ: how do you even?
429: [23:15:03] <Firesphere> pandaux: most probably
430: [23:15:22] <DanaeNZ> antmas: They don't think it be like it is but it do
431: [23:15:41] * antmas snaps fingers at DanaeNZ
432: [23:15:46] <antmas> mhmmmmmmmmmmm
433: [23:15:54] <DanaeNZ> oh no he di'n't
434: [23:15:59] <helenclarko> Some Jaden Smith shit right there
435: [23:16:20] <DanaeNZ> did you ever have a dream where you would you where you
436: [23:16:32] <Firesphere> vanny: cool, good thing my vague memory actually helps sometimes :D
437: [23:16:42] <pandaux> Does anyone know how to change the /assets directory to server root ... Basically we're deploying instances of the site to ~/siteName/current/ ... And assets live up a level
438: [23:16:57] <DanaeNZ> symlink?
439: [23:17:13] <pandaux> Unfortunately we're in Windows evn
440: [23:17:21] * DanaeNZ gags a little
441: [23:17:30] <Colin[pi]> pandaux: mklink /D ?
442: [23:17:37] <pandaux> We can use mklink which is equivalent however seems a bit hacky
443: [23:17:49] <DanaeNZ> pretty sure deploynaut does the thing
444: [23:17:51] <pandaux> Yes I understand I'm not a Windows fan
445: [23:18:05] <Colin[pi]> pandaux: how is it hacky? it's a windows version of a symlink ;P
446: [23:18:45] <pandaux> coz it requires Admin priviliges to excute it works but I'd rather if possible change assets dir in SS if that's possible
447: [23:18:54] <Colin[pi]> mm
448: [23:21:07] <Firesphere> Isn't there some ASSET_DIR set?
449: [23:21:51] <Firesphere> ASSETS_DIR and ASSETS_PATH
450: [23:21:59] <Firesphere> although I don't know if you can override them.
451: [23:22:45] <Firesphere> let alone, make it outside the base-folder
452: [23:25:27] <helenclarko> Sam wanted to add this back in 2.4, dunno if it ever happened: https://groups.google.com/forum/#!topic/silverstripe-dev/Z7CmioND5Ow
453: [23:27:20] <Firesphere> They are available in 3, but I don't know if they do anything.
454: [23:27:49] <Firesphere> It does make sense though, to use definitions for them.
455: [23:28:18] <helenclarko> January 2015: https://github.com/silverstripe/silverstripe-framework/issues/3792
456: [23:30:33] <helenclarko> Hopefully within 4.0
457: [23:30:45] <Firesphere> Can't you just implement it now? :P
458: [23:31:00] <helenclarko> Looks like it is currently being worked on.
459: [23:31:20] <helenclarko> Not without changing every reference to it.
460: [23:35:45] <helenclarko> pandaux, You could almost use the CDN rewrite addon to rewrite the asset links, but then uploading your files becomes a pain in the arse.
461: [23:37:59] <helenclarko> Plus the CDN rewrite module falls back on the assets file if the file doesnt exist in the new location.
462: [23:38:21] <helenclarko> *assets folder*
463: [23:43:52] <Firesphere> I think symlinking is pretty much the only way to go actually.
464: [23:44:11] <Firesphere> On a Linux machine, that would be my way to do it anyway.
465: [23:44:36] <helenclarko> Firesphere, Agreed.
466: [23:44:42] <Firesphere> I actually have it fixed on multiple systems, where there's a CDN subdomain and I symlink the public_html to the actual assets directory of the www
467: [23:45:02] <Firesphere> and a rewriter to rewrite the www.domain.com/assets to cdn.domain.com/, ofcourse.
468: [23:45:23] <Firesphere> Even better option: Get Linux-based hosting :D
469: [23:46:17] * micmania1 quit (Quit: micmania1)
470: [23:46:20] <Firesphere> Crap. I can't cancel my appartment :X
471: [23:47:59] <Firesphere> Now what. Just stop paying?
472: [23:48:11] * micmania1 has joined #silverstripe
473: [23:48:21] <Firesphere> Hey micmania1, welcome back :D
474: [23:49:05] <micmania1> Firesphere: areet
475: [23:49:57] * BrewNaked quit ()
476: [23:49:59] <Firesphere> Anyone got 6600 euro's for me?
477: [23:51:05] <Firesphere> It seems, because my ex-roommate is still on the contract, I have to buy out my contract, by 1 year. 12*550-ish euro :X
478: [23:52:16] <Firesphere> And when you think "well, call him to come over and cancel the contract together"
479: [23:52:18] * BrewNaked has joined #silverstripe
480: [23:52:36] <Firesphere> He lives in Heidelberg. At least 7 hours of travel away.
481: [23:55:44] <novaweb> When you are playing with templates and your variable is not outputting, you amend something to the template variable. My variable is $Text (like content)... been ages since I've done this. Was it $Text.Up? $Parent.Text?
482: [23:56:03] <novaweb> $Title is working fine
483: [23:56:04] <Firesphere> Up is going up one level
484: [23:56:10] <Firesphere> You call $Up.Thingy
485: [23:56:16] <Firesphere> You can't call $Thingy.Up
486: [23:56:33] <novaweb> Already at top of scope
487: [23:56:34] <novaweb> darn
488: [23:56:58] <novaweb> anything else you think I can try? I remember using something other than Up. but this was three or more years ago
489: [23:56:59] <Firesphere> In an include, the scope changes to the include
490: [23:57:03] <novaweb> not sure if still applies
491: [23:58:02] * BrewNaked quit ()
492: [23:59:00] <novaweb> got it
493: [23:59:50] * BrewNaked has joined #silverstripe

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