#silverstripe IRC Log

IRC log for 19 July 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [00:05:32] * Stomach has joined #silverstripe
4: [00:10:34] * Hailwood quit (Ping timeout: 240 seconds)
5: [00:14:53] * BrewNaked quit ()
6: [00:18:03] <spronk> bab bab
7: [00:21:40] * darjusIT quit (Read error: Connection reset by peer)
8: [00:23:03] * Hailwood has joined #silverstripe
9: [00:26:13] * Stomach quit (Quit: zzz)
10: [00:28:36] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
11: [00:30:42] * Stomach has joined #silverstripe
12: [00:36:16] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
13: [00:45:03] <ss-helper> is there any code for extracting private statics - https://groups.google.com/d/msg/silverstripe-dev/_kcqw09oLI4/1-ozfVauCQAJ
14: [00:57:23] * robbiea has joined #silverstripe
15: [00:57:48] <robbiea> Hi all - if I wanted to rename the Blog class in Silverstripe to something else, would I be best to do that with an extension or the injector?
16: [00:59:01] * mirrors has joined #silverstripe
17: [00:59:46] <DanaeNZ> robbiea: What's the reason for renaming it? You can set up config like singular_name and plural_name to have it appear differently to the CMS users'
18: [00:59:58] <robbiea> That's what I want :)
19: [01:00:00] <mirrors> hey there everyone....can anyone tell me how I can run a dev/build programmatically
20: [01:00:04] <ss-helper> how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/-Hnw7RivCQAJ
21: [01:00:12] <robbiea> It's a "business decision" to use the functionality, just call it something else DanaeNZ
22: [01:00:51] <DanaeNZ> robbiea: yep singular_name and plural_name will do it. One sec I'll give you a snippet
23: [01:01:08] <robbiea> DW - I'll work it out :) cheers
24: [01:01:59] <DanaeNZ> sweet, just chuck it in your config.yml robbiea
25: [01:02:07] <robbiea> awesome.
26: [01:02:48] <DanaeNZ> mirrors: Probably through the sake wrapper, using cron jobs and the command line I imagine. You can run 'sake dev/build'
27: [01:03:00] <robbiea> on a side note, is this required since closures in PHP are automatically bound to the class instance they're created in? https://github.com/silverstripe/silverstripe-blog/blob/master/code/model/Blog.php#L114-L116
28: [01:03:33] <DanaeNZ> wow, been a while since I've seen something like that
29: [01:03:50] * Stomach quit (Quit: zzz)
30: [01:04:05] <DanaeNZ> hmm not sure. Might be a reason they want to use $this and $self
31: [01:05:11] <mirrors> DanaeNZ: I was thinking about that, however I am using sake to run my task. In the task, I check if the server needs to be updated, if so, I sync new files from s3. All this is done in the task. So it would be good if I could run the dev/build then and there
32: [01:06:10] <DanaeNZ> mirrors: I think you should be able to do that. I haven't tried it.
33: [01:15:00] * Stomach has joined #silverstripe
34: [01:15:04] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/3yq0YBywCQAJ
35: [01:15:05] <ss-helper> Re: [silverstripe-dev] how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/rJrQzRSwCQAJ
36: [01:15:05] <ss-helper> Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/Yin7J7KvCQAJ
37: [01:16:04] <mirrors> does anyone know how I can trigger a flush=all via php?
38: [01:18:01] <DanaeNZ> mirrors: the command is "sake dev/build flush=all"
39: [01:18:12] <DanaeNZ> chuck that in an exec() I think
40: [01:25:36] <micmania1> robbiea: that’s still required in PHP 5.3 and I think maybe 5.4 too
41: [01:25:52] <robbiea> ah, right
42: [01:28:24] <micmania1> It’ll be removed here: https://github.com/silverstripe/silverstripe-blog/issues/405 :)
43: [01:29:16] <robbiea> very nice :)
44: [01:29:52] <robbiea> DanaeNZ: am I being special? I'm specifying "Blog: SINGULARNAME: My new Blog" and have tried with "singular_name" as well, still showing up as Blog in the CMS... do I have to do this with an extension?
45: [01:30:05] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/SpU32GKwCQAJ
46: [01:30:05] <ss-helper> Re: [silverstripe-dev] how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/wr8Qx12wCQAJ
47: [01:30:32] <DanaeNZ> robbiea: It's singular_name. Make sure you run a dev/build?flush after config.yml changes :)
48: [01:33:15] <robbiea> Yeah, I'm not being *that* special :)
49: [01:34:11] * Nightjar quit (Ping timeout: 240 seconds)
50: [01:34:59] <robbiea> It wouldn't have anything to do with having SS-Fluent installed would it? Perhaps the locale translations are overriding it
51: [01:38:41] <DanaeNZ> robbiea: as far as I know it doesn't have anything to do with i18n
52: [01:38:51] <DanaeNZ> where are you putting the config setting?
53: [01:39:23] <robbiea> _config/config.yml - --- Name: myconfig After: - framework/* - cms/* ---
54: [01:39:31] <micmania1> robbiea: maybe its related to translation?
55: [01:39:48] <robbiea> micmania1: may be...
56: [01:40:10] <micmania1> Try changing blog/lang/en.yaml and see if it changes
57: [01:40:14] <robbiea> I've got four en locales under fluent
58: [01:40:15] <robbiea> yeah, ok
59: [01:40:28] * UncleCheese has joined #silverstripe
60: [01:42:08] <robbiea> doesn't look like it did change it micmania1
61: [01:42:27] <robbiea> however it's under "SINGULARNAME" not "singular_name" in the translation file
62: [01:42:47] <micmania1> yeah, that’s correct for translations. Its a different reference.
63: [01:45:32] <robbiea> ok, SINGULARNAME is working from inside lang/en.yml after two cache flushes
64: [01:46:39] * Nightjar has joined #silverstripe
65: [01:47:39] <robbiea> micmania1 do I need to implement an equivalent in lang/en.yml of "mysite" ?
66: [01:48:37] <DorsaiNZ> I have over-ridden the Content output for a custom Page by putting my own Content function in the Controller for the custom page - this works fine when rendering to frontend but when I want to render the Page else where for instance dump the page as an HTML string I just get a null value for content - any ideas?
67: [01:48:47] <Nightjar> mirrors, DanaeNZ no, make a new DatabaseAdmin (controller) and run doBuild (method)
68: [01:49:04] <Nightjar> probably buffer output otherwise you'll have the screenflood I think.
69: [01:49:33] <DanaeNZ> Nightjar: ooo cheers
70: [01:49:43] * janneklouman-- has joined #silverstripe
71: [01:49:54] <Nightjar> check api for DatabaseAdmin
72: [01:50:00] <Nightjar> you'll find out.
73: [01:50:50] <Nightjar> robbiea, flush.
74: [01:51:07] <Nightjar> whenever you change yaml, flush.
75: [01:51:42] <Nightjar> DorsaiNZ, because you have a Page, not a Page_Controller
76: [01:51:55] <robbiea> Nightjar don't you worry, I just LOVE the fact that flushing takes friggin ages and is required whenever you change configuration :)
77: [01:52:12] <Nightjar> you can either get_controller_for (can't remember which class that's on sorry, check api the search should find it)
78: [01:52:18] * Stomach quit (Quit: zzz)
79: [01:52:23] <robbiea> Is it possible to flush the YAML manifest without the class manifest?
80: [01:52:31] <Nightjar> or, move the getContent() function from the controller to the model
81: [01:52:38] <Nightjar> robbiea, no.
82: [01:52:43] <robbiea> cool
83: [01:52:45] <Nightjar> they're interdependent
84: [01:53:02] * micmania1 quit (Quit: micmania1)
85: [01:53:03] * Stomach has joined #silverstripe
86: [01:53:25] <DorsaiNZ> Nightjar, shoudl I duplicate the function so it is till overiding the Content for output to the frontend?
87: [01:54:14] <Nightjar> no.
88: [01:54:15] <Nightjar> just move it.
89: [01:54:28] * micmania1 has joined #silverstripe
90: [01:54:37] * janneklouman-- quit (Ping timeout: 252 seconds)
91: [01:54:50] <Nightjar> ensure it's called getContent though, or it won't work.
92: [01:55:11] <Nightjar> also ensure if you want to get the actual content, you use dbField('Content') or the like.
93: [01:55:36] <robbiea> micmania1 Nightjar - turns out, I had to add "en: Blog: SINGULARNAME: My new Blog" to mysite/lang/en.yml, not _config/*.yml using "singular_name" - working now anyway, thanks for your help :)
94: [01:55:39] <Nightjar> otherwise you'll end up in an infinite loop
95: [01:55:40] <DorsaiNZ> is there i best practice guideline as to when you should put things in the model versus the controller?
96: [01:56:35] <Nightjar> robbiea, I think you'd skip the 'en' if putting it in the _config/thing.yml
97: [01:56:42] <Nightjar> DorsaiNZ, not really.
98: [01:56:50] <Nightjar> well, despite decent SoC
99: [01:57:05] <Nightjar> err, "Not other than decent SoC"
100: [01:57:31] <robbiea> Nightjar apparently not. Maybe it's because I've got a couple of custom modules installed, but nothing I tried in _config was working
101: [01:57:34] <Nightjar> if it relates the the data, then it should be on the model. If it relates to access, page specific things, etc, then controller. Generally.
102: [01:58:22] <Nightjar> DorsaiNZ, it gets a little confusing because of the coupling between page controller and page. A page controller looks for local methods/properties, then falls back to checking the model, which itself falls back to checking for db records.
103: [01:58:40] <DorsaiNZ> Nightjar, cheers that is a help
104: [01:59:25] <Nightjar> The second two is standard for DataObjects (which Page is), but the controller -> associated model fallback is specific to page controller.
105: [01:59:59] <Nightjar> look up magic methods in api docs if you wish to know more (ie. __get)
106: [02:00:05] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/Xq6PLUyyCQAJ
107: [02:05:11] * janneklouman-- has joined #silverstripe
108: [02:06:58] <DorsaiNZ> so $myPage->Content should become something like $myPage->dbField('Content')
109: [02:10:24] * janneklouman-- quit (Ping timeout: 272 seconds)
110: [02:12:08] <robbiea> thanks for your help all!
111: [02:12:10] * robbiea quit ()
112: [02:12:22] <Nightjar> DorsaiNZ, yep.
113: [02:12:56] <Nightjar> DorsaiNZ, you could make another function eg rawContent to return that, in case you need it somewhere.
114: [02:13:53] <Nightjar> up to you, depends heavily on your usecase
115: [02:20:52] * janneklouman-- has joined #silverstripe
116: [02:24:51] * janneklouman-- quit (Ping timeout: 240 seconds)
117: [02:32:16] <DorsaiNZ> Nightjar, I am trying to generate output to put into a PDF generator - but it is being run on the Admin side during another process to produce PDF files stored in the assets folder
118: [02:51:28] * janneklouman-- has joined #silverstripe
119: [02:55:51] * janneklouman-- quit (Ping timeout: 240 seconds)
120: [03:05:15] * Stomach quit (Quit: zzz)
121: [03:17:26] * Stomach has joined #silverstripe
122: [03:22:22] * janneklouman-- has joined #silverstripe
123: [03:24:53] * spronk quit (Quit: I may need a longer sleep timer...)
124: [03:27:12] * janneklouman-- quit (Ping timeout: 258 seconds)
125: [03:29:31] * Nightjar quit (Ping timeout: 240 seconds)
126: [03:30:07] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/Zcm6PI-3CQAJ
127: [03:30:07] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/jLPT81W3CQAJ
128: [03:45:04] * Hailwood quit (Ping timeout: 240 seconds)
129: [03:45:07] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/_c-MW8C3CQAJ
130: [03:45:08] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/eMyVJp23CQAJ
131: [03:45:08] <ss-helper> Re: [silverstripe-dev] Re: how to make two websites talk to each other? - https://groups.google.com/d/msg/silverstripe-dev/HjsG8nM72uc/JfJ7aJG3CQAJ
132: [03:45:18] * micmania1 quit (Quit: micmania1)
133: [03:58:55] * micmania1 has joined #silverstripe
134: [04:01:55] * Hailwood has joined #silverstripe
135: [04:08:42] * janneklouman-- has joined #silverstripe
136: [04:11:56] * Nightjar has joined #silverstripe
137: [04:13:54] * janneklouman-- quit (Ping timeout: 272 seconds)
138: [04:15:08] <ss-helper> Re: [silverstripe-dev] Re: Responsive CMS interactive mockup - https://groups.google.com/d/msg/silverstripe-dev/R56n9BJuKc8/G9miNwm6CQAJ
139: [04:18:00] <Nightjar> DorsaiNZ, probably... not the best idea.
140: [04:18:58] <Nightjar> Oh wait, read that wrong, never mind.
141: [04:24:25] * janneklouman-- has joined #silverstripe
142: [04:25:43] * Selay has joined #silverstripe
143: [04:26:10] <Selay> Hi guys, how can I overwirte the silverstripe function which converts page title to page url (segment)?
144: [04:26:16] <Selay> I want to have a custom page segment
145: [04:26:29] <Selay> not the defaul one which replaces space with dash etc
146: [04:28:31] * janneklouman-- quit (Ping timeout: 240 seconds)
147: [04:29:36] <DanaeNZ> Selay: looks like you can customise it somewhat by overwriting or extending the $default_replacements config on the URLSegmentFilter class
148: [04:32:02] <Selay> but isnt it done with javascript?
149: [04:33:57] <Selay> You mean like this? http://www.sspaste.com/paste/show/5530cc8606cf3
150: [04:35:48] <DanaeNZ> Selay: I would just use config.yml
151: [04:36:04] <DanaeNZ> but probably that code will work
152: [04:36:16] <DanaeNZ> just update it to be what you want for the replacements
153: [04:36:31] <DanaeNZ> If you want something more complicated then you might need to do it another wy
154: [04:36:33] <DanaeNZ> way*
155: [04:38:04] * DorsaiNZ quit (Ping timeout: 250 seconds)
156: [04:40:33] <Selay> thanks
157: [04:41:58] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
158: [04:43:01] * micmania1 quit (Quit: micmania1)
159: [04:50:31] * Nightjar quit (Ping timeout: 240 seconds)
160: [04:55:02] * janneklouman-- has joined #silverstripe
161: [04:58:53] * Nightjar has joined #silverstripe
162: [05:00:03] * janneklouman-- quit (Ping timeout: 276 seconds)
163: [05:09:33] * Stomach_ has joined #silverstripe
164: [05:09:40] * Stomach_ quit (Read error: Connection reset by peer)
165: [05:09:52] * Stomach quit (Ping timeout: 252 seconds)
166: [05:21:48] * willr quit (Quit: willr)
167: [05:25:54] * janneklouman-- has joined #silverstripe
168: [05:30:38] * janneklouman-- quit (Ping timeout: 258 seconds)
169: [05:34:13] * spronk has joined #silverstripe
170: [05:37:00] * Selay quit (Ping timeout: 250 seconds)
171: [05:38:56] <mirrors> Nightjar: thanks so much for showing me DatabaseAdmin and doBuild...luckily enough I can pass true as the first parameter to stop the screen outpput
172: [05:39:14] <mirrors> Nightjar: do you have any idea how I can trigger a flush in a similar way?
173: [05:57:03] * janneklouman-- has joined #silverstripe
174: [06:01:48] * janneklouman-- quit (Ping timeout: 276 seconds)
175: [06:27:40] * janneklouman-- has joined #silverstripe
176: [06:28:02] * UncleCheese has joined #silverstripe
177: [06:32:11] * janneklouman-- quit (Ping timeout: 240 seconds)
178: [06:40:11] * Nightjar quit (Ping timeout: 240 seconds)
179: [06:51:33] * DanaeNZ quit (Quit: TIME TO FEED)
180: [06:57:24] * mirrors quit (Quit: Page closed)
181: [06:58:34] * janneklouman-- has joined #silverstripe
182: [07:02:51] * janneklouman-- quit (Ping timeout: 240 seconds)
183: [07:12:20] * guci0 quit (Ping timeout: 250 seconds)
184: [07:25:58] * Stomach has joined #silverstripe
185: [07:28:25] * Stomach quit (Client Quit)
186: [07:29:21] * darianno|aw is now known as darianno
187: [07:29:28] * janneklouman-- has joined #silverstripe
188: [07:34:40] * janneklouman-- quit (Ping timeout: 264 seconds)
189: [07:42:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
190: [07:59:16] * swaiba has joined #silverstripe
191: [08:04:00] * kinglozzer has joined #silverstripe
192: [08:08:44] * slievr has joined #silverstripe
193: [08:14:07] * guci0 has joined #silverstripe
194: [08:15:00] * janneklouman-- has joined #silverstripe
195: [08:17:40] * UndefinedOffset has joined #silverstripe
196: [08:24:14] * Nacho___ has joined #silverstripe
197: [08:24:15] <ss-helper> Nacho___: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
198: [08:27:37] <Nacho___> Hello everybody! We are having a weird problem - someone is creating and modifying pages, when we look at the history it gives "unknown" as the author. How is that possible, and how can we prevent this from happening again? We are using silverstripe 3.1.6
199: [08:27:50] * agent44 has joined #silverstripe
200: [08:29:19] * agent44 quit (Client Quit)
201: [08:31:06] * agent44 has joined #silverstripe
202: [08:37:11] * Hailwood_Ghost has joined #silverstripe
203: [08:37:19] * Hailwood quit (Disconnected by services)
204: [08:37:23] * Hailwood_Ghost is now known as hailwood
205: [08:37:47] * Hailwood_Ghost has joined #silverstripe
206: [08:39:32] <hailwood> Hey folks, Is there any way to load an include from a specific subdirectory?
207: [08:39:40] <hailwood> E.g. Includes/Homepage/Slider.ss
208: [08:39:49] <hailwood> and Includes/Inner/Carousel.ss
209: [08:39:54] <hailwood> Er
210: [08:39:59] <hailwood> Includes/Inner/Slider.ss
211: [08:41:16] <janneklouman--> As in you have two files named Slider.ss in different directories and want to include a specific one?
212: [08:43:25] <janneklouman--> In that case not that I know of, but could you perhaps suffix one (or both) of them: Includes/Inner/Slider_Inner.ss and then do <% include Slider_Inner %> in your template hailwood
213: [08:45:05] <hailwood> janneklouman--, Yeah, that's what I normally do (I actually do Homepage_Slider.ss and Inner_Slider.ss) but I'm just not keen on it
214: [08:54:38] <swaiba> Nacho___ my guess is that you might have deleted the user that did it
215: [08:55:14] <swaiba> hailwood you have to submit to the order silverstipe documents
216: [08:55:56] <hailwood> swaiba, Sorry?
217: [08:56:05] <Nacho___> swaiba that's a start, thanks!
218: [08:56:36] <swaiba> hailwood in silverstripe documentation it tells you the order of folders it looks at... you have to follow that
219: [08:57:03] <swaiba> if you are just wanting to use a template file in your own custom renderwith then you could read the file as a string and use...
220: [08:57:24] <swaiba> SSViewer::fromString(' my string ' );
221: [08:57:39] <swaiba> but that will not work for "internal" choices silverstirpe makes
222: [08:58:38] * UndefinedOffset quit (Quit: Leaving.)
223: [09:24:30] * Nacho___ quit (Ping timeout: 250 seconds)
224: [09:36:18] * Nightjar has joined #silverstripe
225: [09:40:31] * Nightjar quit (Ping timeout: 240 seconds)
226: [10:02:21] * wmk has joined #silverstripe
227: [10:19:03] * wmk quit (Ping timeout: 240 seconds)
228: [11:04:49] * Firesphere quit (Quit: Bye now)
229: [11:10:23] <hailwood> How the heck are you supposed to make a website work when the places primary colours are #970021 (basically maroon) and #337619 (basically dark green) they're fucking hideous colors
230: [11:13:01] * Firesphere has joined #silverstripe
231: [11:15:15] <ss-helper> Re: is there any code for extracting private statics - https://groups.google.com/d/msg/silverstripe-dev/_kcqw09oLI4/F16So8LQCQAJ
232: [11:19:53] <swaiba> hailwood I dont know... are you raging against ss default design? or a designer you are working with?
233: [11:22:25] <hailwood> swaiba, No no, I'm raging about being a primarily backend dev, but doing a community job for a school - however the logo is er... this http://i.imgur.com/YmmKqDJ.jpg
234: [11:23:10] <hailwood> Im completely blanking on how to design around it because they're such sharp colours, but they don't work well
235: [12:00:09] * muskie9 has joined #silverstripe
236: [12:01:04] * darianno quit (Ping timeout: 264 seconds)
237: [12:01:18] * darianno has joined #silverstripe
238: [12:13:30] * slievr quit (Quit: Leaving.)
239: [12:17:11] * slievr has joined #silverstripe
240: [12:23:56] * UndefinedOffset has joined #silverstripe
241: [12:40:11] * wmk has joined #silverstripe
242: [12:43:58] * Zauberfisch quit (Read error: Connection reset by peer)
243: [12:45:11] * Zauberfisch has joined #silverstripe
244: [12:58:57] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
245: [12:59:29] * muskie9 has joined #silverstripe
246: [13:00:15] <ss-helper> SilverStripe automatic URL update - http://stackoverflow.com/questions/38459162/silverstripe-automatic-url-update
247: [13:15:08] <darianno> which version of translatable module is compatible with ss 3.x ? I want to install module with composer, but I cannot find any info how to do it on ss 3.x ?
248: [13:16:18] <muskie9> darianno 2.2.0 is compatible with 3.2.x https://github.com/silverstripe/silverstripe-translatable/blob/2.2.0/composer.json#L23-#L24
249: [13:16:30] <darianno> muskie9 thanks
250: [13:21:17] * darianno is now known as darianno|aw
251: [13:21:20] * darianno|aw is now known as darianno
252: [13:25:28] * wmk quit (Read error: Connection reset by peer)
253: [13:25:30] * darianno is now known as darianno|aw
254: [13:30:16] <ss-helper> What would be the simplest way to automatically have the URL segment updated? - http://stackoverflow.com/questions/38459162/what-would-be-the-simplest-way-to-automatically-have-the-url-segment-updated
255: [13:30:37] * darianno|aw is now known as darianno
256: [13:35:31] * shellbac1pacific quit (Read error: Connection reset by peer)
257: [14:24:23] <janneklouman--> My IDE and also Scrutinizer is telling me that the assert** functions do not exist on my tests. Looks like it's looking for them in the empty class defined in framework/dev/phpunit/PhpUnitWrapper.php. I realize this is not really a big issue, but is there a way to get them to pick up the actual class?
258: [14:24:50] <janneklouman--> Using PhpStorm
259: [14:28:28] * AlphaCactus quit (Remote host closed the connection)
260: [14:31:26] * WebDevB has joined #silverstripe
261: [14:31:38] <WebDevB> Hey, is anyone around?
262: [14:31:58] <janneklouman--> What's up?
263: [14:32:16] * AlphaCactus has joined #silverstripe
264: [14:33:27] <swaiba> hello
265: [14:34:31] <AlphaCactus> o/
266: [14:38:56] <WebDevB> Silverstripe pagination...
267: [14:39:13] <WebDevB> I can't get it to bring back the number of results... I've tried TotalItems but it doesn't bring back anything.
268: [14:45:53] * janneklouman-- quit (Ping timeout: 244 seconds)
269: [14:48:12] <WebDevB> TotalItems just brings back 1...
270: [14:52:08] <swaiba> WebDevB surely you call that on an un paginated list first?
271: [14:52:25] <swaiba> janneklouman-- no idea, don't use that
272: [15:17:18] * AlphaCactus quit (Read error: Network is unreachable)
273: [15:17:50] * AlphaCactus has joined #silverstripe
274: [15:27:27] <swaiba> nice oauth module kinglozzer :)
275: [15:29:49] <kinglozzer> ty swaiba, very much work in progress ;)
276: [15:30:21] <swaiba> I'll be watching it, based ours on OPAuth when has since fallen into non-support / depreciated
277: [15:31:25] * DimiStripe quit (Quit: DimiStripe)
278: [15:33:04] <kinglozzer> Yeah that was why I started it, BetterBrief's module used OPAuth too
279: [15:41:14] * darjusIT has joined #silverstripe
280: [15:41:47] * DimiStripe has joined #silverstripe
281: [15:48:54] * darianno is now known as darianno|aw
282: [15:56:26] * Zauberfisch quit (Ping timeout: 250 seconds)
283: [15:59:58] * Zauberfisch has joined #silverstripe
284: [16:10:18] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
285: [16:18:10] * muskie9 has joined #silverstripe
286: [16:27:56] * kinglozzer quit ()
287: [16:29:59] * WebDevB quit (Remote host closed the connection)
288: [16:34:55] * slievr quit (Quit: Leaving.)
289: [16:59:41] * agent44 quit (Quit: zzz)
290: [17:37:21] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
291: [17:38:41] * muskie9 has joined #silverstripe
292: [17:52:30] * gelignite has joined #silverstripe
293: [18:08:08] * agent44 has joined #silverstripe
294: [18:11:07] * agent44 quit (Client Quit)
295: [18:25:48] <muskie9> if I have obj1 many many obj2 with an extra field of Seed, how can I get the Seed field from obj2
296: [19:01:40] * Azure quit (Ping timeout: 264 seconds)
297: [19:33:37] * lietzmk quit (Remote host closed the connection)
298: [19:58:16] * hix has joined #silverstripe
299: [19:58:17] <ss-helper> hix: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
300: [19:58:51] * hix has left #silverstripe
301: [20:06:42] * UncleCheese has joined #silverstripe
302: [20:28:58] * Nightjar has joined #silverstripe
303: [20:35:53] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
304: [20:37:18] * AlphaCactus quit (Read error: Network is unreachable)
305: [20:37:24] * TRB143 has joined #silverstripe
306: [20:37:25] * TRB143 quit (Remote host closed the connection)
307: [20:37:46] * AlphaCactus has joined #silverstripe
308: [20:38:33] * TRB143 has joined #silverstripe
309: [20:41:53] * shellbackpacific has joined #silverstripe
310: [20:46:49] <shellbackpacific> hey all. having an issue where, when creating a new page in the cms (type Page) the right pane is empty. also, when clicking tabs on left nothing appears. If i refresh the page content appears as expected. Anyone ever run into this?
311: [20:47:21] <muskie9> shellbackpacific are you in dev mode?
312: [20:49:18] * AlphaCactus quit (Read error: Network is unreachable)
313: [20:49:46] <shellbackpacific> muskie9: yes
314: [20:49:47] * AlphaCactus has joined #silverstripe
315: [20:49:53] <shellbackpacific> tried w/o dev mode also
316: [20:50:02] <shellbackpacific> no errors in the logs
317: [20:50:19] <shellbackpacific> no errors in the javascript console (Chrome)
318: [20:50:27] <muskie9> that seems odd... I get that sometimes if I have a relation reflection missing
319: [20:50:56] <shellbackpacific> hmm...what do you mean by "relation reflection missing
320: [20:51:01] <shellbackpacific> err
321: [20:51:14] <shellbackpacific> what do you mean by "relation reflection" exactly?
322: [20:52:05] <muskie9> $has_one = array('foo' => 'foo'); then $has_many = array('bars' => 'bar'); where the foo or bar array stuff is missing either is missing
323: [20:52:39] <shellbackpacific> interesting. i'll checkout that out thanks for the tip
324: [20:53:06] <shellbackpacific> makes sense of course and someone pretty junior was on this project so very possible
325: [20:55:47] <muskie9> that'll happen
326: [20:56:12] <muskie9> some relations you can skip part of the reflection depending... but then the relation is only traversable from one end
327: [20:56:43] <shellbackpacific> it's odd because refreshing the page works..
328: [20:57:05] <shellbackpacific> almost as if the headers being submitted ("Pjax", etc.) may be causing a problem
329: [20:57:08] <muskie9> you're using an _ss_environment.php file?
330: [20:57:14] <shellbackpacific> i'm not
331: [20:57:37] <muskie9> gotcha, can't remember how to get more debugging stuff working with _config.php only
332: [20:58:12] <muskie9> in my env file on local I usually do dev mode and the following:
333: [20:58:13] <muskie9> error_reporting(E_ERROR | E_WARNING | E_PARSE ^ E_STRICT);
334: [20:58:19] <muskie9> ini_set("display_errors", 'on');
335: [20:58:29] <muskie9> define('SS_ERROR_LOG', 'silverstripe.log');
336: [20:59:32] <shellbackpacific> i'll trying configuring to get more errors. I'm using:
337: [20:59:34] <shellbackpacific> SS_Log::add_writer(new SS_LogFileWriter('../logs/ss.errors.log'), SS_Log::ERR, '<=');
338: [20:59:43] <shellbackpacific> in _config.php. works normally
339: [20:59:49] <muskie9> gotcha
340: [20:59:51] <shellbackpacific> i do the same for warnings
341: [21:00:01] <muskie9> odd that there are no errors at all
342: [21:00:12] <shellbackpacific> right
343: [21:00:19] <shellbackpacific> the worst kind of bugs
344: [21:00:38] <shellbackpacific> hey thanks for the tips muskie9
345: [21:01:59] <muskie9> sure
346: [21:06:31] * Nightjar quit (Ping timeout: 240 seconds)
347: [21:10:02] * Nightjar has joined #silverstripe
348: [21:17:34] * UndefinedOffset quit (Quit: Leaving.)
349: [21:30:26] <ss-helper> Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/qmAuyYfyCQAJ
350: [21:30:27] <ss-helper> Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/A457WwfyCQAJ
351: [21:41:12] * micmania1 has joined #silverstripe
352: [21:45:27] <ss-helper> Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/PwTSDYzyCQAJ
353: [21:46:23] * adrexia has joined #silverstripe
354: [21:48:21] * vanny has joined #silverstripe
355: [21:49:43] <vanny> hi all
356: [21:51:26] <vanny> crazy little error, i haven't had before. Feel like I am missing something, but I have a basic login form, and when I submit it i get There seems to have been a technical problem. Please click the back button, refresh your browser, and try again.
357: [21:57:19] <Nightjar> vanny, taking too long to log in.
358: [21:57:37] <vanny> i just found it, I was dropping the seceurityID
359: [21:57:41] <Nightjar> or you've got something funky happening with your session storage.
360: [21:57:45] <Nightjar> because... yes ^^
361: [21:57:50] <vanny> I feel like a dope
362: [21:57:52] <vanny> hahahahaha
363: [21:58:18] <Nightjar> xss protection crsf or whatever that acronym is.
364: [21:59:01] <vanny> yeah all good.
365: [21:59:17] <vanny> I'd been looking at the code for like an hour, going why!!!!
366: [21:59:28] <vanny> then realised I had deleted a line :P
367: [21:59:46] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
368: [22:07:31] * DanaeNZ has joined #silverstripe
369: [22:11:45] * Azure has joined #silverstripe
370: [22:11:48] <Nightjar> vanny, could have been worse, could have realised you were staring at the wrong codebase.
371: [22:12:00] <vanny> hehehehe
372: [22:12:15] <vanny> I trying to write it in ASP not PHP
373: [22:15:27] <ss-helper> Re: [silverstripe-dev] Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/KtjSVJr0CQAJ
374: [22:15:28] <ss-helper> Re: [silverstripe-dev] Re: is there any code for extracting private statics - https://groups.google.com/d/msg/silverstripe-dev/_kcqw09oLI4/Cbr8MTf0CQAJ
375: [22:17:17] * Exor has joined #silverstripe
376: [22:17:52] <Exor> Hi all, does anyone know how to add custom properties to objects? I've tried this but it doesn't work as I'd expect it to: http://www.sspaste.com/paste/show/578ea6c974e7d
377: [22:17:59] <Exor> *DataObjects
378: [22:20:57] <DanaeNZ> Exor: you'll need to ensure that DescriptionPlainText exists as a database field in the $db static, and you'll also want to go $event->write() in the loop for each object
379: [22:21:08] <DanaeNZ> won't need to reference with & either
380: [22:25:07] <Exor> Is there no way around that? It seems like a bit of unnecessary duplication to store the same field in both HTMLText and regular Text.
381: [22:32:33] * Nightjar quit (Read error: Connection reset by peer)
382: [22:32:55] <DanaeNZ> Exor: what are you trying to do?
383: [22:34:22] <DanaeNZ> Oh, maybe you need to add "Description" to the setQueriedColumns
384: [22:34:53] <Exor> Nightjar: Referring to my linked code, I'm trying to output data from an AJAX call. I have an HTMLText field which I want to strip HTML from and then use in client-side code.
385: [22:36:03] <Exor> DanaeNZ: Whoops - please ignore the setQueriedColumns. It does nothing. I thought it would limit the data returned from the query (i.e. add a SELECT statement) but it does not.
386: [22:36:24] <Exor> Actually... does anyone know how to do that also? I feel so incompetent sometimes. :-P
387: [22:38:01] <DanaeNZ> Exor: I wonder if dot notation would work in this context for you: http://www.sspaste.com/paste/show/578eabb22cf5b
388: [22:38:16] <DanaeNZ> No idea if it would work, but SilverStripe surprises me sometimes
389: [22:41:00] * Nightjar has joined #silverstripe
390: [22:41:23] <Exor> DanaeNZ: Description.Summary returns null in your code but thanks for the suggestion anyway.
391: [22:42:44] <Nightjar> dot?
392: [22:43:23] <Nightjar> quick recap on where you're at Exor? I got dropped :<
393: [22:45:28] <ss-helper> Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/ogh-eWT2CQAJ
394: [22:46:12] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
395: [22:52:40] * vanny quit (Quit: Page closed)
396: [23:15:28] <ss-helper> Re: [silverstripe-dev] Re: Looking for feedback on SiteConfig assigned themes - https://groups.google.com/d/msg/silverstripe-dev/feLc_tJksFo/T8fct6D3CQAJ
397: [23:16:53] <Exor> Nightjar: As I posted earlier: Referring to my linked code, I'm trying to output data from an AJAX call. I have an HTMLText field which I want to strip HTML from and then use in client-side code.
398: [23:17:20] <Nightjar> FieldName.NoHTML
399: [23:17:59] <Nightjar> or something like that. api.silverstripe.org/3.3/class-HTMLTextField.html
400: [23:18:24] <Nightjar> err shit
401: [23:18:27] <Nightjar> or something like that. api.silverstripe.org/3.3/class-HTMLText.html
402: [23:18:59] <Nightjar> yeh, NoHTML (cf. StringField)
403: [23:19:58] <Nightjar> Exor, ^
404: [23:21:47] * Stomach has joined #silverstripe
405: [23:25:50] <Exor> Nightjar: The problem I'm having is persisting the result of NoHTML() in the object before I convert it to an array and JSON encode it.
406: [23:28:25] <Exor> Nightjar: As a less-than-ideal solution I've converted the DataList of objects to an array and then added a 'DescriptionPlainText' property with PHP's strip_tags to each item in the list. A bit wasteful as SS already has NoHTML() which you've pointed out.
407: [23:28:37] * UncleCheese has joined #silverstripe
408: [23:29:21] * UncleCheese quit (Client Quit)
409: [23:29:30] <Nightjar> Exor, convert it to an array then alter that value?
410: [23:30:24] <Exor> Nightjar: Yeah, that's what I've done. Not ideal in my opinion but appears to be the only solution I guess.
411: [23:30:47] <Nightjar> customise all the objects first, then convert to an array?
412: [23:33:43] <Exor> Nightjar: Ah, using the customise method? I didn't see that. Maybe that will work...
413: [23:55:17] * Stomach quit (Quit: zzz)

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