#silverstripe IRC Log

IRC log for 30 April 2013

All timestamps are in UTC.

1: [00:00:00] <FrozenFire> They don't care about rich editing, versioning/publishing, etc.
2: [00:00:00] <FrozenFire> But, there are still parts of projects where they do want something like that. I just keep it separate.
3: [00:00:00] <jkaunisv> haha, do you do porn?
4: [00:00:00] <FrozenFire> It's getting to the point where I might just drop the Pages section altogether
5: [00:01:00] <FrozenFire> I've also done religious education projects
6: [00:01:00] <FrozenFire> Heh. Not specifically, but I've done projects which were borderline that.
7: [00:02:00] <FrozenFire> Have a good one
8: [00:02:00] <jkaunisv> well my battery's dead, gotta run. cheers
9: [00:06:00] * jkaunisv quit (Ping timeout: 245 seconds)
10: [00:08:00] * spronk has left #silverstripe
11: [00:08:00] * spronk has joined #silverstripe
12: [00:11:00] * Zauberfisch quit (Remote host closed the connection)
13: [00:15:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
14: [00:20:00] * Zauberfisch|idle has joined #silverstripe
15: [00:25:00] * SightUnseen has joined #silverstripe
16: [00:29:00] * SightUnseen has left #silverstripe
17: [00:41:00] * SightUnseen has joined #silverstripe
18: [00:43:00] * SightUnseen has left #silverstripe
19: [01:10:00] * cloph is now known as cloph_away
20: [01:12:00] * howardgrigg has joined #silverstripe
21: [01:12:00] * DesignerX has joined #silverstripe
22: [01:18:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
23: [01:25:00] * howardgrigg quit (Remote host closed the connection)
24: [01:26:00] * DesignerX has joined #silverstripe
25: [01:30:00] * mirrors has joined #silverstripe
26: [01:31:00] <mirrors> Hey using SS2.4 i cannot use console.log() in my js code in the admin area
27: [01:31:00] <mirrors> is there a way to enable it to work
28: [01:31:00] <mirrors> it works fine on the front end
29: [01:44:00] * howardgrigg has joined #silverstripe
30: [01:48:00] <Pyromanik> what am I doing wrong?
31: [01:48:00] <Pyromanik> method 'form' does not exist on 'ErrorPage_Controller' - but it inherits from ContentController... :<
32: [01:49:00] <Pyromanik> Page_Controller { public function Form() { $form = parent::Form(); //dies
33: [01:50:00] <Pyromanik> FrozenFire: any ideas?
34: [01:50:00] <Pyromanik> mirrors: block the firebug extensions js script thing, iirc.
35: [01:52:00] <Pyromanik> also, jkaunisv really just wanted to ComponentsList::add()
36: [01:52:00] <Pyromanik> 11:52 < jkaunisv> but it never details how to create that relationship beyond "make it in the cms" basically
37: [01:52:00] <Pyromanik> after all that wall of text
38: [01:53:00] <Pyromanik> tutorial is written for newbies, thus, uses CMS interface because it used to never not be there.
39: [01:54:00] <Pyromanik> compentent developers are expected to be able to use api docs.
40: [01:54:00] <Pyromanik> anyway, rant over. Why my form bung? :<
41: [01:55:00] <FrozenFire> Pyromanik, Why exactly would you think that the parent has a Form?
42: [01:55:00] <Pyromanik> hmm
43: [01:55:00] <Pyromanik> I guess because I'm just having a moment.
44: [01:55:00] <Pyromanik> but your'e right, templates just return null if hasmethod returns nope
45: [01:56:00] <Pyromanik> and just alter (add) a field.
46: [01:56:00] <Pyromanik> I want to get a form
47: [01:56:00] <FrozenFire> And typically you would just either define Form, or customise with Form
48: [01:56:00] <FrozenFire> Indeed
49: [01:56:00] <Pyromanik> forgot that part.
50: [01:56:00] <Pyromanik> hmm
51: [01:56:00] <FrozenFire> The whole Page.ss having a $Form is for that purpose
52: [01:56:00] <Pyromanik> which I've defined on a decorator
53: [01:56:00] <FrozenFire> Not having to define a custom template to get a form in the page.
54: [01:57:00] <FrozenFire> So get the form and transform it
55: [01:57:00] <FrozenFire> Eh
56: [01:57:00] <Pyromanik> but
57: [01:57:00] <Pyromanik> hmm
58: [01:57:00] <FrozenFire> Then return it
59: [01:57:00] <Pyromanik> ding
60: [01:57:00] * Pyromanik lightbulbs
61: [01:57:00] * liam_ is now known as Guest10321
62: [01:57:00] <Pyromanik> I want $this->extend('Form'), not parent::Form()
63: [01:57:00] <FrozenFire> Probably not
64: [01:57:00] <FrozenFire> Hokay?
65: [01:57:00] <Pyromanik> yeah
66: [01:57:00] * liam_ has joined #silverstripe
67: [01:58:00] <Pyromanik> Guest10321: yeah, facebook is crap.
68: [01:58:00] <FrozenFire> You can get can the instance of an extension on the Object
69: [01:58:00] <FrozenFire> And bind the object to the extension, then call that method
70: [01:58:00] <Guest10321> any helpful ideas what could be causing that error? http://www.sspaste.com/paste/show/517f24d6c0b54
71: [01:58:00] <Guest10321> I am trying to use the facebook connect module but when I log in I am getting this error http://www.sspaste.com/paste/show/517f24d6c0b54
72: [01:58:00] <Guest10321> any ideas?
73: [01:58:00] <FrozenFire> Object::extend doesn't have a reliable return value.
74: [01:58:00] <Pyromanik> yeah, maybe not
75: [01:59:00] <Pyromanik> but
76: [01:59:00] <Pyromanik> FrozenFire: eh?
77: [01:59:00] <Pyromanik> Guest10321: yes, facebook is crap
78: [01:59:00] <FrozenFire> $ext = $this->getExtensionInstance("TheExtensionYouWant");
79: [01:59:00] <Pyromanik> and/or the sdk that's bundled with the module is out of date
80: [01:59:00] <FrozenFire> $ext->setOwner($this);
81: [01:59:00] <FrozenFire> $form = $ext->Form();
82: [01:59:00] <Pyromanik> FrozenFire: but it should already be bound, no?
83: [01:59:00] <FrozenFire> You'd think
84: [01:59:00] <FrozenFire> But you'd be wrong
85: [01:59:00] <Pyromanik> :<
86: [01:59:00] <Pyromanik> but
87: [01:59:00] <Guest10321> Pyromanik: its a silverstripe error though???.
88: [02:00:00] <Pyromanik> not even really an error
89: [02:00:00] <Pyromanik> Guest10321: no it's not.
90: [02:00:00] <Pyromanik> it's a php error that's been caught and prettied up
91: [02:00:00] <Pyromanik> because it's not a fatal error, it's a notice level error
92: [02:00:00] <Pyromanik> if you tell php to ignore notices you'll probably find it works fine
93: [02:00:00] <Pyromanik> but that's not really the best solution
94: [02:00:00] <Pyromanik> yeah whut
95: [02:01:00] <Pyromanik> but if you're pressed for time it'll do
96: [02:02:00] <Guest10321> Pyromanik: ok what is the way to ignore the noticies?
97: [02:02:00] <FrozenFire> Lollers
98: [02:02:00] <FrozenFire> http://api.silverstripe.org/master/source-class-Object.html#602
99: [02:04:00] <FrozenFire> Might want to just update it yourself, if it's a module
100: [02:04:00] <Pyromanik> ... my boss is playing golf in the office.
101: [02:04:00] <FrozenFire> Guest10321, You sure you're not using an old version of the SDK?
102: [02:04:00] <FrozenFire> Alternatively, talk to simon_w
103: [02:05:00] <FrozenFire> Actually, no, that's not it
104: [02:05:00] <FrozenFire> There's another one
105: [02:05:00] <FrozenFire> He had a good one through PocketRent that I use all the time
106: [02:05:00] <FrozenFire> https://github.com/MediaDevils/silverstripe-facebookconnect
107: [02:05:00] <FrozenFire> I think?
108: [02:06:00] <FrozenFire> https://svn.pocketrent.com/public/facebook/trunk/
109: [02:06:00] <Pyromanik> Guest10321: http://www.php.net/manual/en/errorfunc.constants.php
110: [02:07:00] <Guest10321> FrozenFire: I am using the latest one from https://github.com/wilr/silverstripe-facebookconnect
111: [02:08:00] <FrozenFire> simon_w's is better
112: [02:08:00] <FrozenFire> I've used it in the past
113: [02:08:00] <FrozenFire> Yeah, that one's iffy at best
114: [02:13:00] <Pyromanik> FrozenFire: oh, that's what the problem is :<
115: [02:13:00] <Pyromanik> "Run the given function on all of this object's extensions. Note that this method originally returned void, so if you wanted to return results, you're hosed"
116: [02:13:00] * Guest10321 quit (Read error: Connection reset by peer)
117: [02:14:00] <FrozenFire> :P
118: [02:14:00] <Pyromanik> FrozenFire: yeh, but I was interested as to why it works in dataobject but not contentcontroller
119: [02:14:00] <FrozenFire> Execute the method you want.
120: [02:14:00] <FrozenFire> Get the instance. Bind the object to it.
121: [02:14:00] * liam_ has joined #silverstripe
122: [02:14:00] <FrozenFire> Didn't I just say not to bother with extend?
123: [02:14:00] * liam_ is now known as Guest80149
124: [02:15:00] <FrozenFire> It does
125: [02:15:00] <Pyromanik> yeh
126: [02:15:00] <Pyromanik> but no return :<
127: [02:16:00] <FrozenFire> Are you using extend?
128: [02:17:00] <Pyromanik> but it just runs, doesn't return.
129: [02:17:00] <Pyromanik> well, I was under the false impression that it would return what I wanted.
130: [02:17:00] <Pyromanik> even though it's supposed to return an array of returns from each extension, it just returns an empty array
131: [02:18:00] * Guest80149 quit (Ping timeout: 245 seconds)
132: [02:19:00] <Pyromanik> just maybe
133: [02:19:00] <FrozenFire> Or maybe, just maybe, don't do that.
134: [02:19:00] <Pyromanik> or maybe
135: [02:20:00] <Pyromanik> no, just maybe, that moment
136: [02:20:00] <Pyromanik> http://devopsreactions.tumblr.com/post/48683090696/
137: [02:20:00] <FrozenFire> Object::extend is for *calling*, not for getting the return
138: [02:20:00] <FrozenFire> You can pass them a value to mutate
139: [02:20:00] <FrozenFire> E.g. with updateCMSFields
140: [02:21:00] <FrozenFire> But the return value is worthless.
141: [02:21:00] <FrozenFire> Not sure of the behaviour if there are multiple
142: [02:21:00] <FrozenFire> If you just do $this->SomeMethod(), it will call the extension if there is one
143: [02:22:00] <Pyromanik> although newer versions of ss return an array of return values
144: [02:22:00] <FrozenFire> Which shouldn't be relied up
145: [02:22:00] <FrozenFire> upon**
146: [02:22:00] <Pyromanik> (indexed, one index per non-false/null/empty return value)
147: [02:22:00] <Pyromanik> FrozenFire: yeah, I got that
148: [02:23:00] <Pyromanik> once I figured out what I was doing wrong with my own code :<
149: [02:23:00] <Pyromanik> yeh
150: [02:23:00] <FrozenFire> The call order isn't guaranteed
151: [02:23:00] <Pyromanik> I used your method in the end
152: [02:23:00] <Pyromanik> thanks for the help :)
153: [02:23:00] <Pyromanik> works fine now
154: [02:57:00] * UncleCheese has joined #silverstripe
155: [03:00:00] * mobiusnz quit (Quit: Leaving.)
156: [03:00:00] * mobiusnz has joined #silverstripe
157: [03:01:00] * mobiusnz quit (Client Quit)
158: [03:01:00] * mobiusnz has joined #silverstripe
159: [03:34:00] <simon_w> Pyromanik, have a look at how DataObject::extendedCan() for how the return value of an ->extend() call is used
160: [03:39:00] <DesignerX> HI, anyone had a problem with SSViewer::current_theme(); where it only retuns the wrong theme name if I change the theme in the CMS SiteConfig ? It seems to always return the vlaue set in _config.php .
161: [03:39:00] <mirrors> hi Pyromanik: I what do you mean by "block the firebug extensions js script thing, iirc."
162: [03:45:00] <simon_w> DesignerX, you're calling it too early?
163: [03:46:00] <simon_w> mirrors, 2.4 had a "firebug dev" JS file that would null-out console for everyone else
164: [03:46:00] * cloph_away1 has joined #silverstripe
165: [03:47:00] <mirrors> simon_w: do you know how I can block this file just for my testing
166: [03:48:00] * cloph_away quit (Ping timeout: 272 seconds)
167: [03:48:00] <DesignerX> simon_w: calling it in my GallyerImage object . not sure if this too early ? & shouldnt the default theme set in _config.php writtin to the db on 1st install (before I manually set it in the CMS & save the config ) so we can use " SiteConfig::current_site_config()->Theme "
168: [03:48:00] <simon_w> mirrors, Requirements::block('sapphire/thirdparty/firebug-lite/firebugx.js');
169: [03:52:00] <simon_w> DesignerX, no, that would couple SiteConfig to framework. And it should be set after ContentController::init() is called
170: [03:52:00] <mirrors> simon_w: that stops it from appearing in the script tab in firefug...however now there is an extra ajax call that returns it
171: [03:52:00] <mirrors> and console still do not work
172: [03:58:00] * nhorstmeier has joined #silverstripe
173: [03:59:00] <DesignerX> If I have a CustomImage class & have some functions like RenderImageWith() , shouldnt these ben in a CustomImage_Controller class ? which class would it extend at this point ?
174: [04:07:00] * liam_ has joined #silverstripe
175: [04:07:00] * liam_ is now known as Guest85125
176: [04:18:00] * nhorstme_ has joined #silverstripe
177: [04:19:00] * nhorstmeier quit (Ping timeout: 240 seconds)
178: [04:38:00] * nhorstme_ quit (Remote host closed the connection)
179: [04:38:00] * UncleCheese quit (Quit: UncleCheese)
180: [04:40:00] * UncleCheese has joined #silverstripe
181: [04:41:00] <FrozenFire> 99% of the time, don't.
182: [04:41:00] <FrozenFire> And a large part of that remainder, you probably shouldn't.
183: [04:41:00] <FrozenFire> DesignerX, Why are you extending Image?
184: [04:42:00] <DesignerX> the image has more content to go with it
185: [04:43:00] <FrozenFire> Then you probably want a relation to that image
186: [04:43:00] <FrozenFire> E.g. class Slider extends DataObject { public static $has_one = array( "Image" => "Image" ); }
187: [04:44:00] <DesignerX> I have that to, to custom image.. I was talking toi the guys here last night & plan to move most of my extra functions/code to class decorators, for now I kep this in CustomImage so any fails doesnt effect the rest of my website
188: [04:47:00] * liam__ has joined #silverstripe
189: [04:48:00] * Guest85125 quit (Ping timeout: 268 seconds)
190: [04:50:00] * chrisrio quit (Quit: Page closed)
191: [04:54:00] * UncleCheese quit (Quit: UncleCheese)
192: [04:57:00] * mobiusnz quit (Quit: Leaving.)
193: [04:59:00] * nickmolhoek quit (Quit: nickmolhoek)
194: [05:00:00] * nickmolhoek has joined #silverstripe
195: [05:00:00] * nickmolhoek has joined #silverstripe
196: [05:00:00] * nickmolhoek quit (Remote host closed the connection)
197: [05:01:00] * nickmolhoek quit (Client Quit)
198: [05:04:00] * Pyromanik quit (Quit: leaving)
199: [05:09:00] * nhorstmeier has joined #silverstripe
200: [05:11:00] * nhorstme_ has joined #silverstripe
201: [05:11:00] * nhorstmeier quit (Read error: Connection reset by peer)
202: [05:13:00] * nhorstmeier has joined #silverstripe
203: [05:13:00] * nhorstme_ quit (Read error: Connection reset by peer)
204: [05:15:00] * unsignedint quit (Remote host closed the connection)
205: [05:16:00] * Shrike_Finland has joined #silverstripe
206: [05:18:00] * nhorstmeier quit (Remote host closed the connection)
207: [05:28:00] * liam__ has left #silverstripe
208: [05:46:00] * wmk has joined #silverstripe
209: [05:49:00] * guci0 has joined #silverstripe
210: [05:58:00] * nhorstmeier has joined #silverstripe
211: [05:58:00] * nhorstmeier quit (Remote host closed the connection)
212: [06:05:00] * travis-ci has left #silverstripe
213: [06:05:00] * travis-ci has joined #silverstripe
214: [06:05:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#345 (3.1 - b4f2e35 : Sean Harvey): The build passed.
215: [06:05:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c922d08fb7d4...b4f2e35b3266
216: [06:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6748674
217: [06:26:00] * unsignedint has joined #silverstripe
218: [06:31:00] * unsignedint quit (Ping timeout: 260 seconds)
219: [06:36:00] * zfmf has joined #silverstripe
220: [07:03:00] * Error404NotFound has joined #silverstripe
221: [07:17:00] * mirrors quit (Quit: Page closed)
222: [07:17:00] * chillu has joined #silverstripe
223: [07:29:00] * guci0 quit (Ping timeout: 245 seconds)
224: [07:35:00] * SticksM quit (Read error: Connection reset by peer)
225: [07:40:00] * Zauberfisch has joined #silverstripe
226: [07:53:00] * ss23 dies
227: [07:53:00] <ss23> I misread
228: [07:53:00] <ss23> simon_w: OKAY I CONCEEDE
229: [07:57:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
230: [07:59:00] * priithansen has joined #silverstripe
231: [08:02:00] * kinglozzer has joined #silverstripe
232: [08:07:00] * Zauberfisch|idle has joined #silverstripe
233: [08:09:00] * willr__ has joined #silverstripe
234: [08:18:00] * willmorgan has joined #silverstripe
235: [08:22:00] * gelignite has joined #silverstripe
236: [08:25:00] * SightUnseen has left #silverstripe
237: [08:25:00] * SightUnseen has joined #silverstripe
238: [08:27:00] * unsignedint has joined #silverstripe
239: [08:31:00] * unsignedint quit (Ping timeout: 245 seconds)
240: [08:33:00] * waveydave has joined #silverstripe
241: [08:52:00] * SightUnseen has joined #silverstripe
242: [08:52:00] * SightUnseen has left #silverstripe
243: [08:53:00] * zfmf has left #silverstripe
244: [09:07:00] <willmorgan> has anyone else figured out a nice way around the 2.4 widget form controller recursion problem?
245: [09:09:00] * Shrike_Finland quit (Read error: Operation timed out)
246: [09:10:00] * Shrike_Finland has joined #silverstripe
247: [09:13:00] * MrGuits quit (Read error: Connection reset by peer)
248: [09:21:00] * osterlaus has joined #silverstripe
249: [09:21:00] <willmorgan> the only way I can get round it is to put the form factory on the page's controller
250: [09:35:00] * DesignerX quit (Read error: Connection reset by peer)
251: [09:35:00] * DesignerX has joined #silverstripe
252: [09:39:00] * willr__ quit (Quit: willr__)
253: [09:43:00] * svandragt has joined #silverstripe
254: [09:56:00] <willmorgan> hey chillu, did you have a chance to read my reply on the security multiauth templates?
255: [09:56:00] <willmorgan> i have a spare moment now so if you need any changes i can make them
256: [10:01:00] <chillu> willmorgan: Can you include a screenshot how it looks with multiauth on the default simple theme? Before and after if possible? If I understand you correctly, you've removed the tab functionality? I think thats OK, since most people want to add their own styling - but its something we need to mention in the upgrading guides
257: [10:05:00] * Zauberfisch quit (Ping timeout: 245 seconds)
258: [10:07:00] <willmorgan> chillu: yeah, that's what I did basically. I'll need to get a simple theme up and running
259: [10:07:00] <simon_w> Tests!
260: [10:08:00] <simon_w> The tar ball and _ss_environment.php with SS_DATABASE_CHOOSE_NAME set to 2/3
261: [10:08:00] <willmorgan> btw, do you have any sort of VM that you can use that automatically sets up a default environment? we have our own, but it uses our own skel (and templates)
262: [10:08:00] <willmorgan> might just write a script to pull latest repo, branch, etc
263: [10:09:00] <chillu> We are statrting to use Vagrant alongside our internal Puppet scripts, but no readymade VM for SS3 public as such
264: [10:09:00] <willmorgan> all right, even
265: [10:09:00] <simon_w> Or composer I suppose
266: [10:09:00] <willmorgan> allrightg
267: [10:09:00] <willmorgan> we're using Vagrant at BB for that sort of thing now
268: [10:28:00] * cloph_away1 is now known as cloph
269: [10:32:00] <svandragt> when using the gridfieldrelationhandler and deleting a record that has linked table records, the linked table records remain as orphans, is this intentional and a situation I should handle manually?
270: [10:33:00] <svandragt> it's causing issues with AjaxUniqueFormField
271: [10:33:00] <simon_w> The default GridFieldDeleteAction for a GridFieldConfig_RelationEditor only removes the relation
272: [10:34:00] <simon_w> Just replace it with one that deletes the record
273: [10:35:00] <svandragt> simon_w: ok thanks
274: [10:45:00] * kerosene has joined #silverstripe
275: [10:55:00] * willmorgan quit (Read error: Connection reset by peer)
276: [10:55:00] * willmorgan has joined #silverstripe
277: [11:04:00] * dangerdan has joined #silverstripe
278: [11:13:00] <dangerdan> all is well and good but i would like to add subsections to each section, but i want to do that with my AccordionSection DataObject, how can I do this? does my has_one AccordionPage make this unwork-able? i could make a childAccordionSection DataObject, but it would just be the same but with an AccordionSection has_one as opposed to AccordionPage which seems abit ineffective to me
279: [11:13:00] <dangerdan> i'm trying to make an accordion page type, and so far i have this: http://pastebin.com/H4zNExhw
280: [11:29:00] * Colin[pi] quit ()
281: [11:31:00] * UncleCheese has joined #silverstripe
282: [11:33:00] * svandragt quit (Read error: Connection reset by peer)
283: [11:44:00] * UncleCheese quit (Quit: UncleCheese)
284: [11:53:00] * osterlaus has left #silverstripe
285: [12:21:00] * g4b0 has joined #silverstripe
286: [12:28:00] * UncleCheese has joined #silverstripe
287: [12:57:00] * osterlaus has joined #silverstripe
288: [13:08:00] * dangerdan quit (Ping timeout: 245 seconds)
289: [13:14:00] * UndefinedOffset has joined #silverstripe
290: [13:17:00] * Shrike_Finland quit (Quit: Leaving.)
291: [13:31:00] * UncleCheese quit (Quit: UncleCheese)
292: [13:33:00] * UncleCheese has joined #silverstripe
293: [13:38:00] * toebu has joined #silverstripe
294: [13:41:00] * UncleCheese quit (Quit: UncleCheese)
295: [13:54:00] * travis-ci has joined #silverstripe
296: [13:54:00] <travis-ci> [travis-ci] silverstripe/sapphire#2108 (2.4 - ff63d7a : Ingo Schommer): The build has errored.
297: [13:54:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c26b83ebfb19...ff63d7ae269d
298: [13:54:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6758117
299: [13:54:00] * travis-ci has left #silverstripe
300: [14:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/cef955c8b912...284245c3deee
301: [14:03:00] * travis-ci has joined #silverstripe
302: [14:03:00] <travis-ci> [travis-ci] silverstripe/sapphire#2107 (3.1 - 284245c : Ingo Schommer): The build passed.
303: [14:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6757960
304: [14:03:00] * travis-ci has left #silverstripe
305: [14:16:00] * wmk quit (Ping timeout: 252 seconds)
306: [14:19:00] <obbo> is there any way to have a virtualpage use the sidebar navigation from its content source page?
307: [14:19:00] <obbo> hello
308: [14:19:00] * obbo has joined #silverstripe
309: [14:21:00] * dangerdan has joined #silverstripe
310: [14:25:00] * lx-berlin_ has joined #silverstripe
311: [14:31:00] * osterlaus has left #silverstripe
312: [14:39:00] <obbo> tried scoping the sidebar to the content source page with Page()
313: [14:39:00] <willmorgan> obbo: what have you tried so far?
314: [14:40:00] <obbo> stuff like LinkOrSection doesn't carry over
315: [14:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#2108 (2.4 - ff63d7a : Ingo Schommer): The build failed.
316: [14:46:00] * zfmf quit (Read error: Connection reset by peer)
317: [14:46:00] * zfmf has joined #silverstripe
318: [14:46:00] * travis-ci has left #silverstripe
319: [14:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6758117
320: [14:46:00] * travis-ci has joined #silverstripe
321: [14:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c26b83ebfb19...ff63d7ae269d
322: [14:47:00] * UncleCheese has joined #silverstripe
323: [14:47:00] * zfmf has joined #silverstripe
324: [14:51:00] <dangerdan> is there something like replaceFieldFromTab? or similar? or do you just have to do removeFieldFromTab followed by addFieldToTab
325: [14:53:00] * lx-berlin_ quit (Ping timeout: 252 seconds)
326: [14:58:00] * obbo quit (Quit: Page closed)
327: [15:14:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
328: [15:14:00] * UncleCheese quit (Quit: UncleCheese)
329: [15:29:00] <FrozenFire> dangerdan, Did you read the manual?
330: [15:30:00] <FrozenFire> You know, the thing which say what things do.
331: [15:30:00] <FrozenFire> The manual
332: [15:30:00] <dangerdan> the getting started tutorials?
333: [15:31:00] <dangerdan> no then
334: [15:32:00] <FrozenFire> Should probably give that a go.
335: [15:33:00] <FrozenFire> http://lmgtfy.com/?q=silverstripe+documentation
336: [15:33:00] <dangerdan> i would if i knew where it was
337: [15:33:00] <dangerdan> i havent seen a silverstripe manual
338: [15:34:00] <dangerdan> its very hard to find stuff though
339: [15:34:00] <dangerdan> yes im familiar with that
340: [15:35:00] <dangerdan> you are chewing me out a bit
341: [15:35:00] <FrozenFire> dangerdan, I'm not chewing you out. I'm teaching you to fish, so to speak. :P
342: [15:35:00] <kinglozzer> It works
343: [15:35:00] <FrozenFire> kinglozzer, Nah, that's not how to do it.
344: [15:35:00] <dangerdan> w/e sorry for bothing you
345: [15:35:00] <kinglozzer> dangerdan: If you just do ->addFieldToTab() it should replace it
346: [15:35:00] <FrozenFire> Do you know what you're operating on when you manipulate fields?
347: [15:35:00] <dangerdan> i know how to fish, but i find fishing with silverstripe quite hard
348: [15:36:00] <FrozenFire> site:api.silverstripe.org/master fieldlist
349: [15:36:00] <FrozenFire> I'd be chewing you out if you refused to learn. ;)
350: [15:36:00] <dangerdan> i find it easier to just look straight into the source code sometimes...
351: [15:39:00] <FrozenFire> Why did it not?
352: [15:39:00] <dangerdan> are you on about replacefield? this didnt work in my case
353: [15:41:00] <dangerdan> im not sure - there wasnt any errors, but i should elaborate a bit i'm not just working on a page... its a page i'm working on that has data objects and those data objects have data objects... i'll just pastebin the code
354: [15:41:00] <FrozenFire> Field names are unique across a FieldList
355: [15:41:00] <dangerdan> http://pastebin.com/RUH7Gzv5
356: [15:41:00] <FrozenFire> So you don't need to specify a tab
357: [15:41:00] <FrozenFire> Are you sure you're targeting the correct field name?
358: [15:41:00] <FrozenFire> The best way to know is to inspect the field name through your browser, as the name of the input
359: [15:42:00] <FrozenFire> You're targeting "Root.Main"
360: [15:42:00] <dangerdan> line 133
361: [15:42:00] <dangerdan> sorry
362: [15:42:00] * zfmf has left #silverstripe
363: [15:42:00] <FrozenFire> $fields->replaceField("Content", $ContenField)
364: [15:42:00] <FrozenFire> Instead of the field name
365: [15:43:00] <dangerdan> that line works actually
366: [15:46:00] * toebu quit (Remote host closed the connection)
367: [15:53:00] * kerosene quit (Quit: satan is good. satan is our pal)
368: [15:57:00] <willmorgan> find function, read source :-P
369: [15:57:00] <willmorgan> ctrl+p type class name, hit enter
370: [15:57:00] <willmorgan> for reference, if you ever get stuck on a function
371: [15:57:00] <willmorgan> cool
372: [15:57:00] <dangerdan> sublime text
373: [15:57:00] <willmorgan> dangerdan what IDE are you using?
374: [15:58:00] <willmorgan> i don't mean to sound harsh, but it's a really good habit to get in to
375: [16:02:00] * g4b0 quit (Quit: Sto andando via)
376: [16:03:00] * dangerdan quit (Quit: Page closed)
377: [16:04:00] <willmorgan> best skill development resource ever
378: [16:04:00] <willmorgan> also, http://whathaveyoutried.com/
379: [16:04:00] * dangerdan has joined #silverstripe
380: [16:10:00] * kinglozzer quit (Remote host closed the connection)
381: [16:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6762057
382: [16:12:00] * travis-ci has left #silverstripe
383: [16:12:00] * travis-ci has joined #silverstripe
384: [16:12:00] * travis-ci has left #silverstripe
385: [16:12:00] * travis-ci has joined #silverstripe
386: [16:12:00] <travis-ci> [travis-ci] silverstripe/sapphire#2109 (2.4 - a239433 : Ingo Schommer): The build was fixed.
387: [16:12:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/ff63d7ae269d...a2394331aff1
388: [16:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6762079
389: [16:12:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#346 (2.4 - f8cfb5a : Ingo Schommer): The build passed.
390: [16:12:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/f212ebe0f059...f8cfb5afd624
391: [16:15:00] * Error404NotFound quit (Ping timeout: 246 seconds)
392: [16:16:00] * travis-ci has left #silverstripe
393: [16:16:00] * kinglozzer quit (Remote host closed the connection)
394: [16:16:00] * kinglozzer has joined #silverstripe
395: [16:16:00] * travis-ci has joined #silverstripe
396: [16:16:00] <travis-ci> [travis-ci] silverstripe/sapphire#2108 (2.4 - ff63d7a : Ingo Schommer): The build failed.
397: [16:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c26b83ebfb19...ff63d7ae269d
398: [16:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6758117
399: [16:18:00] * dangerdan quit (Quit: Page closed)
400: [16:27:00] * Error404NotFound has joined #silverstripe
401: [16:27:00] * Error404NotFound quit (Read error: Connection reset by peer)
402: [16:43:00] * travis-ci has joined #silverstripe
403: [16:43:00] * travis-ci has left #silverstripe
404: [16:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6762619
405: [16:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/7803d982bbba...bef2905bfdfc
406: [16:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#2111 (3.0 - bef2905 : Ingo Schommer): The build passed.
407: [16:44:00] * waveydave has left #silverstripe
408: [16:45:00] * zfmf has joined #silverstripe
409: [16:54:00] <FrozenFire> Form::disableSecurityToken() will disable the need for a session, for a form to work, yes?
410: [16:54:00] <FrozenFire> A client has a page that they leave open on a display in their brick and mortar, and it throws errors due to the session expiring
411: [16:55:00] * Shrike_Finland has joined #silverstripe
412: [17:01:00] <willmorgan> FrozenFire: there are also form errors and messages that are held in session
413: [17:02:00] <willmorgan> you could ping with AJAX every 10 minutes or so to keep it from expiring
414: [17:02:00] <FrozenFire> Well, form errors aren't a biggie.
415: [17:03:00] <FrozenFire> They just don't want errors because of the security token failing
416: [17:07:00] * willmorgan quit (Ping timeout: 252 seconds)
417: [17:32:00] * howardgrigg quit (Ping timeout: 245 seconds)
418: [17:42:00] * Error404NotFound has joined #silverstripe
419: [17:45:00] * zfmf has left #silverstripe
420: [17:46:00] <priithansen> has anybody used gridfield on plain arraylist/arraydata? It want's to check for canView in arraydata
421: [17:53:00] * Error404NotFound quit (Read error: Connection reset by peer)
422: [17:53:00] * Error404NotFound has joined #silverstripe
423: [17:53:00] * Error404NotFound quit (Remote host closed the connection)
424: [17:55:00] * UncleCheese has joined #silverstripe
425: [17:55:00] * Nivery has joined #silverstripe
426: [18:01:00] * UncleCheese quit (Quit: UncleCheese)
427: [18:04:00] * UncleCheese has joined #silverstripe
428: [18:10:00] * UncleCheese quit (Quit: UncleCheese)
429: [18:17:00] * thejhnz has joined #silverstripe
430: [18:20:00] * Extro quit (Ping timeout: 268 seconds)
431: [18:26:00] * howardgrigg has joined #silverstripe
432: [18:39:00] * simon_w quit (Quit: This computer has gone to sleep)
433: [18:44:00] * howardgrigg quit (Ping timeout: 272 seconds)
434: [18:48:00] * howardgrigg has joined #silverstripe
435: [18:59:00] <ss23> What do I use to do that?
436: [18:59:00] <ss23> So this is probably rlealy simple, but I want a site wide thing. like page has_many thingies, but like... more like site has_many thingies
437: [19:14:00] * simon_w has joined #silverstripe
438: [19:20:00] * chillu quit (Quit: chillu)
439: [19:22:00] <ss23> ty
440: [19:22:00] <ss23> simon_w: So this is probably rlealy simple, but I want a site wide thing. like page has_many thingies, but like... more like site has_many thingies
441: [19:22:00] <ss23> :D
442: [19:22:00] <simon_w> SiteConfig
443: [19:22:00] * terryapodaca has joined #silverstripe
444: [19:32:00] <FrozenFire> But including any editing component will result in errors galore
445: [19:32:00] <FrozenFire> I think you can use it for *viewing* records
446: [19:32:00] <FrozenFire> priithansen, I have, and lolgoodluck
447: [19:33:00] <priithansen> but alreayd went with dataobjects instead
448: [19:33:00] <priithansen> Only need it for viewing some reports in report module
449: [19:34:00] <FrozenFire> I typically just throw HTML into each row in a report
450: [19:34:00] <FrozenFire> Huh?
451: [19:34:00] <FrozenFire> Firstly, assume that reports are broken at all times. :P
452: [19:34:00] <FrozenFire> E.g. for a link
453: [19:38:00] <priithansen> I have it almost working but I have a feeling that my solution is rather retarded and i'm going have to remake it tomorrow
454: [19:39:00] <FrozenFire> SS in a nutshell
455: [19:40:00] <priithansen> I think the retard graph needs to be logarithmic to compare with my code
456: [19:40:00] <simon_w> Or just FrozenFire's code anyway :p
457: [19:52:00] * chillu has joined #silverstripe
458: [19:53:00] * FrozenFire sits here sharpening his knives, staring at simon_w's jab
459: [19:53:00] * chillu quit (Client Quit)
460: [19:55:00] * FrozenFire is waiting for the client to compile
461: [19:55:00] <FrozenFire> :P
462: [19:56:00] * mrzero_ has joined #silverstripe
463: [19:56:00] * mrzero_ has joined #silverstripe
464: [19:56:00] * UndefinedOffset1 has joined #silverstripe
465: [19:56:00] * UndefinedOffset quit (Disconnected by services)
466: [19:56:00] * mrzero_ quit (Changing host)
467: [19:58:00] * mrzero quit (Read error: Operation timed out)
468: [19:58:00] * mrzero_ is now known as mrzero
469: [20:07:00] * Nivery quit (Quit: Nivery)
470: [20:16:00] * Emil_Blume has joined #silverstripe
471: [20:17:00] * UndefinedOffset1 quit (Quit: Leaving.)
472: [20:23:00] * mobiusnz has joined #silverstripe
473: [20:30:00] * unsignedint has joined #silverstripe
474: [20:30:00] * wmk has joined #silverstripe
475: [20:40:00] * nickmolhoek has joined #silverstripe
476: [20:40:00] * nickmolhoek has joined #silverstripe
477: [20:40:00] * nickmolhoek quit (Remote host closed the connection)
478: [21:20:00] * SightUnseen has joined #silverstripe
479: [21:20:00] * SightUnseen has left #silverstripe
480: [21:27:00] * Seventeenfour has joined #silverstripe
481: [21:29:00] * irogue has joined #silverstripe
482: [21:38:00] * Seventeenfour quit (Quit: Page closed)
483: [22:04:00] * terryapodaca quit (Quit: Leaving.)
484: [22:05:00] * terryapodaca has left #silverstripe
485: [22:05:00] * terryapodaca has joined #silverstripe
486: [22:14:00] <wmk> hmm, firebug shows only "no javascript on this page", but there is a script.
487: [22:25:00] <FrozenFire> Anyone else notice that UploadField shows [object Object] for new uploads, in place of the normal controls, until you refresh?
488: [22:46:00] * simon_w quit (Ping timeout: 264 seconds)
489: [22:47:00] * simon_w has joined #silverstripe
490: [22:57:00] * Zauberfisch|idle quit (Ping timeout: 246 seconds)
491: [23:04:00] * Zauberfisch|idle has joined #silverstripe
492: [23:10:00] * robert_ has joined #silverstripe
493: [23:23:00] * robert_ has left #silverstripe
494: [23:30:00] * terryapodaca has joined #silverstripe
495: [23:31:00] <terryapodaca> http://www.dairymax.org/ in Firefox scrolls horizontally, and badly
496: [23:31:00] <terryapodaca> anyone have good CSS skills want to help me debug something?
497: [23:31:00] <terryapodaca> but doesn't do that in any other browser
498: [23:35:00] <FrozenFire> terryapodaca, Something in the page is overflowing
499: [23:35:00] * spronk quit (Read error: Connection reset by peer)
500: [23:35:00] * spronk has joined #silverstripe
501: [23:37:00] <simon_w> terryapodaca, just don't support Firefox :p
502: [23:37:00] <FrozenFire> Happens in Chrome, too
503: [23:39:00] <FrozenFire> I get in Chrome on Linux
504: [23:39:00] <terryapodaca> FrozenFire: I don't get it on any other browser on this Windows machine
505: [23:40:00] <terryapodaca> simon_w: it's a testing thing, plus the client is very adamant about this site being perfect on every browser...except IE luckily
506: [23:41:00] <simon_w> terryapodaca, I get horizontal scrolling from the banner when my window gets narrow enough. Could be that
507: [23:41:00] <terryapodaca> FrozenFire: FF inspect doesn't show me or help me find what's 'overflowing'
508: [23:42:00] <simon_w> And you're likely to find FF more annoying to get right than IE 9/10
509: [23:43:00] <terryapodaca> and since I can't reproduce this in Chrome/Opera/IE/Safari...I have no idea how to fix this
510: [23:44:00] <terryapodaca> yeah, simon_w, the banner is real tricky with many layers
511: [23:46:00] <terryapodaca> i was just hoping a CSS guru could take a quick look and find it super fast
512: [23:46:00] <terryapodaca> :(
513: [23:47:00] <FrozenFire> terryapodaca, It's the slider images
514: [23:47:00] <FrozenFire> banner-holder
515: [23:48:00] <FrozenFire> That *should* cause it to stop overflowing the layout, while allowing it to visually overflow.
516: [23:48:00] * spronk has left #silverstripe
517: [23:48:00] * spronk has joined #silverstripe
518: [23:48:00] <FrozenFire> Add negative margin-left and margin-right to that, equal to the amount it is wider than the inner content area.
519: [23:48:00] <FrozenFire> Though that's not an effect I've ever dealt with, so ymmv
520: [23:51:00] * wmk quit (Ping timeout: 268 seconds)
521: [23:51:00] <FrozenFire> Basically, the explanation is that the banner-holder element is wider than the viewport.
522: [23:51:00] <FrozenFire> So the viewport is forced to overflow horizontally
523: [23:51:00] <FrozenFire> Causing scrollbars.
524: [23:51:00] <terryapodaca> it's overflowing WAY too much...it's weird
525: [23:52:00] <FrozenFire> At least for me
526: [23:52:00] <FrozenFire> Nope. Overflowing exactly as much as it should
527: [23:53:00] <FrozenFire> Yeah, FireFox
528: [23:53:00] <FrozenFire> Christ.
529: [23:53:00] <FrozenFire> Oh wait
530: [23:55:00] <FrozenFire> And 3D view is of no help.
531: [23:55:00] <FrozenFire> :P
532: [23:55:00] <terryapodaca> yeah, I even tried that!
533: [23:56:00] <terryapodaca> lol

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