#silverstripe IRC Log

IRC log for 22 April 2015

All timestamps are in UTC.

1: [00:02:05] * Helenclarko has joined #silverstripe
2: [00:04:03] <Helenclarko> Hi All, Can anyone help me work out why using private static $singular_name = 'Container Field'; and private static $plural_name = 'Container Field'; has not changed the name in the dropdown box for UserForms? Is there somewhere else I need to set the name?
3: [00:17:02] <Stomach> Helenclarko - they probably use the translated versions
4: [00:17:10] <Stomach> set it in a lang file in mysite
5: [00:18:15] <Helenclarko> Ah, you are right, I found it in the lang folder.
6: [00:18:21] <Helenclarko> Legend!
7: [00:21:08] * oddnoc quit (Quit: oddnoc)
8: [00:22:18] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
9: [00:22:27] * r_hector has joined #silverstripe
10: [00:24:24] <Colin[pi]> ugh I think my phone is dying
11: [00:24:28] <Colin[pi]> weaksauce
12: [00:25:07] <Stomach> Helenclarko no problem :)
13: [00:25:15] * micmania1 quit (Quit: micmania1)
14: [00:29:44] * Selay has joined #silverstripe
15: [00:29:53] <spronk2> dying, Colin[pi] ?
16: [00:29:54] <spronk2> howso
17: [00:31:13] <Colin[pi]> spronk2: power button works about 50% of the time, and I'm getting "Invalid SIM" messages with increasing frequency :(
18: [00:31:17] <Colin[pi]> three times yesty
19: [00:31:43] <Selay> Hi guys, How can two data lists returned from db query? Say $a=MyDataobject::get()->filter(stuff); $b=MyDataobject::get()->filter(stuff); I want to make $c=merge($a,$b);
20: [00:31:47] <spronk2> :<
21: [00:32:03] <Selay> * question is about merging
22: [00:34:13] <spronk2> yikes
23: [00:42:32] * Ryan-Toast quit (Quit: Ryan-Toast)
24: [00:46:53] <Stomach> Selay - $a->merge($b) ?
25: [00:47:09] <Stomach> but why don't you just change the filters?
26: [00:47:40] * micmania1 has joined #silverstripe
27: [00:49:40] <Selay> @Stomach, I tried merge but it produces an error. I think because lazy loading in ss 3, means the lists don't have data. the reason why I dont change filter's is that the result I want to get can only be achieved with union but union is not supported
28: [00:50:03] <Selay> the filters and sort are completely different, and the queries need to be seperate
29: [00:50:13] <Stomach> ah okay
30: [00:52:22] <Selay> I found a way it works but it is a bit expensive. the ugly solution is MyDataObject::get()->where(id in select ids from the union of two queries)->sort
31: [00:52:37] <Selay> that means you run query twice
32: [00:52:57] <Selay> one actually selects and the other selects again to convert to data list
33: [00:56:29] * Ryan-Toast has joined #silverstripe
34: [00:59:07] <veb> WUT
35: [00:59:12] * veb has left #silverstripe
36: [00:59:15] * veb has joined #silverstripe
37: [00:59:18] <veb> http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objectid=11436677
38: [00:59:25] <veb> creepy john key creepy
39: [01:01:13] * spronk2 quit (Quit: I may need a longer sleep timer...)
40: [01:03:57] <Colin[pi]> stay classy JK
41: [01:04:53] * phillprice has joined #silverstripe
42: [01:09:08] * phillprice quit (Ping timeout: 244 seconds)
43: [01:12:52] <vanny> I didnt see you sneak in Colin[pi]
44: [01:14:46] * Colin[pi] makes shifty eyes
45: [01:16:29] <vanny> Shifty indeed
46: [01:17:05] <vanny> If I declare enum field in the Data Object can I reference in on a form like this, DropdownField::create('Attendance', 'Attendance',"Enum(' ,Slow,Steady,Busy','')"),
47: [01:17:14] <vanny> I ask becuase its not working
48: [01:19:33] * spronk2 has joined #silverstripe
49: [01:19:56] <Colin[pi]> vanny: use $this->dbObject('Attendance')->enumValues() for the 3rd param
50: [01:20:51] <vanny> Do I have to call the parent table?
51: [01:21:08] <Colin[pi]> parent table?
52: [01:21:16] <Colin[pi]> is the enum field coming from $this ?
53: [01:22:47] <vanny> Its a form
54: [01:23:05] <vanny> that is going to load values, I set in the dataobject
55: [01:23:08] <Colin[pi]> oh I see what you mean, a form in a controller?
56: [01:23:16] <vanny> yeah
57: [01:23:26] <Colin[pi]> so use this:
58: [01:23:39] <Colin[pi]> singleton('ClassName')->dbObject('Attendance')->enumValues()
59: [01:24:43] <vanny> thats it
60: [01:24:53] <vanny> thanks mate
61: [01:27:59] <Ryan-Toast> does someone have a generic phpunit test for a PAgeType just a publish with title, and content kind of biz?
62: [01:28:38] * zippy has joined #silverstripe
63: [01:29:32] <Colin[pi]> Ryan-Toast: prolly has that in the core, I reckon?
64: [01:29:37] <Colin[pi]> vanny: np
65: [01:30:50] <Ryan-Toast> Colin[pi]: Not one that I can see
66: [01:31:42] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
67: [01:31:47] <vanny> On a form, can I merge multiple tables/objects
68: [01:32:49] <Ryan-Toast> vanny: yeah.
69: [01:33:16] <vanny> and the ORM is smart enough to link them all back?
70: [01:34:22] <Colin[pi]> vanny: $form->saveInto($object) is pretty smart, but sometimes you'll need to link up IDs
71: [01:34:31] <Colin[pi]> i.e. $object->RelationID = $something
72: [01:35:02] <vanny> ok, time to find a working example to read over
73: [01:47:54] * novaweb quit (Quit: novaweb)
74: [01:49:45] * Hailwood quit (Quit: Leaving)
75: [01:52:25] <Vedran__> any ss website admins in here?
76: [01:53:21] <Vedran__> (there is a broken link on the /learn section). http://www.silverstripe.org/learn/lessons/adding-dynamic-content the 'Next Lesson' button returns 404. Right arrow works on the other hand.
77: [01:54:43] * novaweb has joined #silverstripe
78: [01:56:10] * novaweb quit (Client Quit)
79: [01:56:10] <Stomach> ss23 ^
80: [01:58:18] <ss23> um
81: [01:58:18] <ss23> :O
82: [01:58:20] <ss23> I'll pass that on
83: [01:58:27] * Ryan-Toast quit (Quit: Ryan-Toast)
84: [01:59:39] <ss23> passed on, thanks Vedran__ :)
85: [02:00:34] <Vedran__> not a worry
86: [02:04:42] * veb quit (Quit: veb-irc: quit)
87: [02:07:20] * UncleCheese has joined #silverstripe
88: [02:07:46] <Stomach> good work ss23
89: [02:07:50] <Stomach> +1 bonus point
90: [02:09:00] <ss23> :D
91: [02:09:01] <ss23> YAY
92: [02:09:03] * ss23 is now known as ss24
93: [02:09:04] <ss24> ^.^
94: [02:11:14] <Stomach> holy shit
95: [02:11:45] * wracu_ quit (Quit: Leaving)
96: [02:13:18] * micmania1 quit (Quit: micmania1)
97: [02:14:27] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
98: [02:16:01] * micmania1 has joined #silverstripe
99: [02:16:08] * Cheddam has joined #silverstripe
100: [02:19:29] * travis-ci has joined #silverstripe
101: [02:19:30] <travis-ci> silverstripe/silverstripe-framework#4578 (3.1 - 4fe4d17 : Loz Calver): The build passed.
102: [02:19:30] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/f2e2d4e37606...4fe4d17eafd0
103: [02:19:30] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/59458252
104: [02:19:30] * travis-ci has left #silverstripe
105: [02:21:00] * novaweb has joined #silverstripe
106: [02:24:41] * Vedran__ quit (Remote host closed the connection)
107: [02:25:24] * Vedran__ has joined #silverstripe
108: [02:25:55] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
109: [02:26:15] * micmania1 quit (Quit: micmania1)
110: [02:26:24] * Vedran__ quit (Read error: Connection reset by peer)
111: [02:26:53] * Vedran__ has joined #silverstripe
112: [02:31:37] * Vedran__ quit (Ping timeout: 264 seconds)
113: [02:33:49] * Selay quit (Ping timeout: 246 seconds)
114: [02:34:55] * micmania1 has joined #silverstripe
115: [02:35:56] * Cheddam has joined #silverstripe
116: [02:40:52] * Ryan-Toast has joined #silverstripe
117: [02:41:16] * Vedran__ has joined #silverstripe
118: [02:41:23] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
119: [02:42:51] * UncleCheese has joined #silverstripe
120: [02:44:38] * travis-ci has joined #silverstripe
121: [02:44:39] <travis-ci> silverstripe/silverstripe-framework#4579 (3.1 - e0b7bc9 : Damian Mooyman): The build passed.
122: [02:44:39] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/4fe4d17eafd0...e0b7bc9cda49
123: [02:44:39] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/59463458
124: [02:44:39] * travis-ci has left #silverstripe
125: [02:47:49] * veb has joined #silverstripe
126: [02:50:55] * micmania1 quit (Quit: micmania1)
127: [02:51:36] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
128: [02:53:45] * phillprice has joined #silverstripe
129: [02:55:46] * joelpittet has joined #silverstripe
130: [02:58:19] * phillprice quit (Ping timeout: 255 seconds)
131: [03:00:08] * antmas has joined #silverstripe
132: [03:00:21] <antmas> morning again all!
133: [03:00:48] * Colin[pi] quit (Ping timeout: 245 seconds)
134: [03:02:13] <Ryan-Toast> hai
135: [03:02:23] <antmas> what's the 'best' way of export/import specific pagetype records from a 2.4 to 3.1 site?
136: [03:02:39] <Ryan-Toast> with a flamethrower.
137: [03:02:58] <antmas> :D
138: [03:03:49] * Colin[pi] has joined #silverstripe
139: [03:06:45] * Cheddam has joined #silverstripe
140: [03:07:14] * micmania1 has joined #silverstripe
141: [03:07:25] * vanny quit (Quit: Page closed)
142: [03:27:41] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
143: [03:30:49] * spronk2 quit (Quit: I may need a longer sleep timer...)
144: [03:31:00] * spronk2 has joined #silverstripe
145: [03:35:20] * Tanger has joined #silverstripe
146: [03:36:18] * Hailwood has joined #silverstripe
147: [03:38:28] <Tanger> Morning Guyd
148: [03:39:18] <Stomach> Hi
149: [03:39:23] <Stomach> I'm over working for the day
150: [03:39:24] <Stomach> how are you
151: [03:45:09] <Ryan-Toast> Seconded.
152: [03:45:25] <Tanger> Beer o'clock?
153: [03:45:52] <Ryan-Toast> Sober driving tonight :(
154: [03:48:23] * antmas quit (Quit: Page closed)
155: [03:49:08] <ss24> Vedran__: I'm told it's fixed now ^.^
156: [03:50:05] <Vedran__> ss24: Great :)
157: [03:50:37] * ss24 is now known as ss23
158: [03:54:54] * r_hector quit (Quit: Leaving.)
159: [03:55:59] <spronk2> ...ss24
160: [03:55:59] <spronk2> lol
161: [03:58:09] <Colin[pi]> i'm holding out for ss25 and spronk3
162: [03:58:39] <Tanger> Hey, when the CMS saves, how much does it actually save? Does it go through all same-level pages, or subpages or just all pages that have been opened in the session or something?
163: [04:00:02] <MichalKleiner> Tanger: just the change
164: [04:00:10] <Colin[pi]> Tanger: just the page ur on
165: [04:01:00] <Tanger> When I FB out onBeforeWrite on an Extension, it seems like it calls it on like 5 pages of different types, even when I re-save without making changes
166: [04:01:52] <Colin[pi]> Tanger: yes, the onBeforeWrite event gets triggered a number of times
167: [04:01:57] <Colin[pi]> mainly due to versioning
168: [04:02:00] <Colin[pi]> stage/live etc.
169: [04:03:49] <Tanger> Ah, yeah, that makes sense. Thanks!
170: [04:04:53] <Colin[pi]> yeah confused me at first too
171: [04:06:34] * Kingy[a] is now known as Kingy
172: [04:07:14] <Kingy> morning
173: [04:08:53] <Colin[pi]> heya Kingy
174: [04:09:11] <Kingy> how ya doing Colin[pi]
175: [04:10:44] <Colin[pi]> good good and u?
176: [04:10:58] <Kingy> yeah man pretty good
177: [04:11:05] <Kingy> have been full on lately
178: [04:11:40] <Kingy> spent a week in turkey, then went to the F1 here in the weekend, got ANZAC day brunch this weekend
179: [04:11:43] <Colin[pi]> nice
180: [04:11:53] <Kingy> it's all on!
181: [04:11:57] <Kingy> how about you?
182: [04:12:22] <Colin[pi]> just working dude
183: [04:13:12] <Kingy> yeah im trying to do all of that in between
184: [04:13:25] <Kingy> we've booked our flights back home for the summer
185: [04:13:32] <Kingy> so I'll be around for a couple of months :)
186: [04:15:09] <Colin[pi]> oh sweet
187: [04:15:13] <Colin[pi]> looking forward to it?
188: [04:15:25] <Kingy> not the cold
189: [04:16:16] <Colin[pi]> lol
190: [04:16:17] <Kingy> but yeah it'll be quite nice to see friends/family
191: [04:16:24] <Colin[pi]> you accustomed to the heat now?
192: [04:16:30] <Kingy> not really
193: [04:16:46] <Kingy> it's starting to warm up and it's not going to be fun
194: [04:16:58] <Kingy> but it was like 7-10deg in Istanbul and it was farking cold
195: [04:26:27] <Kingy> Colin[pi]: http://i.imgur.com/uHSGqHh.png - next 3 days
196: [04:26:32] <Kingy> still only 'spring' lol
197: [04:28:34] <Colin[pi]> lol wut
198: [04:28:36] <Colin[pi]> ouch
199: [04:30:18] <Kingy> haha i know :(
200: [04:37:09] <spronk2> jiesus
201: [04:37:10] <spronk2> i would die.
202: [04:37:28] <spronk2> Kingy HOW ABOUT THAT KIMI RAIKKONEN!?
203: [04:37:39] <Kingy> did that was insane
204: [04:37:46] <Kingy> dude*
205: [04:38:13] <Kingy> I was in the turn 1 grandstand so that last overtake happened right in front of us. Crowd went insane
206: [04:38:21] <spronk2> :D
207: [04:38:25] <spronk2> noiiice
208: [04:42:36] * phillprice has joined #silverstripe
209: [04:42:50] * Vedran__ quit (Remote host closed the connection)
210: [04:43:17] * novaweb quit (Quit: novaweb)
211: [04:44:16] * Ryan-Toast quit (Quit: Ryan-Toast)
212: [04:45:35] * Vedran__ has joined #silverstripe
213: [04:47:00] * phillprice quit (Ping timeout: 246 seconds)
214: [04:50:28] <Vedran__> I am looking through the default theme (simple) and I have <% include Navigation %>
215: [04:50:36] <Vedran__> are (in this case)
216: [04:50:44] <Vedran__> Navigation and $Navigation different things?
217: [04:51:04] <Vedran__> nvm (I assume that is including a ss page)
218: [04:51:48] * Helenclarko quit (Quit: Page closed)
219: [04:52:29] * coder_stu has joined #silverstripe
220: [04:54:06] <zauberfisch> Vedran__: <% include Foo %> looks for a file Foo.ss in templates/Includes/
221: [04:54:23] <Vedran__> zauberfisch: after looking at file structure that is what I assumed
222: [04:54:34] <zauberfisch> $Foo on the other hand looks for a method or property of the current controller
223: [04:54:51] <Vedran__> thanks for the clarification
224: [04:54:56] <zauberfisch> (and in turn, the current controller looks on the current model if it doesn't have that propery/method itself)
225: [05:00:16] * Colin[pi] quit (Ping timeout: 255 seconds)
226: [05:00:22] * micmania1 quit (Quit: micmania1)
227: [05:00:50] * novaweb has joined #silverstripe
228: [05:07:06] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
229: [05:09:13] * coder_stu quit (Ping timeout: 246 seconds)
230: [05:09:16] * Hailwood quit (Ping timeout: 240 seconds)
231: [05:15:37] * novaweb quit (Quit: novaweb)
232: [05:22:13] * Kingy is now known as Kingy[a]
233: [05:31:57] * Shrike_Finland has joined #silverstripe
234: [05:36:40] * Cheddam has joined #silverstripe
235: [05:36:43] * micmania1 has joined #silverstripe
236: [05:39:24] * Error404NotFound has joined #silverstripe
237: [05:40:24] * Error404NotFound quit (Max SendQ exceeded)
238: [05:40:49] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
239: [05:40:54] * Hailwood has joined #silverstripe
240: [05:41:10] * Error404NotFound has joined #silverstripe
241: [05:48:57] * micmania1 quit (Quit: micmania1)
242: [05:49:56] * Stomach quit (Ping timeout: 272 seconds)
243: [05:56:01] * veb quit (Quit: veb-irc: &)
244: [06:02:38] * FMateo has joined #silverstripe
245: [06:02:49] * veb has joined #silverstripe
246: [06:15:32] * Guits2 quit (Ping timeout: 256 seconds)
247: [06:18:23] * veb quit (Quit: veb-irc: &)
248: [06:21:43] * glenn-bautista quit (Ping timeout: 255 seconds)
249: [06:25:41] * Colin[pi] has joined #silverstripe
250: [06:27:22] * Mike123 has joined #silverstripe
251: [06:27:27] <Mike123> Morning ppl :)
252: [06:27:45] * AdriAn_s has joined #silverstripe
253: [06:28:05] <Mike123> i have problem solving an issue :/
254: [06:29:12] * Eliseth has joined #silverstripe
255: [06:29:57] <Mike123> i have SS CMS installed and working fine, i have to move minibb forum from one website to my web, but i dont know how to do that as structure is completle different from SS
256: [06:31:31] * phillprice has joined #silverstripe
257: [06:32:36] * wmk has joined #silverstripe
258: [06:36:25] <Mike123> hello wmk :)
259: [06:36:27] * phillprice quit (Ping timeout: 276 seconds)
260: [06:36:49] <wmk> hi Mike123
261: [06:40:56] * simon_w|air has joined #silverstripe
262: [06:41:15] * Colin[pi] waves at simon_w|air
263: [06:41:28] * Shrike_Finland quit (Quit: Leaving.)
264: [06:42:32] <simon_w|air> Oh no, I've been spotted!
265: [06:43:11] * Colin[pi] has eyes everywhere
266: [06:43:27] * simon_w|air looks around creepily
267: [06:43:41] <Colin[pi]> ( ͡° ͜ʖ ͡°)
268: [06:46:07] <AdriAn_s> hey guys im getting an error saying Call to a member function stat() on a non-object with this code http://pastebin.com/FZZXFrrz
269: [06:46:42] <AdriAn_s> seems an issue with many many as if i change $this->owner->RelatedProducts() with say CartPage::get() it works fine
270: [06:46:56] <AdriAn_s> any ideas??
271: [06:54:29] <Mike123> you need something like this to add in your getCMS function
272: [06:54:32] <Mike123> $fields = parent::getCMSFields();
273: [06:55:35] <wmk> ehem, AdriAn_s many_many => Products and belongs_many_many => Products in the same file just doesn't make sense!
274: [06:56:02] <simon_w|air> Mike123, it's an extension, so $fields is passed in
275: [06:56:09] <simon_w|air> wmk, it does if it's applied to Product
276: [06:56:20] <wmk> simon_w|air, good point.
277: [06:56:34] <wmk> but - does that work, many_many to the same datatobject?
278: [06:56:42] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
279: [06:56:48] <simon_w|air> wmk, yup. SiteTree's got a couple of them
280: [06:56:55] <wmk> fine
281: [06:56:56] <simon_w|air> AdriAn_s, can you pastie the entire error?
282: [06:57:12] <AdriAn_s> the page wont load
283: [06:57:19] <AdriAn_s> Fatal error: Call to a member function stat() on a non-object in G:\Nimbler\hhgf-upgrade\framework\model\DataObject.php on line 3221
284: [06:57:32] <simon_w|air> Oh, no xdebug
285: [06:57:37] <AdriAn_s> na
286: [06:57:43] * Cheddam has joined #silverstripe
287: [06:58:10] <wmk> AdriAn_s, you flushed?
288: [06:58:16] <AdriAn_s> basically trying to give the option to relate one product to another. So if you know another way to do it im up for it
289: [06:58:23] <AdriAn_s> flush and build yes!!
290: [06:59:25] <simon_w|air> AdriAn_s, it's to do with the $searcable_fields on Product
291: [07:00:44] <AdriAn_s> ok. so do you know how to fix it, or is there a link?
292: [07:00:55] <simon_w|air> Well, where's Product from?
293: [07:01:07] <AdriAn_s> swipestripe module
294: [07:02:09] <simon_w|air> Ooh, Product is a page and that bug still hasn't been fixed
295: [07:02:22] <AdriAn_s> well that doesnt help me! :(
296: [07:02:35] <AdriAn_s> do you have a link to teh current git hub bug so i can post on it
297: [07:02:38] <AdriAn_s> and see when it is fixes??
298: [07:02:50] * Guits2 has joined #silverstripe
299: [07:03:17] * Cheddam quit (Ping timeout: 248 seconds)
300: [07:05:41] * spronk2 quit (Quit: I may need a longer sleep timer...)
301: [07:07:00] <AdriAn_s> @simon_w|air ???
302: [07:08:16] * huberd has joined #silverstripe
303: [07:09:10] <wmk> AdriAn_s, https://github.com/silverstripe/silverstripe-framework/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+many_many
304: [07:09:41] <wmk> AdriAn_s, https://github.com/silverstripe/silverstripe-framework/issues/3113 looks like the specific issue
305: [07:10:25] <wmk> https://github.com/silverstripe/silverstripe-framework/issues/1377
306: [07:10:49] <AdriAn_s> yeah that is prettmuch exaclty what i am doing :p
307: [07:10:53] <AdriAn_s> or tryin to do haha
308: [07:11:06] <AdriAn_s> shit it hasnt been fixed for over a year :(
309: [07:11:28] <wmk> AdriAn_s, https://github.com/kinglozzer/sapphire/commit/3f1805bfd2934bdf2a489fdd00b5c21308cf9837 seems a fix for that?
310: [07:12:00] * MrGuits has joined #silverstripe
311: [07:12:00] * Guits has joined #silverstripe
312: [07:14:31] <Mike123> wow, now that's a problem i have here guys...
313: [07:15:33] * spronk2 has joined #silverstripe
314: [07:15:59] <Mike123> i need to move minibb forum from one website to mine , i have managed to do this, but how can i intergrate it into my website , so that i have my navigation bar ,sidebar and other SS elements, and forum would be like a kontent
315: [07:16:04] * Guits2 quit (Ping timeout: 272 seconds)
316: [07:16:57] <AdriAn_s> @wmk i can see if it fixes it
317: [07:19:22] <Eliseth> morning
318: [07:19:46] <wmk> Mike123, iframe? a wrapper class?
319: [07:20:06] <wmk> convert to a ss forum?
320: [07:20:11] * Vedran__ quit (Remote host closed the connection)
321: [07:21:07] * Vedran__ has joined #silverstripe
322: [07:22:25] * huberd quit ()
323: [07:23:26] * huberd has joined #silverstripe
324: [07:28:10] * mahfuz quit (Ping timeout: 246 seconds)
325: [07:28:37] * MrGuits quit (Ping timeout: 264 seconds)
326: [07:29:13] * Guits quit (Ping timeout: 264 seconds)
327: [07:30:45] * Arcax has joined #silverstripe
328: [07:31:52] * Shrike_Finland has joined #silverstripe
329: [07:38:41] <Mike123> wmk , wapper class ? can u explain this ?
330: [07:39:05] * veb has joined #silverstripe
331: [07:40:24] <wmk> Mike123, well, a page that passes all params to the forum and returns the output of the forum
332: [07:40:39] <wmk> sounds like work...
333: [07:41:19] * Vedran__ quit ()
334: [07:43:43] * Stomach has joined #silverstripe
335: [07:44:04] <Mike123> hmm...sonds like a good idea, but i dont have an idea how to do it , i have /forum folder in the root directory of SS , i think i need to create a new Page so that users could get to that forum, but how do i pass everything ?
336: [07:44:56] <wmk> Mike123, or other way round. any chance to export the menu and the sidebar to files and include in minibb?
337: [07:46:03] <Mike123> you mean to make is like static page yes ?
338: [07:46:04] <wmk> then you need a RedirectorPage for the menu entry which redirects to the forum
339: [07:46:22] <wmk> as the forum is in a subdirectory it shouldn't matter
340: [07:46:58] <Mike123> i thought about that too
341: [07:47:14] <wmk> dunno if migrating to a native silverstripe forum is an option.
342: [07:48:07] <wmk> depending on how many users you have you could even migrate the password hashes and mimic the minibb validation
343: [07:48:41] * EasyCo has joined #silverstripe
344: [07:49:28] <Mike123> well, client wants to move minibb forum
345: [07:49:46] <wmk> and wants to stay with minibb?
346: [07:50:19] * zippy has joined #silverstripe
347: [07:50:41] <wmk> zippy, o/
348: [07:50:54] <Mike123> yes :/ because other way i will take a lot of time to merge to SS forum, he wants all the info on forums to stay , i think if will be complicated to move every record
349: [07:51:17] <wmk> depends on the structure of minibb...
350: [07:51:54] <Mike123> yes, but lets focus on minibb and how to make it inside my web :)
351: [07:52:42] <wmk> so - either include in an iframe or pass header and sidebar to minibb
352: [07:53:35] <Mike123> and in your opinion, what is the best practice for this ?
353: [07:53:52] <wmk> why not move minibb to a seperate subdomain and include some static files generated by silverstripe?
354: [07:55:08] <Mike123> subdomain isnt an option too, i think that i will need to pass header and footer to minibb
355: [07:55:42] <wmk> maybe you have to tweak .htaccess a bit, but normally it shouldn't matter
356: [07:57:07] <veb> I HAVE RETURNED.
357: [07:57:10] * veb bows
358: [07:57:22] <veb> let the games commence!
359: [07:57:43] <veb> woo! programming!
360: [08:00:41] * spronk2 quit (Quit: I may need a longer sleep timer...)
361: [08:07:27] * kinglozzer has joined #silverstripe
362: [08:11:43] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
363: [08:12:52] * Sticks quit (Quit: Leaving)
364: [08:15:12] <Arcax> Hi, good morning, somebody know how i can execute a javascript function after a php function?
365: [08:15:13] <Arcax> Situation: send a form, if all is right i show a grateful modal, otherwise do nothing
366: [08:17:04] <wmk> Arcax, do you send the form with ajax?
367: [08:17:24] <Arcax> No
368: [08:17:45] <wmk> then you need a way to fire the modal on document ready
369: [08:18:29] <wmk> are you using something specific? bootstrap, foundation...=
370: [08:18:30] <wmk> ?
371: [08:19:25] * Stomach quit (Quit: zzz)
372: [08:19:46] <Arcax> bootstrap modal
373: [08:19:58] <Arcax> Code -> http://kopy.io/AQCXG
374: [08:20:25] * phillprice has joined #silverstripe
375: [08:21:00] <wmk> Arcax, http://lmgtfy.com/?q=bootstrap+modal+on+page+load
376: [08:22:08] <Arcax> But i need show the modal when the form is correct
377: [08:22:40] <wmk> of course.
378: [08:23:07] <wmk> when form is correct you put the code for the modal in html, maybe with a class or special ID
379: [08:23:32] <wmk> and on page load show this modal with #YouLuckyGuySubmittedTheFormCorrectly
380: [08:24:00] <wmk> if this modal is only on pages with correctly submitted forms it should work
381: [08:24:35] <wmk> speak: you can only trigger javascript via some commands in html, not in php directly
382: [08:24:43] * zippy has joined #silverstripe
383: [08:24:56] * phillprice quit (Ping timeout: 250 seconds)
384: [08:26:16] <Mike123> wmk, i decided to make it in iframe
385: [08:26:34] <Mike123> so that all website would be dynamic
386: [08:26:48] <wmk> Mike123, you may use some javascript to set the size of the iframe dynamically
387: [08:26:56] <wmk> depending on the user's screen
388: [08:35:40] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
389: [08:36:12] * feejin has joined #silverstripe
390: [08:36:40] * feejin quit (Client Quit)
391: [08:37:41] * zippy has joined #silverstripe
392: [08:42:11] * zippy quit (Client Quit)
393: [08:44:18] * caamic30 has joined #silverstripe
394: [08:50:57] * caamic30 quit (Quit: caamic30)
395: [08:55:30] * Stomach has joined #silverstripe
396: [09:03:54] <TombL> kinglozzer: thanks for your help yesterday, I ended up avoiding the entire thing for now.
397: [09:06:20] <kinglozzer> TombL: No problem :) I submitted a fix for it https://github.com/silverstripe/silverstripe-framework/pull/4091
398: [09:08:57] <TombL> oh, that was quick :)
399: [09:12:13] * Colin[pi] quit (Ping timeout: 244 seconds)
400: [09:14:03] * joelpittet quit (Remote host closed the connection)
401: [09:17:29] * Shrike_Finland quit (Quit: Leaving.)
402: [09:19:43] * Guits has joined #silverstripe
403: [09:26:39] * Stomach quit (Quit: zzz)
404: [09:29:41] * CerV has joined #silverstripe
405: [09:29:50] <CerV> hi
406: [09:30:21] <CerV> I need a little help with what looks like a redirection issue
407: [09:32:23] <CerV> i have added a single rewrite rule to my setup since the website i made resides in a subfolder of /var/www
408: [09:32:24] <CerV> also there is a translation of the content made with translatable
409: [09:34:04] <CerV> so accessing the page works with http://myurl/ or http://myurl/subfolder, when going for the original german content, the address line of my browser show http://myurl/subfolder/de but for some reason english content does not, http://myurl/en works across the whole website, i cant seem to find the reason for that
410: [09:35:00] <CerV> i'd like to have my site work across all languages without the /subfolder/part
411: [09:43:49] * phillprice has joined #silverstripe
412: [09:45:40] <wmk> CerV, why is it in a subfolder?
413: [09:46:01] <wmk> why not just an own VirtualHost ?
414: [09:49:43] * Colin[pi] has joined #silverstripe
415: [09:52:43] * Shrike_Finland has joined #silverstripe
416: [09:54:05] * Tanger quit (Quit: sleep())
417: [10:01:43] <CerV> wmk: i made that mistake in the beginning and couldn't correct it later without breaking everything :-(
418: [10:07:28] * UncleCheese has joined #silverstripe
419: [10:10:03] <huberd> Hey, has anyone here managed to successfully set options for TinyMCE?
420: [10:10:11] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
421: [10:10:22] <huberd> I'm trying to disallow font-family with HtmlEditorConfig::get('cms')->setOption('invalid_styles' ,"font-family");
422: [10:12:31] <wmk> can i sort by number of related items? by count has_many relation?
423: [10:12:58] <wmk> huberd, have you seen the config "module" on github?
424: [10:16:50] <wmk> huberd, https://github.com/jonom/silverstripe-tinytidy/blob/master/_config.php may help you
425: [10:17:40] <huberd> wmk, thanks
426: [10:20:07] <huberd> wmk, I never tried but you could create a function countRelatedItems() return $this->Items()->Count(); and set static $default_sort = "countRelatedItems ASC"
427: [10:20:41] <wmk> works for small datasets
428: [10:20:58] <wmk> if it could be done in DataBase it would be better...
429: [10:32:00] <huberd> did you try getting the object by your own sqlquery?
430: [10:37:51] * benjhocking quit (Read error: Connection reset by peer)
431: [10:39:38] * benjhocking has joined #silverstripe
432: [10:42:08] <wmk> huberd, hmm, it's a many_many and just two hands of records, so i build it manually
433: [10:45:31] <Mike123> need help guys, I have News module, now i need to make so that user could comment those news as anonimous(write name and comment) and like fb user , any ideas ?
434: [10:47:07] * CerV quit (Quit: Page closed)
435: [10:48:56] * Colin[pi] quit (Ping timeout: 240 seconds)
436: [11:07:42] <wmk> Mike123, i guess this is very general, so the solution might not only be silverstripe related.
437: [11:08:28] <wmk> is this the stuff like facebook connect, Mike123 ??
438: [11:14:10] <Mike123> well i also never did this before so i think yes
439: [11:25:51] * phillprice quit (Remote host closed the connection)
440: [11:27:11] * phillprice has joined #silverstripe
441: [11:27:11] * nontgor quit (Read error: Connection reset by peer)
442: [11:31:27] * phillprice quit (Ping timeout: 250 seconds)
443: [11:38:24] * babak has joined #silverstripe
444: [11:40:35] <Arcax> vmk, I found the solution by reading the documentation of the form class -> sessionMessage (Form :: $ message $ message, type $ type, $ escapeHtml boolean = true). I only had to change the last parameter to false to pass javascript. Thank you anyway.
445: [11:41:02] <wmk> :)
446: [11:42:00] <wmk> Arcax, just stumbled over http://henrikwarne.com/2015/04/16/lessons-learned-in-software-development/
447: [11:42:08] <wmk> Section "Cooperation" is so true.
448: [11:42:15] <wmk> especially Rubber Ducking
449: [11:43:57] * phillprice has joined #silverstripe
450: [11:44:15] <Arcax> Thanks, reading
451: [11:44:18] <Arcax> =)
452: [11:46:22] <Arcax> (Totally true)
453: [11:46:23] * Colin[pi] has joined #silverstripe
454: [11:54:47] * Eliseth has joined #silverstripe
455: [11:57:01] * veb quit (Quit: veb-irc: quit)
456: [12:10:08] * lerni_ has joined #silverstripe
457: [12:14:24] * Shrike_Finland quit (Quit: Leaving.)
458: [12:14:36] * UndefinedOffset has joined #silverstripe
459: [12:15:15] <lerni_> atm composer is hell slow - would be faster to download things manually :(
460: [12:16:06] * Shrike_Finland has joined #silverstripe
461: [12:21:58] * Shrike_Finland quit (Quit: Leaving.)
462: [12:44:44] * shellbackpacific has joined #silverstripe
463: [12:46:26] <shellbackpacific> hey all…when logging into the admin section the login form is going to "/Security/Security/LoginForm" rather than "/Security/LoginForm"….the post url in the form is relative (Security/LoginForm). Anyone seen this before?
464: [12:46:38] * FMateo quit (Ping timeout: 244 seconds)
465: [12:47:46] <wmk> hmm, any basehref set in your template?
466: [12:47:57] <wmk> shellbackpacific, ^^
467: [12:49:12] <shellbackpacific> wmk: not sure what you mean by "basehref" ?
468: [12:49:37] <wmk> sometimes (or in old 2.4 templates) some html tag was set to define the base for relative links afaik
469: [12:50:05] <wmk> shellbackpacific, http://www.w3schools.com/tags/tag_base.asp
470: [12:56:19] <shellbackpacific> wmk: thanks that was it
471: [12:56:27] <wmk> fine
472: [12:58:42] <Mike123> Dies anyone has used silverstripe comments module ? , i just cant find how to show the comments in the template $CommentsForm added to Page
473: [13:08:46] * Eliseth quit (Read error: Connection reset by peer)
474: [13:10:56] * Colin[pi] quit (Ping timeout: 240 seconds)
475: [13:12:17] * stephanvd has joined #silverstripe
476: [13:14:43] * EasyCo quit (Quit: Connection closed for inactivity)
477: [13:17:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
478: [13:19:41] * cloph is now known as cloph_away
479: [13:24:35] * r3v3rb has joined #silverstripe
480: [13:24:42] <r3v3rb> arhhhh, hello
481: [13:25:17] <Mike123> why i cant see behaviour tab in my pages ?
482: [13:25:28] <r3v3rb> $db contains 'SiteNews' => 'int' - Controller uses $this->SiteNews - PHP returns Undefined Property… am I going mad here
483: [13:30:33] * FMateo has joined #silverstripe
484: [13:32:50] <wmk> r3v3rb, => 'int' or => 'Int' ??
485: [13:33:07] <r3v3rb> stupid idiot r3v3rb do not call the function getSiteNews and try to access $db component SiteNews as PHP/SS sees the getSiteNews and goes all spazzy
486: [13:33:10] <r3v3rb> wmk ;)
487: [13:33:57] <wmk> r3v3rb, true, $this->dbValue('SiteNews') or something like that inside the getSiteNews method would work
488: [13:34:19] <r3v3rb> wmk or rename function getNews() lol
489: [13:34:21] * muskie9 has joined #silverstripe
490: [13:34:31] <wmk> absolutely
491: [13:35:48] * Hailwood quit (Remote host closed the connection)
492: [13:36:56] * FMateo quit (Quit: Leaving)
493: [13:38:00] <r3v3rb> wmk - $this->dbValue('SiteNews') returns the method 'dbvalue' does not exist on 'HomePage_Controller'
494: [13:38:19] <r3v3rb> wtf!
495: [13:38:57] <r3v3rb> going to downgrade to 3.1.11
496: [13:39:01] * catcher has joined #silverstripe
497: [13:39:49] <wmk> ah, in controller
498: [13:39:59] <wmk> $this->data()->SiteNews ..=
499: [13:40:00] <wmk> ?
500: [13:41:04] <r3v3rb> aye, that works never seen ->data()-> before
501: [13:41:13] <r3v3rb> or if I have I’ve long since forgotten it
502: [13:44:51] <r3v3rb> well, I managed to make hard work of that!
503: [13:44:57] <huberd> r3v3rb, $this->owner->field('SiteNews') ?
504: [13:45:03] <r3v3rb> bodes well for the rest of today
505: [13:45:47] <r3v3rb> huberd: yeh, I guess that would probably work too, I got caught having used $this->owner->SiteNews
506: [13:46:07] <r3v3rb> thinking it would retrieve the field but it tries to call a non existant property
507: [13:46:29] <r3v3rb> then thought it must just be $this->SiteNews and got confoooosed
508: [13:46:38] <r3v3rb> ->data is working
509: [13:47:06] <huberd> ok, i meant ->getField(..)
510: [13:51:06] * cloph_away is now known as cloph
511: [13:53:31] * Guits quit (Ping timeout: 255 seconds)
512: [13:58:47] * shellbackpacific quit (Quit: Leaving.)
513: [14:03:06] * gordon has joined #silverstripe
514: [14:03:10] * gordon is now known as nontgor
515: [14:20:49] * huberd quit (Ping timeout: 246 seconds)
516: [14:31:54] <Mike123> how to write this : Commenting::add('SiteTree'); in config API
517: [14:32:43] <Mike123> got errot that its deprecated
518: [14:32:58] <Mike123> Please use the config API instead. Called from require_once.
519: [14:35:33] * DimiStripe has joined #silverstripe
520: [14:36:59] <muskie9> Mike123 Config::inst()->update('SiteTree', 'extensions', array('CommentsExtension'));
521: [14:37:50] <muskie9> Mike123 or better yet: https://github.com/silverstripe/silverstripe-comments/blob/master/docs/en/Configuration.md#overview
522: [14:40:14] <wmk> Mike123, or add to SiteTree extensions in config.yml
523: [14:51:31] * Guits has joined #silverstripe
524: [14:55:24] * Guits quit (Read error: Connection reset by peer)
525: [14:59:16] <ss-helper> Please don't delete written information from the documentation - http://www.silverstripe.org/community/forums/general-questions/show/101653
526: [15:00:45] * Mike123 quit (Quit: Page closed)
527: [15:03:14] * joelpittet has joined #silverstripe
528: [15:04:10] * joelpittet quit (Client Quit)
529: [15:09:51] * stephanvd quit (Ping timeout: 250 seconds)
530: [15:26:17] * r3v3rb quit (Quit: r3v3rb)
531: [15:51:37] * BetterBert has joined #silverstripe
532: [15:52:13] <BetterBert> Hi, anyone online with experience using the GoogleSiteSearch module w/ custom styled search form?
533: [15:52:47] <BetterBert> Or a handy knowledge of how exactly Extensions work?
534: [15:53:02] <BetterBert> *how extensions work?
535: [15:53:09] <wmk> extensions, yes
536: [15:53:48] <wmk> BetterBert, what module? can you past a link to github?
537: [15:53:52] <BetterBert> https://github.com/dnadesign/silverstripe-googlesitesearch
538: [15:54:01] <wmk> that was fast ;)
539: [15:54:09] <BetterBert> :)
540: [15:54:34] <BetterBert> Point #5 in the ReadMe: "or use your own extension for styling / changing the form"
541: [15:55:27] <wmk> if you don't want to change the form - just include this config somewhere
542: [15:56:04] <BetterBert> I need to customise the form, in fact I need to create 4 different version of the search form <groan>
543: [15:56:39] <BetterBert> I've previsouly implemented this by extending Class Search _construct & forTemplate
544: [15:57:02] <BetterBert> But can I retread the needle to use GoogleSiteSearch instead can I F$%^&
545: [15:57:27] <wmk> ok, you can create an extension like https://github.com/dnadesign/silverstripe-googlesitesearch/blob/master/code/extensions/GoogleSiteSearchDefaultFormExtension.php
546: [15:57:49] <wmk> basically for generating the form
547: [15:58:19] <wmk> and just return another form with your fields instead
548: [15:58:49] <wmk> for your three other forms you have to ensure the js of the module is applied to theese forms
549: [15:59:46] <BetterBert> unfortunately that doesn't exactly explain things to me :(
550: [16:00:12] <BetterBert> just trying something now to see if I can apply custom style to GSSearch form via $form->setTemplate
551: [16:00:58] <BetterBert> If that works then its a case of getting a duplicate of GoogleSiteSearchDefaultFormExtension to load/presented by template
552: [16:01:42] <wmk> well, the extension "gives" this method to the controller
553: [16:01:59] <BetterBert> ? the template reference specified in the ReadMe uses $GoogleSiteSearchForm yet the Extension funciton is getGoogleSiteSearchForm. Where does the 'get' come from?
554: [16:02:24] <wmk> convention.
555: [16:02:41] <wmk> $Variable in template => getVariable() method in controller
556: [16:02:52] <wmk> getter method (without parameters!!!)
557: [16:03:00] <BetterBert> ok - cool
558: [16:03:05] <wmk> if you need params, then it's not a variable but a method in template.
559: [16:03:35] <wmk> e.g. $DoSomething('foo','bar) in template => method DoSomething($varA, $varB) in controller
560: [16:05:01] <BetterBert> $DoSomething I'm familiar enough with, the $Something => getSomething not so much. Thanks, always good to learn a bit more :)
561: [16:06:15] <wmk> yup, it's a pretty old convention
562: [16:10:52] <BetterBert> :( no joy there, just gonna have to keep plugging away at this...
563: [16:11:10] <BetterBert> Somedays SS really is just the most unco-operative sow
564: [16:11:23] <BetterBert> other days is grand, but not today...
565: [16:17:18] <wmk> BetterBert, get the first form running, then you can think about the other forms
566: [16:17:31] <wmk> and if you change any configuration...
567: [16:17:34] <wmk> !flush BetterBert
568: [16:17:34] <ss-helper> BetterBert: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
569: [16:18:00] <BetterBert> i have it running alright but haven't been able to complete the crucial step of casting it with setTemplate
570: [16:18:25] <BetterBert> Doing the Flush build combo after every change but will try the double take now :)
571: [16:18:31] <wmk> hehe
572: [16:18:41] <wmk> setTemplate on the form?
573: [16:19:13] <BetterBert> aye, found that in the class Form Api. Is that not a good option?
574: [16:20:05] <wmk> and - how do you set the template?
575: [16:20:08] <wmk> can you paste some code?
576: [16:20:11] <wmk> !paste BetterBert
577: [16:20:11] <ss-helper> BetterBert: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
578: [16:22:06] <BetterBert> http://www.sspaste.com/paste/show/5537ca9d02b69
579: [16:23:19] <BetterBert> I've customised the existing GSSearch extension form to match my existing implementation, and it still returns accurate Google Search results. I'm just lacking traction with the setTemplate(GoogleSearchForm)...
580: [16:24:13] <wmk> it doesn't fint the template? where is it located?
581: [16:25:27] <wmk> original Form.ss is in templates/Includes/
582: [16:26:40] <BetterBert> Sorry is that a question or a statement?
583: [16:26:51] <wmk> both
584: [16:26:58] <BetterBert> heh :)
585: [16:27:14] <wmk> so - in which folder is your template??
586: [16:28:15] <BetterBert> My original Form.ss exists in my theme /templates/includes/SearchForm.ss - tried using that name on setTemplate earlier and it didn't appear to work either. Will try again now with the Double/Build/Flush...
587: [16:29:34] * kinglozzer quit ()
588: [16:32:10] <BetterBert> nope... no change there
589: [16:33:11] <wmk> with uppercase I
590: [16:33:20] <wmk> /templates/Includes
591: [16:33:52] <BetterBert> hm: i've entered ->setTemplate('SearchForm')
592: [16:34:18] <BetterBert> Should it perhaps be ->setTemplate('/templates/Includes/SearchForm')?
593: [16:34:24] * joelpittet has joined #silverstripe
594: [16:34:40] <wmk> BetterBert, i doubt that
595: [16:34:41] * phillprice quit (Remote host closed the connection)
596: [16:35:15] <BetterBert> gettign a wee bit befuddled at this point so starting to consider all sorts of outlandish ideas ;)
597: [16:35:56] <wmk> yup.
598: [16:36:09] <wmk> try it in mysite/templates/Includes/
599: [16:36:12] <wmk> maybe it helps.
600: [16:37:25] <wmk> have to run, good luck BetterBert
601: [16:37:36] <BetterBert> Thanks for your time and help :)
602: [16:37:38] <BetterBert> Good night
603: [16:39:09] * sgrover__ quit (Remote host closed the connection)
604: [16:42:49] * wmk quit (Ping timeout: 256 seconds)
605: [16:52:29] * lerni_ quit ()
606: [17:08:11] * jcwacky has joined #silverstripe
607: [17:09:02] <jcwacky> Any TinyMCE experts about?
608: [17:09:34] <BetterBert> What you looking for in the TinyMCE, might be able to help?
609: [17:10:36] <jcwacky> Basically I’m trying to make the style attribute invalid.
610: [17:11:12] <jcwacky> I don’t want to specify all the valid attributes and exclude ‘style’ from the list. Ideally I want to just make ‘style’ invalid.
611: [17:11:37] <BetterBert> Would removing style attributes from the HTMLText before commiting to database be sufficient?
612: [17:11:38] <jcwacky> The problem is you can’t have attributes in invalid_elements. Only elements.
613: [17:12:02] <BetterBert> Sorry, don't get you there. For example?
614: [17:12:19] <jcwacky> It would be an acceptable solution.
615: [17:12:30] <jcwacky> I want to do this: HtmlEditorConfig::get('cms')->setOption('invalid_elements', "*[style]")
616: [17:12:59] <jcwacky> But while you can list attributes in valid_elements, you can’t in invalid_elements. It’s nto valid accordign to TinyMCE.
617: [17:13:25] * muskie9 is now known as muskie9_afk
618: [17:13:28] <jcwacky> So, HtmlEditorConfig::get('cms')->setOption('invalid_elements', “span,iframe”) is valid.
619: [17:13:37] <jcwacky> So, HtmlEditorConfig::get('cms')->setOption('invalid_elements', “span[style],iframe”) isn’t possible.
620: [17:14:11] <BetterBert> public function onBeforeWrite() {
621: [17:14:11] <BetterBert> $this->additionalCopy = preg_replace('/(<[^>]+) style=("|\').*?("|\')/i', '$1', $this->additionalCopy);
622: [17:14:11] <BetterBert> parent::onBeforeWrite();
623: [17:14:11] <BetterBert> }
624: [17:14:17] <jcwacky> Sorry, it’s a bit confusing to explain.
625: [17:14:19] <BetterBert> hand on...
626: [17:14:33] <ss-helper> How to validate CMS fields - http://www.silverstripe.org/community/forums/general-questions/show/101654
627: [17:14:42] <BetterBert> http://www.sspaste.com/paste/show/5537d6fe308fd
628: [17:15:01] <BetterBert> Sorry but I've got to run, hopefully that helps...
629: [17:15:15] <jcwacky> Ok, thanks!!
630: [17:15:33] * BetterBert quit (Quit: (null))
631: [17:17:43] * gelignite has joined #silverstripe
632: [17:43:58] * Error404NotFound quit (Disconnected by services)
633: [17:43:59] * Err404NotFound has joined #silverstripe
634: [17:46:05] * wmk has joined #silverstripe
635: [17:53:23] * sgrover__ has joined #silverstripe
636: [17:55:20] <sgrover__> How do I indicate everyone has permission to access the $allowed_actions items in my custom controller? The ContentController is preventing access in the init() method because $this->dataRecord->canView() returns false.
637: [17:55:56] <sgrover__> I can add an exception to the ContentController, but that will be overwritten when the framework gets an update.
638: [18:00:24] <sgrover__> I see. My $allowed_actions is defined with $allowed_actions = array( 'myaction'). So it should already have access, because a group was not specified. So the question then is why is canView() returning false... hmmm
639: [18:00:53] <wmk> sgrover__, canView() in a DataObject or in a Page?
640: [18:01:32] <sgrover__> It is in the CMS ContentController. It *should* be a page, but I'm just dumping values now to see what is going on...
641: [18:01:53] <wmk> you can set in page what usergroup can view it.
642: [18:02:13] <sgrover__> understood. I want no restrictions on this particular controller.
643: [18:05:13] <sgrover__> k. I can confirm it is a page object
644: [18:08:07] <wmk> so look at ContentController canView()
645: [18:09:00] <wmk> no SiteTree canView()
646: [18:09:02] <wmk> sorry
647: [18:09:44] * muskie9_afk is now known as muskie9
648: [18:11:34] * BackEndCoder_ is now known as BackEndCoder
649: [18:20:25] * MichalKl_ has joined #silverstripe
650: [18:22:15] * MichalKleiner quit (Ping timeout: 250 seconds)
651: [18:22:37] * ss23 quit (Ping timeout: 264 seconds)
652: [18:22:58] * Kapdap quit (Ping timeout: 272 seconds)
653: [18:23:05] * Kapdap has joined #silverstripe
654: [18:23:24] * phillprice has joined #silverstripe
655: [18:23:30] * ss23 has joined #silverstripe
656: [18:27:08] * UndefinedOffset quit (Quit: Leaving.)
657: [18:27:38] * phillprice quit (Ping timeout: 244 seconds)
658: [18:33:25] * wmk quit (Ping timeout: 264 seconds)
659: [18:44:45] <ss-helper> Management explained while sales - http://www.silverstripe.org/community/forums/installing-silverstripe/show/101655
660: [18:46:09] * Vanny has joined #silverstripe
661: [18:46:35] <ss-helper> Silverstripe: Many to many relation to same class - http://stackoverflow.com/questions/23648202/silverstripe-many-to-many-relation-to-same-class
662: [18:47:22] <Vanny> Hi All.
663: [18:47:42] <Vanny> I've asked a lot of questions lately and thank you for all the help, step learning curve.
664: [18:54:57] * Stomach has joined #silverstripe
665: [18:57:01] <Vanny> When a form submits data and I want to update the record, how do I get the record ID, I know with member stuff I can use currentUser()
666: [18:59:47] <ss-helper> without www, silver stripe show [Warning] - http://www.silverstripe.org/community/forums/installing-silverstripe/show/101656
667: [19:09:14] * UndefinedOffset has joined #silverstripe
668: [19:16:45] * Stomach quit (Quit: zzz)
669: [19:28:08] * Error404NotFound has joined #silverstripe
670: [19:29:50] <ss-helper> Re: Please don't delete written information from the documentation - http://www.silverstripe.org/community/forums/general-questions/show/101653#post401330
671: [19:29:59] * Err404NotFound quit (Ping timeout: 256 seconds)
672: [19:30:30] * jarr0dsz has joined #silverstripe
673: [19:47:43] * sgrover__ quit (Ping timeout: 252 seconds)
674: [19:47:58] * Stomach has joined #silverstripe
675: [19:50:27] * sgrover__ has joined #silverstripe
676: [19:59:02] * Stomach quit (Quit: zzz)
677: [20:04:34] <Vanny> OK, when I call my form I have page/IDm but when the submit button is clicked I lose the ID part so my function cant run.
678: [20:05:15] <muskie9> Vanny why not have the ID as a hidden field in the form?
679: [20:08:55] <Vanny> I have that, how do I call it $_Get['ID'] ?
680: [20:11:54] <muskie9> $data['ID']
681: [20:12:10] <muskie9> iirc
682: [20:12:30] * phillprice has joined #silverstripe
683: [20:16:26] * UndefinedOffset quit (Quit: Leaving.)
684: [20:17:05] * phillprice quit (Ping timeout: 250 seconds)
685: [20:26:27] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
686: [20:26:39] * UncleCheese has joined #silverstripe
687: [20:43:03] * Stomach has joined #silverstripe
688: [20:47:32] * Ryan-Toast has joined #silverstripe
689: [20:51:03] * muskie9 is now known as muskie9_afk
690: [20:51:35] * muskie9_afk is now known as muskie9
691: [20:55:51] <Vanny> should function here($byVal = 0) return 0 if no value is passed from the template? I am getting nothing
692: [20:56:33] <muskie9> it might be interpreting 0 as false
693: [20:57:46] <Vanny> i didnt think of that
694: [21:00:01] <ss-helper> Can't get Tag Cloud happening - http://www.silverstripe.org/community/forums/blog-module-forum/show/101657
695: [21:02:35] * glenn-bautista has joined #silverstripe
696: [21:03:21] * Cheddam has joined #silverstripe
697: [21:15:03] <ss-helper> Re: IDE For Silverstripe - http://www.silverstripe.org/community/forums/general-questions/show/7116?start=16#post401332
698: [21:21:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
699: [21:23:31] <Ryan-Toast> what’s the cache key for sitetree changed?
700: [21:29:17] * micmania1 has joined #silverstripe
701: [21:37:39] * veb has joined #silverstripe
702: [21:46:18] * mobiusnz has joined #silverstripe
703: [21:50:09] <Vanny> how can I find out what value is in a function ($byVal) it seems to be empty
704: [21:50:44] <Ryan-Toast> vanny: var_dump?
705: [21:53:06] * nontgor quit (Ping timeout: 250 seconds)
706: [21:55:27] <Vanny> i cant see any value for it in var_dump
707: [21:57:33] <Vanny> ok so when i submit back to itself I get a mass of objects
708: [21:59:49] * Hailwood has joined #silverstripe
709: [22:00:34] <Ryan-Toast> vany: What is $byVal?
710: [22:00:35] * micmania1 quit (Quit: micmania1)
711: [22:01:06] * micmania1 has joined #silverstripe
712: [22:01:07] <Vanny> I was passing and ID in there to load into a form. When it submits back to itself I get errors.
713: [22:01:26] * phillprice has joined #silverstripe
714: [22:01:40] <ss-helper> Can you enable HTML5 elements in Silverstripe CMS - http://stackoverflow.com/questions/29809491/can-you-enable-html5-elements-in-silverstripe-cms
715: [22:03:39] <Vanny> I've really confused myself :P im using a actionHandler to pull the form, and loading the form from the /ID my problem is when I hit submit it loses the ID from the SS_HttpRequest so cant update the dataobject
716: [22:03:41] <Ryan-Toast> vanny: into what though?
717: [22:04:29] * T8 has joined #silverstripe
718: [22:04:34] <T8> http://stackoverflow.com/questions/29809491/can-you-enable-html5-elements-in-silverstripe-cms
719: [22:04:53] <Ryan-Toast> t8: ss-helper is a bot :P
720: [22:05:10] * nontgor has joined #silverstripe
721: [22:06:14] * phillprice quit (Ping timeout: 256 seconds)
722: [22:07:40] <Vanny> did my explanation make sense
723: [22:08:55] * EasyCo has joined #silverstripe
724: [22:08:57] <Ryan-Toast> Not really, can you poost your code, with comments? :P
725: [22:09:35] <T8> @Ryan-Toast: what does that mean
726: [22:09:45] <Ryan-Toast> t8: IT’s not a person/.
727: [22:10:05] <T8> Yes but how is that relevant to me?
728: [22:10:23] <Ryan-Toast> Thought you were replying to the “Can you enable HTML5 elements in Silverstripe CMS” it posted before your comment.
729: [22:11:00] <T8> Oh I didn't see that
730: [22:11:19] <T8> So is it possible
731: [22:11:25] <Ryan-Toast> :)
732: [22:11:32] <T8> Or do I have to do some kind of file upload render thing...
733: [22:12:32] <Vanny> http://sspaste.com/paste/show/55381cadd18d9
734: [22:12:36] <Ryan-Toast> t8: What’s your question, sorry?
735: [22:13:40] <T8> http://stackoverflow.com/questions/29809491/can-you-enable-html5-elements-in-silverstripe-cms
736: [22:14:01] <Ryan-Toast> vanny: Where are you getting $Tasting.ID from?
737: [22:14:46] <muskie9> Vanny what is the context of $Tasting, is it the page you're on, are you in a loop or with?
738: [22:14:50] <Vanny> passed from the function complete. I return the return array ('Tasting' => $Tasting);
739: [22:14:58] <Ryan-Toast> vanny: you should also be running checks if that DO exists etc.
740: [22:15:20] <Ryan-Toast> And it displays the ID if you just have $Tasting.ID on the template?
741: [22:15:26] <Vanny> yep
742: [22:15:32] <muskie9> not sure if in 25 you need to call ->data()
743: [22:15:49] <Ryan-Toast> make sure you cast it as an int?
744: [22:15:49] * DimiStripe quit (Quit: DimiStripe)
745: [22:15:59] <muskie9> $Tasting is the Object with the data already
746: [22:16:16] <muskie9> er, model with the data
747: [22:17:11] <Vanny> Ok it might be working now.
748: [22:18:04] * mahfuz has joined #silverstripe
749: [22:18:31] <Vanny> I put $_Post['ID'] in the save process
750: [22:20:21] <Vanny> thanks for help. Now I have to add all the business rules around it to make sure only the right people can complete the form.
751: [22:20:49] <Ryan-Toast> vanny: make sure to check that stuff exists and all that :)
752: [22:21:26] <Vanny> thats is just for example $Tasting->exists()?
753: [22:21:37] <Ryan-Toast> ye
754: [22:21:40] <Ryan-Toast> biz like that
755: [22:30:32] * zippy has joined #silverstripe
756: [22:30:49] <T8> No love on my question?
757: [22:30:55] <T8> I assume its just not possible.
758: [22:31:37] * muskie9 is now known as muskie9_afk
759: [22:32:22] <Ryan-Toast> Why doesn’t 'ClassName:not' => ‘Foo’ not work in a filter?
760: [22:32:32] <Ryan-Toast> t8: there’s a module I believe
761: [22:33:17] * catcher quit (Quit: Leaving)
762: [22:35:09] <T8> Ryan-Toast: hmmmm I tried the silverstripe-html5 module and it didn't make a change...
763: [22:35:28] <Ryan-Toast> t8: Shrug, man. You may have to allow the tags in tinymce.
764: [22:35:35] <T8> Yeha
765: [22:35:44] <T8> if you read my question I have done that
766: [22:39:42] <zippy> Ryan-Toast: use, exclude
767: [22:39:49] <Ryan-Toast> zippy: Churbo
768: [22:40:01] <zippy> ->exlude('ClassName', 'Foo')
769: [22:40:17] <Ryan-Toast> zippy: ta :)
770: [22:41:09] <zippy> tumeke :D
771: [22:41:30] <adrexia> T8 - tried using tinymce templates?
772: [22:42:14] <T8> adrexia - No I haven't do you have a link?
773: [22:42:25] <adrexia> hmm... let me look
774: [22:42:56] * micmania1 quit (Quit: micmania1)
775: [22:43:52] <adrexia> http://www.silverstripe.org/community/forums/customising-the-cms/show/23046
776: [22:47:15] <adrexia> Also, I tend to use this (ripped straight from cwp ;) ) https://github.com/adrexia/silverstripe-standardsediting
777: [22:47:20] * UncleCheese has joined #silverstripe
778: [22:47:32] <UncleCheese> that was fucked up
779: [22:47:34] <adrexia> the actual default values for tinymce are a bit stupid
780: [22:47:38] <T8> adrexia - Not quite my use case but thanks
781: [22:47:54] <adrexia> you just want to enter the html in tehre, right ?
782: [22:48:04] <adrexia> rather than inserting it ?
783: [22:48:06] <T8> adrexia - Yeah
784: [22:48:30] <adrexia> I wonder if its something to do with the html viewer is all
785: [22:48:45] * AdriAn_s has joined #silverstripe
786: [22:48:48] <adrexia> like, if you did it another way, does it still strip them out?
787: [22:49:13] <T8> That's the problem I don't know any other way
788: [22:49:24] <T8> I was thinking about having a file upload then rendering the file
789: [22:49:30] <T8> but I'm not sure how difficult that would be
790: [22:54:42] <adrexia> well, tinymce templates are anotehr way
791: [22:54:52] <adrexia> or using silverstripe tempaltes instead
792: [22:55:03] <adrexia> does it tend to be in tinymce ?
793: [22:55:27] <adrexia> or does it just need to be user editable?
794: [22:55:31] <adrexia> and in waht ways?
795: [22:55:37] <T8> doesn't need to be.
796: [22:55:39] <T8> I am trying now
797: [22:57:03] <T8> Yeah so TinyMCE templates don't work
798: [22:57:10] <T8> but they are good to know about :)
799: [22:57:19] <T8> I will probably just use SS templates
800: [22:58:12] <adrexia> yeah - ss templates are the _best_ way
801: [22:58:40] <adrexia> the others are just work arounds for things that need to be cms editable in weird ways
802: [23:02:24] * Shrike_Finland has joined #silverstripe
803: [23:02:40] * micmania1 has joined #silverstripe
804: [23:06:38] * Shrike_Finland quit (Ping timeout: 244 seconds)
805: [23:13:23] * Colin[pi] has joined #silverstripe
806: [23:30:19] <ss-helper> Re: tinyMCE not saving HTML5 tags - http://www.silverstripe.org/community/forums/customising-the-cms/show/69101?start=8#post401333
807: [23:32:58] <Colin[pi]> morning o/
808: [23:33:45] <Ryan-Toast> Colin[pi]: o/
809: [23:34:45] * spronk2 has joined #silverstripe
810: [23:34:48] * antmas has joined #silverstripe
811: [23:34:57] <antmas> morning all o/
812: [23:35:18] <Ryan-Toast> hai
813: [23:35:26] <Colin[pi]> antmas Ryan-Toast: o/
814: [23:35:27] * UncleCheese quit (Read error: Connection reset by peer)
815: [23:35:35] <Ryan-Toast> What time do you people call this?
816: [23:35:43] <Ryan-Toast> SLACKERS
817: [23:36:57] <adrexia> :D
818: [23:38:51] <Colin[pi]> wow my desk is starting to get worn in the spot I put my coffee cup
819: [23:38:55] <Colin[pi]> that cant be a good sign
820: [23:40:05] <antmas> I have a real question :D
821: [23:40:10] <Colin[pi]> what?!!
822: [23:40:11] <Ryan-Toast> antmas: no.
823: [23:40:12] * antmas gets excited
824: [23:40:27] <Ryan-Toast> Colin[pi]: Get a piece of concrete.
825: [23:40:44] <antmas> trying to sort on a list
826: [23:41:45] <antmas> everything works, but sort doesn't http://www.sspaste.com/paste/show/553831aba7dc0
827: [23:42:40] <simon_w|air> antmas, $EventList = $EventList->sort("EndDate","ASC");
828: [23:42:52] <antmas> simon_w|air: chur, trying now
829: [23:43:08] <Colin[pi]> yeah it returns a copy
830: [23:43:21] <Colin[pi]> the list itself is immutable I think, simon_w|air?
831: [23:43:50] <antmas> simon_w|air: Colin[pi] makes sense, cheers that works \o/
832: [23:43:53] <antmas> ty
833: [23:44:44] <simon_w|air> Colin[pi], basically
834: [23:45:17] <antmas> that was a change from 2.4 to 3 yeah?
835: [23:45:41] <Colin[pi]> yeah I think from when I watched UC's later videos the other week he reminded me that the DataList instances are immutable, and each time you filter or whatever, it returns a new instance
836: [23:45:53] <simon_w|air> antmas, 3.0 to 3.1
837: [23:46:11] <antmas> ah ok
838: [23:46:43] <ss-helper> Form to comment in DataObject, SilverStripe 3.1.12 - http://stackoverflow.com/questions/29386721/form-to-comment-in-dataobject-silverstripe-3-1-12
839: [23:46:43] <ss-helper> Set a default upload folder for an Image to go into in SilverStripe - http://stackoverflow.com/questions/29271003/set-a-default-upload-folder-for-an-image-to-go-into-in-silverstripe
840: [23:46:43] <ss-helper> 500 Internal Server Error for sub domain using htaccess in SilverStripe 3.1 - http://stackoverflow.com/questions/29576036/500-internal-server-error-for-sub-domain-using-htaccess-in-silverstripe-3-1
841: [23:47:40] <Colin[pi]> ss-helper ssshhhh
842: [23:50:15] * phillprice has joined #silverstripe
843: [23:51:43] <Colin[pi]> who made the sspaste site?
844: [23:52:01] * T8 quit (Ping timeout: 246 seconds)
845: [23:53:47] <antmas> you know what I love about the sspaste? <BR abp="158">
846: [23:54:27] <Colin[pi]> antmas: ?
847: [23:54:52] * phillprice quit (Ping timeout: 265 seconds)
848: [23:56:19] <antmas> Colin[pi]: :P how it takes in those bits from pasting
849: [23:56:25] <antmas> super helpful
850: [23:56:26] <Colin[pi]> oh lol
851: [23:57:26] <antmas> holy phuck http://www.stuff.co.nz/world/asia/67981289/chinese-toddler-pushed-his-mother-down-lift-shaft
852: [23:59:24] <Colin[pi]> antmas: "I pushed her down"
853: [23:59:25] <Colin[pi]> :C

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