#silverstripe IRC Log

IRC log for 3 December 2015

All timestamps are in UTC.

1: [00:05:19] * Stomach quit (Quit: zzz)
2: [00:14:59] * micmania1 has joined #silverstripe
3: [00:17:41] * zlinux has joined #silverstripe
4: [00:31:40] * Stomach has joined #silverstripe
5: [00:44:48] * Stomach quit (Quit: zzz)
6: [00:47:51] * Stomach has joined #silverstripe
7: [01:14:17] * micmania1 quit (Quit: micmania1)
8: [01:20:38] * liori quit (Quit: leaving)
9: [01:21:32] * liori has joined #silverstripe
10: [01:22:09] * liori quit (Client Quit)
11: [01:22:49] * liori has joined #silverstripe
12: [01:29:55] * liori quit (Quit: leaving)
13: [01:36:00] * MischaK quit (Ping timeout: 245 seconds)
14: [01:45:07] * MischaK has joined #silverstripe
15: [01:45:15] * liori has joined #silverstripe
16: [02:03:08] * Tanger has joined #silverstripe
17: [02:17:18] * MichaelHabib1 has joined #silverstripe
18: [02:18:59] * MichaelHabib quit (Ping timeout: 260 seconds)
19: [02:19:00] * MichaelHabib1 is now known as MichaelHabib
20: [02:19:17] * MischaK quit (Ping timeout: 246 seconds)
21: [02:20:27] * joelpittet quit (Remote host closed the connection)
22: [02:24:37] * DanaeNZ has joined #silverstripe
23: [02:29:14] * DanaeNZ quit (Ping timeout: 260 seconds)
24: [02:35:37] <Audlex> is this right?
25: [02:35:37] <Audlex> $extensions = File::config()->allowed_extensions;
26: [02:35:37] <Audlex> $extensions[] = 'dwg, rfa';
27: [02:45:16] * DanaeNZ has joined #silverstripe
28: [02:51:02] * liori quit (Quit: leaving)
29: [02:57:40] * micmania1 has joined #silverstripe
30: [02:58:30] * liori has joined #silverstripe
31: [02:58:57] * liori quit (Client Quit)
32: [03:03:53] * DanaeNZ quit (Remote host closed the connection)
33: [03:05:48] * Stomach quit (Quit: zzz)
34: [03:08:11] * liori has joined #silverstripe
35: [03:12:51] * Stomach has joined #silverstripe
36: [03:36:05] * helenclarko quit (Read error: Connection reset by peer)
37: [03:48:17] * liori quit (Quit: leaving)
38: [03:48:38] * joelpittet has joined #silverstripe
39: [03:48:44] * liori has joined #silverstripe
40: [03:49:11] * liori quit (Client Quit)
41: [03:49:42] * liori has joined #silverstripe
42: [03:49:51] * liori quit (Client Quit)
43: [03:54:54] * Stomach quit (Quit: zzz)
44: [04:00:58] * Stomach has joined #silverstripe
45: [04:05:58] * DanaeNZ has joined #silverstripe
46: [04:06:02] * liori has joined #silverstripe
47: [04:07:42] * liori quit (Client Quit)
48: [04:14:48] * micmania1 quit (Quit: micmania1)
49: [04:18:37] * liori has joined #silverstripe
50: [04:22:14] * DanaeNZ quit (Remote host closed the connection)
51: [04:44:59] * hailwood quit (Remote host closed the connection)
52: [05:01:21] * Stomach quit (Quit: zzz)
53: [05:14:04] * saysora has joined #silverstripe
54: [05:19:33] * Colin[pi] quit (Ping timeout: 250 seconds)
55: [05:22:46] * UncleCheese has joined #silverstripe
56: [05:36:25] * zlinux quit (Ping timeout: 245 seconds)
57: [05:47:20] * spronk quit (Quit: I may need a longer sleep timer...)
58: [06:06:59] * r_hector has joined #silverstripe
59: [06:07:54] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
60: [06:10:44] * DanaeNZ has joined #silverstripe
61: [06:15:11] * DanaeNZ quit (Ping timeout: 246 seconds)
62: [06:33:55] * spronk has joined #silverstripe
63: [06:49:24] * joelpittet quit (Remote host closed the connection)
64: [06:54:20] <Zauberfisch> Audlex: probably not
65: [06:54:39] * leomeloxp quit (Quit: znc died...)
66: [06:54:42] <Zauberfisch> it would be $extesions[] = 'dwg';$extesions[] = 'rfa';
67: [06:54:49] <Zauberfisch> and then you need to write it back to the config
68: [06:54:58] <Zauberfisch> but generally the php way is discouraged
69: [06:55:02] <Zauberfisch> use the yml config
70: [06:55:05] <Zauberfisch> File:
71: [06:55:18] <Zauberfisch> allowed_extensions:
72: [06:55:24] <Zauberfisch> - dwg
73: [06:55:26] <Zauberfisch> - rfa
74: [06:55:35] * leomeloxp has joined #silverstripe
75: [06:55:42] <Zauberfisch> put those 4 lines into your _config/config.yml
76: [07:01:39] * zlinux has joined #silverstripe
77: [07:06:00] * Mike123 has joined #silverstripe
78: [07:07:45] * spronk quit (Max SendQ exceeded)
79: [07:18:09] * leomeloxp quit (Quit: znc died...)
80: [07:18:39] * leomeloxp has joined #silverstripe
81: [07:26:00] * wmk quit (Ping timeout: 245 seconds)
82: [07:41:26] * wmk has joined #silverstripe
83: [07:47:02] * TRB143 quit (Ping timeout: 260 seconds)
84: [07:47:21] * micmania1 has joined #silverstripe
85: [07:51:32] * TRB143 has joined #silverstripe
86: [08:00:15] * DanaeNZ has joined #silverstripe
87: [08:04:38] * DanaeNZ quit (Ping timeout: 250 seconds)
88: [08:07:53] * arnhoe has joined #silverstripe
89: [08:19:27] * Werner_2_ has joined #silverstripe
90: [08:22:15] * wmk quit (Ping timeout: 245 seconds)
91: [08:31:12] * Werner_2_ is now known as wmk
92: [08:32:05] * ifusion has joined #silverstripe
93: [08:32:10] * eolant quit (Read error: Connection reset by peer)
94: [08:32:46] * eolant has joined #silverstripe
95: [08:33:13] <ifusion> hey guys, have any of you had this happen to you before in the CMS backend? https://www.dropbox.com/s/9rpp85z4mco9pm0/Screenshot%202015-12-03%2021.32.33.png?dl=0
96: [08:39:31] <MichaelHabib> ifusion: never happend to me, but could be cache problem ? try creating silverstripe-cache in the install root with permission set to 775 & see what happens
97: [08:42:01] * Mike123 quit (Ping timeout: 252 seconds)
98: [08:45:03] * Mike123 has joined #silverstripe
99: [08:46:32] <ifusion> @michaelHabib - Sorted it, there was a space in front of my <?php tag on the homepage.. haha shit!
100: [08:49:54] <wmk> jup, space before <?php is a pita
101: [08:50:16] * joelpittet has joined #silverstripe
102: [08:50:18] <wmk> a greater pita is a space or other character after a ?> at the end of the file (if someone still uses ?> in his php files)
103: [08:50:49] * ifusion quit (Ping timeout: 252 seconds)
104: [08:54:54] * joelpittet quit (Ping timeout: 250 seconds)
105: [09:02:02] * NewGuy has joined #silverstripe
106: [09:03:38] * kinglozzer has joined #silverstripe
107: [09:04:23] * Eliseth has joined #silverstripe
108: [09:05:29] * Eliseth_ has joined #silverstripe
109: [09:05:55] <Eliseth_> Is there a way to open a page by having it's ID in the URL?
110: [09:06:15] <Eliseth_> Something like: mysite.com/?PageID=2
111: [09:07:10] * Eliseth quit (Read error: Connection reset by peer)
112: [09:07:52] * Eliseth_ is now known as Eliseth
113: [09:08:53] <NewGuy> Hi. I am trying to get all ProductPages who has a specific tag. Tag and ProductPage have a many many relation. I've created a ->filter('Healty', 'Cheap'). However this returns ProductPages, which have EITHER Healthy or Cheap. How do i get Products who have Health AND Cheap?
114: [09:09:24] <kinglozzer> Eliseth: I guess it's possible
115: [09:10:29] <kinglozzer> public function handleRequest($request) { if ($id = $request->param('PageID')) { $controller = ModelAsController::controller_for(Page::get()->byID($id); return $controller->handleRequest($request); } return parent::handleRequest(); }
116: [09:10:37] <kinglozzer> That's my best guess Eliseth :P
117: [09:11:09] <Eliseth> Right, was hoping for default functionality in SS for it, but guess not :D
118: [09:14:28] * GioVdK has joined #silverstripe
119: [09:15:06] * r3v3rb has joined #silverstripe
120: [09:15:12] <r3v3rb> guten tag
121: [09:18:13] <NewGuy> Hi
122: [09:29:15] * jonners99 has joined #silverstripe
123: [09:31:20] <wmk> hey, only one spam comment today in my blog? cool!
124: [09:31:48] * SH__ has joined #silverstripe
125: [09:31:55] <wmk> r3v3rb, g*day
126: [09:32:09] * MichaelHabib1 has joined #silverstripe
127: [09:32:10] <r3v3rb> wie gehts wmk ?
128: [09:32:16] <wmk> danke, ganz gut
129: [09:32:25] <r3v3rb> ja gut danke
130: [09:32:32] <wmk> but i guess we should chat in english here ;)
131: [09:32:37] * MichaelHabib quit (Ping timeout: 250 seconds)
132: [09:32:37] * MichaelHabib1 is now known as MichaelHabib
133: [09:32:38] <r3v3rb> ofcourse
134: [09:32:45] <NewGuy> Hi guys.
135: [09:32:56] <wmk> NewGuy, so you have Products many_many tags
136: [09:32:59] <r3v3rb> i’m starting to study german again after twenty years away
137: [09:33:03] <r3v3rb> wmk ^^
138: [09:33:08] <NewGuy> Yes wmk
139: [09:33:10] <wmk> and get products that have both tags?
140: [09:33:17] <NewGuy> yes
141: [09:33:21] <NewGuy> it kindda works now
142: [09:33:25] <wmk> THAT's a good question!
143: [09:33:45] <NewGuy> but it is like the SQL query says. Tag1 OR Tag2. I need the SQL query to say Tag1 AND Tag2
144: [09:33:49] <wmk> kinglozzer, r3v3rb ideas?
145: [09:33:59] <NewGuy> It is for a filterting form
146: [09:34:13] <wmk> well, you'd need to join manually for the second tag...
147: [09:34:21] <wmk> i guess
148: [09:34:24] <r3v3rb> hanong let me look in the ss log I missed a bit of this
149: [09:34:29] <r3v3rb> hang on*
150: [09:34:33] <wmk> but...
151: [09:34:35] <wmk> !paste NewGuy
152: [09:34:42] <NewGuy> Hmm. I am abit new to SS. But i assume you mean going outsite ORM
153: [09:34:48] <wmk> hey - helper, where are you gone?
154: [09:35:11] <wmk> NewGuy, can you paste your code on on sspaste.org ?
155: [09:35:12] <r3v3rb> wmk, so i’ll be looking for help with the german ;)
156: [09:35:39] <wmk> r3v3rb, gearman should be nice, but i use cronjobs for my queues
157: [09:35:43] <NewGuy> Yes. 2 sec, need to think what could be useful to you :)
158: [09:35:57] <wmk> *duck*
159: [09:36:01] <r3v3rb> wmk, wtf!
160: [09:36:10] <r3v3rb> lol
161: [09:36:50] * MichaelHabib quit (Ping timeout: 245 seconds)
162: [09:37:14] * MichaelHabib has joined #silverstripe
163: [09:37:41] <r3v3rb> NewGuy: it’ll just help to see what you currently have and then decipher what you need…
164: [09:38:44] <wmk> btw: anyone included dl/dt/dd in tinymce?
165: [09:38:57] <Eliseth> nope, srry :D
166: [09:39:07] <r3v3rb> wmk, nope sorry
167: [09:39:33] <Eliseth> Hmmm, how do I force the CMS preview pane to load it's content by page iD.....
168: [09:40:02] <Eliseth> As it's messing up redirecting back to default language as it doesn't understand multi-domain translations
169: [09:40:31] * micmania1 quit (Quit: micmania1)
170: [09:40:38] <wmk> Eliseth, i guess you'll have to tweak some js. afaik subsites pushes a ?SubsiteID=1 to the preview url
171: [09:40:45] <kinglozzer> NewGuy: I think the easiest way would be to just do $list = ProductPage::get(); foreach ($tags as $tag) { $list = $list->filter('Tag', $tag); }
172: [09:41:04] <kinglozzer> ExactMatchFilter (default for ->filter()) only seems to deal with OR
173: [09:41:06] <Eliseth> I'm not using subsites
174: [09:41:11] <NewGuy> Here is a gist. https://gist.github.com/stealerr/476446efdc43e00c9ca8
175: [09:41:48] <NewGuy> Yeah Kinglozzer, i have it working with OR. :-)
176: [09:41:55] * Tanger quit (Remote host closed the connection)
177: [09:42:26] <wmk> Eliseth, but there lies the solution!
178: [09:42:39] <Eliseth> I don't follow
179: [09:42:51] <kinglozzer> NewGuy: I know :) I think you need to loop over the tags and call ->filter() for each tag
180: [09:43:11] <NewGuy> Hmm
181: [09:43:38] * jonners99 quit (Remote host closed the connection)
182: [09:43:47] <wmk> Eliseth, https://github.com/silverstripe/silverstripe-subsites/blob/1.2/code/extensions/SiteTreeSubsites.php#L267-278
183: [09:43:58] <kinglozzer> I guess it's possible to do it with some ->alterDataQuery() magic, but I can't think how off the top of my head
184: [09:44:06] <NewGuy> So what you are saying is calling the ->filter, multiple times. Instead of what i am doing in the addTagFilter method in my gist?
185: [09:44:11] * jonners99 has joined #silverstripe
186: [09:44:17] <Eliseth> Or try ->where() instead of ->filter(). Afaik ->where() takes SQL syntax to some extend
187: [09:45:07] <wmk> Eliseth, but filtering a manymany with where is kinda pita
188: [09:45:33] <wmk> you'll have to join it
189: [09:45:42] <wmk> basically it'll be the ON clause for the join
190: [09:46:27] <wmk> hmm
191: [09:46:40] <NewGuy> What i am doing right now is returning ->filter("TagID", array(1,2,3,4,5)) But you are suggesting doing something like ->filter("TagID",1)->filter("TagID", 2) Am i getting it right?
192: [09:47:09] <wmk> worth a try, i'll expect it to be the same
193: [09:47:24] <NewGuy> Ill try
194: [09:47:50] <Eliseth> So I should use alternatePreviewLink() to generate my own (correct) page links, correct?
195: [09:47:58] <wmk> NewGuy, how many tags canbe filtered? only two or many?
196: [09:48:09] <Eliseth> But where do I put this alternatePreviewLink() for it to work?
197: [09:48:18] <Eliseth> In my Page.php?
198: [09:48:42] <wmk> Eliseth, subsites has it in a (Data)Extension on SiteTree
199: [09:48:55] <wmk> so either your page.php or any extension on SiteTree / Page
200: [09:49:13] <wmk> Eliseth, you're using fluent for translations?
201: [09:49:15] <NewGuy> Manu wmk
202: [09:49:20] <NewGuy> many*
203: [09:49:21] <Eliseth> No
204: [09:49:43] <wmk> Eliseth, strange setup?
205: [09:50:35] <Eliseth> silverstripe/translatable + bummzack/translatable-dataobject
206: [09:53:36] <wmk> NewGuy, seems to be pretty complicated... http://stackoverflow.com/questions/7364969/how-to-filter-sql-results-in-a-has-many-through-relation
207: [09:54:09] <wmk> Eliseth, ok, but different domains for each locale with some self baked solution?
208: [09:55:40] <NewGuy> wmk.. Hmm. I've looked abit at it. Alot suggest going outsite ORM. But it might work with adding multiple filter chain methods. but i'm having some trouble setting up my code. Let me just fix the code, so i can test abit :-)
209: [09:56:16] <wmk> i guess for each tag you'll need to
210: [09:56:21] <wmk> - manually join the table
211: [09:56:25] <Eliseth> That might very well be the case... I didn't actually did that part, but I see stuff like: TranslatableRootURLController extends RootURLController, so yeah... :D
212: [09:56:28] <wmk> - make a where subselect
213: [09:57:18] <wmk> Eliseth, nice, well, if it's some kind of module you might put the alternatePreviewLink() in there, otherwise your page.php or a extension on Page
214: [09:57:58] <NewGuy> Wait. Can you not chain Filter on filter? so fx: Page::get()->filter('IsActive',1)->filter('ID:GreaterThan',1); ??
215: [09:58:20] <Zauberfisch> NewGuy: yes
216: [09:58:32] <Zauberfisch> you can chain any type of list operation
217: [09:58:39] <wmk> of course
218: [09:59:03] <NewGuy> Hmm then i've got something else wrong with my code. ill get back to you when i've cleaned up
219: [09:59:11] <Zauberfisch> $list->filter(foo)->sort(bar)->limit(5)->filter(foobar)
220: [09:59:30] <Zauberfisch> or rather
221: [09:59:35] <Zauberfisch> $newList = $list->filter(foo)->sort(bar)->limit(5)->filter(foobar)
222: [09:59:37] <wmk> but ->filter('ManyMany.Foo', '1')->filter('ManyMany.Foo','2') will be the same like ->filter('ManyMany.Foo', ['1','2']) Zauberfisch NewGuy ?
223: [10:00:11] <wmk> or more like ->filterAny() ...?
224: [10:01:39] <NewGuy> I am hoping that that wont be the same
225: [10:02:06] <kinglozzer> wmk: I don't think it will be the same
226: [10:02:10] <NewGuy> since it seems that an array as second parameter on filter() will result in OR statement in SQL
227: [10:06:48] <wmk> NewGuy, it seems... do a $list->sql() to see the actual sqlstatement
228: [10:07:25] <wmk> but ->filter() should be AND, ->filterAny() should be OR, but on a manymany it could be different
229: [10:07:40] <wmk> NewGuy, try with some manual filters before you try to automate it
230: [10:07:47] <Eliseth> The function does not seems to get executed no matter where I put it...
231: [10:08:14] <wmk> Eliseth, did you flush? can you turn on xdebug?
232: [10:09:06] <NewGuy> i tried applying the following:
233: [10:09:46] <NewGuy> ->filter('Tags.Name', 'Økologisk')->filter('Tags.Name', 'Udenlandsk') And 0 products are returned. If i only do ->filter('Tags.Name', 'Økologisk') i get the products with the tag "Økologisk"
234: [10:10:10] <NewGuy> same happens when i try to get by the tag "Udenlandsk"
235: [10:10:21] <NewGuy> but at the same time, it returns 0 for some reason.
236: [10:11:25] * zlinux quit (Ping timeout: 245 seconds)
237: [10:12:38] <NewGuy> is something wrong with my method chaining on the above example?
238: [10:13:00] <Eliseth> yes, flushed everything
239: [10:14:27] * Audlex quit (Remote host closed the connection)
240: [10:14:38] * Audlex has joined #silverstripe
241: [10:14:39] * Audlex quit (Changing host)
242: [10:14:39] * Audlex has joined #silverstripe
243: [10:19:36] * jonners99 quit (Remote host closed the connection)
244: [10:19:42] * jonners9_ has joined #silverstripe
245: [10:20:13] * MrGuits has joined #silverstripe
246: [10:20:47] <MrGuits> Hi, how can i pass data to an uploadfield and access it from a formfield template?
247: [10:21:51] <wmk> NewGuy, you have a tag with "Udenlansk" in your db? and a manymany relation?
248: [10:22:06] <wmk> check in db directly, e.g. phpmyadmin
249: [10:22:58] <NewGuy> Yup i do have that. It also works fine if i say: ->filter('Tags.Name', 'Udenlandsk')
250: [10:23:19] <NewGuy> But both filters doesn't really work
251: [10:23:46] <wmk> NewGuy, you can inspect the sql using ->filter()->sql()
252: [10:24:04] <wmk> see http://api.silverstripe.org/master/class-DataList.html#_sql
253: [10:26:25] <NewGuy> I searched in the sql it outputted and found this as the only instance for "Udenlandsk":
254: [10:26:26] <NewGuy> AND ("Tag"."Name" = 'Økologisk') AND ("Tag"."Name" = 'Udenlandsk') AND
255: [10:26:52] <NewGuy> ofc with tons of sql before and after the snippet above
256: [10:29:21] <NewGuy> So it actually looks fine in the sql query. Now the question is why doesn't it return anythin. hmm
257: [10:29:25] <wmk> yup, but this won't work
258: [10:29:37] <NewGuy> why will this not work?
259: [10:29:44] <wmk> you have a join, so you get a "big row" containing product table and tag table
260: [10:29:49] <wmk> and ONE row won't have both tags
261: [10:29:54] <NewGuy> oh
262: [10:30:12] <wmk> see that stackoverflow link above to get some sql that would work
263: [10:30:35] <NewGuy> That actually makes sense. I will have a look.
264: [10:31:19] <wmk> http://stackoverflow.com/questions/7364969/how-to-filter-sql-results-in-a-has-many-through-relation
265: [10:31:35] <wmk> Derek4 should be pretty simple with ORM
266: [10:32:25] <wmk> ->where('Product.ID IN (Select ProductID FROM Product_Tags WHERE TagID = 123')
267: [10:32:38] <wmk> for each tag...
268: [10:32:48] <wmk> kinglozzer, what do you think?
269: [10:35:19] <NewGuy> wmk the example isn't silverstripe, would i be able to use some of the methods from this: http://stackoverflow.com/questions/17127486/silverstripe-filter-dataobject-list-by-many-many-relationship
270: [10:36:34] <wmk> NewGuy, the answer is from 2013, that was SS 3.0, and ORM wasn't that advanced
271: [10:37:36] <NewGuy> Well. Unclechees' lesson about going outside the ORM, will help me create that cusom SQL query :D
272: [10:38:02] <Eliseth> Hmmmm
273: [10:38:03] <wmk> why not just add ->where( /put subselect here/) ??
274: [10:38:20] <wmk> like Derek4 ?
275: [10:38:22] <Eliseth> Seems like public function PreviewLink() in SiteTree.php isn't called at all...
276: [10:38:25] * Eliseth is confused
277: [10:38:47] <wmk> Eliseth, weird, with subsites it works... maybe some other magic in here? dunno
278: [10:39:34] <wmk> maybe it's alternateAbsoluteLink above in the subsite code?
279: [10:40:59] <NewGuy> Derek4 ? Can i do joins in ->where()?
280: [10:43:02] <NewGuy> Hmm i see a ->leftJoin() method is that what i should use?
281: [10:47:28] <wmk> nono
282: [10:47:54] <wmk> 4) Derek
283: [10:48:03] <wmk> SELECT s.stud_id, s.name
284: [10:48:03] <wmk> FROM student s
285: [10:48:03] <wmk> WHERE s.stud_id IN (SELECT stud_id FROM student_club WHERE club_id = 30)
286: [10:48:03] <wmk> AND s.stud_id IN (SELECT stud_id FROM student_club WHERE club_id = 50);
287: [10:50:11] * MichaelHabib quit (Ping timeout: 250 seconds)
288: [10:50:13] * jonners9_ quit (Remote host closed the connection)
289: [10:50:40] * MichaelHabib has joined #silverstripe
290: [10:50:48] * jonners99 has joined #silverstripe
291: [10:51:05] * joelpittet has joined #silverstripe
292: [10:55:06] * jonners99 quit (Remote host closed the connection)
293: [10:55:12] * jonners9_ has joined #silverstripe
294: [10:55:34] * joelpittet quit (Ping timeout: 245 seconds)
295: [10:55:57] <NewGuy> Sorry if my interpretation is wrong: but would i be able to say something like ->where("Tags.Name IN (SELECT Name FROM Tags WHERE Name = $NameOfTag)")
296: [10:58:23] <NewGuy> i assume it should be Tag.Name and FROM Tag, instead of Tags. Since we are no longer talking about the $many_many relation
297: [10:58:54] <wmk> nope.
298: [10:59:01] <wmk> it's a select on the manymany table
299: [10:59:13] <wmk> and you check if the ID of the product is in the same row with an ID of the tag
300: [10:59:27] <wmk> see above where the tables are defined...
301: [11:00:00] * MichaelHabib1 has joined #silverstripe
302: [11:00:09] * MichaelHabib quit (Ping timeout: 250 seconds)
303: [11:00:09] * MichaelHabib1 is now known as MichaelHabib
304: [11:03:46] <NewGuy> hmm
305: [11:08:56] <NewGuy> ->where("ProductPageID IN (SELECT ProductPageID FROM ProductPage_Tags WHERE TagID = $TagID) AND ProductPageID IN (SELECT ProductPageID FROM ProductPageID_Tags WHERE TagID = $SecondTagID)")
306: [11:09:10] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
307: [11:09:30] <NewGuy> Is that what you mean wmk?
308: [11:11:22] <wmk> ->where("ID IN ...)
309: [11:11:36] <wmk> cause you need the Product's ID, which is ID in Product table
310: [11:11:41] <wmk> and one ->where() for each tag
311: [11:11:55] <wmk> which will be chained with AND (afaik...?)
312: [11:12:11] <wmk> so you can loop through your tags and add one ->where() per tag
313: [11:13:27] * MarkGuinn has joined #silverstripe
314: [11:15:16] <NewGuy> I am currently trying to run it only once. with this ->where("ID IN (SELECT ProductPageID FROM ProductPage_Tags WHERE TagID = $TagID)") However i am getting an error showing:
315: [11:15:18] <NewGuy> Column 'ID' in IN/ALL/ANY subquery is ambiguous
316: [11:17:22] <MarkGuinn> Assuming you're querying a subclass of Page, change it to SiteTree.ID
317: [11:20:17] <NewGuy> I am running it on ProductPage::get() which is a subclass of Page indeed. However when i change my ->where() to SiteTree.ID it returns this: Unknown column 'SiteTree.ID' in 'IN/ALL/ANY subquery'
318: [11:28:56] <NewGuy> Hmm. I fixed some typos. But this new error message is confusing me alot: Unknown column 'ProductPage.ID' in 'field list'
319: [11:29:03] <NewGuy> Field list? what?
320: [11:29:10] * jonners9_ quit (Remote host closed the connection)
321: [11:30:32] * cloph_away is now known as cloph
322: [11:32:03] * jonners99 has joined #silverstripe
323: [11:34:01] <MarkGuinn> Maybe if you give us a more complete code sample we could help more.
324: [11:34:43] <NewGuy> Roger. On the way :)
325: [11:37:43] * DanaeNZ has joined #silverstripe
326: [11:40:42] <NewGuy> It is abit of a project, so i tried to trim down the code alot. https://gist.github.com/stealerr/a997c34998e2e9e29106
327: [11:42:14] * DanaeNZ quit (Ping timeout: 260 seconds)
328: [11:59:37] <MarkGuinn> I'd suggest just using an inner join.
329: [11:59:42] <MarkGuinn> instead of ->where
330: [12:00:26] <MarkGuinn> use: ->innerJoin('ProductPage_Tags', 'ProductPage.ID = ProductPage_Tags.ProductPageID')
331: [12:00:57] <MarkGuinn> and actually now that i write that out, i'm realizing the problem is that your subquery should be SELECT ProductPageID instead of ProductPage.ID)
332: [12:01:05] * cupcake_ has joined #silverstripe
333: [12:02:19] * r3v3rb quit (Ping timeout: 260 seconds)
334: [12:04:55] <cupcake_> how do you get the current request in a class not in a controller?
335: [12:09:10] <NewGuy> cupcake_ i believe you can call SS_HTTPRequest as a constant.
336: [12:09:20] * MichaelHabib quit (Ping timeout: 245 seconds)
337: [12:13:21] <MarkGuinn> Controller::curr()->getRequest()
338: [12:13:57] <MarkGuinn> But you should probably think about your architecture a little more deeply if you're having to do that. :)
339: [12:20:00] <NewGuy> MarkGuinn, What i am trying to do is to get all ProductPage's, which have multiple Tags. Tags being a Dataojbect with a many_many relation to ProductPage. However ->filter('Tags.ID',array(1,2)) is returning products with either of the tags, but i need it to return product only having both tags. So wmk suggested using a ->where() with a subselect
340: [12:20:46] <NewGuy> I realised that you joined after the my problem was explained :-)
341: [12:20:51] <MrGuits> Anyone got experience with the multiform addon?
342: [12:20:57] <MarkGuinn> ah
343: [12:26:42] * jonners99 quit (Remote host closed the connection)
344: [12:27:37] * jonners99 has joined #silverstripe
345: [12:29:33] * jonners99 quit (Remote host closed the connection)
346: [12:30:37] * jcwacky has joined #silverstripe
347: [12:31:14] <NewGuy> Is something wrong with this where method? ProductPage::get()->where("SiteTree.ID IN (SELECT ProductPageID FROM ProductPage_Tags WHERE TagID = '$TagID')");
348: [12:31:17] * jonners99 has joined #silverstripe
349: [12:31:27] <NewGuy> The error that silverstripe gives me is "Unknown column 'SiteTree.ID' in 'IN/ALL/ANY subquery'"
350: [12:31:49] <MarkGuinn> try changing that one back to just "ID"
351: [12:32:13] <MarkGuinn> it's probably not getting properly transformed to SiteTree_Live
352: [12:32:24] <NewGuy> "Column 'ID' in IN/ALL/ANY subquery is ambiguous"
353: [12:32:48] <jcwacky> Anyone good with .htaccess modrewrite? I need “www.mydomain.com” to load a standalone home.php page, but other pages should load from SilverStripe as normal.
354: [12:32:49] * jonners99 quit (Remote host closed the connection)
355: [12:34:04] <NewGuy> Hmm
356: [12:35:53] * MichaelHabib has joined #silverstripe
357: [12:37:48] <NewGuy> Else i might have to deal with the ->filter() method using OR instead of AND
358: [12:40:11] <NewGuy> Would it be an option to go outside the ORM using new SQLQuery() ?
359: [12:46:48] * jonners99 has joined #silverstripe
360: [12:46:51] * jonners99 quit (Remote host closed the connection)
361: [12:47:21] * jonners99 has joined #silverstripe
362: [12:49:39] <MarkGuinn> you might try just changing SiteTree.ID to SiteTree_Live.ID
363: [12:50:27] * SH__ quit (Quit: Page closed)
364: [12:50:35] <MarkGuinn> if that works you might have to add some additional logic to use SiteTree instead of _Live if viewing in ?Stage mode
365: [12:50:42] <MarkGuinn> but at least it would be working
366: [12:50:44] * SH__ has joined #silverstripe
367: [12:51:54] <MarkGuinn> jcwacky - RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
368: [12:51:57] * joelpittet has joined #silverstripe
369: [12:52:06] <MarkGuinn> RewriteRule .* home.php [L]
370: [12:52:10] <MarkGuinn> something like that
371: [12:52:16] <jcwacky> Cheers Mark!
372: [12:52:29] <MarkGuinn> make sure that's BEFORE the normal SS rules but after RewriteEngine On
373: [12:52:42] <NewGuy> Hey Mark...
374: [12:52:47] <NewGuy> U da man
375: [12:55:42] <NewGuy> It worked :)
376: [12:56:55] * joelpittet quit (Ping timeout: 260 seconds)
377: [13:02:46] <MarkGuinn> Great!
378: [13:04:04] * jonners99 quit (Remote host closed the connection)
379: [13:06:36] * MichaelHabib1 has joined #silverstripe
380: [13:08:07] * MichaelHabib quit (Ping timeout: 260 seconds)
381: [13:08:08] * MichaelHabib1 is now known as MichaelHabib
382: [13:11:16] <NewGuy> Thanks MarkGuinn and wmk works very well!
383: [13:11:33] <wmk> NewGuy, ? how's the solution now?
384: [13:13:45] <NewGuy> The solutions is as follows: I am looping through each Tag and applying it to the Products::get(); Like this:
385: [13:13:45] <NewGuy> $products->where("SiteTree_Live.ID IN (SELECT ProductPageID FROM ProductPage_Tags WHERE TagID = '$key')");
386: [13:14:42] <NewGuy> I'll try and modify it so that it joins the Tag table aswell, so i can pass in the Tag.Name instead of Tag.ID.
387: [13:17:46] <wmk> ok. Nice..
388: [13:20:22] * DimiStripe has joined #silverstripe
389: [13:23:41] * UndefinedOffset has joined #silverstripe
390: [13:43:25] * SH__ quit (Ping timeout: 252 seconds)
391: [13:44:01] <kinglozzer> NewGuy: Make sure you escape anything you're passing to where()
392: [13:47:31] <NewGuy> damn good point! any build in method i should use? or would it be mysqli_real_escape_string() ?
393: [13:57:18] * jonners99 has joined #silverstripe
394: [13:57:47] * r_hector quit (Remote host closed the connection)
395: [14:01:48] <wmk> there is something for escaping...
396: [14:02:40] <cupcake_> we have an issue with case sensitivity on filenames stored in the File table
397: [14:02:44] <NewGuy> I found convert::raw2sql($value)
398: [14:03:28] <NewGuy> I think that is what i am looking for. But i could be wrong
399: [14:04:51] <wmk> NewGuy, it's afaike for escaping...
400: [14:12:02] <kinglozzer> NewGuy, wmk: Yes that's fine
401: [14:13:39] <kinglozzer> NewGuy: Alternatively you can use parameterised database queries if you're on 3.2+ - https://docs.silverstripe.org/en/3.2/developer_guides/security/secure_coding/
402: [14:16:26] <NewGuy> Ill bookmark it Knglozzer, since we are on 3.1 :-)
403: [14:32:55] * MrGuits quit (Ping timeout: 252 seconds)
404: [14:34:14] * otterpocket has joined #silverstripe
405: [14:35:58] <otterpocket> Good afternoon, I need to change the link for Security/lostpassword ? What is the best way to do this? Override the route?
406: [14:48:27] * MichaelHabib quit (Ping timeout: 260 seconds)
407: [14:52:51] * joelpittet has joined #silverstripe
408: [14:57:11] * joelpittet quit (Ping timeout: 250 seconds)
409: [15:07:01] * NewGuy quit (Ping timeout: 252 seconds)
410: [15:08:40] * jcwacky quit (Quit: jcwacky)
411: [15:12:19] * jonners99 quit ()
412: [15:15:11] * DanaeNZ has joined #silverstripe
413: [15:18:11] * swaiba has joined #silverstripe
414: [15:19:26] * DanaeNZ quit (Ping timeout: 246 seconds)
415: [15:21:47] <kinglozzer> otterpocket: Do you definitely need to *change* it? I just set up a .htaccess 301 redirect to it from an easier to remember URL, could that work for you?
416: [15:24:08] * otterpocket quit (Quit: Leaving)
417: [15:24:39] <MarkGuinn> otterpocket - you might have a look at axyr/silverstripe-adminlogin - i think it changes the login or at least duplicates it
418: [15:26:19] <swaiba> MarkGuinn - otterpocket - it shows one login for admin, and all others through "normal"
419: [15:34:34] * terryapodaca has joined #silverstripe
420: [15:35:56] <terryapodaca> in the template...is there a variable I can add to my class to count?
421: [15:36:41] <terryapodaca> like class="event{$Count}" which ends up being class="event1", class="event2", etc
422: [15:37:07] <Eliseth> What's best to use for duplicating rows in my gridfield? copy?
423: [15:37:55] <terryapodaca> Eliseth: there is a module to add a Copybutton to the gridfield
424: [15:37:59] * arnhoe quit ()
425: [15:38:01] <terryapodaca> google copybutton
426: [15:39:06] <Eliseth> right, thanks
427: [15:39:24] * otterpocket has joined #silverstripe
428: [15:39:39] <otterpocket> Thanks
429: [15:40:18] <otterpocket> Unrelated to that, what is the best way to send a simple post request to another controller
430: [15:41:53] <kinglozzer> otterpocket: Director::test() can do it
431: [15:42:30] <kinglozzer> Anyone aware of any way to load webfonts into the HtmlEditorField for the CMS?
432: [15:43:41] <kinglozzer> Oh, I can just set content_css() myself
433: [15:57:27] * SphereSilver is now known as Sphere
434: [15:57:34] <Sphere> \o
435: [16:01:03] <swaiba> yo Sphere
436: [16:06:58] * Mike123 quit (Ping timeout: 252 seconds)
437: [16:10:41] * muskie9 has joined #silverstripe
438: [16:10:53] * Eliseth quit (Ping timeout: 246 seconds)
439: [16:19:21] * joelpittet has joined #silverstripe
440: [16:28:43] * MischaK has joined #silverstripe
441: [16:34:39] <otterpocket> Strange if I set $this->Foo = null; In the template if Foo will return true, if $Foo returns false
442: [16:36:40] * cupcake_ quit (Ping timeout: 252 seconds)
443: [16:37:57] * swaiba quit (Remote host closed the connection)
444: [16:38:05] * xyphoid quit (Ping timeout: 245 seconds)
445: [16:40:07] * xyphoid has joined #silverstripe
446: [16:46:58] <GioVdK> hi
447: [16:47:35] <GioVdK> sending an email from the admin section, $email->setTemplate fails: None of the following templates could be found (no theme in use) ...
448: [16:48:00] <GioVdK> (I flushed the cache and it works from the public section of the site)
449: [16:48:06] <wmk> GioVdK, in admin there is no theme...where have you put your templates?
450: [16:49:08] <GioVdK> oh right, I have that under themes/mytheme ... guess I should move it under mysite/templates/Email, correct?
451: [17:04:21] * Werner_2_ has joined #silverstripe
452: [17:05:02] <kinglozzer> otterpocket: You mean <% if Foo %> vs <% if $Foo %> ?
453: [17:05:43] <otterpocket> yes
454: [17:08:02] * wmk quit (Ping timeout: 250 seconds)
455: [17:09:48] <kinglozzer> otterpocket: Best advice is to always prefix lookup with the $. It's treating the first 'Foo' as a string... leaving out the $ is kinda deprecated (though not officially deprecated yet)
456: [17:09:50] * sam___ has joined #silverstripe
457: [17:10:19] <sam___> hello, i want next and previous button for my dataobjects how can i do that
458: [17:10:40] <kinglozzer> sam___: In the CMS use betterbuttons
459: [17:11:17] <kinglozzer> Outside of the CMS depends
460: [17:11:21] <kinglozzer> on what you sort by etc
461: [17:12:39] <sam___> no, i want that on frontend
462: [17:13:18] <sam___> http://postimg.org/image/eohv75ju9/ here is the page snapshot
463: [17:25:34] * Phalcon has joined #silverstripe
464: [17:27:34] * Werner_2_ is now known as wmk
465: [17:27:36] * otterpocket quit (Quit: Leaving)
466: [17:33:21] <kinglozzer> Well sam___, if they're pages you need to do a filter roughly like this ->filter('Sort', $this->Sort + 1)
467: [17:33:24] <kinglozzer> Good luck!
468: [17:33:27] * kinglozzer quit ()
469: [17:35:31] * sam___ quit (Ping timeout: 252 seconds)
470: [17:36:35] <cupcake> is there a way to remove any kind of sorting on the datalist
471: [17:41:17] * MarkGuinn quit (Remote host closed the connection)
472: [17:41:56] * BrewNaked has joined #silverstripe
473: [17:45:25] * cupcake quit (Ping timeout: 252 seconds)
474: [17:46:49] * saysora has joined #silverstripe
475: [17:58:46] * MarkGuinn has joined #silverstripe
476: [18:00:51] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
477: [18:21:40] * sam__ has joined #silverstripe
478: [18:21:56] <sam__> hello, how can i get pre and next record id on front page
479: [18:30:07] * MischaK quit (Ping timeout: 260 seconds)
480: [18:30:11] * wmk quit (Ping timeout: 246 seconds)
481: [18:30:43] * MarkGuinn quit (Remote host closed the connection)
482: [18:33:35] * houleness has joined #silverstripe
483: [18:33:59] <sam__> hello help plz
484: [18:35:28] <houleness> I’m using the Advanced Workflow module and I can’t get the {$Context.AbsoluteLink} sort of links working. The HTML email comes over fine and variables like {$Context.Title} work fine, but none of the link variables do anything… Anyone have any ideas what I can try. I’ve exhausted ideas and google searches
485: [18:40:26] <sam__> can anyone tell me how to make a pre and next link for dataobjects on frontend
486: [18:40:35] * GioVdK quit (Ping timeout: 245 seconds)
487: [18:42:32] * gelignite has joined #silverstripe
488: [18:43:32] <houleness> @sam… you can try a function like this…
489: [18:44:14] <houleness> http://www.sspaste.com/paste/show/56608d761911c
490: [18:45:33] <sam__> how can i try this on my template
491: [18:46:09] <houleness> $PrevNext(next) or $PrevNext(prev)
492: [18:47:39] <sam__> ok thanks
493: [18:48:02] <houleness> Something along these lines - http://www.sspaste.com/paste/show/56608e580f735
494: [18:48:05] <houleness> np
495: [18:49:04] <houleness> Anyone know who I could ask for help with the Advanced Workflow module?
496: [18:52:46] * DanaeNZ has joined #silverstripe
497: [18:53:09] <sam__> but its just showing my urlsegment
498: [18:53:12] * MarkGuinn has joined #silverstripe
499: [18:54:38] <houleness> You’ll need a Link function on the dataobject… Do you have that yet?
500: [18:54:51] <sam__> yea i have that
501: [18:55:06] <houleness> is the url correct at least?
502: [18:55:41] <sam__> yes
503: [18:56:26] <houleness> So it’s just an issue with the template markup then? Is that stuff correct? e.g. A proper a href attribute
504: [18:57:08] * DanaeNZ quit (Ping timeout: 246 seconds)
505: [18:57:42] <sam__> here is my code: http://www.sspaste.com/paste/show/5660908ddc6bb
506: [18:58:39] <houleness> what’s the template look like?
507: [19:01:01] <sam__> http://www.sspaste.com/paste/show/566091655b1b5
508: [19:03:50] <houleness> Looks fine to me… Except the prev part needs to be $PrevNext(‘prev’)
509: [19:04:10] <houleness> Is the site on a remote server so I could look? Or just local?
510: [19:05:03] <sam__> yes this is on remote url: http://www.sewastamb.org/ee/exper-engine/portfolio/
511: [19:08:17] <houleness> the href for the prev one should be $Link not $PrevNext
512: [19:08:58] * jenniferaslan has joined #silverstripe
513: [19:10:16] <sam__> i corrected that
514: [19:12:10] <houleness> Still no dice?
515: [19:14:12] <sam__> ok i got it, now its working thanks
516: [19:14:23] <houleness> awesome!
517: [19:14:55] * houleness has left #silverstripe
518: [19:19:50] * helenclarko has joined #silverstripe
519: [19:51:22] <BrewNaked> Morning/afternoon/evening all...
520: [19:54:26] * antmas has joined #silverstripe
521: [19:55:07] <BrewNaked> Sorry for the not-SS-specific question, but has anyone had any experience with any US-based Agile Coaching company(ies) that they'd recommend?
522: [19:55:45] <antmas> BrewNaked: 90% of questions on here are usually not-ss-specific :D
523: [19:56:04] <BrewNaked> So beer-related questions are kosher too?
524: [19:57:03] <BrewNaked> If so I'll know that I'm really in the right spot. :)
525: [20:01:58] * DanaeNZ has joined #silverstripe
526: [20:07:04] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
527: [20:08:26] * micmania1 has joined #silverstripe
528: [20:09:23] * joelpittet quit ()
529: [20:16:20] <antmas> beer is definitely a permitted topic :D
530: [20:18:33] * MarkGuinn quit (Remote host closed the connection)
531: [20:20:31] * sam__ quit (Ping timeout: 252 seconds)
532: [20:26:15] <antmas> happy Friday all o/
533: [20:26:27] <antmas> for australasians anyway :P
534: [20:31:43] <DanaeNZ> what a fucking month
535: [20:31:48] <DanaeNZ> month or two
536: [20:32:34] <DanaeNZ> I need to go get some PETG plastic and I'm running out of time to do it aaghg
537: [20:33:02] <DanaeNZ> so who is ready for Christmas? fucking nooope
538: [20:33:03] <antmas> mm
539: [20:33:21] <antmas> I am, but I'm lucky was work slows here around this time
540: [20:34:08] <DanaeNZ> I'm busier as ever woohoo
541: [20:34:12] <DanaeNZ> busy*
542: [20:34:24] <DanaeNZ> October and November just disappeared under my feet
543: [20:35:56] <DanaeNZ> good thing about christmas, Kmart is open til midnight every day
544: [20:36:10] <DanaeNZ> I bought a snapback that says JEDI on it
545: [20:36:13] <DanaeNZ> fucking stoked
546: [20:36:25] * wmk has joined #silverstripe
547: [20:41:45] <antmas> lol
548: [20:41:48] <antmas> snapbacks :P
549: [20:42:02] <antmas> I ALMOST bought a Darth Vader one from rebel sport the other day
550: [20:42:03] <DanaeNZ> Star Wars snapbacks
551: [20:42:19] <DanaeNZ> I can't stop myself if an item of clothing has something geeky on it
552: [20:42:26] <antmas> lol
553: [20:42:41] <antmas> I can when it comes to snapbacks because they make my head look super fat
554: [20:44:10] <DanaeNZ> I look like a fuckboi
555: [20:44:14] <DanaeNZ> it is amazing
556: [20:44:26] <antmas> hahah
557: [20:44:36] <antmas> omg
558: [20:44:40] <antmas> selenium webdriver for IE
559: [20:44:46] <antmas> .dll hell
560: [20:45:43] <DanaeNZ> gridfieldEditibleColumns doesn't know what to do with images
561: [20:45:45] * DanaeNZ cries
562: [20:46:13] <Sphere> Don't worry, we all cry some times
563: [20:50:55] * antmas goes to add exe to PATH
564: [20:51:00] * antmas gets denied
565: [20:51:03] <antmas> :|
566: [20:51:07] * terryapodaca quit (Quit: Later fellas......I'm out.)
567: [21:04:31] * antmas quit (Ping timeout: 252 seconds)
568: [21:07:11] * hailwood has joined #silverstripe
569: [21:08:25] * antmas has joined #silverstripe
570: [21:10:14] <DanaeNZ> Anyone know the bit where GridField handles the display of images? I'm trying to make a workaround for GridFieldEditableColumns displaying just "Image_Cached" for an Image object
571: [21:11:53] <hailwood> o/ to all
572: [21:13:55] * TRB143 quit (Ping timeout: 260 seconds)
573: [21:14:19] * TRB143 has joined #silverstripe
574: [21:21:52] * zlinux has joined #silverstripe
575: [21:22:24] * UndefinedOffset quit (Quit: Leaving.)
576: [21:22:41] * UndefinedOffset has joined #silverstripe
577: [21:26:56] * UndefinedOffset quit (Ping timeout: 246 seconds)
578: [21:31:43] * swipper has joined #silverstripe
579: [21:35:38] <swipper> Woo! PHP 7!
580: [21:35:58] <swipper> Can't wait to speed up my SS sites :)
581: [21:41:25] * wmk quit (Ping timeout: 245 seconds)
582: [21:43:40] * spekulatius has joined #silverstripe
583: [21:48:58] * muskie9 has joined #silverstripe
584: [21:51:01] * saysora has joined #silverstripe
585: [21:57:34] * terryapodaca has joined #silverstripe
586: [21:57:46] <terryapodaca> http://justin.cultivateapps.com/government/departments/code-enforcement/
587: [21:57:51] <terryapodaca> UserForms issue
588: [21:58:18] <terryapodaca> seems the module is pushing the UserForms JS below my JS, therefore causing issues
589: [21:59:14] <terryapodaca> Honestly, I don't mind using the built in JS validation
590: [22:01:55] * spronk has joined #silverstripe
591: [22:05:18] * MischaK has joined #silverstripe
592: [22:05:44] * MichaelHabib has joined #silverstripe
593: [22:09:25] * swipper quit (Quit: Page closed)
594: [22:14:38] <DanaeNZ> terryapodaca: UserForms does that yeah
595: [22:14:56] <DanaeNZ> I think we got around it by clearing the requirements by filename
596: [22:15:16] <DanaeNZ> there are probably other JS specific ways to get around it, I dunno
597: [22:16:52] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
598: [22:24:14] <terryapodaca> hey DanaeNZ
599: [22:24:15] <terryapodaca> thanks
600: [22:24:21] <terryapodaca> here's what I did to get around it
601: [22:25:03] <terryapodaca> at the top of my main.js which should be the very last js file called onto my pages, but isn't because of UserForms
602: [22:25:05] <terryapodaca> jQuery.noConflict();
603: [22:25:05] <terryapodaca> jQuery(document).ready(function($){
604: [22:25:14] <terryapodaca> that seemed to work, but seemed a little hacky
605: [22:25:24] <terryapodaca> so I went in and added this to my Page.php
606: [22:25:45] <terryapodaca> Requirements::block(THIRDPARTY_DIR . '/jquery/jquery.js');
607: [22:25:45] <terryapodaca> Requirements::set_force_js_to_bottom(true);
608: [22:26:20] <terryapodaca> not sure if either way is better or not, but I no longer get an error and the form validates and submits
609: [22:26:51] <DanaeNZ> nice
610: [22:29:54] <antmas> anyone familiar with selenium here?
611: [22:30:11] * saysora has joined #silverstripe
612: [22:30:24] <terryapodaca> chemical element?
613: [22:30:25] <terryapodaca> ;)
614: [22:30:50] <antmas> :|
615: [22:31:00] * antmas slaps terryapodaca with a large trout
616: [22:31:15] <terryapodaca> ouch
617: [22:33:30] <antmas> I'm getting 403s when trying to call the browserstack hub
618: [22:35:18] * terryapodaca quit (Quit: Later fellas......I'm out.)
619: [22:47:47] * antmas quit (Quit: Page closed)
620: [22:49:00] <DanaeNZ> aw maaan I always forget that Subsites doesn't have a magical "duplicate main site" function
621: [22:49:13] <DanaeNZ> so when you tell your underling to use Subsites and then they just don't
622: [22:49:26] <DanaeNZ> and sure enough the client wants more differing content all over the show
623: [22:49:39] <DanaeNZ> and now it's stuck there with no subsites
624: [22:49:42] <DanaeNZ> FUCUCUCUCCK
625: [22:50:21] <helenclarko> CHALLENGE NOT ACCEPTED!
626: [22:50:30] * zlinux quit (Ping timeout: 260 seconds)
627: [22:50:56] <DanaeNZ> oh look comment out one line in the task and it works
628: [22:51:03] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
629: [22:51:30] <DanaeNZ> fuck yes
630: [22:54:12] <DanaeNZ> ohnooo redirect loop
631: [22:54:17] <DanaeNZ> friday got me like
632: [22:54:19] <DanaeNZ> subsites
633: [23:14:01] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
634: [23:41:56] <spronk> FUCK YESHSSSSH
635: [23:46:25] <DanaeNZ> haha that sounded drunk
636: [23:52:25] <spronk> whatyhaya mean!?
637: [23:52:30] <spronk> i want some nippys
638: [23:52:32] <spronk> D:
639: [23:52:45] <spronk> the fuck is the sub of the day today
640: [23:53:05] <spronk> seafood
641: [23:53:05] <spronk> bleh

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