#silverstripe IRC Log

IRC log for 21 March 2015

All timestamps are in UTC.

1: [00:15:35] * jedateach has joined #silverstripe
2: [00:59:51] * superspring quit (Ping timeout: 250 seconds)
3: [01:00:37] * r_hector has joined #silverstripe
4: [01:02:25] * superspring has joined #silverstripe
5: [01:24:14] * r_hector quit (Quit: Leaving.)
6: [01:28:52] * jedateach quit (Quit: jedateach)
7: [01:32:59] * benjhocking quit (Read error: Connection reset by peer)
8: [01:36:13] * benjhocking has joined #silverstripe
9: [01:36:48] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
10: [02:02:50] <Kolin> https://vline.com/+jd2n7ho295pkho8x
11: [02:07:06] * jedateach has joined #silverstripe
12: [02:26:08] * bemusedrat has joined #silverstripe
13: [03:18:23] * joelpittet has joined #silverstripe
14: [03:27:35] * nontgor quit (Ping timeout: 256 seconds)
15: [03:37:52] * r_hector has joined #silverstripe
16: [03:39:58] * nontgor has joined #silverstripe
17: [03:47:38] * superspring quit (Ping timeout: 272 seconds)
18: [03:52:37] * superspring has joined #silverstripe
19: [04:03:50] * joelpittet quit ()
20: [04:54:44] * jedateach quit (Quit: jedateach)
21: [05:39:00] * r_hector quit (Remote host closed the connection)
22: [05:42:09] * r_hector has joined #silverstripe
23: [06:30:55] * superspring quit (Ping timeout: 250 seconds)
24: [06:34:11] * superspring has joined #silverstripe
25: [07:16:03] * Shrike_Finland has joined #silverstripe
26: [07:17:25] * Shrike_Finland quit (Client Quit)
27: [07:19:44] * Shrike_Finland has joined #silverstripe
28: [07:22:19] * Error404NotFound has joined #silverstripe
29: [07:50:04] * Eliseth has joined #silverstripe
30: [07:55:01] * Eliseth quit (Ping timeout: 264 seconds)
31: [08:13:47] * daz_ has joined #silverstripe
32: [08:14:16] <daz_> How do I get an image by id from another page?
33: [08:14:45] * nontgor quit (Ping timeout: 265 seconds)
34: [08:17:09] <daz_> any ideas?
35: [08:22:49] * daz_ quit (Ping timeout: 246 seconds)
36: [08:26:59] * nontgor has joined #silverstripe
37: [08:31:56] * CodeTrap has joined #silverstripe
38: [09:08:00] * veb quit (Quit: veb-irc: quit)
39: [09:08:49] * bemusedrat quit (Quit: Leaving)
40: [09:18:14] * CodeTrap quit (Ping timeout: 246 seconds)
41: [09:20:04] * Shrike_Finland1 has joined #silverstripe
42: [09:20:37] * superspring quit (Ping timeout: 256 seconds)
43: [09:22:05] * Shrike_Finland quit (Ping timeout: 246 seconds)
44: [09:27:06] * superspring has joined #silverstripe
45: [09:29:54] * Kingy[a] is now known as Kingy
46: [09:30:31] * Kingy is now known as Kingy[a]
47: [10:08:26] * Shrike_Finland1 quit (Quit: Leaving.)
48: [10:32:05] * Shrike_Finland has joined #silverstripe
49: [11:29:08] * r_hector quit (Quit: Leaving.)
50: [12:06:19] * superspring quit (Ping timeout: 250 seconds)
51: [12:11:57] * superspring has joined #silverstripe
52: [12:16:24] * Shrike_Finland quit (Quit: Leaving.)
53: [12:18:36] * darjus01 has joined #silverstripe
54: [12:18:38] * CodeTrap has joined #silverstripe
55: [12:30:39] <darjus01> is any way to $field->push("<div class="myhtml"></div>"); some custom html?
56: [12:43:13] * darjus01 quit (Ping timeout: 246 seconds)
57: [13:02:52] * darjus01 has joined #silverstripe
58: [13:04:33] <darjus01> then I have has one Image => Image in dataobject, how to get image cropped and add to LiteralField with <img> tag?
59: [13:05:06] * CodeTrap quit (Ping timeout: 246 seconds)
60: [13:15:34] <ss-helper> SilverStripe Template - how to access keyless values - http://stackoverflow.com/questions/29183065/silverstripe-template-how-to-access-keyless-values
61: [14:01:48] * Kingy[a] is now known as Kingy
62: [14:03:30] <SphereSilver> Huh, Silverstripe 3.2 doesn't work with extending existing page_controllers?
63: [14:11:51] <SphereSilver> It seems extending an existing pagetype in 3.2 requires some extra attention to how it is rendered??
64: [14:21:26] * daz has joined #silverstripe
65: [14:21:50] * daz is now known as Guest88049
66: [14:22:03] <Guest88049> how do i change the text of the gridfield add new button
67: [14:22:54] <SphereSilver> Translations?
68: [14:28:23] <ss-helper> Re: file previews - http://www.silverstripe.org/community/forums/general-questions/show/101358#post400829
69: [14:38:52] <SphereSilver> I guess 3.2 is still very alpha. Only more and more issues show up :(
70: [14:39:00] <SphereSilver> Not ready for live :|
71: [14:45:36] <ss-helper> Silverstripe 3.1 Change the default button text of the Gridfield Add button? - http://stackoverflow.com/questions/29183998/silverstripe-3-1-change-the-default-button-text-of-the-gridfield-add-button
72: [14:45:43] <Guest88049> How do I change the default button text of the Gridfield Add button?
73: [14:49:41] <Guest88049> getConfig()->addComponent('GridFieldAddNewButton') would add one, but how do I change the text
74: [14:54:03] <SphereSilver> Have a look at BetterButtons modulre
75: [14:54:11] <SphereSilver> It'll probably point you in the right direction
76: [14:58:29] <ss-helper> I am desperet after installing mysql_secure_installation script - http://www.silverstripe.org/community/forums/form-questions/show/101392
77: [14:59:54] * superspring quit (Ping timeout: 256 seconds)
78: [15:00:26] <Guest88049> is it something to do with? ->getConfig()->getComponentsByType('GridFieldAddNewButton')->setButtonName('Add Extra Product Gallery Images');
79: [15:00:42] <Guest88049> that didn't work by the way
80: [15:04:21] * superspring has joined #silverstripe
81: [15:07:04] * Guest88049 quit (Ping timeout: 246 seconds)
82: [15:07:35] * Kingy is now known as Kingy[a]
83: [15:40:41] <darjus01> is it possible to add images off options in listbox in admin?
84: [15:49:37] * MrGuits quit (Ping timeout: 255 seconds)
85: [15:53:56] * Guits has joined #silverstripe
86: [15:56:43] * Jayashleysmith has joined #silverstripe
87: [15:56:54] <Jayashleysmith> I've upgraded my webserver and am getting this error : Declaration of Parts_Controller::init() should be compatible with Page_Controller::init()
88: [15:57:19] <Jayashleysmith> Can't work out why or anything that's changed.
89: [15:58:13] <nontgor> "upgraded my webserver" < more detail?
90: [15:58:28] <nontgor> versino of SilverStripe? Version of PHP? Version of Apache or nginx?
91: [15:58:28] <Jayashleysmith> Installed a new server with new latest apache / php
92: [15:59:22] <Jayashleysmith> Got two Macbooks. one running an older version of Php/Apache. brand new macbook has latest and throws the error
93: [15:59:58] <Jayashleysmith> Apache 2.2
94: [16:00:20] * Guits quit (Ping timeout: 264 seconds)
95: [16:00:46] <Jayashleysmith> Silverstripe 3.1.8
96: [16:00:53] <Jayashleysmith> PPH 5.4
97: [16:00:56] <Jayashleysmith> PHP*
98: [16:03:25] * nontgor quit (Ping timeout: 252 seconds)
99: [16:07:16] * Jayashleysmith quit (Ping timeout: 246 seconds)
100: [16:16:00] * nontgor has joined #silverstripe
101: [16:16:42] <darjus01> Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Indentation problem at line 10 ( Director:)' in /home/admin/domains/darjusit.com/public_html/sapnas.dev/framework/thirdparty/zend_translate_railsyaml/library/Translate/Adapter/thirdparty/sfYaml/lib/sfYamlParser.php:360 Stack trace: #0 /home/admin/domains/darjusit.com/public_html/sapnas.dev/framework/thirdparty/zend_translate_railsyaml/library/Translate/Adap
102: [16:16:54] <darjus01> can some one help
103: [16:18:14] <nontgor> Jayashleysmit: Late my time now (Thailand) but I started seeing that error when using SS3. It basically means method signatures need to be the same as the classes being extended from
104: [16:18:44] <nontgor> Jayashleysmit: ie cant have private $db =... in the parent class and public $db = .... in the child class - same goes for methods
105: [16:21:55] <darjus01> dah founded my configExtention.php kad class confiExtention
106: [16:22:06] <darjus01> sily mistake of typing
107: [16:25:10] * Guits has joined #silverstripe
108: [16:28:53] <zauberfisch> darjus01:
109: [16:28:54] <zauberfisch> >getConfig()->getComponentsByType('GridFieldAddNewButton')->setButtonName('Add Extra Product Gallery Images');
110: [16:29:06] <zauberfisch> didn't work because ->getComponentsByType('GridFieldAddNewButton') returns a list of buttons
111: [16:29:09] <zauberfisch> not just one
112: [16:29:44] <zauberfisch> do this: ->getConfig()->getComponentsByType('GridFieldAddNewButton')->first()->setButtonName('Add Extra Product Gallery Images');
113: [16:30:39] <zauberfisch> darjus01: and if that works, please post the solution as answer to http://stackoverflow.com/questions/29183998/silverstripe-3-1-change-the-default-button-text-of-the-gridfield-add-button
114: [16:32:01] * Shrike_Finland has joined #silverstripe
115: [16:44:11] * Shrike_Finland quit (Ping timeout: 265 seconds)
116: [16:51:53] * Guits quit (Ping timeout: 250 seconds)
117: [16:58:47] * Guits has joined #silverstripe
118: [17:14:14] * MrGuits has joined #silverstripe
119: [17:14:21] * Guits quit (Read error: Connection reset by peer)
120: [17:26:11] <darjus01> then you put NewsPage whitch extends Page to ModelAdmin, then you News from ModelAdmin it saves to draft even it need to be restored, how to fix this?
121: [17:28:11] * Guits has joined #silverstripe
122: [17:28:57] * MrGuits quit (Read error: Connection reset by peer)
123: [17:35:30] * MrGuits has joined #silverstripe
124: [17:38:59] * Guits quit (Ping timeout: 245 seconds)
125: [17:39:16] * Guits has joined #silverstripe
126: [17:41:54] * MrGuits quit (Ping timeout: 245 seconds)
127: [17:43:42] * superspring quit (Ping timeout: 246 seconds)
128: [17:45:54] * superspring has joined #silverstripe
129: [17:47:35] <darjus01> then you put NewsPage whitch extends Page to ModelAdmin, then you News from ModelAdmin it saves to draft even it need to be restored, how to fix this?
130: [18:29:04] <ss-helper> Update filter in extension - http://www.silverstripe.org/community/forums/data-model-questions/show/101393
131: [18:43:18] * gelignite has joined #silverstripe
132: [18:57:56] * jedateach has joined #silverstripe
133: [19:53:57] * jedateach quit (Quit: jedateach)
134: [20:29:25] <ss-helper> Re: stop overwriting files with setReplaceFile(false) - http://www.silverstripe.org/community/forums/customising-the-cms/show/101382#post400833
135: [20:29:25] <ss-helper> Re: stop overwriting files with setReplaceFile(false) - http://www.silverstripe.org/community/forums/customising-the-cms/show/101382#post400832
136: [20:30:30] * Hailwood has joined #silverstripe
137: [20:31:59] * superspring quit (Ping timeout: 246 seconds)
138: [20:38:12] * superspring has joined #silverstripe
139: [20:53:08] * Azure quit (Quit: My MBP went to sleep.)
140: [20:57:16] * Azure has joined #silverstripe
141: [21:00:55] * darjus01 quit (Ping timeout: 246 seconds)
142: [21:21:52] <Hailwood> Hey guys, with GridFiledEditableColumns how would I output the image from the records relation (ala $record->Image()->CMSThumbnail())
143: [21:22:09] <Hailwood> The best I have been able to do is have it output the <img> tag as text
144: [21:29:02] * nontgor quit (Ping timeout: 244 seconds)
145: [21:42:38] * nontgor has joined #silverstripe
146: [22:12:15] * Stomach has joined #silverstripe
147: [22:15:26] * benjhocking1 has joined #silverstripe
148: [22:16:51] * benjhocking quit (Ping timeout: 252 seconds)
149: [22:24:56] * nontgor quit (Ping timeout: 265 seconds)
150: [22:29:54] <ss-helper> SilverStripe 3.1.0-beta2 - https://groups.google.com/d/msg/silverstripe-announce/fT3lquh9T9I/KMJoBhlz0b0J
151: [22:29:54] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
152: [22:29:55] <ss-helper> SilverStripe 3.1.0-beta2 - https://groups.google.com/d/msg/silverstripe-announce/fT3lquh9T9I/KMJoBhlz0b0J
153: [22:36:06] * muskie9 has joined #silverstripe
154: [22:37:19] * nontgor has joined #silverstripe
155: [22:44:55] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
156: [22:50:51] <Hailwood> Is there a standard way to get an edit link for an arbitrary DO?
157: [22:55:03] <SphereSilver> What exactly do you mean Hailwood ?
158: [22:55:19] <SphereSilver> The edit-link is just the link
159: [22:55:33] <SphereSilver> But opening it directly will open an unstyled form instead of DO
160: [23:00:14] <simon_w> Hailwood, since a DO can be edited from multiple places, no
161: [23:01:08] <Hailwood> Ah righto, that makes sense. I guess if I wanted that I should look at setting up a model admin heh.
162: [23:07:23] <Hailwood> simon_w, I have a gridfield setup like so: https://gist.github.com/hailwood/519e639038387d73da0d which is working fine except the link is outputting as text rather than an html link - any ideas?
163: [23:08:14] <simon_w> Hailwood, return a HTMLText object
164: [23:14:09] <Hailwood> simon_w, I tried that - (see revised gist) but all that does it make it output nothing.
165: [23:14:32] <Hailwood> I also tried setting setFieldCasting() to no effect
166: [23:22:01] * veb has joined #silverstripe
167: [23:28:07] <SphereSilver> There's a woman sleeping in my bed. What should I do?
168: [23:30:42] * benjhocking1 quit (Quit: Leaving.)
169: [23:40:32] <Hailwood> What am I doing wrong! http://i.imgur.com/yYzsRNd.png
170: [23:43:08] <SphereSilver> What is wrong with that view?
171: [23:44:20] <SphereSilver> Kitty is in heat. Time to call the vet
172: [23:46:15] * UncleCheese has joined #silverstripe
173: [23:46:32] <SphereSilver> Well, speaking of the devil
174: [23:46:41] <SphereSilver> Hailwood => here's UncleCheese
175: [23:46:45] <UncleCheese> hi
176: [23:46:47] <SphereSilver> UncleCheese => Hailwood
177: [23:47:17] <SphereSilver> Hailwood has a question about gridfield, and I think you're the one who can answer all his questions UncleCheese ;)
178: [23:47:23] <UncleCheese> ok
179: [23:47:40] <Hailwood> Hi UncleCheese - So basically I'm trying to output a link in the gridfield - but here's the result: http://i.imgur.com/yYzsRNd.png
180: [23:48:21] <UncleCheese> what's the result?
181: [23:48:39] * muskie9 is now known as muskie9_afk
182: [23:49:24] <Hailwood> *and now I work it out*..
183: [23:49:47] <Hailwood> UncleCheese, Basically it was outputting the html for the link as text, then I found setFieldFormatting. Yeah problem sovled.
184: [23:49:49] <Hailwood> *solved.
185: [23:51:09] <SphereSilver> Hailwood: Please make a pasty or something how you did it, for future reference ;)
186: [23:51:36] <SphereSilver> Sorry to have bothered you UncleCheese, you can go back to becoming OldCheese :P
187: [23:52:54] * muskie9_afk is now known as muskie9
188: [23:54:43] <UncleCheese> Hailwood I believe $casting would have also solved your isue
189: [23:56:15] <Hailwood> UncleCheese, $casting? I tried ->setFieldCasting(['PageEditLink' => 'HTMLText']) but it had no effect
190: [23:56:24] <UncleCheese> no, in your dataobject
191: [23:56:39] <SphereSilver> I don't think just casting would do the trick...
192: [23:56:42] <UncleCheese> private static $casting = array ('someMethodName' => 'HTMLText');
193: [23:57:09] <SphereSilver> Ow, nevermind, I was thinking Hailwood's way
194: [23:57:23] <Hailwood> UncleCheese, Ah righto, yeah this column is one that I only needed in this specific gridfield - not all that list the datafield so was attempting to avoid sticking anything in the DO.
195: [23:57:27] <SphereSilver> Yeah, just static casting in the model should probably do the trick too :)
196: [23:58:06] <SphereSilver> You can cast to a function which returns the html even. But, that means, you're rendering html in your model, which is.... unconventional
197: [23:59:59] <Hailwood> UncleCheese, Next question about the gridfields, my relations go Page -> HasMany Category -> ManyMany Document.

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