#silverstripe IRC Log

IRC log for 27 August 2013

All timestamps are in UTC.

1: [00:00:47] <spronk> o_O
2: [00:07:50] <Pyromanik> so there you go spronk.
3: [00:07:57] <Pyromanik> cloud servers and cdn.
4: [00:08:01] <Pyromanik> boom.
5: [00:08:49] <zippy__> Pyromanik: who are they using
6: [00:09:30] <zippy__> 100GB $200 +GST /month
7: [00:09:34] <zippy__> gold plated packets
8: [00:11:50] <ss23> CLOUD
9: [00:11:59] <batbadger> yeah but think of the 1/7th of a second
10: [00:13:53] <Pyromanik> dem seconds.
11: [00:14:18] <Pyromanik> front end developers get mad wound up about that shit
12: [00:14:44] <Pyromanik> 12kb? TOO HEAVY ... meanwhile *<script src=
13: [00:14:44] <Pyromanik> "
14: [00:14:46] <Pyromanik> JQUERY
15: [00:15:02] <Pyromanik> css all the grids!
16: [00:15:05] <Pyromanik> framework everything!
17: [00:15:17] <Pyromanik> optimise all the images!
18: [00:15:18] <batbadger> i wrote image processing software for a long time
19: [00:15:22] <batbadger> seconds mattered then
20: [00:15:30] <batbadger> but the web is laughably slow in general
21: [00:15:50] <Pyromanik> yeah, native software, seconds is god.
22: [00:16:00] <Pyromanik> people expect to wait for a we page.
23: [00:16:27] <Pyromanik> so long as it doesn't take all the seconds, it's probably not so bad.
24: [00:16:34] <Pyromanik> but there's no denying faster is nicer.
25: [00:16:53] <Pyromanik> but generally under a second... it's fine.
26: [00:19:27] * Nimle has joined #silverstripe
27: [00:20:30] <Nimle> Hi, in SS admin panel, I want to show errors like in its native way. You know how it shows on the right top corner with a small popup which fades away after a few seconds. How can I display errors like that?
28: [00:25:35] * zagoodwin quit (Quit: My iMac has gone to sleep. ZZZzzz…)
29: [00:26:50] * b00mtastik has joined #silverstripe
30: [00:31:14] <b00mtastik> Hey guys, am trying to use foundation with SS and I'm having trouble with the Javascript. Require tags into templates work fine and pull all .js files except ones in a subdirectory inside the javascript folder, and in foundation by zurb's case, the vendor and foundation folder within. Are we not supposed to have directories in there? Just take them out and put them along with the other .js files? I like the folders for organ
31: [00:37:20] * aznain has joined #silverstripe
32: [00:37:34] <priithansen> b00mtastik: the vendro folder is blocked in .htaccess "RedirectMatch 403 /vendor(/|$)"
33: [00:37:40] <priithansen> vendor even
34: [00:39:20] <b00mtastik> ...and I even checked in there...how did I miss that. lol.
35: [00:39:49] <aznain> Hi! Can i hide filter panel at backend
36: [00:39:51] <priithansen> and something in ss template parser does not like the default zepto/jquery chooser thingy
37: [00:40:01] <priithansen> https://github.com/priithansen/silverstripe-foundation-boilerplate/blob/master/templates/Page.ss#L49 < adding an extra \ seemed to fix that
38: [00:40:14] <b00mtastik> Yeah, just been playing around with that too.
39: [00:40:42] * UncleCheese quit (Quit: UncleCheese)
40: [00:40:55] <b00mtastik> Is there a reason that vendor is blocked?
41: [00:41:06] <Nimle> Hi, in SS admin panel, I want to show errors like in its native way. You know how it shows on the right top corner with a small popup which fades away after a few seconds. How can I display errors like that?
42: [00:41:21] <priithansen> I guess it's because composer
43: [00:41:34] * cbqy has joined #silverstripe
44: [00:41:35] * amc_ has joined #silverstripe
45: [00:41:59] * amc_ is now known as Guest73664
46: [00:42:08] <Guest73664> Can anyone answer a permissions problem?
47: [00:42:20] <Guest73664> SS3.0
48: [00:42:28] <ss23> Guest73664: Not until you ask a question :D
49: [00:42:33] <b00mtastik> Ah. right. Well, I'll just have to stick to my original idea of just having all .js files listed. Should work after that zepto/jquery fix. Which for also, thank you!
50: [00:42:33] <ss23> simon_w: Lunch today?
51: [00:42:55] <aznain> @simon_w: Can I hide filter panel at admin ?
52: [00:43:08] <Guest73664> How would you remove the Delete button from a DataObject, when editing it via the relationship (not via it's own ModelAdmin)?
53: [00:47:26] * Trooy has joined #silverstripe
54: [00:49:00] <priithansen> Guest12105: public function canDelete($member = null) { return false; } in dataobject code will disable deletin
55: [00:49:58] <Guest73664> does that only work for non-admins? I have that on the DataObject extension and the Delete button always shows up
56: [00:50:42] <Guest73664> no SS errors or warnings
57: [00:50:52] <priithansen> hm not sure about extensions
58: [00:51:16] <Guest73664> ie: class DO_Extension extends DataObject
59: [00:51:38] <Guest73664> not SS Extension
60: [00:52:17] <priithansen> Should work to my knowledge
61: [00:52:39] * mdowton has joined #silverstripe
62: [00:52:46] <Guest73664> is a dev/build required?
63: [00:53:23] <priithansen> maybe ?flush=1
64: [00:53:47] <Guest73664> I did flush=all
65: [00:53:48] * nickmolhoek has joined #silverstripe
66: [00:53:49] * nickmolhoek quit (Remote host closed the connection)
67: [00:54:02] <aznain> Anybody?
68: [00:54:03] * nickmolhoek has joined #silverstripe
69: [00:55:01] <Guest73664> aznain: there should be a tiny black double arrow in the bottom of the filter panel
70: [00:56:59] * DimiStripe quit (Ping timeout: 250 seconds)
71: [01:00:42] * b00mtastik quit (Quit: Page closed)
72: [01:04:58] <simon_w> ss23, will just get this transfer started
73: [01:08:03] <aznain> @Guest73664: Thanks but I want to hide when display automatically for particular dataobject . How can it be done ?
74: [01:09:06] <ss23> simon_w: sweeeeeet, I only just finished work too
75: [01:11:08] <simon_w> ss23, 4 minutes
76: [01:12:30] <ss23> k
77: [01:12:31] <ss23> :D
78: [01:12:59] * Guest73664 quit (Quit: Page closed)
79: [01:14:34] * BPower has joined #silverstripe
80: [01:15:57] * Bollig|DesignCty has joined #silverstripe
81: [01:17:21] * jodakiss quit (Ping timeout: 250 seconds)
82: [01:18:38] <BPower> After creating a bunch of Image()'s manually, the CMS is trying to load the _resampled versions but they don't exist. How can I have them created?
83: [01:20:23] * cbqy quit (Ping timeout: 250 seconds)
84: [01:21:19] * Stomach quit (Quit: Leaving.)
85: [01:22:47] * zagoodwin has joined #silverstripe
86: [01:25:32] * Trooy quit (Quit: Leaving)
87: [01:28:21] <Pyromanik> Guest12105: change the GridFieldConfig
88: [01:29:28] <Pyromanik> BPower: they should generate by themselves.
89: [01:29:48] <BPower> Pyromanik: that's what I thought... but it's not doing it.
90: [01:30:02] <Pyromanik> all generate* functions check if it exists first, and creates it if not.
91: [01:30:18] <Pyromanik> if it's not creating it, I suggest your image object probably isn't created properly.
92: [01:30:43] <Pyromanik> or you have a permissions issue (though I'd expect an error of sorts to show in that case)
93: [01:30:58] <BPower> Pyromanik: http://quick-markup.com/p/521c01e862a8a
94: [01:31:35] * UncleCheese has joined #silverstripe
95: [01:32:25] <Pyromanik> BPower: don't think it works like that
96: [01:32:28] <Pyromanik> use set_field
97: [01:32:35] <Pyromanik> or setFilename, etc.
98: [01:32:55] <Pyromanik> File (and Image by extension) have finicky way of managing their own data.
99: [01:33:23] <BPower> ->Filename induces setFilename($val) just like DataObjects doesn't it?
100: [01:33:27] <Pyromanik> nope
101: [01:33:32] <Pyromanik> read the code
102: [01:33:41] <Pyromanik> big comment block poorly explaining it
103: [01:33:47] <BPower> hm ok
104: [01:38:06] * howardgrigg quit (Remote host closed the connection)
105: [01:39:48] <Pyromanik> defining root page controller
106: [01:39:49] <Pyromanik> hmm
107: [01:39:56] <Pyromanik> what do #silverstripe?
108: [01:41:15] <spronk> root page controller?
109: [01:41:24] * Trooy has joined #silverstripe
110: [01:43:07] <Pyromanik> Looking at RootURLController, zero docs on it though :<
111: [01:45:54] <Pyromanik> also see '': 'Controller' in yaml
112: [01:47:34] * priithansen quit (Quit: priithansen)
113: [01:48:26] * priithansen has joined #silverstripe
114: [01:48:59] <atmos> bah, Tuesdays are such a lul day
115: [01:49:44] * coldblooded01 has joined #silverstripe
116: [01:50:04] <Pyromanik> atmos: Tuesday is the worst day of the week.
117: [01:50:14] <Pyromanik> contrair to the popular belief that Monday is.
118: [01:50:52] <coldblooded01> any way to make the old pagination system from SilverStripe 2.4 work with 3.0?
119: [01:50:59] <coldblooded01> i don't want to use PaginatedList
120: [01:51:15] <atmos> Pyromanik: agreed
121: [01:51:42] <Pyromanik> coldblooded01: lolwhat
122: [01:51:51] <UncleCheese> haha
123: [01:51:53] <UncleCheese> seriously?
124: [01:51:58] <Pyromanik> paginatedlist IS the old pagination system.
125: [01:52:22] <Pyromanik> just separated out to it's own class where it belongs.
126: [01:52:39] <Pyromanik> and slightly rejigged to work with the 3.0 orm
127: [01:53:20] <coldblooded01> hmm
128: [01:53:22] <UncleCheese> I can't for the life of me see why anyone would prefer the old way. And like pyro says, it's the same thing
129: [01:53:22] <BPower> In $allowed_children, I know I can do *Page (to match things like BlogPage, CustomerPage, etc) but when I do something like CustomerType_* it fails. Any tips?
130: [01:53:26] <coldblooded01> Pyromanik: have a look at http://pastebin.com/sitZPbCS
131: [01:53:39] <coldblooded01> that doesn't work, renders nothing
132: [01:53:41] <BPower> The error I get in the CMS is: "Uncaught ReflectionException: Class ResourceType_* does not exist"
133: [01:53:49] <UncleCheese> coldblooded01: you're not using Paginated List
134: [01:54:08] <UncleCheese> and you're not even properly using the ORM
135: [01:54:08] <Pyromanik> coldblooded01: because your code is wrong.
136: [01:54:13] <Pyromanik> ^^
137: [01:54:28] <Pyromanik> that's all 2.4 code.
138: [01:54:48] <coldblooded01> indeed 2.4 code, any way to make that work with 3?
139: [01:54:52] <Pyromanik> here, let me rewrite it for you.
140: [01:55:08] <coldblooded01> :)
141: [01:55:15] * Stomach has joined #silverstripe
142: [01:55:38] <UncleCheese> coldblooded01: http://pastebin.com/H2C2j6sa
143: [01:56:09] <Pyromanik> function PorfolioItems() { return PaginatedList::create($this->PortfolioPages()->filter('ProjectType', $type)); }
144: [01:56:15] <DesignerX> hi, how can I add GF in nested tabs in ModelAdmin ?
145: [01:56:29] <Pyromanik> DesignerX: the same way you always did.
146: [01:56:58] <UncleCheese> Actually, this is a little cleaner, coldblooded01: http://pastebin.com/BYbjkpi3
147: [01:57:09] <DesignerX> Pyromanik: using getCMSFields() in model admin ?
148: [01:57:15] <atmos> I'm going to make Tuesday, .NET day
149: [01:57:16] <Pyromanik> yes.
150: [01:57:21] <Pyromanik> atmos: eww.
151: [01:57:24] <coldblooded01> thank you UncleCheese and Pyromanik
152: [01:57:38] <DesignerX> ty Pyromanik , will try it now :)
153: [01:57:41] <Pyromanik> coldblooded01: paginated list takes care of most everything for you.
154: [01:57:52] <Pyromanik> you don't need any of that start business.
155: [01:58:03] <Pyromanik> just figure out your filter type, plonk that in.
156: [01:58:21] <UncleCheese> coldblooded01: You should avoid injecting raw SQL statements like your $typeFilter, using ->where(). That should be refactored to use filter()
157: [01:58:21] <BPower> Any ideas on the $allowed_children issue, guys?
158: [01:58:58] <Pyromanik> coldblooded01: function PorfolioItems() { return PaginatedList::create($this->PortfolioPages()->filter('ProjectType', $this->Action), $this->request); }
159: [01:59:02] <Pyromanik> done.
160: [01:59:15] <Pyromanik> use the same template, but change control to either with or loop.
161: [01:59:29] <coldblooded01> i see
162: [01:59:29] <Pyromanik> such as the example in the site search tutorial (#4)
163: [02:00:22] <coldblooded01> just doing a quick migrate of 2.4 source to 3, will need to revise pagination for 3.0
164: [02:00:36] <coldblooded01> UncleCheese: http://pastebin.com/BYbjkpi3 it's missing " somewhere i can't figure out where
165: [02:01:04] <atmos> coldblooded01: parentID
166: [02:01:14] <coldblooded01> "ParentID => $this->ID",
167: [02:01:59] * Nimle quit (Ping timeout: 250 seconds)
168: [02:02:19] <coldblooded01> UncleCheese: that didn't work
169: [02:02:21] <UncleCheese> http://pastebin.com/ZdJaiCEK
170: [02:02:23] <coldblooded01> doesn't return anything
171: [02:02:31] <Pyromanik> coldblooded01: don't use that code -.-
172: [02:02:38] <Pyromanik> 13:58 < Pyromanik> coldblooded01: function PorfolioItems() { return PaginatedList::create($this->PortfolioPages()->filter('ProjectType', $this->Action), $this->request); }
173: [02:02:45] <Pyromanik> this should be all you need.
174: [02:03:37] <Pyromanik> provided the relationship is named correctly ('PortfolioPages')
175: [02:04:30] <UncleCheese> it's probably Children() for all we know
176: [02:04:49] <Pyromanik> haha, 2.4, probably.
177: [02:04:51] <UncleCheese> which isn't necessarily the same as "ParentID = $this->ID"
178: [02:04:54] <UncleCheese> Lol
179: [02:05:03] <Pyromanik> well, let me revise then
180: [02:05:58] <coldblooded01> it's children Pyromanik
181: [02:06:01] <coldblooded01> function PorfolioItems() {
182: [02:06:02] <coldblooded01> return PaginatedList::create($this->PortfolioPage()->filter('ProjectType', $this->Action), $this->request);
183: [02:06:03] <coldblooded01>
184: [02:06:04] <coldblooded01> }
185: [02:06:11] <coldblooded01> not PortfolioPages
186: [02:06:20] <coldblooded01> doesn't return anything still
187: [02:06:43] <Pyromanik> yeah
188: [02:07:03] <coldblooded01> any idea?
189: [02:07:15] <Pyromanik> It'd be easier if you gave us more info on the relationship between this controller and the portfoliopages
190: [02:07:32] <coldblooded01> class PortfolioHolder extends Page {
191: [02:07:32] <coldblooded01> static $db = array(
192: [02:07:34] <coldblooded01> );
193: [02:07:35] <coldblooded01> static $has_one = array(
194: [02:07:37] <coldblooded01> );
195: [02:07:38] <coldblooded01> static $allowed_children = array('PortfolioPage');
196: [02:07:38] <coldblooded01> }
197: [02:07:46] <Pyromanik> haha, you're right UncleCheese
198: [02:07:53] <coldblooded01> xD
199: [02:08:07] <Pyromanik> http://sspaste.com/paste/show/521c090426b02
200: [02:08:26] <Pyromanik> not sure if filter stacks like that though.
201: [02:08:38] <Pyromanik> if it doesn't give you what you want, you'll have to build an array first
202: [02:09:44] <coldblooded01> hmm i see
203: [02:09:46] <Pyromanik> http://sspaste.com/paste/show/521c090426b02
204: [02:09:50] <Pyromanik> like that first comment
205: [02:09:52] <coldblooded01> yeah, doesn't render anything
206: [02:10:02] <Pyromanik> yeah well you'll have to update your template first
207: [02:10:48] <coldblooded01> with flush you mean?
208: [02:11:05] <Pyromanik> if you want to make sure I didn't mess the code up while coding untested from the top of my head then change the return to $return = and then die(var_dump($return->map()->toArray()));
209: [02:11:23] <Pyromanik> no I mean get rid of all the <% control %> statements like I pointed out earlier
210: [02:11:45] <Pyromanik> http://doc.silverstripe.org/framework/en/tutorials/4-site-search#creating-the-template
211: [02:13:14] <BPower> Figured it out. *Page actually means only Page and no subclasses of Page. * is not a wildcard.
212: [02:13:33] <Pyromanik> BPower: hmm?
213: [02:14:00] <Pyromanik> ah, sorry I missed that earlier
214: [02:14:03] <coldblooded01> Pyromanik: so basically this works http://pastebin.com/CsGjFxHF
215: [02:14:07] <BPower> Pyromanik: no prob :)
216: [02:14:15] <BPower> Thanks anyways!
217: [02:14:17] <coldblooded01> your rewrite of that function doesnt
218: [02:14:18] <BPower> I'm off now
219: [02:14:28] <BPower> happy Monday from California!
220: [02:14:32] * BPower quit (Remote host closed the connection)
221: [02:15:27] <Pyromanik> haha
222: [02:15:30] <Pyromanik> shit happens
223: [02:15:35] * nickmolhoek quit (Quit: nickmolhoek)
224: [02:15:46] <Pyromanik> ->where should be avoided.
225: [02:15:52] <Pyromanik> just try'n to pretty things up for you
226: [02:17:05] <coldblooded01> with that original 2.4 function, pagination doesn't work with it unfortunately. How do you return that function with PaginatedList?
227: [02:17:14] <coldblooded01> return DataObject::get("PortfolioPage", "ParentID = $this->ID $typeFilter", "", "", "$start,$limit");
228: [02:17:14] <Pyromanik> huh?
229: [02:17:33] <Pyromanik> oh
230: [02:17:35] <Pyromanik> well
231: [02:17:37] <Pyromanik> shit
232: [02:18:02] <Pyromanik> look, if it's working and you're not bothered to upgrade it properly, probably just don't try.
233: [02:18:25] <Pyromanik> UncleCheese's code should work.
234: [02:18:35] <Pyromanik> that pastie he put up earlier.
235: [02:19:00] <Pyromanik> just use that.
236: [02:19:04] <UncleCheese> coldblooded01: Never write DataObject::get() or ::get_one() ever again. That's soooooo 2011.
237: [02:19:22] <simon_w> You mean 2010
238: [02:19:27] <UncleCheese> mmm
239: [02:19:28] <UncleCheese> no
240: [02:19:41] <ss23> (´・ω・`)
241: [02:19:53] <UncleCheese> SS 3.0 stable was April 2012, no?
242: [02:20:00] <coldblooded01> indeed UncleCheese , I never dev'd with silverstripe in that era so still figuring things out
243: [02:20:02] <simon_w> So?
244: [02:20:23] <UncleCheese> well i suppose it could be soooooo 2006, as well
245: [02:22:34] <zippy__> wonder when 3.1 will go stable
246: [02:23:19] <Pyromanik> when it's ready.
247: [02:23:25] * priithansen quit (Quit: priithansen)
248: [02:24:19] <UncleCheese> 3.1 should go stable right around the time 4.0 goes alpha
249: [02:24:38] <ss23> hahah UncleCheese
250: [02:24:54] <ss23> If it makes you guys feel better, I'm aware of an RC2 in the works
251: [02:24:54] * simon_w quit (Quit: Leaving)
252: [02:24:55] <ss23> :D
253: [02:25:48] <Pyromanik> ss23: no surprise.
254: [02:26:03] <Pyromanik> rc2 has been in the works since rc1 was released.
255: [02:26:21] <Pyromanik> ss23: now fix fulltext search filter.
256: [02:26:24] <Pyromanik> xD
257: [02:26:42] <ss23> lol
258: [02:26:52] <ss23> I have my own issues!
259: [02:26:55] <ss23> solr doesn't even work
260: [02:26:56] <ss23> I hate solr
261: [02:26:57] <ss23> so much
262: [02:27:53] * howardgrigg has joined #silverstripe
263: [02:28:51] <guzzlefry> oh
264: [02:28:59] <guzzlefry> Is that why my search doesn't work?
265: [02:30:50] * howardgrigg quit (Read error: Connection reset by peer)
266: [02:31:00] * howardgrigg has joined #silverstripe
267: [02:33:23] <atmos> ss23: solr is the way of the FUTURE
268: [02:34:13] <Pyromanik> what about sphinx?
269: [02:36:23] <atmos> P?pdoesn't that require a license?
270: [02:36:37] <atmos> Pyromanik: *
271: [02:37:05] <ss23> NU UH
272: [02:37:05] <ss23> :<
273: [02:46:54] <Pyromanik> atmos: it does?
274: [02:47:11] <atmos> Pyromanik: I'm sure it did... I could be wrong though
275: [02:47:15] <Pyromanik> froscon
276: [02:47:17] <Pyromanik> probably not
277: [02:47:43] <Pyromanik> sphinxsearch.com:
278: [02:47:44] <Pyromanik> Open Source Search Server
279: [02:50:26] <atmos> Pyromanik: I don't know what I was looking at then - probably just a blind rage over solr
280: [02:50:50] <Pyromanik> googled sphinx search and the first result was ad for consulting company
281: [02:50:55] <Pyromanik> might have been that
282: [02:52:44] <atmos> Pyromanik: maybe
283: [02:53:31] * UncleCheese quit (Quit: UncleCheese)
284: [02:58:01] * Trooy quit (Quit: Leaving)
285: [03:06:42] * cloph_away has joined #silverstripe
286: [03:06:57] * cloph quit (Read error: Operation timed out)
287: [03:08:14] * howardgrigg quit (Ping timeout: 240 seconds)
288: [03:08:36] * UncleCheese has joined #silverstripe
289: [03:16:49] <ss23> Yay, I found a solr bug!
290: [03:16:49] <ss23> :D
291: [03:16:54] <ss23> well
292: [03:16:56] <ss23> fulltextsearch bug
293: [03:22:41] * zagoodwin quit (Quit: Textual IRC Client: www.textualapp.com)
294: [03:22:53] <atmos> ss23: oh yeah?
295: [03:24:08] <ss23> Yeah, but not relevant to most peoples bugs directly, I don't think
296: [03:24:28] <ss23> Looks like only a feature the document management system uses, seems to change 0 to an empty string, which 500's
297: [03:25:20] <atmos> ss23: any silentone effects?
298: [03:25:34] <atmos> ss23: ours is working pretty well at the mo really
299: [03:27:47] * aznain quit (Ping timeout: 250 seconds)
300: [03:28:57] <ss23> atmos: Nope, shouldn't have
301: [03:29:02] <ss23> It's hard for me to track down where the issue even is, tbh
302: [03:30:22] <atmos> ss23: nice
303: [03:31:05] <ss23> For refernce ,it looks like something is going "Oh, this has a value of 0? I'll just remove it!" which makes solr 500
304: [03:31:57] <guzzlefry> ugh, godaddy hosting...
305: [03:35:53] * howardgrigg has joined #silverstripe
306: [03:37:06] <Pyromanik> ss23: please tell me 3.1?
307: [03:37:28] <ss23> haha
308: [03:37:39] <ss23> No, this is 3.0, and it's probably unrelated to anything but solr
309: [03:37:42] <ss23> Pyromanik: Was your issue with solr, was it?
310: [03:37:43] <Pyromanik> fulltextsearch you mean Fulltext SearchFilter right?
311: [03:37:46] <ss23> No
312: [03:37:49] <Pyromanik> :<
313: [03:37:50] <ss23> I mean the module, fulltextsearch
314: [03:37:50] <ss23> :P
315: [03:37:51] <Pyromanik> :'(
316: [03:37:55] <Pyromanik> oic
317: [03:37:56] <Pyromanik> gotcha
318: [03:38:00] <Pyromanik> well
319: [03:38:12] <Pyromanik> looking at using that anyway if I can't clean up this damn blog.
320: [03:38:15] <Pyromanik> err
321: [03:38:15] <Pyromanik> forum
322: [03:38:16] <ss23> lol
323: [03:38:32] <Pyromanik> willr made a dookie mess in it.
324: [03:39:14] <ss23> hmm
325: [03:39:20] <ss23> I need someone with fulltextsearch knowledge tbh
326: [03:40:13] <ss23> Could probably fix it in like ORM level
327: [03:40:19] <ss23> Or at any step higher
328: [03:40:20] <ss23> ehh
329: [03:40:47] <Pyromanik> ss doesn't have the notion of a primary group does it?
330: [03:40:54] <Pyromanik> ss23: look at fulltextsearchfilter
331: [03:41:00] <Pyromanik> everything should use it anyway I think
332: [03:41:10] <ss23> noooo
333: [03:41:30] <Pyromanik> with interpluggable backends to fulltextyness
334: [03:41:45] <Pyromanik> mysql's shit fulltext index, sphinx, solr, etc.
335: [03:42:35] <Pyromanik> so anyway
336: [03:42:46] <Pyromanik> I want to ... hmm
337: [03:42:48] <Pyromanik> roles perhaps
338: [03:42:59] <Pyromanik> I want to apply a thing to all members of a group
339: [03:43:02] <Pyromanik> which seems fine
340: [03:43:13] <Pyromanik> until you realise that any user can be in multiple groups
341: [03:43:29] <guzzlefry> You can still flush and /dev/build when environment is live as long as logged in, right?
342: [03:43:40] <Pyromanik> guzzlefry: should be able to, yes.
343: [03:43:59] <Pyromanik> though not at the same time.
344: [03:44:05] <Pyromanik> never at the same time.
345: [03:44:56] <guzzlefry> Moving this to live is going to take years over FTP...
346: [03:45:07] <Pyromanik> oh ftp :<
347: [03:45:11] <Pyromanik> I thought the world was past that
348: [03:45:44] <guzzlefry> nope
349: [03:45:51] <guzzlefry> Godaddy needs to call client in order to set up ssh. :P
350: [03:45:57] <guzzlefry> And well, it's kind of late.
351: [03:46:03] <Pyromanik> urgh, derp
352: [03:47:19] <guzzlefry> meh, I should probably just wait and do this properly. :P
353: [03:47:27] <guzzlefry> using git/composer and friends.
354: [03:47:28] * Pyromanik shrugs
355: [03:47:35] <Pyromanik> I still have to ftp from time to time.
356: [03:51:46] <Pyromanik> if I want to apply a property to a member, where there can be only one, but don't want to micromanage members with their properties, so think to put it on group, but then groups can be many... how would/have people solved this issue?
357: [03:51:50] <Pyromanik> Stomach: have you ever?
358: [03:53:52] <guzzlefry> How would I go about adding sorting links to a blog holder listing?
359: [03:54:23] <Pyromanik> actions
360: [03:54:29] <atmos> Pyromanik: our web content guy has ftp access *shudders*
361: [03:54:39] <Pyromanik> atmos: fun fun fun
362: [03:54:48] <Pyromanik> now help me problem solve :<
363: [03:54:59] <guzzlefry> actions is vague :/
364: [03:55:20] <Pyromanik> guzzlefry: controller actions, or look at the code because I think something like that might already exist.
365: [03:55:36] <Pyromanik> guzzlefry: or ?query=prams
366: [03:55:40] <Pyromanik> params*
367: [03:55:51] <Pyromanik> query param probably better
368: [03:56:26] <guzzlefry> ah, makes sense, thanks
369: [03:56:47] <Pyromanik> guzzlefry: pretty sure there's an action that lists blogEntries on a blogholder already
370: [03:57:08] <Pyromanik> just modify it (either with decoration or subclassing and or maybe injector switching)
371: [03:57:10] <ss23> simon_w isn't here
372: [03:57:13] <Pyromanik> I knw
373: [03:57:17] <Pyromanik> I have a question
374: [03:57:18] <Pyromanik> ss23:
375: [03:57:25] <Pyromanik> what should I do about this not micromanaging members?
376: [03:57:47] <ss23> uh
377: [03:57:49] <ss23> About what?
378: [03:59:10] <atmos> Pyromanik: you could create another group for those in multiple that need the 'thing' applied to them
379: [03:59:47] <Pyromanik> atmos: but if I decorate group they'll have all the things applied to them.
380: [03:59:51] <Pyromanik> I only need one.
381: [04:00:01] <Pyromanik> I should decorate member
382: [04:00:02] <Pyromanik> but
383: [04:00:03] <Pyromanik> ...
384: [04:00:23] <Pyromanik> so much setting and remembering for every member that are in logical groups
385: [04:00:26] <Pyromanik> ok
386: [04:00:36] <Pyromanik> so it's product markups for customer groups.
387: [04:00:39] <atmos> Pyromanik: I'm no help lol I'm stuck in .net and I can't get out
388: [04:00:45] <Pyromanik> guts4u
389: [04:01:10] <Pyromanik> so I need to grab the markup from a customer and apply it to the cost price (stored on product) to get final price.
390: [04:01:14] <Stomach> have i ever what
391: [04:01:51] <Pyromanik> so eg. "Company Employees" would have cost+5, so they'd have 5% markup, where as an external distributor would have wholesale prices, 10% markup, everyone else gets 20% markup, etc.
392: [04:02:15] <Pyromanik> Stomach: decorated a member with an "only one" type situation but applied it to groups instead of members?
393: [04:02:33] <Stomach> that seems odd
394: [04:02:34] <Pyromanik> so you don't have to micromanage members
395: [04:02:39] <Pyromanik> Stomach: use case above.
396: [04:02:45] <Stomach> oh yeah
397: [04:03:00] <Stomach> i do it for availability on one site
398: [04:03:05] <Stomach> special members can always order
399: [04:03:08] <Stomach> others cannot
400: [04:03:08] <Stomach> etc
401: [04:03:15] <Pyromanik> I don't want to have to go through each member remembering which group they were in to correctly individually manage the markup on each.
402: [04:03:37] <Pyromanik> but if I decorate groups, they could have 3 different markups applied... which is wrong.
403: [04:03:44] <Pyromanik> (being in 3 groups)
404: [04:04:07] <Stomach> yeah you cant let that happen :P
405: [04:04:14] <Pyromanik> how could I get around it without compmletely messing the permissions, etc. (like what happens when people subclass member)
406: [04:04:18] <Stomach> all of our stuff is managed by the back end, not the front end
407: [04:04:27] <Stomach> so you dont have to worry about mark up
408: [04:04:33] <Stomach> it just "works"
409: [04:04:36] <Pyromanik> Stomach: eh?
410: [04:04:48] <Pyromanik> by markup I mean the difference between price and cost
411: [04:04:56] <Pyromanik> not <html>
412: [04:04:58] * Colin[pi] has joined #silverstripe
413: [04:05:01] <Stomach> haha
414: [04:05:02] <Stomach> woops
415: [04:05:04] <Stomach> :D
416: [04:05:05] <Colin[pi]> hi bitches
417: [04:05:07] <Pyromanik> hi
418: [04:05:14] <Colin[pi]> MEESA BACK
419: [04:05:17] <Colin[pi]> ;D
420: [04:05:20] <Pyromanik> shuttup jarjar
421: [04:05:27] <Colin[pi]> :C
422: [04:05:35] <Stomach> but basically you can't manage that nicely lol
423: [04:05:42] <Pyromanik> Stomach: I know :(
424: [04:05:48] <Pyromanik> pitfalls of SS
425: [04:05:53] <Stomach> thats not a ss thing
426: [04:05:59] <Stomach> its a business requirements nightmare
427: [04:06:01] <Pyromanik> well
428: [04:06:02] <Pyromanik> yes and no
429: [04:06:30] <Stomach> we apply discounts to the cart if members are in groups, not individual prices for each groups for each product
430: [04:06:32] <Pyromanik> if I could define that a member can only belong to a single subtype of group...
431: [04:06:54] <Pyromanik> Stomach: elaborate?
432: [04:06:54] <Stomach> why not just make it a Group dataobject which has an enum on it then
433: [04:07:09] <Stomach> so rather than trying to price everything by user, we price everything once
434: [04:07:23] <Stomach> then our total cost has a discount/whatever applied to it when its processed
435: [04:07:42] <Stomach> so you only have one point of contact for information about the costs for that group
436: [04:07:43] <Pyromanik> that still involves storing a discount per customer or whatever somewhere, no?
437: [04:07:50] <Stomach> yeah it does
438: [04:07:53] <Pyromanik> same deal
439: [04:07:59] <Stomach> either way, you need to store that somehow :D
440: [04:08:03] <Pyromanik> I know
441: [04:08:08] <Pyromanik> Member is the logical place
442: [04:08:16] <Pyromanik> but then I have to manually manage them
443: [04:08:30] <Stomach> at some point you're gonna have to manage them lol
444: [04:08:38] <Pyromanik> and it'd be possible to end up with members with outdated markups in a group or something.
445: [04:08:51] <Stomach> just extend member and throw a has_one on it
446: [04:09:02] <Stomach> or rather, decorate
447: [04:09:07] <Pyromanik> to a markup object?
448: [04:09:09] <Pyromanik> could do
449: [04:09:36] <Pyromanik> hmm
450: [04:09:42] <Pyromanik> actually that could work out reasonably nicely
451: [04:10:31] <Stomach> just make sure you if ($member->Markup()) everywhere so the future doesn't hurt :P
452: [04:10:33] <Pyromanik> a has one instead of a property proper
453: [04:11:08] <Pyromanik> haha Stomach, I'd have to do that anyway because eg. Admins wouldn't be custoemrs, probably not have any markup.
454: [04:11:28] <Pyromanik> right, sounds legit, thanks Stomach !
455: [04:11:33] <Stomach> np :)
456: [04:15:13] <Pyromanik> Colin[pi]: welcome back, you left?
457: [04:15:20] <Pyromanik> back... back from Brazil?
458: [04:20:53] <Pyromanik> hey
459: [04:20:56] <Pyromanik> protip
460: [04:21:06] <Pyromanik> defining db relaions in yaml works for dataobjects
461: [04:21:11] <Pyromanik> doesn't work for dataextension
462: [04:24:26] <Pyromanik> that's my little experiment for this afternoon
463: [04:24:37] * pippy_ has joined #silverstripe
464: [04:27:39] * pippy quit (Ping timeout: 260 seconds)
465: [04:33:22] <Pyromanik> but you can apply db relations directly to the object you're going to extend.
466: [04:33:45] <Pyromanik> not so clean, but neither is defining db relational stuff in the yaml in the first place xD
467: [04:33:46] <Stomach> thats a horrible idea :D
468: [04:33:49] <Pyromanik> I know
469: [04:33:53] <Pyromanik> Was just curious.
470: [04:34:04] <Stomach> "dear confusing code base, why you so inconsistent"
471: [04:34:40] <Pyromanik> so now I have class ClassName extends BlahClass { } class BlahClass extends DataObject {} class AnotherClass extends DataExtension {}
472: [04:34:45] <Pyromanik> and everything defined in yml :<
473: [04:34:46] <Pyromanik> haha
474: [04:34:48] <Pyromanik> gross
475: [04:51:43] <guzzlefry> Has anyone managed to get search working with the blog module?
476: [04:51:49] <Pyromanik> ?
477: [04:51:52] <Pyromanik> it does
478: [04:51:59] <Pyromanik> BlogEntry extends Page
479: [04:52:12] <Pyromanik> FulltextSearchable::enable() has it covered
480: [04:52:29] <guzzlefry> I did that. :/
481: [04:53:25] <guzzlefry> Also threw this in template: $SearchForm
482: [04:53:33] <Pyromanik> yep
483: [04:53:35] <Pyromanik> live the dream.
484: [04:54:40] <guzzlefry> This is a nightmare! :P
485: [04:54:56] <guzzlefry> Well, to be fair, I'm probably doing something obviously stupid again.
486: [04:56:20] <Pyromanik> dev/build
487: [04:56:29] <Pyromanik> gotta apply the fulltext indexes to the DB
488: [04:57:01] <guzzlefry> Yep, that's done.
489: [04:57:16] <guzzlefry> oh
490: [04:57:31] <guzzlefry> I need a template for results don't I? :P
491: [04:57:40] <Pyromanik> yes
492: [04:57:49] <Pyromanik> tutorial #4
493: [04:57:56] <Pyromanik> copy pasta
494: [04:58:26] <Pyromanik> like alphabet spagetti
495: [05:00:14] * guzzlefry flushes.
496: [05:01:22] * coldblooded01 quit (Quit: coldblooded01)
497: [05:03:50] * atmos quit (Quit: Page closed)
498: [05:04:06] * DigNZ quit (Quit: DigNZ)
499: [05:05:09] <guzzlefry> victory!
500: [05:05:20] * guzzlefry knights Pyromanik
501: [05:08:33] * Jayden90 has joined #silverstripe
502: [05:10:26] <Jayden90> Guys what is the best way to handle redirects for old links. Is there a nice module for this?
503: [05:12:09] <Jayden90> As in links that do not relate to the current sitemap at all realy, from a previous site.
504: [05:12:26] <willr> Jayden90 how many links you got?
505: [05:12:55] <Jayden90> around 30-40
506: [05:13:33] <willr> I've just used hardcoded htaccess rules in the past for ~10 links at a time otherwise https://github.com/ajshort/silverstripe-linkmapping is good
507: [05:13:56] <Jayden90> willr: thanks man, I'll check it out :)
508: [05:14:34] <Pyromanik> home.
509: [05:14:36] * Pyromanik quit (Quit: leaving)
510: [05:15:45] <Jayden90> willr: Do you know if it is 3.1 ready?
511: [05:16:06] <willr> ready for what? Production use? It's in prod more than 3.0
512: [05:16:29] <wmk> ;)
513: [05:17:01] <Jayden90> We use 3.1 here, it says requires SilverStripe 2.4+ on the project page
514: [05:17:12] <wmk> if all the modules ran out of the box in 3.1... but it got much better the last couple of weeks
515: [05:33:43] <zippy__> willr: Why not push it stable then?
516: [05:35:31] <willr> zippy__ not my call. Ingo will push RC stable when he's happy
517: [05:37:55] * zippy__ quit (Ping timeout: 245 seconds)
518: [05:38:02] * Stomach has left #silverstripe
519: [06:01:06] * UncleCheese quit (Quit: UncleCheese)
520: [06:03:48] * willr quit (Quit: willr)
521: [06:05:52] * Jakx has joined #silverstripe
522: [06:05:56] <Jakx> yo
523: [06:07:18] * Jayden90 quit (Ping timeout: 264 seconds)
524: [06:13:45] * Shrike_Finland has joined #silverstripe
525: [06:15:51] <Jakx> with dataobjects managed by a gridfield, can I set a custom default value based on the gridfield?
526: [06:17:13] * Trooy has joined #silverstripe
527: [06:17:14] <guzzlefry> hrm
528: [06:17:23] <guzzlefry> Call to undefined function stripslashes_recursively() <--- Is this a silverstripe thing?
529: [06:19:03] <guzzlefry> nevermind
530: [06:23:09] <guzzlefry> okay well, it's in the directory...
531: [06:24:13] <guzzlefry> ss23: Does SS 3.1 work with PHP 5.3?
532: [06:24:20] <ss23> Hmm
533: [06:24:23] <ss23> guzzlefry: Sources say: Yes
534: [06:25:03] * guzzlefry wonders why he's getting that error. :/
535: [06:25:11] <ss23> hmm
536: [06:25:13] <ss23> I recognize that
537: [06:25:22] <ss23> guzzlefry: It's related to register_globals support
538: [06:25:25] <ss23> Hmmmmmmm let me think
539: [06:25:32] <ss23> It is defined by Silverstripe, probably in main.php
540: [06:25:34] <ss23> Start there
541: [06:25:44] <guzzlefry> yeah, it's in core.php
542: [06:25:58] <ss23> Personally, I wanted to strip all that cruft out *properly*
543: [06:26:07] <ss23> It makes the code rot if you leave in junk crap like it everywhere
544: [06:26:25] <ss23> But the consensus was like "Leave it in since it's not explicitly breaking stuff"
545: [06:26:28] <ss23> BUT LOOK NOW HUH
546: [06:26:31] <guzzlefry> :P
547: [06:26:58] <guzzlefry> sinking ship!
548: [06:30:00] <guzzlefry> I keep forgetting that we have logs here...
549: [06:30:37] <guzzlefry> hah
550: [06:30:46] <guzzlefry> The search results for "fuck" are humorous.
551: [06:31:03] <Jakx> 14with dataobjects managed by a gridfield, can I set a default value based on the gridfield adding the dataobject??01
552: [06:31:21] * howardgrigg quit (Remote host closed the connection)
553: [06:31:26] <Colin[pi]> simon_w recently ranked the regulars on how many "fuck"s they had typed
554: [06:32:00] <Colin[pi]> one of them was way out in front, was it pyromanik?
555: [06:32:53] <ss23> I thought it was spronk
556: [06:32:59] <Colin[pi]> might have been
557: [06:33:09] <Colin[pi]> but it was like an order of magnitude more than the next lol
558: [06:33:29] <guzzlefry> spronk and pyromanik are pretty close.
559: [06:33:32] <ss23> I tweeted him
560: [06:33:40] <guzzlefry> ss23: I think you're 3rd. :P
561: [06:33:44] <ss23> :D
562: [06:33:51] <ss23> I never fuck in public!
563: [06:33:51] <ss23> :P
564: [06:34:58] <guzzlefry> anyway
565: [06:35:08] <guzzlefry> no results for stripslashes_recursively
566: [06:35:37] <ss23> guzzlefry: Latest 3.1 dev?
567: [06:37:37] <ss23> Hmm
568: [06:37:43] <ss23> if I knew when the hackfest was, I would check my PRs
569: [06:37:43] <guzzlefry> pretty recent
570: [06:37:52] <ss23> Hmm
571: [06:37:57] <ss23> I can search closed PRs I guess
572: [06:37:58] <ss23> :D
573: [06:38:14] <guzzlefry> ss23: By the way, this is working, exact same files, on my test server.
574: [06:39:34] <ss23> guzzlefry: Yes, you would only hit it if you have magic quotes on. Do you have magic quotes turned on for the live server?
575: [06:40:13] <guzzlefry> It's possible. Let me see if Godaddy let's me set that. :P
576: [06:40:28] <ss23> $500 says yes
577: [06:40:41] <ss23> So answer is find a new host, SilverStripe doesn't support magic_quotes! But regardless, there's a bug
578: [06:40:44] <ss23> I'll look now
579: [06:40:51] <ss23> It *should* stop you from running the installer at all, guzzlefry
580: [06:41:00] <Colin[pi]> eeeeuw magic_quotes
581: [06:41:30] <guzzlefry> ss23: I didn't run the installer, had to FTP the files over.
582: [06:41:41] <guzzlefry> It felt dirty. :(
583: [06:41:46] <Colin[pi]> eeeeuw ftp
584: [06:41:51] <Colin[pi]> ;D
585: [06:41:51] <ss23> lol
586: [06:41:59] <ss23> And to think I'm going to HELP you
587: [06:42:04] <ss23> wtf the internet here are going at 100kb/S
588: [06:42:05] <ss23> kb/s
589: [06:42:16] <ss23> It's going to take a while, but when it's done, I'll check a fix, guzzlefry
590: [06:42:22] <guzzlefry> thank you sir
591: [06:42:26] <ss23> guzzlefry: But yeah, even if I fix it, there's a lot of issues with running with magic quotes on
592: [06:42:37] <guzzlefry> yeah, I'm going to look for a way to kill that.
593: [06:42:41] <ss23> So it'll "work", but you'll liekly have issues. At the very least, I'm not in a position to verify whether you'll not get hacked etc
594: [06:42:52] <guzzlefry> Wasn't that removed from PHP 5.4?
595: [06:42:58] <ss23> Yes
596: [06:42:58] <ss23> :D
597: [06:43:08] <ss23> Hence why no support, it's just asking for trouble :P
598: [06:43:11] <guzzlefry> Guess which version GoDaddy doesn't offer. ;)
599: [06:43:14] <ss23> haha
600: [06:43:15] <ss23> 5.5?
601: [06:43:19] <guzzlefry> nope
602: [06:43:21] <guzzlefry> 5.2 and 5.3
603: [06:43:47] * Jakx has left #silverstripe
604: [06:45:03] <ss23> (´・ω・`)
605: [06:46:28] <ss23> Hmm
606: [06:46:37] <ss23> Is there like a git... tell me who is to blame for the stuff that got removed?
607: [06:47:43] <ss23> i can bisect I guess
608: [06:48:29] * Trooy quit (Read error: Connection reset by peer)
609: [06:54:24] <ss23> hmm
610: [06:54:33] <ss23> guzzlefry: Can you get the exact hash of the version you're on?
611: [06:54:36] <ss23> guzzlefry: The code looks fine
612: [06:55:42] <guzzlefry> bacf0f6171a2e5e99897b6f4d44009b38b00bfb0 for framework
613: [06:55:52] <ss23> sweet
614: [06:55:53] <ss23> sec
615: [06:56:04] <ss23> woah
616: [06:56:09] <guzzlefry> f937b95eaf2b74ee75b46ad56a44e9126a927690 for CMS
617: [06:56:10] <ss23> HEAD is now at bacf0f6... Merge pull request #2279 from ss23/patch-7
618: [06:56:10] <ss23> thats me
619: [06:56:11] <ss23> :D
620: [06:56:41] <ss23> guzzlefry: You're on a buggy version of framework. Update to latest and it's fixed if you like
621: [06:56:45] <ss23> guzzlefry: So yeah, already been fixed :P
622: [06:56:49] * simon_w|air has joined #silverstripe
623: [06:57:05] <ss23> guzzlefry: So options are update your framework, or pick hosting that doesn't use magic_quotes (or turn it off there etc)
624: [06:57:11] <ss23> simon_w|air: HOW MANY FUCKS DO WE ALL HaVE :D
625: [06:57:23] <simon_w|air> Dammit, now you've got one more!
626: [06:57:28] <ss23> XD
627: [06:57:38] <ss23> We'll take off 3 for the previous conversations :P
628: [06:57:54] * violetina2 quit (Remote host closed the connection)
629: [06:58:16] <guzzlefry> okay
630: [06:58:19] <guzzlefry> well, it's working more now. :P
631: [06:58:22] <guzzlefry> Just not completely.
632: [06:58:42] <simon_w|air> http://www.sspaste.com/paste/show/521c4d164d3bd
633: [06:58:45] <simon_w|air> Spot the page breaks!
634: [06:59:09] * Trooy has joined #silverstripe
635: [06:59:16] * violetina2 has joined #silverstripe
636: [06:59:27] <ss23> :D
637: [06:59:31] <ss23> Colin[pi]: There, a fucks tally!
638: [06:59:46] <guzzlefry> I think they're fucking with me....
639: [06:59:48] <guzzlefry> "24 hours after enabling error logs, you can view them."
640: [06:59:56] <ss23> lol
641: [07:00:08] <guzzlefry> I just....why.
642: [07:00:08] <simon_w|air> Hmm, might try making the output nicer
643: [07:00:09] <lewellyn> guzzlefry: they probably only provide them daily, as the result of logrotate or something.
644: [07:01:22] * Trooy quit (Read error: Connection reset by peer)
645: [07:01:30] * howardgrigg has joined #silverstripe
646: [07:02:08] <simon_w|air> http://www.sspaste.com/paste/show/521c4de7d27f1
647: [07:02:13] <simon_w|air> There we go, much nicer
648: [07:02:39] <simon_w|air> (no, I'm not making doing this public)
649: [07:03:01] <guzzlefry> okay, so everything works but the home page.
650: [07:03:44] <simon_w|air> Fix it, Felix!
651: [07:03:46] <guzzlefry> wait...what
652: [07:03:52] <guzzlefry> I lied.
653: [07:03:59] <guzzlefry> It's redirecting to the dev server? 0.o
654: [07:04:09] <simon_w|air> Bork bork
655: [07:04:49] <guzzlefry> How is that even possible?
656: [07:05:06] * guzzlefry wonders if he hardcoded links.
657: [07:06:20] <guzzlefry> oh, <base> is hardcoded. :P
658: [07:06:41] * ARNHOE has joined #silverstripe
659: [07:08:06] <ss23> Action "dologin" not allowed on form (Name: "LoginForm")
660: [07:08:12] <ss23> Thanks, SilverStripe.
661: [07:08:40] <simon_w|air> Who wants to come do my cleaning for me?
662: [07:08:48] <simon_w|air> I can pay you in empty candy bags
663: [07:08:54] <ss23> :<
664: [07:09:03] <ss23> simon_w|air: Your house would be clean if I lived there!
665: [07:09:07] <ss23> dammit
666: [07:09:10] <simon_w|air> Pfft!
667: [07:09:15] <ss23> I bet someone updated framework again at the same time someone broke the shit out of framework
668: [07:09:18] * Trooy has joined #silverstripe
669: [07:09:29] <ss23> Fix typo in form method name.
670: [07:09:34] <ss23> willr looks pretty suspcious to me.
671: [07:09:50] <ss23> hmm, nope, weird
672: [07:09:52] <guzzlefry> I thought you guys had billions of unit tests?
673: [07:09:52] <ss23> Why this not work
674: [07:09:53] <ss23> :<
675: [07:09:59] <ss23> guzzlefry: We need a billions more!
676: [07:10:02] <guzzlefry> :X
677: [07:10:22] <ss23> wtf
678: [07:10:24] <ss23> it logs you in
679: [07:10:29] <ss23> I think this is a 3.1 bug
680: [07:10:47] <ss23> Now a question: Can I be bothered fixing this now so that we don't need to do a relase right after the Rc, or do I ignore it?
681: [07:11:24] <simon_w|air> First, make sure it's a 3.1[.0] bug :p
682: [07:12:08] <ss23> It is, just checked
683: [07:12:23] <ss23> Exists for current 3.1 (unless willr's documentation commit fixes it, unlikely :P)
684: [07:12:46] <ss23> $5 says it's a simple fix/bug
685: [07:12:52] <guzzlefry> question: Is base_tag cached?
686: [07:12:58] <simon_w|air> Nope
687: [07:13:28] <guzzlefry> Somethin' ain't right!
688: [07:13:48] <ss23> simon_w|air: you don't know on hand about the error I posted when logging in?
689: [07:14:15] <simon_w|air> Sounds like a button got added sometimes
690: [07:14:23] <guzzlefry> I can't find any <base> tag in themes/
691: [07:14:32] <simon_w|air> Or there's a missing allowed_actions
692: [07:14:35] <ss23> simon_w|air: I can reproduce it
693: [07:14:42] <simon_w|air> guzzlefry, how about a <% base_tag %>
694: [07:14:42] <ss23> simon_w|air: I click "login" with the "Remember me" ticked
695: [07:14:54] <guzzlefry> simon_w|air: yeah, a few of those.
696: [07:15:02] <ss23> simon_w|air: Then it redirects me to Security/login?BackURL=%2Fadmin%2Fpages (if my password was right)
697: [07:15:12] <ss23> simon_w|air: I fill that in again, tick it again, and it gives me the allowed_actions error
698: [07:15:32] <guzzlefry> I don't get why it's translating to the base of my test server when I'm on the production server. :P
699: [07:15:41] <guzzlefry> Unless...setting?
700: [07:15:47] <ss23> guzzlefry: It's uh... yes, it's in the database somewhere
701: [07:15:51] <simon_w|air> Director::set_alternative_base something
702: [07:15:56] <simon_w|air> Not in the database :p
703: [07:16:00] <ss23> simon_w|air: It must be
704: [07:16:07] <ss23> simon_w|air: Remember when were doing that information disclosure bug
705: [07:16:14] <ss23> simon_w|air: We got peoples development system base tags
706: [07:16:20] <ss23> Whats the school company that spronk works for again?
707: [07:16:27] <ss23> His base tag was dependent on versions
708: [07:18:12] <ss23> Hmm
709: [07:18:16] <ss23> This could be related to another issue I've had lately
710: [07:18:23] <guzzlefry> How is the base_tag set in the first place?
711: [07:18:32] * guzzlefry doesn't remember setting it manually.
712: [07:18:38] <ss23> A bunch of sites will redirec me to the security/login page even though I'm already logged in
713: [07:18:49] <ss23> Hmm
714: [07:18:57] <simon_w|air> guzzlefry, $_SERVER['HTTP_HOST']
715: [07:19:03] <ss23> I would talk with Hamish, but he always seems busy and dismissive
716: [07:19:09] <ss23> simon_w|air: then how did it work for spronk's schools site? :O
717: [07:19:21] <simon_w|air> ss23, I have a feeling you're remembering wrong
718: [07:19:27] <ss23> simon_w|air: view-source:http://www.school-links.co.nz/?archiveDate=0
719: [07:19:33] <ss23> <base href="http://sl.hummsites.wheaten/"><!--[if lte IE 6]></base><![endif]-->
720: [07:19:44] * guzzlefry hyperventillates.
721: [07:19:45] <guzzlefry> Fatal error: Class 'Director' not found in /home/content/20/9501220/html/_ss_environment.php on line 5
722: [07:19:47] <ss23> There is no possible way it's not stored in the database that I can think of that would produce that result
723: [07:19:49] <simon_w|air> 404 page
724: [07:19:56] <ss23> simon_w|air: Yes, check the source of it
725: [07:19:59] <ss23> simon_w|air: The base tag, specifically
726: [07:20:04] <simon_w|air> ss23, 404 page
727: [07:20:07] <ss23> guzzlefry: Can't do SilverStripe stuff in the environment
728: [07:20:13] <guzzlefry> ah, config?
729: [07:20:16] <simon_w|air> http://www.school-links.co.nz/assets/error-404.html
730: [07:20:30] <ss23> simon_w|air: What, are you sure you're accessing it via the exact link I gave you? the archiveDate and all?
731: [07:20:36] <simon_w|air> Yes
732: [07:20:43] <simon_w|air> And it's a 404 page
733: [07:20:51] <ss23> simon_w|air: Yes, I know it's a 404 page
734: [07:20:58] <ss23> simon_w|air: That's not my point, my point was look at the base tag in the source
735: [07:21:15] <simon_w|air> Yes, and it's still not read from the database
736: [07:21:21] <ss23> Where is it read from then?
737: [07:21:24] <simon_w|air> The 404 page
738: [07:21:26] <simon_w|air> http://www.school-links.co.nz/assets/error-404.html
739: [07:21:33] <ss23> OHH
740: [07:21:34] <ss23> I see what you mean
741: [07:21:39] <simon_w|air> Like http://www.school-links.co.nz/assets/error-500.html is the 500 page
742: [07:21:54] * Nightjar has joined #silverstripe
743: [07:22:20] <ss23> I see, makes sense, I misunderstood what "404 page" meant :P
744: [07:23:09] <guzzlefry> simon_w|air: I did Director::setBaseURL("http://example.com"); still broken.
745: [07:27:00] * zippy__ has joined #silverstripe
746: [07:29:01] <guzzlefry> wait so
747: [07:29:37] <guzzlefry> That makes more sense. :P
748: [07:30:01] <guzzlefry> <base> is hardcoded by the installer in those 404 and 500 pages...
749: [07:30:08] <guzzlefry> And well, I'm getting a 500 error.
750: [07:30:12] <ss23> lol
751: [07:30:21] <Nightjar> no, base is hardcoded at publish time.
752: [07:30:33] <simon_w|air> And this is why you don't stick your assets in vas
753: [07:30:51] <guzzlefry> vas?
754: [07:30:57] <simon_w|air> vas
755: [07:31:02] <simon_w|air> Bah, again?
756: [07:31:04] <ss23> Version control, guzzlefry
757: [07:31:04] <simon_w|air> vcs
758: [07:31:05] <ss23> vcs
759: [07:31:08] <guzzlefry> oh :P
760: [07:31:15] <guzzlefry> well it wasn't version control.
761: [07:31:22] <ss23> We sync our assets over though
762: [07:31:23] <guzzlefry> It was uh, direct FTP transfer.
763: [07:31:24] <ss23> So wouldn't help
764: [07:31:25] <ss23> :P
765: [07:31:27] <ss23> hahah guzzlefry
766: [07:31:28] <ss23> WORSE
767: [07:31:43] <guzzlefry> I doubt GoDaddy Economy Hosting has composer. :P
768: [07:31:55] * mdowton quit (Quit: The computer fell asleep)
769: [07:32:06] <simon_w|air> I doubt GoDaddy has anything :p
770: [07:32:16] <ss23> GoDaddy -- Nothing you need and everything you don't
771: [07:32:23] <ss23> GoDaddy - #welovemagicquotes
772: [07:33:13] <guzzlefry> We should force clients to use our hosting. :P
773: [07:33:25] <ss23> WE SHOULD TOO! :<
774: [07:33:30] <guzzlefry> Pretty much get free support then. :P
775: [07:33:37] <simon_w|air> HAHA, clients!
776: [07:33:38] <guzzlefry> So uh
777: [07:33:44] <guzzlefry> How do I go about fixing this mess?
778: [07:33:59] <simon_w|air> dev mode
779: [07:34:03] <guzzlefry> oh right
780: [07:34:05] <simon_w|air> delete assets/error-*.html
781: [07:34:25] <ss23> Stop doing things that cause 500's!
782: [07:34:45] <guzzlefry> what in the
783: [07:34:53] <guzzlefry> www.example.com/index.php/dev/build?returnURL=
784: [07:34:58] <guzzlefry> No input file specified.
785: [07:35:20] <Nightjar> sounds like your ftp thing forgot to .htaccess
786: [07:35:22] <simon_w|air> Different apache settings! :p
787: [07:36:16] <guzzlefry> It's flashing an error that I can't quite catch...
788: [07:36:34] <Nightjar> db issues probably
789: [07:37:00] <guzzlefry> yeah, I see mysqli briefly.
790: [07:37:11] <guzzlefry> Probably a way to stop the redirect with Firebug.
791: [07:37:33] <Nightjar> nah just click preserve
792: [07:37:34] * zippy__ quit (Quit: zippy__)
793: [07:37:38] <Nightjar> or persist
794: [07:37:42] <simon_w|air> hit escape
795: [07:37:43] <Nightjar> or whatever that button is
796: [07:37:45] <ss23> lol
797: [07:38:10] <ss23> I'm constantly torn between "FUCK IT IT SHOULD BE PRESERVE BY DEFAULT" and "HOLY SHIT I TURNED PRESERVE ON I'M DUMB TURN IT OFF"
798: [07:38:14] <ss23> :<
799: [07:38:44] <guzzlefry> okay, connection error.
800: [07:38:55] <guzzlefry> I just refreshed fast enough so it became a solid image. :P
801: [07:40:17] <guzzlefry> oh, of course the host wouldn't be localhost.
802: [07:40:49] <Nightjar> hhaahahaah
803: [07:42:30] * violetina2 quit (Ping timeout: 245 seconds)
804: [07:43:09] <guzzlefry> GLORIOUS
805: [07:43:14] <Nightjar> xD
806: [07:43:29] <wmk> can File class automatically save as a subclass when e.g. uploading an image to a FileUploadField ?
807: [07:43:31] <guzzlefry> So, what are the rules on _ss_environment.php, should I be setting database and friends in there?
808: [07:43:38] <wmk> Or do i have to change it manually later?
809: [07:43:40] * Shrike_Finland quit (Read error: Connection reset by peer)
810: [07:44:01] * Shrike_Finland has joined #silverstripe
811: [07:44:14] <Nightjar> guzzlefry: you don't set database, but server user and password yeh
812: [07:44:31] <Nightjar> wmk: fileuploadfield does what it says on the box
813: [07:44:36] <Nightjar> File
814: [07:44:37] <guzzlefry> okay, so database goes in _config.php, correct?
815: [07:44:48] <Nightjar> use ImageField to upload images
816: [07:45:08] <Nightjar> also, if you're not using 2.4 you should be using uploadfield.
817: [07:45:25] <wmk> Nightjar, i want one field for uploading either an image or a video
818: [07:45:28] <Nightjar> guzzlefry: that bit that says global $database = ''; yes
819: [07:45:40] <guzzlefry> cool, thanks
820: [07:45:59] <Nightjar> wmk: you'll probably have to subclass FileUploadField
821: [07:46:04] <Nightjar> wait
822: [07:46:08] <Nightjar> FileIframeField
823: [07:46:09] <Nightjar> ?
824: [07:46:11] <wmk> The relation is has_one File
825: [07:46:16] <Nightjar> are you using 3.0?
826: [07:46:32] <wmk> 3.1, but a ported module
827: [07:46:45] <Nightjar> UploadField uses the relation type
828: [07:46:48] <Nightjar> iirc
829: [07:47:30] <wmk> ok. so i have to trigger it manually onAfterWrite i guess
830: [07:47:41] <Nightjar> I guess
831: [07:47:57] <wmk> thanks for the input! I'll try uploadfield, too...
832: [07:52:17] <guzzlefry> What's everyone's strategy for dealing with .git directories on production?
833: [07:52:41] <ss23> Not having them?
834: [07:52:48] <ss23> Sometimes we do
835: [07:52:49] <guzzlefry> Doesn't that make updating kind of a pain?
836: [07:53:08] <ss23> Our delployment is sometimes a rsync (excludes all .svn, .git, .assets etc)
837: [07:53:10] <guzzlefry> I guess you could set it non-readable by the web server...
838: [07:53:25] <ss23> Sometimes we check it all out, tar up the stuff we want, unzip on the other server
839: [07:53:29] <ss23> Sometimes we just have git on the live server
840: [07:53:34] <guzzlefry> ah
841: [07:53:36] <ss23> guzzlefry: Yes, your server should deny access to all files starting with a .
842: [07:54:04] <guzzlefry> oh, I was thinking just chown/chmod.
843: [07:54:09] <ss23> no
844: [07:54:09] <ss23> bad idea
845: [07:54:13] <guzzlefry> dang
846: [07:54:19] <guzzlefry> httpd.conf it is. :P
847: [07:54:22] <ss23> :D
848: [07:54:28] <ss23> You can do it in .htaccess too, probably
849: [07:54:36] <guzzlefry> Although some clients use crappy hosts. :/
850: [07:56:58] * kinglozzer has joined #silverstripe
851: [08:00:20] * zippy__ has joined #silverstripe
852: [08:09:27] <guzzlefry> Well, I have another problem now. :P
853: [08:10:40] * MrGuits quit (Read error: Connection reset by peer)
854: [08:10:50] <guzzlefry> The themed CSS for just the home page is pulled from example.com/index.php/themes/example/css/
855: [08:10:56] * Guits has joined #silverstripe
856: [08:11:58] <simon_w|air> Delete your index.php
857: [08:13:07] <guzzlefry> simon_w|air: It doesn't do anything important? 0.o
858: [08:13:19] <ss23> guzzlefry: Not if you have a .htaccess file
859: [08:13:21] <simon_w|air> Not if mod_rewrite's working
860: [08:13:25] <ss23> It's just a workaround for bad hosts
861: [08:13:26] <guzzlefry> ah
862: [08:13:29] <ss23> inb4godady is bad
863: [08:13:29] <ss23> :D
864: [08:13:32] <guzzlefry> bad hosts?
865: [08:13:36] <guzzlefry> you're quick :P
866: [08:13:39] <ss23> :P
867: [08:13:42] <simon_w|air> You can have a .htaccess and still need index.php :p
868: [08:14:12] <guzzlefry> It's just HomePage that's doing this by the way.
869: [08:14:21] <guzzlefry> Which...I guess makes sense. :P
870: [08:14:29] <simon_w|air> More likely that it's just /
871: [08:15:23] <guzzlefry> ah, that was it.
872: [08:15:25] <guzzlefry> thanks simon_w|air
873: [08:15:39] <ss23> wtf
874: [08:15:42] <ss23> tfw someone has issues with IE10...
875: [08:15:43] <guzzlefry> 4:13am, I can finally sleep. :P
876: [08:15:46] <ss23> I expected IE8 issues
877: [08:15:51] <ss23> This is... okay I guess?
878: [08:16:14] <ss23> guess I'm going to be making a pull rquest for TinyMCE for IE10
879: [08:16:15] <ss23> :D
880: [08:16:15] <guzzlefry> night folks
881: [08:16:20] <ss23> nn guzzlefry, good luck
882: [08:16:20] <ss23> :)
883: [08:16:36] <simon_w|air> hmm, dinner
884: [08:16:47] <simon_w|air> And no one's shown up to do my cleaning!
885: [08:16:50] <simon_w|air> Slackers!
886: [08:17:04] <ss23> lol
887: [08:17:06] <ss23> simon_w|air: I already said
888: [08:17:06] <ss23> :D
889: [08:45:31] <ss23> Somewhat good news: IE10 only doesn't work with 2.4.5 (or possibly 2.4.x)!
890: [08:45:58] * Trooy quit (Read error: Connection reset by peer)
891: [08:46:24] * Trooy has joined #silverstripe
892: [08:46:33] * SightUnseen has joined #silverstripe
893: [08:46:53] <ss23> yay, just that version of 2.4
894: [08:46:54] <ss23> :D
895: [08:46:57] <ss23> TIME TO UPDATE ALL THE WEBSITES
896: [08:47:43] * SightUnseen has left #silverstripe
897: [08:48:39] <wmk> ss23, you mean ie10 has probs with ss2.4 admin area?
898: [08:48:49] <ss23> Old 2.4 admin area, yeah
899: [08:48:50] <ss23> :P
900: [08:49:01] <ss23> 2.4.3 or something I think this site is on
901: [08:55:02] <wmk> ok.
902: [08:55:23] <wmk> does isChanged() work in onAfterWrite()
903: [08:56:08] <ss23> Hmm
904: [08:56:19] <ss23> Would have to check to be sure
905: [08:56:25] <ss23> I mean, there's two posibilities
906: [08:56:35] <ss23> a) it's going to be true, because it's not 'cleared' till after
907: [08:56:52] <ss23> b) it's going to be true if the function onAfterWrite changes it itself (aka it's cleared *before* now, and you flagged it on again)
908: [09:05:00] <wmk> ss23, it is. Tough for a relation i have to ckeck for AttachmentID instead of Attachment
909: [09:12:31] * Pyromanik__ has joined #silverstripe
910: [09:13:39] * openbees has joined #silverstripe
911: [09:14:09] <openbees> Hello pals !
912: [09:14:18] <Pyromanik__> hi
913: [09:17:01] <openbees> Is there any way to get Name of parent class a dataobject is being added to ? say I have many_many PageSlide in Page ... I want to give one of field in PageSlide a different name when I add it in Page and different one when I add in other Pages .
914: [09:17:37] <openbees> probably using some condition in getCMSField of PageSlide
915: [09:17:44] <Pyromanik__> belongs_many_many
916: [09:17:52] <Pyromanik__> you'll have to use extrafields
917: [09:18:09] <Pyromanik__> or some other kind of intermediary object
918: [09:20:40] <openbees> hmm I don't think this is what I am looking for .. as extrafields will be effective only after writing PageSlide object .
919: [09:21:01] <openbees> probably I failed to explain my problem :(
920: [09:25:17] <wmk> openbees, $this->myRelation()->ClassName ??
921: [09:30:11] * micmania1 has joined #silverstripe
922: [09:30:48] * howardgrigg quit (Remote host closed the connection)
923: [09:31:04] * violetina2 has joined #silverstripe
924: [09:32:10] <openbees> wmp Pyromanik__ see this screenshot http://goo.gl/0wBv5q and that image field it has some dimension .. i want to show it diffrent on other page if its not home page
925: [09:37:35] <openbees> deep silent :D
926: [09:39:18] <micmania1> openbees, that is just the field title.
927: [09:40:41] <openbees> micmania1 : yaah but I need some condition to check on which page I am adding to .
928: [09:41:52] <micmania1> if($this->ClassName == 'xxx') UploadField::create("MyImage", "Title 1"); else UploadField::create("MyImage", "Title 2");
929: [09:45:21] <Pyromanik__> openbees: sorry solving my own issues atm :<
930: [09:45:31] * openbees quit (Ping timeout: 240 seconds)
931: [09:57:37] * cbq has joined #silverstripe
932: [09:58:24] <cbq> grettings, long time ago that i signed in here. quick question, whats about the 3.1.x version?
933: [09:58:37] <ss23> cbq: I don't understand the question
934: [09:58:53] <cbq> yeah just saw that the 3.1.0 rc 1 is out there
935: [09:59:23] <cbq> i only get the feeling, that - somehow - its not really going on at the 3.x version..
936: [09:59:30] * openbees has joined #silverstripe
937: [10:00:30] * pevjan has joined #silverstripe
938: [10:01:08] <pevjan> If I want my functional test to simulate a click on a link on a page and then follow the redirect that happens, how do I do that?
939: [10:01:58] <cbq> jquery?
940: [10:03:42] <pevjan> cbq: How do you mean?
941: [10:03:58] <simon_w|air> pevjan, you'd use behat: https://github.com/silverstripe-labs/silverstripe-behat-extension
942: [10:05:12] <simon_w|air> Or just request the URL, grab the response, check for redirect and request the value of the Location header
943: [10:07:31] <openbees> simon_w|air u got any idea how can I change that dataobject image field title on 2 different page types http://goo.gl/0wBv5q
944: [10:10:39] <pevjan> simon_w|air: thanks, I'll take a look
945: [10:15:20] <cbq> would someone recomment to use silverstripe 3.x instead of the 2.x for large clients projects?
946: [10:19:07] <openbees> cbq what is your definition of large ? :D
947: [10:19:16] <cbq> for example immobranche.at
948: [10:20:43] <openbees> well I don't see anything there which can
949: [10:20:54] <openbees> can't* be done in ss3
950: [10:22:52] <openbees> but I will recommend u go with 3.1 .. we just upgraded our few 3.0 sites to 3.1rc1 (yaah we can't wait for stable release :D ) and they are like flying compare to 3.00
951: [10:22:58] <openbees> 3.0x
952: [10:23:08] <cbq> well, things like in this view http://www.immobranche.at/kalender/woche/2012/10/01 was horrible to set up
953: [10:23:18] <cbq> i read that i have to chance a bunch of things
954: [10:23:42] <cbq> and the source code for displaying such output is really huge (dont worry clean)
955: [10:23:49] * howardgrigg has joined #silverstripe
956: [10:25:03] <cbq> and the next thing is, i have a project which generates ss projects. it builds all dataobjects, extensions, views, relations, form fields, etc....
957: [10:25:31] <zippy__> openbees: I don't want to upgrade yet to 3.1 as it's not "stable" and don't want it to come back on me doing a client site with something not stable
958: [10:25:31] <cbq> and this would be cost me a big amount of time to upgrade/rewrite the code
959: [10:25:45] <cbq> so i would ask if this would be smart to start now or to wait
960: [10:26:20] <zippy__> I've used 3.0 on a decent sized project, user accounts, billing, multiple objects. dev building is show but rest is ok
961: [10:26:27] <openbees> zippy__ well I should say its doing alot better than 3.05 stable version
962: [10:26:48] <zippy__> upgrading it from 2.x took 7 hours~
963: [10:26:56] <cbq> oh jesus
964: [10:26:58] <cbq> ...
965: [10:27:15] <ss23> hmm 7 hours, not bad
966: [10:27:21] <ss23> Think we're going for more like ~16 here
967: [10:27:24] <cbq> also some projects use custom files like barcode (128N) and QR code fields,..
968: [10:27:25] <openbees> https://github.com/sunnysideup/silverstripe-upgrade_silverstripe
969: [10:27:38] <cbq> -files +fields
970: [10:27:38] <openbees> pretty helpfull
971: [10:27:50] <cbq> bookmarked, thx
972: [10:38:16] <openbees> in ss 2 it was possible to add in relationName.relationName.relationField in $searchable_fields for CMS search .. but it not working in SS3 anyone got idea about this
973: [10:38:35] * howardgrigg quit (Remote host closed the connection)
974: [10:39:33] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
975: [10:54:28] * Colin[pi] quit (Ping timeout: 264 seconds)
976: [11:15:41] * Pyromanik__ has left #silverstripe
977: [11:17:54] * howardgrigg has joined #silverstripe
978: [11:25:08] * outrunthewolf has joined #silverstripe
979: [11:25:38] * violetina2 quit (Read error: Connection reset by peer)
980: [11:26:53] * violetina2 has joined #silverstripe
981: [11:27:32] * pevjan quit (Remote host closed the connection)
982: [11:35:40] * pevjan has joined #silverstripe
983: [11:35:42] * pevjan quit (Remote host closed the connection)
984: [11:35:52] * priithansen has joined #silverstripe
985: [11:36:24] * zippy__ quit (Quit: zippy__)
986: [11:40:02] * pevjan has joined #silverstripe
987: [11:41:11] * batbadger is now known as gat99
988: [11:55:32] * violetina2 quit (Ping timeout: 256 seconds)
989: [11:56:45] * cbq quit (Quit: Leaving)
990: [12:01:20] * Trooy quit (Quit: Leaving)
991: [12:07:11] * Nightjar has left #silverstripe
992: [12:10:09] * UndefinedOffset has joined #silverstripe
993: [12:13:10] * UndefinedOffset quit (Read error: Connection reset by peer)
994: [12:18:17] * DaveHennessy has joined #silverstripe
995: [12:19:20] <DaveHennessy> Hello everyone. I signed up for a silverstripe.org forum account but was flagged as spam. I've sent an email to support@silverstripe.com but not heard from them. Does anyone know how long it might take to get a reply?
996: [12:21:14] <howardgrigg> DaveHennessy: not sure but if you poke the right people in here you could probably get it sorted reasonably quickly
997: [12:21:35] <howardgrigg> but as it's midnight in NZ I doubt any of the SS guys are awake at the moment
998: [12:24:37] <DaveHennessy> Thanks Howard for the advice. I'll wait for them to wake up!
999: [12:26:27] <DaveHennessy> I think I heard yourself on Silverscoop.org before, right?
1000: [12:26:38] <howardgrigg> hah yea that'd be me
1001: [12:29:19] * UndefinedOffset has joined #silverstripe
1002: [12:30:46] <DaveHennessy> Great. I listened to all the podcasts. It's a shame their is not more, but small community i suppose and guests are busy with work also.
1003: [12:32:25] <howardgrigg> Yea DaveHennessy too be honest it's just lack of time and organisation on my part - I'd love to do more shows but currently my work has been more than full time and so unless I'm keeping up to date with SS I feel like a fraud doing the show
1004: [12:33:48] <howardgrigg> I was super lucky getting awesome guests for the show who were always able to teach me stuff - maybe I should just get back into it...
1005: [12:34:20] <DaveHennessy> howardgrigg . I understand. I'm working with Silverstripe, everday for years and decided yesterday to signup for a forum account!
1006: [12:35:12] <DaveHennessy> howardgrigg. Well you have one podcast fan atleast!
1007: [12:35:26] <howardgrigg> hah yea - I very rarely use the forums now - most things I either work out on my own with Google or just bug people in here
1008: [12:35:35] <howardgrigg> thanks!
1009: [12:37:21] <ARNHOE> Trying to google, but hard to find
1010: [12:37:35] <ARNHOE> Is it possible to just get one field from another page in a function?
1011: [12:37:52] <ARNHOE> return OverOnsPage::get()->getField('OverBiolab'); is what I am trying
1012: [12:40:13] <DaveHennessy> howardgrigg. I do the same. I do plan to contribute a little more. I'm really interested in building a Silverstripe theme club. The lack of SS themes is crazy at this point. Its good for me, because we get lots of psd to SS work but for smaller budget projects, building themes from scratch is not cost effective in my opinion.
1013: [12:41:23] <DaveHennessy> howardgrigg. Its just finding the time ontop of the daily workload to get anything done
1014: [12:41:48] <howardgrigg> DaveHennessy: tell me about it!
1015: [12:42:54] <howardgrigg> ARNHOE: not sure... but what you've got wont work - the get is returning a DataList to return the object I think you'll need ->get()->first()
1016: [12:43:07] <ARNHOE> yeah I tried First() but that returns a error
1017: [12:43:18] <howardgrigg> but even then I'm not sure how to return the field...
1018: [12:43:42] <DaveHennessy> howardgrigg: speaking of work, I better head back to it! Nice to talk to you.
1019: [12:44:22] <howardgrigg> yea have fun lol I'm up late trying to build a library management site with SS
1020: [12:45:58] <DaveHennessy> howardgrigg: best of luck with the library management site. bye for now.
1021: [12:47:24] <kinglozzer> ARNHOE: OverOnsPage::get()->first()->getField('Foo') ?
1022: [12:47:30] <ARNHOE> yeah
1023: [12:47:37] <kinglozzer> What's the error?
1024: [12:49:06] <ARNHOE> hmpf, this works. I tried getField()->First() and also First() before the getField but for some reason I no longer got a error now
1025: [12:49:33] <ARNHOE> thanks, crazy stuff
1026: [12:50:32] * pevjan quit (Remote host closed the connection)
1027: [12:50:46] <kinglozzer> Yeah like howardgrigg said, get()->getField()... won't work as you're trying to call getField() on a DataList instead of an individual DataObject
1028: [12:52:25] * DaveHennessy quit (Ping timeout: 250 seconds)
1029: [12:56:18] * violetina2 has joined #silverstripe
1030: [13:25:09] * outrunthewolf quit (Remote host closed the connection)
1031: [13:28:23] * openbees quit (Quit: Leaving)
1032: [13:34:22] * Shrike_Finland quit (Quit: Leaving.)
1033: [14:04:12] <howardgrigg> anyone have any examples on how to add a custom button to a modeladmin detail view?
1034: [14:05:37] * PanPipes has joined #silverstripe
1035: [14:06:21] <kinglozzer> howardgrigg: Do you mean in the GridFieldDetailForm ?
1036: [14:06:55] <howardgrigg> Yea - I want to run a custom function on the object
1037: [14:07:04] <PanPipes> can anyone help me please. in 3.1 how can i register a shortcode to call a custom controller/action? not getting it from examples on the net. E.g. I want to have a shortcode to X_Controller->Y that returns a Form.
1038: [14:07:44] <kinglozzer> howardgrigg: I've done it before, you apply an extension to GridFieldDetailForm_ItemRequest, then use updateItemEditForm()
1039: [14:08:32] <howardgrigg> thanks kinglozzer - I might make that tomorrows task...
1040: [14:08:44] <kinglozzer> howardgrigg: I'll send you an example, one sec
1041: [14:09:02] * Nivery has joined #silverstripe
1042: [14:11:03] <kinglozzer> howardgrigg: http://pastie.org/8274142 forgive the strange comments :P was just chopping out some project-specific info
1043: [14:13:36] <howardgrigg> kinglozzer: perfect - thanks!
1044: [14:13:43] <kinglozzer> No problem :)
1045: [14:31:09] * howardgrigg quit (Remote host closed the connection)
1046: [14:33:28] * ARNHOE quit (Ping timeout: 264 seconds)
1047: [14:35:51] * pewter has joined #silverstripe
1048: [14:38:24] <pewter> I need to do something like <% if LinkingMode == current || LinkingMode == section %>, what would be the best approach for this?
1049: [14:39:01] <pewter> i.e. i want to render a 3rd level menu if the person is either visiting the top node (level 2) or one of the subpages
1050: [14:39:30] <pewter> I tried doing a function getCurrentOrSection() {} in the Page class, but $this->LinkingMode always seem to contain NULL
1051: [14:39:49] <kinglozzer> pewter: Why can't you just do <% if LinkingMode = 'current' || LinkingMode = 'section' %> ?
1052: [14:40:20] <kinglozzer> Also, LinkingMode is a method, so you'd need to do $this->LinkingMode()
1053: [14:42:28] <Zauberfisch> pewter kinglozzer there is a nicer way for that
1054: [14:42:42] <kinglozzer> CurrentOrSection or something
1055: [14:42:42] <kinglozzer> ?
1056: [14:42:43] <Zauberfisch> <% if $LinkOrSection == 'sectiom' %>
1057: [14:42:46] <kinglozzer> Ah ^^
1058: [14:42:54] <Zauberfisch> will be section if it is section or current
1059: [14:43:19] <Zauberfisch> so its the equivalent to your Linkingmod in current, section
1060: [14:43:51] <Zauberfisch> and I am not sure if LinkingMode any of the related methods are availiable in PHP
1061: [14:44:03] <Zauberfisch> (LinkOrSection is one of the related methods)
1062: [14:44:32] <kinglozzer> They're all available somewhere :P I think those two are in SiteTree
1063: [14:44:45] <kinglozzer> It's the Hierarchy stuff that's a pain in the ass
1064: [14:44:56] <Zauberfisch> oh, you are right, they are in siteTree
1065: [14:45:07] <Zauberfisch> but they are methods as you said
1066: [14:45:13] <Zauberfisch> so it has to be:
1067: [14:45:23] <Zauberfisch> if ($this->LinkingMode() == ...)
1068: [14:45:24] <Zauberfisch> or
1069: [14:45:59] <Zauberfisch> haha
1070: [14:46:04] <Zauberfisch> there is a even better way
1071: [14:46:11] <Zauberfisch> if ($this->isSection())
1072: [14:46:17] <Zauberfisch> if ($this->isCurrent())
1073: [14:46:29] <Zauberfisch> also works in template <% if $isSection %>
1074: [14:46:42] <kinglozzer> There you go pewter, I think we answered that :P
1075: [14:46:49] * C10ne quit (Ping timeout: 250 seconds)
1076: [14:47:12] <Zauberfisch> I feel like an idiot now having used $LinkOrSection == 'section for ages
1077: [14:49:19] <pewter> Woot! Nice!
1078: [14:49:33] <pewter> Thank you kinglozzer and Zauberfisch
1079: [15:11:07] * PanPipes quit (Remote host closed the connection)
1080: [15:18:10] * simoncarter323 has joined #silverstripe
1081: [15:18:17] <simoncarter323> Hey everyone
1082: [15:18:30] <simoncarter323> I was wondering if anyone is there to ask a quick simple question
1083: [15:18:41] <kinglozzer> Ask away, someone might be able to help
1084: [15:18:41] <simoncarter323> that I have been pulling out my hair (literally) over
1085: [15:18:45] <simoncarter323> OK
1086: [15:19:36] <simoncarter323> http://www.gondwana.co.za/
1087: [15:19:57] <simoncarter323> this site I did ages ago
1088: [15:20:06] <simoncarter323> its silverstripe 2.3.7
1089: [15:20:41] <simoncarter323> my host has upgraded from PHP 5.3.3 to 5.4.4
1090: [15:20:48] <simoncarter323> and when they did I just get a white screen
1091: [15:20:52] <simoncarter323> even when dev mode is on
1092: [15:20:55] <simoncarter323> no errors
1093: [15:21:14] <simoncarter323> so I have just rolled it back to PHP 5.3.3 but as of tomorrow this change is permanent
1094: [15:21:20] <simoncarter323> not sure what I can do
1095: [15:22:26] <kinglozzer> Hmm, tricky without any error messages
1096: [15:22:34] <kinglozzer> Any error logs you have access to?
1097: [15:22:40] <simoncarter323> yea how do I get error messages
1098: [15:22:54] <kinglozzer> Just spotted this, might be worth a shot: http://www.codem.com.au/web-development-blog/2012/web-development/running-silverstripe-2-4-x-under-php-5-4.html
1099: [15:22:59] * violetina has joined #silverstripe
1100: [15:24:35] <simoncarter323> thanks kinglozzer
1101: [15:24:40] <simoncarter323> what file is that ?
1102: [15:24:44] <simoncarter323> where do I find it
1103: [15:24:51] <simoncarter323> wait got it
1104: [15:27:16] <simoncarter323> there seems to be an error in that code also
1105: [15:28:04] <kinglozzer> Looks okay to me, remove the line with the '-' at the start, add the lines with '+' in its place
1106: [15:28:12] <simoncarter323> how do I turn errors on?
1107: [15:28:29] <simoncarter323> that way I wont get the white screen :)
1108: [15:30:11] <kinglozzer> php_flag display_errors On
1109: [15:30:15] <kinglozzer> in .htaccess
1110: [15:30:17] <simoncarter323> http://www.gondwana.co.za/
1111: [15:30:20] <kinglozzer> If your host will let you that is
1112: [15:30:21] <simoncarter323> ok now I see them
1113: [15:30:26] <simoncarter323> :( shit no idea what they mean
1114: [15:31:04] <kinglozzer> Change line 131 to this: if(is_string($templateList) && substr((string) $templateList,-3) == '.ss') {
1115: [15:35:05] <simoncarter323> on ss viewer .php ?
1116: [15:35:48] <simoncarter323> worked perfect thanks
1117: [15:43:27] <kinglozzer> No problem
1118: [15:49:28] * osterlaus has joined #silverstripe
1119: [16:09:47] * kinglozzer quit (Remote host closed the connection)
1120: [16:11:13] * Shrike_Finland has joined #silverstripe
1121: [16:13:57] * pewter quit (Quit: Page closed)
1122: [16:51:26] * ARNHOE has joined #silverstripe
1123: [16:57:21] <guzzlefry> okay, this is weird. I"m getting that stripslashes_recursively() function not found error in dev now.
1124: [17:00:00] * Colin[pi] has joined #silverstripe
1125: [17:08:24] * Colin[pi] quit (Ping timeout: 240 seconds)
1126: [17:17:11] * BPower has joined #silverstripe
1127: [17:21:26] * Shrike_Finland quit (Quit: Leaving.)
1128: [17:21:57] <BPower> Heyo! I have a scenario for y'all. An ExamplePage was created and published under the parent ExampleParentPage. ExampleParentPage then changed its allowed children to exclude ExamplePage. Now when I try to change the Parent of ExamplePage (so it's no longer in ExampleParentPage), I still get the Validation error, "not allowed as child of this parent page".
1129: [17:22:05] <BPower> Any workarounds?
1130: [17:23:37] <BPower> other than changing the allowed_children back
1131: [17:33:44] <DesignerX> BPower: Hi, dont think so. Best option I think is to remove the allowed_children then create a task to correct the pages .
1132: [17:37:32] <BPower> Thanks
1133: [17:44:15] * joelpittet has joined #silverstripe
1134: [18:34:00] * BPower quit (Remote host closed the connection)
1135: [18:38:21] * osterlaus quit (Quit: Leaving.)
1136: [18:44:19] * NitinShah has joined #silverstripe
1137: [18:48:02] * SightUnseen has joined #silverstripe
1138: [18:48:47] * SightUnseen has left #silverstripe
1139: [18:54:23] * Nivery quit (Quit: Nivery)
1140: [18:54:53] * Nivery has joined #silverstripe
1141: [18:55:12] * Nivery quit (Client Quit)
1142: [19:00:31] * gelignite has joined #silverstripe
1143: [19:06:04] * ARNHOE quit (Remote host closed the connection)
1144: [19:06:37] * ARNHOE has joined #silverstripe
1145: [19:11:30] * ARNHOE quit (Ping timeout: 264 seconds)
1146: [19:19:54] <NitinShah> Hi
1147: [19:22:25] <NitinShah> anyone here who can help me understand how to parse datalist with a template
1148: [19:23:28] * simoncarter323 quit (Ping timeout: 245 seconds)
1149: [19:30:12] <simon_w|air> You loop over it
1150: [19:31:08] <NitinShah> any tutorial that I can check out
1151: [19:33:26] <aragonne> http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site#creating-the-templates
1152: [19:33:52] <aragonne> (for NitinShah)
1153: [19:36:49] <NitinShah> aragonne, thank you. Just checking it now
1154: [19:38:23] <aragonne> NitinShah: YW
1155: [19:45:35] <NitinShah> Still have no idea how to do what I would like to.
1156: [19:46:40] <NitinShah> I am using the tagfield module and have been able to add the tag field to page.php and am not trying to make the tags clickable to open a page that will list all pages with a specific tag
1157: [19:51:15] <aragonne> NitinShah: here is a really simple example of how to access a DataList's properties in a template: http://sspaste.com/paste/show/521d02069d50e
1158: [19:51:58] * chillu has joined #silverstripe
1159: [19:55:53] <NitinShah> the code that I am using with a discription of the problem is here... http://sspaste.com/paste/show/521d0307a30e9
1160: [20:04:42] * atmos has joined #silverstripe
1161: [20:06:02] <NitinShah> Chillu, are you there? Have a question about tagfield module?
1162: [20:08:38] <NitinShah> Can someone please check this code out and suggest how do I go forward from here http://sspaste.com/paste/show/521d0307a30e9
1163: [20:09:17] * DigNZ has joined #silverstripe
1164: [20:09:18] * DigNZ quit (Remote host closed the connection)
1165: [20:09:32] * DigNZ has joined #silverstripe
1166: [20:10:06] * DigNZ quit (Client Quit)
1167: [20:11:03] <aragonne> NitinSha: on line 22, update to: $fields->addFieldToTab("Root.Main", $tagField, 'Content');
1168: [20:11:59] <aragonne> on line 54, the link href: $Up.Link/tag/$Title
1169: [20:17:42] * DigNZ has joined #silverstripe
1170: [20:17:43] <NitinShah> aragonne, line 22 updated... when I make the changes on line 54 the new generated link is pageurl//tag/SelectedTag there is a double "//" in the url
1171: [20:17:43] * DigNZ quit (Remote host closed the connection)
1172: [20:17:57] * DigNZ has joined #silverstripe
1173: [20:25:33] * nhorstmeier has joined #silverstripe
1174: [20:27:21] <NitinShah> Also the generated link still just shows a white page with words DataList instead of showing the posts with the selected tag
1175: [20:32:21] * ARNHOE has joined #silverstripe
1176: [20:34:04] <NitinShah> chillu, are you there... need help with tagfield module
1177: [20:35:01] * nickmolhoek has joined #silverstripe
1178: [20:35:02] * nickmolhoek quit (Remote host closed the connection)
1179: [20:35:16] * nickmolhoek has joined #silverstripe
1180: [20:39:34] * Stomach has joined #silverstripe
1181: [20:43:07] * Pyromanik has joined #silverstripe
1182: [20:44:25] * Colin[pi] has joined #silverstripe
1183: [20:56:05] <NitinShah> Need help with the tagfield module and also with code to parse and display DataList correctly
1184: [21:06:03] <NitinShah> Code with the explanation to what I am trying to achieve is at http://sspaste.com/paste/show/521d0307a30e9 kindly suggest
1185: [21:07:43] * swordsmanz quit (Ping timeout: 264 seconds)
1186: [21:11:26] * Colin[pi] quit (Ping timeout: 256 seconds)
1187: [21:13:10] * NitinShah quit (Quit: Leaving)
1188: [21:13:23] <nhorstmeier> NitinShah: couldn't you get the tag object from the ID passed then get the pages from that tag by $tagObject->Pages()
1189: [21:13:58] * zippy__ has joined #silverstripe
1190: [21:17:03] * willr has joined #silverstripe
1191: [21:20:05] * UncleCheese has joined #silverstripe
1192: [21:23:08] <zippy__> Morning
1193: [21:25:07] * UndefinedOffset quit (Quit: Leaving.)
1194: [21:30:08] <Pyromanik> gidday
1195: [21:30:43] <Pyromanik> wouldn't it be cool if many many's populated an extra var on the target objects about which relation is the active link?
1196: [21:31:32] <Pyromanik> like, $oneOfMany->ActiveParentID = $this->ID
1197: [21:31:51] <Pyromanik> what does #silverstripe think of this?
1198: [21:34:22] * ARNHOE quit (Remote host closed the connection)
1199: [21:48:49] * nickmolhoek1 has joined #silverstripe
1200: [21:48:52] * nickmolhoek1 quit (Remote host closed the connection)
1201: [21:49:43] * nickmolhoek quit (Ping timeout: 245 seconds)
1202: [21:50:38] * nickmolhoek has joined #silverstripe
1203: [21:51:47] * micmania2 has joined #silverstripe
1204: [21:52:28] <micmania2> Is there a method to get breadcrumbs as an arraylist instead of rendering it as a template?
1205: [21:53:41] <nhorstmeier> has anyone had success setting many_many relations in a bulkloader? all other relation types I've gotten to work, but no luck with the m_m.
1206: [21:53:53] * DigNZ quit (Ping timeout: 245 seconds)
1207: [21:55:20] * nickmolhoek quit (Ping timeout: 260 seconds)
1208: [21:56:08] * nickmolhoek has joined #silverstripe
1209: [21:56:09] * nickmolhoek quit (Remote host closed the connection)
1210: [21:56:13] * DigNZ has joined #silverstripe
1211: [21:56:14] * DigNZ quit (Remote host closed the connection)
1212: [21:56:28] * nickmolhoek has joined #silverstripe
1213: [21:56:33] * DigNZ has joined #silverstripe
1214: [21:57:29] <aragonne> micmania2: you can try $myPage->BreadCrumbs(), which returns a string, that you can parse out and dump into an ArrayList
1215: [21:58:11] <micmania2> I'm just going to write my own method. Seems a bit strange that there wouldn't be one built in.
1216: [22:00:56] * nickmolhoek quit (Read error: Connection reset by peer)
1217: [22:01:10] <aragonne> micmania2: you can start w/ the SiteTree BreadCrumbs method, and have your custom method return an ArrayList instead of a string: http://api.silverstripe.org/3.0/source-class-SiteTree.html#630-661
1218: [22:01:11] <Pyromanik> is this a yarn? http://www.youtube.com/watch?v=IkOQw96cfyE
1219: [22:02:38] * DigNZ quit (Ping timeout: 245 seconds)
1220: [22:02:59] <Pyromanik> micmania2: <% with Breadcrumbs %> ?
1221: [22:03:25] <Pyromanik> I thought it was an ArrayList
1222: [22:03:30] <Pyromanik> :<
1223: [22:03:34] * gelignite quit (Quit: http://bit.ly/nkczDT)
1224: [22:05:00] * NitinShah has joined #silverstripe
1225: [22:06:30] <NitinShah> nhorstmeier, can you elaborate on that more
1226: [22:06:57] <nhorstmeier> on the paste?
1227: [22:07:41] <ss23> simon_w|air: Do you have permission to mark forum users on .org as not spam if they've been marked as it accidently etc?
1228: [22:10:12] <nhorstmeier> NitinShah, I added a sample on the paste
1229: [22:10:15] <NitinShah> And what should I be using in template to display the taged post
1230: [22:11:00] * Stomach quit (Quit: Leaving.)
1231: [22:11:21] <nhorstmeier> I'll rework the sample, it's part way
1232: [22:11:47] * nickmolhoek has joined #silverstripe
1233: [22:11:48] * nickmolhoek quit (Remote host closed the connection)
1234: [22:12:47] * DigNZ has joined #silverstripe
1235: [22:12:48] * DigNZ quit (Remote host closed the connection)
1236: [22:13:02] <NitinShah> nhorstmeier, I should replace the tag($request) function that I was using with the one you have provided?
1237: [22:13:17] <nhorstmeier> not quite
1238: [22:17:06] <nhorstmeier> NitinShah, try that
1239: [22:22:01] * nickmolhoek has joined #silverstripe
1240: [22:22:02] * nickmolhoek quit (Remote host closed the connection)
1241: [22:23:02] * DigNZ has joined #silverstripe
1242: [22:23:03] * DigNZ quit (Remote host closed the connection)
1243: [22:24:25] <NitinShah> nhorstmeier, I get the following error: Fatal error: Call to a member function Pages() on a non-object in C:\server\www\icharsnew\mysite\code\Page.php on line 90
1244: [22:24:51] * Stomach has joined #silverstripe
1245: [22:25:19] <NitinShah> Line 88 is $tag = $this->request->param('ID');
1246: [22:25:19] <NitinShah> line 89 is $tagObject = Tag::get()->byID($tag);
1247: [22:25:19] <NitinShah> line 90 is $pages = $tagObject->Pages();
1248: [22:27:37] <nhorstmeier> is $tag an int or string?
1249: [22:30:16] * nickspiel has joined #silverstripe
1250: [22:32:43] <nickspiel> morning all, just wondering how to link a has_one relationship to a CustomSiteConfig DataExtension class - i am getting the following error: 'Call to undefined method CustomSiteConfig::hasField()'0,00
1251: [22:35:52] <Pyromanik> nhorstmeier: $tag is a title string I think
1252: [22:36:41] <nhorstmeier> ah, than my paste is no good. thanks Pyromanik, I haven't used the module before and assumed int
1253: [22:36:58] <Pyromanik> judging by href="$Up.Link('tag')/$Title"
1254: [22:37:09] <Pyromanik> nhorstmeier: module doesn't matter, the link does.
1255: [22:38:10] <Pyromanik> you just want Tag::get()->filter('Title', $this->request->param('Title'))->First()
1256: [22:38:30] <Pyromanik> and your paste should work (instead of ->byID())
1257: [22:39:53] <Pyromanik> actually, param('Title') should still be 'ID'
1258: [22:40:08] <Pyromanik> but this assumes that tags are dataobjects
1259: [22:40:10] <Pyromanik> I'm not sure they are.
1260: [22:40:15] <Pyromanik> I also haven't used the module.
1261: [22:40:47] <NitinShah> tags are dataobjects
1262: [22:42:17] * nickmolhoek has joined #silverstripe
1263: [22:42:18] * nickmolhoek quit (Remote host closed the connection)
1264: [22:43:03] <Pyromanik> NitinShah: in the controller: public function tag($request) { return array('MatchingTags' => $this->RelationTags()->filter('Title', $request->param('ID'))); }
1265: [22:43:18] * DigNZ has joined #silverstripe
1266: [22:43:18] * DigNZ quit (Remote host closed the connection)
1267: [22:43:39] <Pyromanik> then create a template Page_tag.ss, use <% loop MatchingTags %> to control through the datalist.
1268: [22:44:26] <nhorstmeier> Pyromanik would that return the tag objects matching the title or the pages linked to the tag
1269: [22:45:13] <Pyromanik> nhorstmeier: tags related to that page with the matching title.
1270: [22:46:02] <nhorstmeier> ok, I was going for returning pages related to the tag with the title
1271: [22:46:41] <Pyromanik> can't really do that with the ORM on a many_many
1272: [22:47:10] <nhorstmeier> getting the tag and querying the belongs_many_many should return the pages related to that tag
1273: [22:47:10] <Pyromanik> as the relation ID is the join table entry's ID, not the tag ID
1274: [22:47:35] <Pyromanik> You'd have to do 2 queries.
1275: [22:47:47] <Pyromanik> oh
1276: [22:47:49] <Pyromanik> nah.
1277: [22:49:21] <Pyromanik> Custom Query object mapped to an array & imploded, and a query to page with filterAny (which is 3.1 only).
1278: [22:49:48] <Pyromanik> well, you don't need to implode the array with filterAny actually.
1279: [22:49:51] <Pyromanik> but yeh.
1280: [22:50:17] <Pyromanik> at least 2 queries, using more powerful framework query objects than vanilla ::get() can provide
1281: [22:51:17] <Pyromanik> maybe even 3 queries, as you'd have to get the Tag ID first.
1282: [22:51:25] <nhorstmeier> right
1283: [22:51:39] <Pyromanik> then find all the join entries with that ID as TagID
1284: [22:52:12] <Pyromanik> then get all pages where joinID is in the list of ID's returned from the above query.
1285: [22:52:33] <Pyromanik> because tag is found by title, not ID.
1286: [22:52:54] <spronk> hey pyro, how happy are you with your job? :P
1287: [22:53:20] <Pyromanik> or do one (more advanced) custom query and return an arraylist instead of a datalist.
1288: [22:58:04] * gat99 is now known as batbadger
1289: [23:00:33] <NitinShah> Pyromanik, With your code the resulted link page only shows the tag that I have clicked on without related entries
1290: [23:03:36] <Pyromanik> NitinShah: because you need to <% loop MatchingTags %><% loop Pages %>
1291: [23:03:39] <Pyromanik> or something like that.
1292: [23:08:12] <Pyromanik> does editor.css still a thing in 3.1?
1293: [23:12:03] <nhorstmeier> has anyone had success setting many_many relations in a bulkloader? all other relation types I've gotten to work, but no luck with the m_m.
1294: [23:12:41] <spronk> pretty sure it is pyro
1295: [23:12:57] <Pyromanik> nhorstmeier: not really for similar reasons with join relations I was talking about above.
1296: [23:15:39] <nhorstmeier> was afraid of that
1297: [23:17:28] * violetina quit (Read error: Connection reset by peer)
1298: [23:18:15] * AlphaCactus quit (Remote host closed the connection)
1299: [23:26:55] * Trooy has joined #silverstripe
1300: [23:31:52] * priithansen quit (Quit: priithansen)
1301: [23:36:54] <NitinShah> Pyromanik, that works :)
1302: [23:36:55] <Pyromanik> is combine files a css thing too?
1303: [23:37:41] <Pyromanik> nhorstmeier: I'm sure it could be done, you'll have to modify the importer though to find & set relations using a comma separated ID list or something.
1304: [23:38:26] <NitinShah> Pyromanik & nhorstmeier, Thank you.....
1305: [23:39:13] <Pyromanik> foreach(RelatedObject::get()->where('ID IN('.$idList.')') as $robj) $this->RelatedObjects()->add($robj);
1306: [23:42:10] <NitinShah> One last thing... I see the new link generated to display the page that lists the selected tag post as siteurl/page/tag/selectedtag can this be changed to siteurl/tag/selectedtag because the orginal link will lead to duplicate link for the same tag
1307: [23:42:33] * nickmolhoek has joined #silverstripe
1308: [23:42:34] * nickmolhoek quit (Remote host closed the connection)
1309: [23:43:33] * DigNZ has joined #silverstripe
1310: [23:43:34] * DigNZ quit (Remote host closed the connection)
1311: [23:46:03] * DigNZ has joined #silverstripe
1312: [23:46:04] * DigNZ quit (Remote host closed the connection)
1313: [23:46:18] * DigNZ has joined #silverstripe
1314: [23:49:14] <NitinShah> two pages Company and About-us that have the same tag say "123". When clicking on 123 on Company page the generated url is siteurl/company/tag/123 and when clicking on 123 from About-Us page the url is siteurl/About-us/tag/123
1315: [23:49:39] <NitinShah> the content on both the generated link is same
1316: [23:53:33] <nhorstmeier> that's due to the many_many relation being between the Page class and Tag class... the result is all pages with the tag passed in the url.
1317: [23:54:03] <NitinShah> Any work around for that
1318: [23:59:52] <nhorstmeier> it depends on what the desired result is, what are you expecting the result to be on the about us page vs the company page

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