#silverstripe IRC Log

IRC log for 9 January 2013

All timestamps are in UTC.

1: [00:00:00] <FrozenFire> For somewhat good reason
2: [00:00:00] <FrozenFire> The getCMSFields method does not have access to the current request
3: [00:02:00] <aznain> http://i.imgur.com/WC8Tq.png
4: [00:03:00] <FrozenFire> The 3 in the URL is part of the request
5: [00:03:00] <FrozenFire> But it's not safe to rely upon it
6: [00:03:00] <aznain> thats correct
7: [00:03:00] <FrozenFire> Yes
8: [00:03:00] <FrozenFire> The #3 in the breadcrumbs is because you have not defined a Title field or a getTitle method on the parent object
9: [00:04:00] <aznain> yes thats why I came here to ask question
10: [00:04:00] <aznain> so i can not get id from url in proper way rather than hacking it
11: [00:04:00] <FrozenFire> I still don't understand what you're trying to do.
12: [00:05:00] <aznain> there are two fields in DnzEvent named 'dnzName' and 'dnzDesc' right ?
13: [00:06:00] <aznain> I create an record of DnzEvent and gave "aznain" as value for 'dnzName'. Record is saved ...
14: [00:06:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
15: [00:07:00] <aznain> I click on the create button
16: [00:07:00] <aznain> form is showing ...
17: [00:07:00] <FrozenFire> And what is supposed to show in the form?
18: [00:07:00] <FrozenFire> Yes. What I don't understand is what comes next.
19: [00:07:00] <aznain> getting till so far ?
20: [00:07:00] <aznain> Now I can create DnzEventDate which will be associate with that DnzEvent
21: [00:08:00] <aznain> there should be pre-filled value for dnzNameDate field as 'aznain'. which was given when I saved the DnzEvent
22: [00:09:00] <FrozenFire> Yes. I understand this.
23: [00:09:00] <FrozenFire> But why?
24: [00:09:00] <aznain> I want to pre-filled that field ...
25: [00:09:00] <FrozenFire> Why?
26: [00:10:00] <aznain> as placeholder text ... as default value for that ...
27: [00:10:00] <FrozenFire> The only way to accomplish that is through a hack, because it's not a normal thing to want to do
28: [00:11:00] <FrozenFire> You haven't tried checking the has_one in the getCMSFields method, have you?
29: [00:11:00] <FrozenFire> Or at least, I assume it doesn't
30: [00:11:00] <aznain> hmmm ... ok
31: [00:11:00] <FrozenFire> Your new object does not yet know what its parent will be
32: [00:12:00] <FrozenFire> I don't remember if it sets the parent's ID before or after the form
33: [00:12:00] * guci0 quit (Ping timeout: 245 seconds)
34: [00:13:00] <aznain> I have tried all as much as i know ... I spent time but could not find ... I did not want to just go straight and ask question. ..
35: [00:13:00] <aznain> my thinking was that there should be something which form is gonna use to associate two dataobjects
36: [00:14:00] <aznain> but from where that ID comes ... how does it know ...
37: [00:14:00] <FrozenFire> Well, the form's action that it calls to save the form is probably where it sets the ID of the parent
38: [00:15:00] <FrozenFire> Not sure of the specifics, but it probably has to do with the routing
39: [00:16:00] <aznain> yea but saving form should already have the id in hand ... in order to save ...
40: [00:18:00] <FrozenFire> The ID is supplied by the request, I think
41: [00:19:00] <aznain> hmmm ... I really appreciate at least u r showing me some ways to think ....
42: [00:19:00] * chillu quit (Quit: chillu)
43: [00:20:00] <FrozenFire> Not sure if that exactly will work
44: [00:20:00] <FrozenFire> I'm hesitant to suggest it, because it's really not safe to rely upon it, but you might try something like $id = Controller::curr()->Request->latestParam("ID");
45: [00:26:00] <Bollig|DesignCty> anyone know if I can use onBeforeDuplicate() to overwrite the duplicated pages fields, like change the title etc?
46: [00:27:00] <FrozenFire> You can, yes
47: [00:28:00] <Bollig|DesignCty> yeah, I'm finding it's not working...
48: [00:28:00] <FrozenFire> Hrmm, though it's odd
49: [00:28:00] <FrozenFire> onBeforeDuplicate is passed the original object
50: [00:28:00] * MichaelDesignerX has joined #silverstripe
51: [00:28:00] <Bollig|DesignCty> might just replicate the duplicate() function on my subclass and do it there...
52: [00:28:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/master/model/DataObject.php#L421
53: [00:29:00] <FrozenFire> Yeah, just overload duplicate
54: [00:29:00] <FrozenFire> I can actually understand the reason for passing the original.
55: [00:29:00] <FrozenFire> Nah.
56: [00:29:00] <Bollig|DesignCty> is that a bug the needs to be opened?
57: [00:29:00] * DesignerX quit (Ping timeout: 265 seconds)
58: [00:30:00] <FrozenFire> Since changing that would be a major BC break
59: [00:30:00] <FrozenFire> And there's not a whole lot that can be done about it
60: [00:30:00] <FrozenFire> Overloading is the best thing to do, really.
61: [00:31:00] <FrozenFire> And then do your own write checking
62: [00:31:00] <FrozenFire> When you pass it up to the parent, though, pass false as the parameter no matter what
63: [00:31:00] <Bollig|DesignCty> easy, thanks FrozenFire :)
64: [00:32:00] <FrozenFire> Otherwise you won't get a chance to set things before the first write
65: [00:32:00] <FrozenFire> Which can have onBeforeWrite consequences
66: [00:33:00] * MichaelDesignerX quit (Client Quit)
67: [00:33:00] <Bollig|DesignCty> so doWrite = fase on the subclass?
68: [00:34:00] <FrozenFire> That way you don't write twice
69: [00:34:00] * tankr quit (Quit: Leaving.)
70: [00:34:00] <FrozenFire> It'd look something like public function duplicate($doWrite = true) { parent::duplicate(false); ... if($doWrite) { ...} }
71: [00:35:00] <Bollig|DesignCty> yeah, that's the way it is on 2.4 anyway (which is what I'm working with)
72: [00:47:00] <aznain> curr() returns the current controller .. can we get parent controller from child ?
73: [00:47:00] <FrozenFire> aznain, Keep in mind, the controller has nothing to do with the DataObject
74: [00:47:00] <FrozenFire> It's likely to be ModelAdmin
75: [00:47:00] <FrozenFire> The point of Controller::curr() was to get the controller handling the current request
76: [00:48:00] <FrozenFire> And thus the request parameters
77: [00:48:00] <FrozenFire> That way you could get the current SS_HTTPRequest
78: [00:48:00] <FrozenFire> From which you get the ID
79: [00:49:00] * FrozenFire makes use of the SS widgets module for the first time in ever
80: [00:51:00] <FrozenFire> Don't thank me yet. :P
81: [00:51:00] <aznain> FrozenFire: thanks
82: [00:51:00] <FrozenFire> It's a pain
83: [00:59:00] <FrozenFire> Can one have a form on a widget?
84: [01:00:00] <FrozenFire> Maybe now's a good time to start learning to do class-based forms instead of my regular controller-produced forms
85: [01:05:00] <FrozenFire> Ah, I guess you can have forms on a widget, through some magic
86: [01:12:00] <aznain> can we have reference to modeladmin inside dataobject ?
87: [01:13:00] <FrozenFire> Shouldn't.
88: [01:14:00] <FrozenFire> Or rather, not in that very specific ModelAdmin
89: [01:14:00] * catcher quit (Quit: Leaving)
90: [01:14:00] <FrozenFire> The reason why it's not safe to refer to the controller in the DataObject is that there will likely be a bunch of cases where you're calling getCMSFields when you're not in a ModelAdmin
91: [01:16:00] <aznain> ok.
92: [01:48:00] * Emil_Blume quit (Ping timeout: 260 seconds)
93: [01:52:00] * Emil_Blume has joined #silverstripe
94: [01:52:00] * tankr has joined #silverstripe
95: [01:52:00] * tankr quit (Client Quit)
96: [02:25:00] * aznain quit (Ping timeout: 245 seconds)
97: [02:35:00] <dnz-> bitches and money
98: [02:36:00] <dnz-> che
99: [02:36:00] <ss23> chur
100: [02:36:00] <ss23> money and bitches and dnz-
101: [02:46:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
102: [02:56:00] * aznain has joined #silverstripe
103: [02:57:00] <aznain> in form tutorial, custom template example start with <form $FormAttributes> . What is $FormAttributes ?
104: [02:58:00] <aznain> http://doc.silverstripe.com/framework/en/topics/forms ... under custom form template
105: [03:00:00] <aznain> ok
106: [03:00:00] <dnz-> inspect the html mate
107: [03:00:00] <dnz-> .... the attributes that go on the form tag
108: [03:01:00] <dnz-> thats where it lives, and now you know where you can read core code if needbe
109: [03:01:00] * popeshoe quit (Read error: Operation timed out)
110: [03:01:00] <dnz-> while the doc has not much
111: [03:01:00] <dnz-> http://api.silverstripe.org/trunk/forms/core/Form.html#methodFormAttributes
112: [03:05:00] <aznain> thanks a lot .. really helpful ... going to read code ...
113: [03:07:00] * popeshoe has joined #silverstripe
114: [03:44:00] * aznain quit (Quit: Page closed)
115: [03:56:00] * multiform_module has joined #silverstripe
116: [03:57:00] * DigNZ quit (Quit: DigNZ)
117: [03:57:00] <multiform_module> anyone has any idea how to set validators for multiform? EG. mobile phone: INT(8)?
118: [03:59:00] <multiform_module> multiform fields
119: [04:09:00] * Error404NotFound has joined #silverstripe
120: [04:14:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
121: [04:25:00] * Error404NotFound has joined #silverstripe
122: [04:41:00] * nickmolhoek quit (Quit: nickmolhoek)
123: [04:42:00] * cloph_away has joined #silverstripe
124: [04:44:00] * cloph_away1 quit (Ping timeout: 276 seconds)
125: [05:13:00] <aznain> I made a page a backend .. how trying to access and getting this error
126: [05:13:00] * aznain has joined #silverstripe
127: [05:13:00] <aznain> any idea about this error 'toolbar-header-right' was given content, but not defined
128: [05:21:00] * iamss has joined #silverstripe
129: [05:22:00] <iamss> HI guys! I am trying to make the staticpublisher working properly but it keeps on generating page not found cache files
130: [05:22:00] <iamss> any idea why it is happening?
131: [05:25:00] <iamss> It looks like nobody is around
132: [05:30:00] * aznain quit (Ping timeout: 245 seconds)
133: [05:35:00] * iamss quit (Ping timeout: 245 seconds)
134: [05:50:00] * multiform_module quit (Ping timeout: 245 seconds)
135: [05:53:00] * dendeffe has joined #silverstripe
136: [06:20:00] <AshKyd> Is there any way to return the joined data with the leftJoin and innerJoin filters? The docs don't mention it. http://doc.silverstripe.org/framework/en/topics/datamodel#joining
137: [06:32:00] * Emil_Blume quit (Ping timeout: 248 seconds)
138: [06:44:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
139: [06:49:00] * Error404NotFound has joined #silverstripe
140: [06:56:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
141: [07:05:00] * Error404NotFound has joined #silverstripe
142: [07:20:00] * dendeffe quit (Quit: dendeffe)
143: [07:46:00] * dendeffe has joined #silverstripe
144: [07:46:00] * hubertusanton has joined #silverstripe
145: [07:59:00] * guci0 has joined #silverstripe
146: [08:06:00] * chillu has joined #silverstripe
147: [08:16:00] * guci0 quit (Ping timeout: 245 seconds)
148: [08:37:00] * howardgrigg has joined #silverstripe
149: [09:07:00] * g4b0 has joined #silverstripe
150: [09:11:00] * kinglozzer has joined #silverstripe
151: [09:25:00] * dobalina has joined #silverstripe
152: [09:25:00] <kinglozzer> I have a Google Map with marker placement in the CMS, when I put it on any tab except Root.Main, only half of the map shows up. The rest is greyed out. Can anyone think why that would be?
153: [09:35:00] <kinglozzer> jQuery('a[href="#Tab_ID"]').bind('click', function(){
154: [09:35:00] <kinglozzer> Never mind, solved it ^^
155: [09:35:00] <kinglozzer> });
156: [09:35:00] <kinglozzer> initialiseMap();
157: [09:37:00] * Guits has joined #silverstripe
158: [09:37:00] * g4b0_ has joined #silverstripe
159: [09:42:00] * ratcat quit (*.net *.split)
160: [09:42:00] * g4b0 quit (*.net *.split)
161: [09:43:00] * zfmf has joined #silverstripe
162: [09:55:00] <Guits> tried : $img = File::get_one("Image", "Filename = 'assets/testimages/viaFTP.jpg'");
163: [09:55:00] <Guits> hi all.. i am stuck.. i want to add a has_many (image) to a page ..
164: [09:55:00] <Guits> $page->ProductPics()->push($img, $img->ID); but that raise error
165: [09:56:00] * lx-berlin has joined #silverstripe
166: [09:58:00] * ARNHOE has joined #silverstripe
167: [10:03:00] * Shrike_Finland has joined #silverstripe
168: [10:16:00] <kinglozzer> Guits: Use many_many for images. Has_many doesn't work for images. I don't know if that's what is causing your error, but you should be using many_many anyway
169: [10:24:00] * howardgrigg quit (Remote host closed the connection)
170: [10:49:00] * r3v3rb has joined #silverstripe
171: [11:06:00] * Error404NotFound quit (Disconnected by services)
172: [11:06:00] * Err404NotFound has joined #silverstripe
173: [11:20:00] <mrsteveheyes> hi everyone
174: [11:20:00] * mrsteveheyes has joined #silverstripe
175: [11:21:00] <mrsteveheyes> I'm trying to build a next / previous sibling functions for Page_Controller in SS3
176: [11:21:00] <mrsteveheyes> i have the following code: http://pastebin.com/HbL7rG9Y
177: [11:22:00] <mrsteveheyes> that when inside <% with Next Page %> $Debug shows the correct page but non of the other variables work
178: [11:22:00] <mrsteveheyes> such as $Title or $COntent
179: [11:22:00] <mrsteveheyes> have I missed something glaringly obvious!?
180: [11:25:00] <mrsteveheyes> anyone there?
181: [11:26:00] <mrsteveheyes> nm I figured it out :D
182: [11:26:00] * mrsteveheyes quit (Quit: mrsteveheyes)
183: [11:26:00] <mrsteveheyes> cheers anyway :D
184: [11:26:00] <mrsteveheyes> you have to use loop not with
185: [11:37:00] * dendeffe quit (Quit: dendeffe)
186: [12:02:00] * pewpew has joined #silverstripe
187: [12:02:00] * pewpew is now known as prewprew
188: [12:04:00] <prewprew> is there a way to easily set up "aliases" for controllers via some manual route? i don't have access to .htaccess, but essentially I want /warehouse/ceron/CustAPI to route to /CustAPI ... CustAPI is a controller, and previously the siteroot was located at /warehouse/ceron/ but has now moved to /
189: [12:31:00] * feejin has joined #silverstripe
190: [12:32:00] <feejin> Hello. What do you fellow do about Google Analytics snippets when you've set SS requirements to write to <head>? As in, GA is meant to be the last script loaded but without splitting it into it's own file, it can't be when there are requirements.
191: [12:33:00] * dendeffe has joined #silverstripe
192: [12:33:00] <ss23> Normally I just copy/paste it to the bottom of the page template...
193: [12:34:00] <ss23> I don't liek it loading before my other stuff, fast load time > reliable stats
194: [12:35:00] <feejin> It's asynchronous, won't slow/block the page
195: [12:35:00] <ss23> I thought it was just loaded with a <script> tag?
196: [12:36:00] <feejin> Other scripts
197: [12:36:00] <feejin> ThemeCSS
198: [12:36:00] <feejin> GA
199: [12:36:00] <feejin> Yep. But I'm using other scripts through a loader, so my head looks like:
200: [12:37:00] <feejin> What I'd really like is to be able to specify an insertion point for SS requirements in the head. Is that possible?
201: [12:37:00] <feejin> When it should really be ThemeCSS, Other scripts, GA
202: [12:38:00] <ss23> No idea sorry, someone else might know
203: [12:43:00] * Err404NotFound is now known as Error404NotFound
204: [12:44:00] * Zauberfisch quit (Ping timeout: 246 seconds)
205: [12:45:00] <feejin> Requirements::customScript("GA Snippet Here") does it. Inline scripts are added after <script> tags.
206: [12:45:00] * Zauberfisch has joined #silverstripe
207: [13:01:00] <r3v3rb> i just made it a module and add it whereever I want - usually below the code of the page :D
208: [13:01:00] <r3v3rb> happy new year btw feejin :D
209: [13:02:00] <feejin> thanks :) happy new year to you too.
210: [13:03:00] <feejin> Google tell me it's meant to go in the <head> after all other scripts. Before </body> was pre-async.
211: [13:03:00] * ARNHOE quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
212: [13:16:00] * UndefinedOffset has joined #silverstripe
213: [13:23:00] <feejin> Is this your module r3v3rb? https://github.com/dynamic/SilverStripe-Google-Analytics
214: [13:25:00] * samthejarvis has joined #silverstripe
215: [13:28:00] * r3v3rb is feeling tired obj-c/xcode is hurting his brain
216: [13:28:00] <feejin> it won't play nice with our lazy loader. so much hassle trying to get a damn script to load in the right place!
217: [13:28:00] <r3v3rb> nope, feejin but its basically the same
218: [13:34:00] <C10ne> fejin: Requirements::set_write_js_to_body(false);
219: [13:36:00] <samthejarvis> the subclass of dataobject is, but the subclass of that isn't
220: [13:36:00] <samthejarvis> hey all, can anyone offer any ideas as to why a subclass of a subclass of dataobject isn't being included in get_declared_classes()?
221: [13:37:00] <samthejarvis> alternate question, how do you guys ususally get the subclasses of a given class?
222: [13:38:00] <samthejarvis> oh, gonna have a look at the ClassInfo class
223: [13:39:00] * ARNHOFF has joined #silverstripe
224: [13:39:00] <feejin> C10ne I'm using that, but I've two customScripts both inserted by modules, I just want to change the order. It doesn't matter that much though.
225: [13:44:00] <samthejarvis> for anyone searching these logs later, $classes = ClassInfo::subclassesFor($this); will get you the subclasses of $this;
226: [13:45:00] <samthejarvis> SEO hint - "getting subclasses silverstripe"
227: [14:33:00] * Err404NotFound has joined #silverstripe
228: [14:33:00] * Error404NotFound quit (Disconnected by services)
229: [14:39:00] * UncleCheese has joined #silverstripe
230: [14:40:00] * samthejarvis quit (Ping timeout: 245 seconds)
231: [14:40:00] * UncleCheese quit (Remote host closed the connection)
232: [14:42:00] * UncleCheese has joined #silverstripe
233: [14:43:00] * r3v3rb quit (Quit: r3v3rb)
234: [14:57:00] * Shrike_Finland quit (Quit: Leaving.)
235: [15:16:00] * prewprew quit (Quit: Page closed)
236: [15:18:00] * UndefinedOffset quit (Quit: Leaving.)
237: [15:26:00] * Err404NotFound is now known as Error404NotFound
238: [15:31:00] * UndefinedOffset has joined #silverstripe
239: [15:33:00] * catcher has joined #silverstripe
240: [15:39:00] * houleness has joined #silverstripe
241: [15:40:00] <houleness> What is the equivalent of $this->getManyManyComponents("NewsPages",null,"Date DESC"); in SS 3? That gives me this error "Uncaught Exception: The request must be readable as an array."
242: [15:47:00] <g4b0_> ??
243: [15:47:00] <g4b0_> Hi all
244: [15:47:00] <g4b0_> does anybody can give me an hint
245: [15:47:00] <g4b0_> for solving this: http://open.silverstripe.org/ticket/8174
246: [15:55:00] * r3v3rb has joined #silverstripe
247: [16:01:00] * houleness quit (Quit: houleness)
248: [16:03:00] * Emil_Blume has joined #silverstripe
249: [16:22:00] * Guits quit (Read error: Connection reset by peer)
250: [16:23:00] * Guits has joined #silverstripe
251: [16:24:00] * Guits quit (Read error: Connection reset by peer)
252: [16:28:00] * Guits has joined #silverstripe
253: [16:32:00] * g4b0_ quit (Quit: Sto andando via)
254: [16:33:00] * CodeTrap has joined #silverstripe
255: [17:04:00] * hubertusanton quit (Read error: Connection reset by peer)
256: [17:06:00] * dendeffe quit (Quit: dendeffe)
257: [17:07:00] <FrozenFire> That'll indeed be a bit annoying
258: [17:07:00] <FrozenFire> I can at least confirm that bug that g4b0_ linked
259: [17:14:00] * kinglozzer quit (Remote host closed the connection)
260: [17:17:00] * feejin quit (Remote host closed the connection)
261: [17:41:00] * dobalina quit (Ping timeout: 255 seconds)
262: [17:42:00] * zfmf has left #silverstripe
263: [17:51:00] * Bezzen has joined #silverstripe
264: [17:52:00] <Bezzen> Hi. Any character encoding gurus here?
265: [17:58:00] <lewellyn> encodings are hard. let's go shopping!
266: [17:59:00] <Bezzen> I was pleasantly surprised at how easy it was to use umlauts in SS. Well, until it turned out it wasn't.
267: [18:00:00] <lewellyn> i stand by my statement :D
268: [18:04:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/449cce95a730^...f07ad307e481
269: [18:04:00] * travis-ci has left #silverstripe
270: [18:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4049578
271: [18:04:00] <travis-ci> [travis-ci] chillu/sapphire#45 (pulls/dataobject-get-join - f07ad30 : Ingo Schommer): The build failed.
272: [18:04:00] * travis-ci has joined #silverstripe
273: [18:13:00] <Bezzen> ooooh, mb_convert_encoding($stringwithumlauts, 'UTF-8'); might have come to the rescue!
274: [18:15:00] * UndefinedOffset quit (Quit: Leaving.)
275: [18:24:00] * terryapodaca has joined #silverstripe
276: [18:32:00] <FrozenFire> Unicode is indeed bloody complicated
277: [18:32:00] <FrozenFire> At least in PHP
278: [18:32:00] <FrozenFire> Especially if you did a silly and set your database connection encoding to non-UTF8
279: [18:34:00] <lewellyn> ouch.
280: [18:35:00] * travis-ci has joined #silverstripe
281: [18:35:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4049578
282: [18:35:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/449cce95a730^...f07ad307e481
283: [18:35:00] <travis-ci> [travis-ci] chillu/sapphire#45 (pulls/dataobject-get-join - f07ad30 : Ingo Schommer): The build passed.
284: [18:35:00] <FrozenFire> Fails then passes
285: [18:35:00] <FrozenFire> Same build, same commit.
286: [18:35:00] <FrozenFire> travis is so confused at times
287: [18:35:00] * travis-ci has left #silverstripe
288: [18:37:00] * r3v3rb quit (Quit: r3v3rb)
289: [18:40:00] <FrozenFire> Hrmm, this should be interesting
290: [18:40:00] <FrozenFire> GridField in a WidgetAreaEditor
291: [18:41:00] <FrozenFire> Yep. As I suspected, screwy
292: [18:42:00] * r3v3rb has joined #silverstripe
293: [18:43:00] * FrozenFire pouts
294: [18:43:00] <FrozenFire> Nobody here who can answer a question I know I'm going to have
295: [18:45:00] <FrozenFire> Maybe UndefinedOffset will show up
296: [18:45:00] <FrozenFire> He might have the answer
297: [18:53:00] * gelignite has joined #silverstripe
298: [18:56:00] * Bezzen quit (Ping timeout: 245 seconds)
299: [18:58:00] * priithansen has joined #silverstripe
300: [19:18:00] <FrozenFire> https://github.com/silverstripe/silverstripe-widgets/issues/20
301: [19:18:00] <FrozenFire> :(
302: [19:18:00] <FrozenFire> :(( even
303: [19:19:00] * UndefinedOffset has joined #silverstripe
304: [19:22:00] * dobalina has joined #silverstripe
305: [19:22:00] * lx-berlin has left #silverstripe
306: [19:22:00] * ChairyOnehouse has joined #silverstripe
307: [19:32:00] * CodeTrap quit (Ping timeout: 244 seconds)
308: [19:44:00] * Pyromanik has joined #silverstripe
309: [19:44:00] <Pyromanik> sup sexies
310: [19:46:00] <FrozenFire> :P
311: [19:46:00] <FrozenFire> Omg, people with knowledge!
312: [19:46:00] <FrozenFire> Where've you been?!?
313: [19:47:00] <FrozenFire> I need to filter a DataList by a many_many, on multiple factors.
314: [19:47:00] <FrozenFire> So, I've got a problem
315: [19:48:00] <FrozenFire> Basically saying "Get any item in the list which has a many_many item which has this ID"
316: [19:48:00] <FrozenFire> Or this ID
317: [19:48:00] <FrozenFire> Or this ID
318: [19:48:00] <FrozenFire> In my genius, I thought "Okay, so I'll just do a negative exclude on each ID"
319: [19:49:00] <FrozenFire> E.g. foreach($this->Categories as $category) $items->exclude("Categories.ID:Not", $category->ID);
320: [19:49:00] <FrozenFire> NOPE
321: [19:49:00] <FrozenFire> Because apparently there's an :ExactMatch that I'm not seeing in that filter
322: [19:49:00] <FrozenFire> Uncaught InvalidArgumentException: ExactMatchFilter does not accept Not as modifiers
323: [19:49:00] <FrozenFire> Well fack you too ORM
324: [19:50:00] <terryapodaca> FrozenFire: you never have much good to say about SS
325: [19:50:00] <terryapodaca> what gives?
326: [19:50:00] <FrozenFire> SS and I have a love-hate relationship
327: [19:51:00] <FrozenFire> I do so much in it, and do so many complicated things, that I inevitably hit the limits of what it can do
328: [19:51:00] <FrozenFire> And those limits are severe
329: [19:53:00] <FrozenFire> Is it just me, or is the DataList documentation for trunk currently missing filter? http://api.silverstripe.org/trunk/sapphire/view/DataList.html
330: [19:54:00] * cink has joined #silverstripe
331: [19:57:00] <FrozenFire> Ohoho
332: [19:57:00] <FrozenFire> Managed it
333: [19:58:00] <FrozenFire> $items = $items->filter("Categories.ID", implode(",", $this->Categories()->getIDList()));
334: [19:58:00] <FrozenFire> Err, Categories.ID:ExactMatch
335: [19:59:00] * howardgrigg has joined #silverstripe
336: [20:06:00] <Pyromanik> FrozenFire: Have you asked your mother?
337: [20:07:00] <onre> i've created a page model that has_many Images, and i've run into a really weird problem with it. if i associate an iamge with such page, it works just fine, until i open the Files page in admin interface. when i look in there, the file has disappeared from the folder, but it still exists in server's filesystem
338: [20:07:00] <onre> pressing Sync button might bring it back
339: [20:07:00] <Pyromanik> oh you did it, all by yourself! I'm proud of you son.
340: [20:08:00] <Pyromanik> gw FrozenFire
341: [20:08:00] <onre> occasionally there's a variation of this where the file also disappears from the filesystem
342: [20:08:00] <onre> this is ss 3.0.3
343: [20:08:00] <Pyromanik> haha
344: [20:08:00] * FrozenFire giggles with glee
345: [20:08:00] <Pyromanik> sounds like a real doozy
346: [20:08:00] <FrozenFire> Love acknowledgement from my father figure
347: [20:08:00] <cink> Hello, does Silverstripe have an option of Offline blog editor software?
348: [20:09:00] <FrozenFire> cink, Not out of the box, no
349: [20:09:00] <Pyromanik> offline blog editor?
350: [20:09:00] <Pyromanik> well, good luck with that.
351: [20:09:00] <Pyromanik> start reading
352: [20:09:00] <Pyromanik> came back from holidays, inbox full of emails.
353: [20:09:00] <FrozenFire> I'm sure something could be written for that purpose, but it's unlikely anyone else will
354: [20:10:00] <Pyromanik> how many legit emails? 4. And one of them is advertising.
355: [20:10:00] <Pyromanik> realise that 90% are responses to autoresponder, usually also automated.
356: [20:10:00] <Pyromanik> I f'n hate autoresponders.
357: [20:11:00] * UncleCheese quit (Quit: UncleCheese)
358: [20:11:00] <FrozenFire> Especially bad ones
359: [20:11:00] * UncleCheese has joined #silverstripe
360: [20:11:00] <FrozenFire> Indeed
361: [20:11:00] <FrozenFire> An email for every email
362: [20:11:00] <FrozenFire> They had a vacation auto-responder set up
363: [20:11:00] <FrozenFire> There was one project where I was required to CC someone on every email, in relation to the fulfilment centre
364: [20:11:00] <FrozenFire> Haha
365: [20:12:00] <Pyromanik> and only one of those two legit emails was actionable.
366: [20:12:00] <Pyromanik> cancel that, only 2 legit emails, and one email notifying me that workflowmax has been bought by xero.
367: [20:14:00] <FrozenFire> And because I work from home, I see all of those emails coming in
368: [20:14:00] <FrozenFire> I dread weekends when big projects are going on
369: [20:14:00] <FrozenFire> I'd think that'd be a good thing? :P
370: [20:14:00] <FrozenFire> So many people to respond to
371: [20:15:00] <cink> Hello, could somebody make offline blog editor solution?
372: [20:16:00] <cink> nothing, Wordpress and Drupal have it for free
373: [20:16:00] <FrozenFire> That's nice
374: [20:16:00] <FrozenFire> There is. You're looking at it
375: [20:16:00] <FrozenFire> An offline blog editor is a major undertaking
376: [20:16:00] <FrozenFire> cink, How much are you willing to pay for it?
377: [20:16:00] <cink> Is there any community for Silverstripe?
378: [20:18:00] <FrozenFire> Easier to make custom applications
379: [20:18:00] <FrozenFire> And Wordpress is a blog
380: [20:18:00] <cink> could you tell me why do you think SS is better than Wordpress?/nick
381: [20:19:00] <FrozenFire> Wordpress isn't a framework for websites
382: [20:20:00] <FrozenFire> Meh. Not even that is a good analogy
383: [20:20:00] <lewellyn> cink: it's like comparing a motorcycle to a compact car. they do different things, even if they are similar at face value.
384: [20:20:00] <FrozenFire> More like a motorcycle to a postman's van
385: [20:21:00] <Pyromanik> well wordpress is not the tool you're looking for.
386: [20:21:00] <cink> make wesbites and flexible enough to change stuff when the website grows/nick
387: [20:21:00] <FrozenFire> I've worked in Wordpress more than I care to admit.
388: [20:21:00] <cink> sorry I am looking for tool to make websites
389: [20:21:00] <FrozenFire> SilverStripe is such a tool
390: [20:22:00] <FrozenFire> It's not for making websites
391: [20:22:00] <FrozenFire> For making blogs.
392: [20:22:00] <FrozenFire> Because it's a blog application
393: [20:22:00] <cink> how come WP is not like that?
394: [20:22:00] <lewellyn> FrozenFire: i was trying to be generous in my analogy :)
395: [20:22:00] <Pyromanik> it's for blogs. just blogs. Only blogs. Any thing telling you otherwise is deluded.
396: [20:23:00] <FrozenFire> Too many people are convinced that it can be used for building custom websites
397: [20:23:00] <Pyromanik> wordpress is shit.
398: [20:23:00] <Pyromanik> no
399: [20:23:00] <FrozenFire> I've even seen one genius try to make a social networking platform using it. :P
400: [20:23:00] <Pyromanik> Sure it can, in the same way that anything PHP can be if you REALLLY try hard enough.
401: [20:23:00] <cink> hmmm isnt WP version 3.0 change that and become CMS?
402: [20:23:00] <FrozenFire> Heh. Wordpress deserves no generosity
403: [20:24:00] * DigNZ has joined #silverstripe
404: [20:24:00] <FrozenFire> cink, Wordpress is a blog
405: [20:24:00] <FrozenFire> It's built to be a blog
406: [20:24:00] <lewellyn> the guy got offended when i politely declined using it as i was not going to install a blog and like 40 plugins to get a subset of functionality i could from other things.
407: [20:24:00] <FrozenFire> Every aspect of Wordpress is designed to make a blog happen
408: [20:24:00] <FrozenFire> If they make it something else, it's not Wordpress
409: [20:24:00] <lewellyn> FrozenFire: i saw a github-clone written as a crapload of WP plugins.
410: [20:25:00] <FrozenFire> Drupal isn't all that complex
411: [20:25:00] <cink> hmmm its really tough to pick something good: Drupal is too complex, Joomla is stupid, Wordpress is for blogs...
412: [20:25:00] <FrozenFire> SilverStripe is good?
413: [20:25:00] <lewellyn> cink: you need to figure out precisely what it is you need and want, and fit the tool choices to that.
414: [20:25:00] <lewellyn> there are literally hundreds of cmses out there. then throw in things like wordpress which pretend...
415: [20:26:00] <cink> Drupal isnt backwards compatible.. What about SS?
416: [20:27:00] <lewellyn> it tends to show up often on my "exploits you should know about" email lists
417: [20:27:00] <lewellyn> (drupal, not ss)
418: [20:27:00] <cink> Drupal is way to complicated for me...
419: [20:28:00] * nickmolhoek quit (Remote host closed the connection)
420: [20:28:00] <lewellyn> FrozenFire: i think like the 2.4 -> 3.0 upgrade
421: [20:28:00] * nickmolhoek has joined #silverstripe
422: [20:28:00] * cink is now known as the
423: [20:28:00] <FrozenFire> What do you mean, backward compatible?
424: [20:28:00] <FrozenFire> Compatible with what?
425: [20:28:00] * nickmolhoek has joined #silverstripe
426: [20:29:00] <UncleCheese> Worst CMS ever.
427: [20:29:00] <FrozenFire> Which is surprising, because I tend to get stuck using all sorts of stupid shit
428: [20:29:00] * cink has joined #silverstripe
429: [20:29:00] <Guest81309> well Icechat is stupid to use
430: [20:29:00] <FrozenFire> I've never actually worked in Drupal
431: [20:29:00] <FrozenFire> Guest81309, ^
432: [20:29:00] <FrozenFire> the, I think you're accidentally hitting something that's typing "/nick" for you
433: [20:29:00] * the is now known as Guest81309
434: [20:30:00] <FrozenFire> I count my blessings
435: [20:30:00] * cink is now known as There
436: [20:31:00] <FrozenFire> I can't fathom what you're hitting to make that happen
437: [20:32:00] <FrozenFire> Looks wonky
438: [20:32:00] * cink has joined #silverstripe
439: [20:32:00] <FrozenFire> Yeah... don't use IceChat
440: [20:32:00] <FrozenFire> Maybe try XChat?
441: [20:33:00] <cink> wonky?
442: [20:33:00] <FrozenFire> Screwy
443: [20:33:00] <FrozenFire> Buggered
444: [20:33:00] <cink> so what is the difference between SS, DRUPAL and CONCRETE5?
445: [20:34:00] <terryapodaca> SS kicks all others ass!!!!!!!!!!!!!!!!!!
446: [20:34:00] <FrozenFire> What's the difference between APPLES, ORANGES and WATERMELONS
447: [20:38:00] <cink> does SS have this problem too?
448: [20:38:00] <cink> by backwards compatibility or mobility I mean you cannot update or upgrade from version 6 to 8
449: [20:39:00] <FrozenFire> Most do
450: [20:39:00] <FrozenFire> In that you have to find new versions of your plugins/modules/extensions that are supported in the new version
451: [20:39:00] <FrozenFire> Yes
452: [20:40:00] <FrozenFire> That being said, for SS, and many other application frameworks, you can manage such things using composer
453: [20:41:00] <FrozenFire> But no, it's not point and click
454: [20:41:00] <FrozenFire> Fortunately, web development requires some semblance of skill to do it right
455: [20:42:00] * Guest81309 is now known as I
456: [20:42:00] * I is now known as Guest58965
457: [20:43:00] <FrozenFire> Boy you're having a fun time with that client
458: [20:54:00] * C10ne quit (Ping timeout: 245 seconds)
459: [21:00:00] * CHIex has joined #silverstripe
460: [21:08:00] <FrozenFire> Anyone else find themselves constantly going to create a CSS file and accidentally giving it a .ss extension? :P
461: [21:10:00] * ChairyOnehouse quit (Ping timeout: 255 seconds)
462: [21:12:00] <CHIex> what about this for offline blog editor solution: http://www.silverstripe.org/blog-module-forum/show/18222
463: [21:12:00] * howardgrigg quit (Remote host closed the connection)
464: [21:12:00] <CHIex> I installed KVlic...
465: [21:13:00] * cink quit (Quit: Never put off till tomorrow, what you can do the day after tomorrow)
466: [21:13:00] * There quit (Quit: Never put off till tomorrow, what you can do the day after tomorrow)
467: [21:13:00] * Guest58965 quit (Quit: Never put off till tomorrow, what you can do the day after tomorrow)
468: [21:13:00] <FrozenFire> CHIex, Certainly a possibility
469: [21:13:00] <FrozenFire> If there's an existing standard for doing it, that's not all that difficult to integrate
470: [21:14:00] <FrozenFire> By offline blog editing solution, I thought you meant some sort of separate application built that can integrate directly with SS
471: [21:15:00] <Zauberfisch> is there no more "homepage for domain" field?
472: [21:15:00] <CHIex> but would I need to pay (a lot) for having Windows live writer, Blog desk or any other software work as an offline blog editor for SS?
473: [21:15:00] <CHIex> and this link also: https://github.com/silverstripe/silverstripe-blog/pull/4
474: [21:16:00] <FrozenFire> I'm sure I could write such a thing. But doing it for one person would cost that person more than doing it as something I could sell
475: [21:16:00] <FrozenFire> Depends on the interest surrounding it
476: [21:17:00] <FrozenFire> Someone might even be inclined to do it as a community contribution. But that's not something anyone can be asked to do if they don't have their own interest in it. :P
477: [21:17:00] <CHIex> YES, but this could be used for other new and old users too
478: [21:18:00] * r3v3rb has left #silverstripe
479: [21:18:00] <FrozenFire> I know I wouldn't, just because it's so niche that it'll be more trouble than it's worth as an open-source project
480: [21:21:00] * CHIex has left #silverstripe
481: [21:22:00] * CHIex has joined #silverstripe
482: [21:23:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/caca15034b4c...ffc6d6ffad18
483: [21:23:00] * UndefinedOffset quit (Quit: Leaving.)
484: [21:23:00] * travis-ci has joined #silverstripe
485: [21:23:00] * travis-ci has left #silverstripe
486: [21:23:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#181 (3.1 - ffc6d6f : Ingo Schommer): The build was fixed.
487: [21:23:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4052637
488: [21:36:00] * ARNHOFF quit (Read error: Connection reset by peer)
489: [21:41:00] * Emil_Blume quit (Read error: Connection reset by peer)
490: [21:42:00] <catcher> Ideally, Page would get a Thingy tab with an interface to edit Thingy (which has_many ThingyComponents()).
491: [21:42:00] <catcher> brainfreeze. Page has_one Thingy, and I want to edit the Thingy on the Page interace. Gridfield would give me a way to edit it via the relationship, but obviously ->Thingy() != SS_List.
492: [21:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5bd8619dd325...76e233de705c
493: [21:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4052643
494: [21:43:00] * travis-ci has left #silverstripe
495: [21:43:00] * Emil_Blume has joined #silverstripe
496: [21:43:00] * travis-ci has joined #silverstripe
497: [21:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#1130 (3.1 - 76e233d : Ingo Schommer): The build was broken.
498: [21:43:00] <catcher> Also, hey Pyromanik!
499: [21:46:00] * HeartbreakOne has joined #silverstripe
500: [21:47:00] <Pyromanik> Saw a bumper sticker yesterday
501: [21:48:00] * CHIex quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
502: [21:48:00] <HeartbreakOne> Hi. I'm a newbie to silverstripe and am trying to install it to my local machine for dev purposes using the Webmatrix method. However I cannot install it because the Silverstripe installer fails to connect to the mysql database even though the password is correct.
503: [21:48:00] <Pyromanik> thought it was going to be some hippy bullshit, because it started with "Honk if you hate"
504: [21:48:00] <HeartbreakOne> is this a known issue and is there a solution to it?
505: [21:48:00] <Pyromanik> but then it ended with "PROTOTYPAL INHERITANCE" - and I literally lol'd
506: [21:48:00] <catcher> HeartbreakOne, no known issues there
507: [21:49:00] <HeartbreakOne> right-most
508: [21:49:00] <catcher> haha
509: [21:49:00] <HeartbreakOne> http://www.silverstripe.org/stable-download/
510: [21:49:00] * CHIex has joined #silverstripe
511: [21:49:00] <Pyromanik> the hell is a webmatrixmethod?
512: [21:49:00] <Pyromanik> windows
513: [21:49:00] <Pyromanik> oh
514: [21:50:00] <Pyromanik> just visit site.
515: [21:50:00] <Pyromanik> place files in folder, done.
516: [21:50:00] <Pyromanik> install wamp/
517: [21:50:00] <Pyromanik> I dunno what you mean by manually setup
518: [21:50:00] <HeartbreakOne> Guess i'll be installing WAMP server and doing all the setup manually then.
519: [21:50:00] <Pyromanik> GG PHP
520: [21:50:00] <HeartbreakOne> essentially that, and then going to setup.php or w/e the file is called
521: [21:50:00] <catcher> HeartbreakOne, WAMP is the non-manual way to set up mysql, how is it set up now?
522: [21:51:00] <Pyromanik> also
523: [21:51:00] <Pyromanik> you have to enter database connection infos - same thing that you'll need to do no matter what method you use to install
524: [21:51:00] <Pyromanik> so in that case webmatrix is also a manual install
525: [21:51:00] <Pyromanik> is your mysql running?
526: [21:52:00] <Pyromanik> are you sure it's ok to use mysql, and not mssql?
527: [21:52:00] <Pyromanik> etc
528: [21:52:00] <Pyromanik> is mysql running on the correct port
529: [21:55:00] <HeartbreakOne> I don't know. Microsoft's webmatrix essentially gives you nothing as pertains to diagnosing and monitoring its components. At least with WAMP or XAMPP, I could check the status of my MySQL resources and such.
530: [21:55:00] <HeartbreakOne> don't think i'll be using webmatrix again
531: [21:56:00] <HeartbreakOne> Mind, I really truly would prefer to develop using Kate or some other linux editor. :)
532: [21:57:00] <HeartbreakOne> But the work issued laptop is a windows one and web dev isnt my primary thing
533: [21:57:00] <catcher> looks like it can connect to a mysql db: http://www.microsoft.com/web/post/connecting-to-a-sql-server-or-mysql-database-in-webmatrix
534: [21:58:00] <catcher> I'd sooner use wamp though, especially on a local/dev machine.
535: [22:04:00] * Zauberfisch quit (Ping timeout: 246 seconds)
536: [22:04:00] * travis-ci has left #silverstripe
537: [22:04:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/76e233de705c...5f8115f4c76f
538: [22:04:00] <travis-ci> [travis-ci] silverstripe/sapphire#1131 (3.1 - 5f8115f : Ingo Schommer): The build passed.
539: [22:04:00] * travis-ci has joined #silverstripe
540: [22:04:00] <HeartbreakOne> thanks for lookin into it for me, catcher. I'll give it a try.
541: [22:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4053286
542: [22:07:00] * Zauberfisch has joined #silverstripe
543: [22:11:00] <Pyromanik> HeartbreakOne: I prefer Notepad++ on the windows
544: [22:13:00] * dobalina quit (Ping timeout: 276 seconds)
545: [22:14:00] <Pyromanik> HeartbreakOne: couple of caveats with wampserver: delete index.php
546: [22:15:00] <Pyromanik> actually I think there's only that one.
547: [22:16:00] <Pyromanik> and/or servers that don't do modrewrite
548: [22:16:00] <Pyromanik> the way it's set up is to use index.php if it exists when accessing the root.
549: [22:16:00] <Pyromanik> deleting it is easier than reconfiguring.
550: [22:16:00] <Pyromanik> it's just a fallback for broken rewrite rules.
551: [22:16:00] <Pyromanik> (through .htaccess anyway)
552: [22:18:00] <HeartbreakOne> aye, notepad++ is good but it doesnt handle a large volume of open files or session management as well as Kate does
553: [22:29:00] * HeartbreakOne quit (Ping timeout: 245 seconds)
554: [22:31:00] * spronk honks
555: [22:33:00] * UncleCheese has left #silverstripe
556: [22:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4052643
557: [22:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5bd8619dd325...76e233de705c
558: [22:33:00] <travis-ci> [travis-ci] silverstripe/sapphire#1130 (3.1 - 76e233d : Ingo Schommer): The build passed.
559: [22:33:00] * travis-ci has joined #silverstripe
560: [22:33:00] * travis-ci has left #silverstripe
561: [22:58:00] <catcher> so, what's the best way to admin a Page's has_one object on the Page's interface?
562: [23:01:00] <Pyromanik> spronk: lulz, I thought you'd appreciate that :P
563: [23:01:00] <Pyromanik> catcher: there isn't one :<
564: [23:02:00] <catcher> Boo. So modeladmin & links to the interface on each page at best.
565: [23:05:00] <FrozenFire> Heh. Not sure if this is a good idea, but it's nice to know that one can do complex filtering of a DataList in a template
566: [23:06:00] <FrozenFire> E.g. <% loop MyList.filter(SomeRelation.URLSegment, foo) %>
567: [23:06:00] <FrozenFire> With :ExactMatch
568: [23:06:00] <FrozenFire> Err
569: [23:10:00] * travis-ci has joined #silverstripe
570: [23:11:00] * travis-ci has left #silverstripe
571: [23:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4054341
572: [23:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/2ace1de328db...e8bfc241fdc5
573: [23:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1132 (3.0 - e8bfc24 : Ingo Schommer): The build was broken.
574: [23:11:00] <catcher> Pyromanik, I'm half-tempted to make it a has_many and limit to 1 just to get the Gridfield interface, and I shouldn't be.
575: [23:13:00] * C10ne has joined #silverstripe
576: [23:14:00] <C10ne> is there like getbyid method for sitetree?
577: [23:14:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
578: [23:15:00] * DigNZ quit (Quit: DigNZ)
579: [23:15:00] <FrozenFire> 2.4 or 3?
580: [23:15:00] <FrozenFire> Yeah, what catcher said
581: [23:15:00] <C10ne> 3
582: [23:15:00] <catcher> C10ne, sitetree extends dataobject, so you can SiteTree::get()->byID(x);
583: [23:15:00] <C10ne> or incontroller, whatever :)
584: [23:15:00] <C10ne> I need to reuse it in the template for multiple localities
585: [23:16:00] <C10ne> catcher, yes, but when you add translation, the page gets another id
586: [23:16:00] <C10ne> exactly :)
587: [23:16:00] <FrozenFire> But if you're talking about the Translatable extension, that's a different thing
588: [23:16:00] <FrozenFire> Translatable has a function for that
589: [23:16:00] <C10ne> it's not too well documented
590: [23:17:00] <C10ne> in fact, that's the biggest problem I have with SS
591: [23:17:00] <C10ne> :)
592: [23:17:00] <FrozenFire> SS's documentation is shite
593: [23:17:00] <FrozenFire> $translatedObj = $obj->getTranslation('de_DE');
594: [23:17:00] <FrozenFire> https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md
595: [23:17:00] <FrozenFire> Yeah, you're preaching to the choir in that respect
596: [23:18:00] <C10ne> FrozenFire, how do I get the base of translatedObj, like the page I want translated?
597: [23:18:00] <FrozenFire> Well, what are you trying to translate?
598: [23:18:00] <C10ne> via dataobject::get?
599: [23:19:00] <FrozenFire> In what context?
600: [23:19:00] <FrozenFire> If the context is a Page, then just do $this->getTranslation('locale');
601: [23:19:00] <Pyromanik> or do as FrozenFire suggests.
602: [23:19:00] <FrozenFire> If you're getting the translation of a has_one, $this->MyRelation()->getTranslation('locale');
603: [23:19:00] <Pyromanik> C10ne: the 'master' page is kept as a reference
604: [23:19:00] <Pyromanik> there are accessors applied to your object through the Translatable extension.
605: [23:19:00] <FrozenFire> If you're just getting a random translation, SiteTree::get()->byID($id)->getTranslation('locale');
606: [23:20:00] <C10ne> I have a couple of featured pages that are displayed on the home page (excerpts), so I need to get them from the site tree in the right locale
607: [23:20:00] <FrozenFire> Yeah, translating relations is difficult indeed
608: [23:21:00] <FrozenFire> Largely because the relation you're pointing to might not exist in the current translation
609: [23:21:00] <C10ne> Pyromantik, that sounds good :)
610: [23:21:00] <Pyromanik> C10ne: if the locale is set correctly then all fetches are made in that locale.
611: [23:21:00] <Pyromanik> ^ if it doesn't exist it gets the default.
612: [23:22:00] <ss23> I miss simon_w :<
613: [23:22:00] <C10ne> I don't really care if they didn't translate them, but I have to stay clear of "Calling the method of a non object" :)
614: [23:23:00] <FrozenFire> ManyManyList::removeAll() will just remove the relations, yes?
615: [23:25:00] * terryapodaca has left #silverstripe
616: [23:25:00] <C10ne> the documentation says: Remove all items from this many-many join. To remove a subset of items, filter it first.
617: [23:26:00] <FrozenFire> I need an onBeforeDelete that cleans up my many_many tables on delete
618: [23:26:00] <FrozenFire> Yeah. Just trying to figure out if I'm going to severely screw myself by writing this into the code
619: [23:26:00] <C10ne> didn't try it yet
620: [23:27:00] <FrozenFire> Nah, I think I've got it figured
621: [23:27:00] <C10ne> just a sec, there's some other thing, not sure if that's what you need, need to find it in my code
622: [23:28:00] <FrozenFire> Note that for a ManyManyList, the item is never actually deleted, only the join table is affected
623: [23:28:00] <FrozenFire> Though the removeAll doesn't necessarily use that removeByID method
624: [23:28:00] <FrozenFire> The code's actually better documented than the documentation lets on
625: [23:29:00] <C10ne> That removes the relation, if you're using the gridfield
626: [23:29:00] <FrozenFire> But I figure the way the removeAll is written, it should be filtered down to the join table only
627: [23:29:00] <C10ne> $gridFieldConfig = GridFieldConfig_RelationEditor::create()->addComponents( new GridFieldDeleteAction('unlinkrelation') );
628: [23:29:00] <FrozenFire> Not sure that's applicable in my case
629: [23:29:00] * travis-ci has joined #silverstripe
630: [23:29:00] <travis-ci> [travis-ci] silverstripe/sapphire#1133 (3.1 - e940f35 : Ingo Schommer): The build was broken.
631: [23:29:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5f8115f4c76f...e940f352e1c2
632: [23:29:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4055152
633: [23:29:00] * travis-ci has left #silverstripe
634: [23:30:00] * FrozenFire hates import scripts
635: [23:30:00] <FrozenFire> Especially this one
636: [23:30:00] <FrozenFire> Calling remove on a ManyManyList removes the relation from the join table
637: [23:30:00] <FrozenFire> GridFieldConfig_RelationEditor operates on the list you give it
638: [23:31:00] <C10ne> unlinkrelation is faster for us, but, there are more complicated cases
639: [23:31:00] <catcher> yeah, that's a component that allows you to unlink. MML->removeAll() does not delete the objects in 3.0.3 stable, but I think that changed at some point.
640: [23:31:00] <C10ne> Yeah, it requires setting the relationeditor
641: [23:32:00] <FrozenFire> If ManyManyList ever deletes the object, then that's a giant bug
642: [23:32:00] <C10ne> I'm just finishing my first ss site ever :)
643: [23:33:00] <catcher> FrozenFire, it was, once upon a beta.
644: [23:33:00] <C10ne> no, manymany doesn't affect the sitetree, as well as the objects
645: [23:36:00] * FrozenFire wishes explode accepted an array of delimiters
646: [23:36:00] <C10ne> back to my first question, sorry for bothering you, dataobject::get->byID works, but for exact object, what if I want to get exact record from all pages (sitetree objects)?
647: [23:37:00] <C10ne> It works for (example) Page::get... but any descendant can have the same id
648: [23:38:00] * mooredynasty has joined #silverstripe
649: [23:40:00] <mooredynasty> Is 2.4 stable under 5.4?
650: [23:40:00] <mooredynasty> In Silverstrip 2.4, we're having trouble with this error after upgrading to PHP 5.4: PHP Fatal error: Class 'Debug' not found in D:\www\sapphire\core\Core.php on line 252
651: [23:40:00] <C10ne> ah, sorry, FrozenFire wrote that, I'll try it now.
652: [23:42:00] <C10ne> no errors, but not working... :)
653: [23:49:00] * travis-ci has joined #silverstripe
654: [23:49:00] <travis-ci> [travis-ci] silverstripe/sapphire#1132 (3.0 - e8bfc24 : Ingo Schommer): The build passed.
655: [23:49:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/2ace1de328db...e8bfc241fdc5
656: [23:49:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4054341
657: [23:49:00] * travis-ci has left #silverstripe
658: [23:50:00] <mooredynasty> C10ne, is your 'no errors, but not working...' comment for me? It certainly isn't working for me! :)
659: [23:51:00] <FrozenFire> mooredynasty, No, it wasn't for you
660: [23:52:00] <FrozenFire> mooredynasty, I do not believe 2.4 is supported in 5.4
661: [23:52:00] <mooredynasty> OK, thanks for the info
662: [23:52:00] <FrozenFire> http://www.silverstripe.org/installing-silverstripe/show/19456
663: [23:55:00] * chillu quit (Quit: chillu)
664: [23:55:00] <FrozenFire> Bah. Bug
665: [23:56:00] <FrozenFire> Trying to clear out a many_many
666: [23:56:00] <FrozenFire> It tries to run DELETE FROM "CatalogItem_Directors" WHERE ("CatalogItem_Directors"."CatalogItemID" = '26') AND ("CatalogPerson"."ClassName" IN ('CatalogDirector'))
667: [23:56:00] <FrozenFire> Obviously CatalogPerson isn't joined

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