#silverstripe IRC Log

IRC log for 13 October 2015

All timestamps are in UTC.

1: [00:02:07] <irogue> whoa the police have (mostly) figured out how to use Periscope https://www.periscope.tv/w/1RDxlVLjdolGL
2: [00:03:14] <antmas> lol
3: [00:03:58] <antmas> so periscope is just a streaming app right?
4: [00:04:58] <irogue> yup, live video streaming. run by twitter so very integrated into that, hence popularity.
5: [00:05:13] <antmas> ah ok
6: [00:05:25] <antmas> fucking 1080 fanatics
7: [00:05:40] <antmas> they need to throw the book at this twat, whoever they are
8: [00:06:20] <antmas> irogue: it's very quite on that stream :P
9: [00:06:25] <antmas> like, awkwardly so
10: [00:07:01] <irogue> ikr, I assume they've properly piped the (directional) mic into the phone, so its barely picking up background noise.
11: [00:07:11] <antmas> ah good point
12: [00:10:50] <antmas> some 60 year old dude eh?
13: [00:10:53] <antmas> businessman
14: [00:22:33] <novaweb> Bassheads. Plug number 2 for the day: https://soundcloud.com/excision/excision-shambhala-2015-mix
15: [00:22:41] <novaweb> ... heavy.
16: [00:23:27] * DanaeNZ has joined #silverstripe
17: [00:24:18] * Stomach quit (Quit: bye)
18: [00:25:21] <chocolatemoose> novaweb: this is what I've been jamming out to lately, not as bass heavy, but still pretty damn awesome https://soundcloud.com/aleksander-vinter/savant-dj-set-2015
19: [00:25:38] <novaweb> churrrrrp bookmarked
20: [00:28:56] * patricknelson quit (Quit: Leaving.)
21: [00:29:40] <Colin[pi]> has anyone hooked up a regular SS with Shopify before? i.e. purchase of products on the SS site via Shopify?
22: [00:30:37] * Stomach has joined #silverstripe
23: [00:33:48] <novaweb> Peeps, you know how the tabs in the CMS automatically add a space in between capitalised characters on the tab title, how to over ride that? It's an acronym that needs to be read as one word...
24: [00:33:58] <novaweb> *override
25: [00:36:49] * Jakx has joined #silverstripe
26: [00:36:52] <Jakx> Yo
27: [00:37:09] <Colin[pi]> novaweb: $fields->findOrMakeTab('Root.Bla.TabName', 'Dat tab name');
28: [00:37:20] <novaweb> ty
29: [00:37:30] <novaweb> Dat tab do
30: [00:37:32] <irogue> or, depending on the context, set $singular_name and $plural_name on the object
31: [00:37:40] <novaweb> ah ha
32: [00:38:15] <Jakx> If I create a has_many Image i.e MyObject->Image(), how do I do the reverse lookup? MyObject->Image()->HasOne()?
33: [00:38:17] <irogue> that way it also updates in gridfields or anywhere else that object is referred to
34: [00:38:32] <novaweb> (y)
35: [00:38:46] <Colin[pi]> Jakx: the Image object should have a has_one MyObject yes
36: [00:39:03] <Colin[pi]> but if it's the Image class itself, you can extend it
37: [00:39:09] <Colin[pi]> to set up the association
38: [00:39:30] <Jakx> Colin[pi], hmmm ok, good to know. Doesn't seem to be working for me, but I'll investigate.
39: [00:40:18] <Colin[pi]> Jakx: like, for example, MyObjectImage extends Image
40: [00:40:26] <Colin[pi]> and then it has a $has_one to MyObject
41: [00:40:38] <Colin[pi]> and MyObject has_many MyObjectImage
42: [00:41:12] <Jakx> Colin[pi], awesome, the clarity has made me realise something. Thanks dude!
43: [00:41:15] <Colin[pi]> you could also have MyObjectImage extends DataObject, and then have the Image as a has_one on the MyObjectImage
44: [00:41:20] <Jakx> clarification*
45: [00:41:25] <Colin[pi]> depends on how you roll
46: [00:41:27] <antmas> Colin[pi]: when you say 'purchase of products on the SS site via Shopify?'
47: [00:41:27] <Colin[pi]> :D
48: [00:41:34] <antmas> how do you mean?
49: [00:41:35] <Colin[pi]> antmas: yeah integration
50: [00:41:36] <Colin[pi]> like
51: [00:41:40] <Colin[pi]> the SS shop has the catalog
52: [00:41:51] <Colin[pi]> and you click "Buy" on a product, and it goes off to Shopify
53: [00:43:25] <Jakx> Colin[pi], is there a way to do a reverse lookup on a $has_one relationship. e.g if the MyObject $has_one "Image", can I do $MyObject->Image()->MyObject() somehow?
54: [00:44:05] <Colin[pi]> Jakx: yeah... but isn't that a cyclic reference?
55: [00:44:16] <Colin[pi]> myself -> other thing -> myself ?
56: [00:44:31] <Jakx> Colin[pi], yeah, but in this case I'm trying to do it in the template, I'm trying to create a new Crop method.
57: [00:44:37] <antmas> Colin[pi]: so you pass the cart information off to shopify checkout?
58: [00:44:46] <Colin[pi]> antmas: yeah dude, you can do that
59: [00:44:54] <Jakx> So it's <% loop MyObjects %> $Image.MyCropMethod ...
60: [00:44:54] <Colin[pi]> just wondering if anyone has with SS :P
61: [00:45:01] <antmas> Colin[pi]: oh :P
62: [00:45:12] <antmas> dunno, it would be cool to see though - I'd be interested
63: [00:45:23] <Colin[pi]> antmas: my next proj will do just that
64: [00:45:29] <Colin[pi]> because fuck doing ecomm myself lollers
65: [00:46:00] <Colin[pi]> Jakx: yeah dude, or you can loop and then say <% with $Image %> $MyCropMethod <% end_with %>
66: [00:46:16] <Jakx> Colin[pi], if it's possible, what is the method? e.g $this->CalledClass() or something?
67: [00:46:39] <Jakx> ($this scope is from within Image)
68: [00:46:47] <Colin[pi]> Jakx: you want the Image object to be able to reference it's association
69: [00:46:49] <Colin[pi]> right?
70: [00:46:54] <Jakx> Colin[pi], yeah :)
71: [00:47:07] <Colin[pi]> Jakx: yeah so it's just $this->MyObject()
72: [00:47:14] <Colin[pi]> whatever you setup in the $has_one
73: [00:47:14] <antmas> Colin[pi]: mm yeah - and to be honest, I'd rather do the site in SS but palm off the payment/checkout stuff to Shopify after building in it recently :P
74: [00:47:40] <Jakx> Colin[pi], yeah ok... something is breaking down in my setup then. The MyImage $has_one isn't being assigned by the CMS or something.
75: [00:47:41] <antmas> Colin[pi]: you're prolly gonna have to tool up a bit on .liquid and .less if you're taking this route though
76: [00:48:02] <Jakx> Colin[pi], because $this->MyObject() is null.
77: [00:48:19] <Jakx> Colin[pi], even though $MyObject()->MyImage() is fine.
78: [00:48:20] <Colin[pi]> antmas: yep after the last ecomm debacle I was involved in, I was all Yao Ming "fuck that" face when I saw the ecomm requirement
79: [00:48:34] * chocolatemoose quit (Remote host closed the connection)
80: [00:49:07] <Colin[pi]> Jakx: your MyObject should be $has_many Images => MyImage, and MyImage should be $has_one MyObject
81: [00:49:22] <Colin[pi]> the CMS should link them up automagically if it's denoted correctly
82: [00:49:35] <Jakx> Colin[pi], yeah, in this case it's just MyObject $has_one MyImage
83: [00:49:46] <antmas> Colin[pi]: haha!
84: [00:49:49] <Jakx> Colin[pi], but I need MyImage to be able to look back at MyObject
85: [00:49:52] <Colin[pi]> oh it's a has_one each way?
86: [00:50:15] <Jakx> Colin[pi], it will be whatever I need to make it fuckin work! lol. But yeah, atm it's a $has_one both ways.
87: [00:50:22] <Colin[pi]> Jakx: haha
88: [00:50:26] <Colin[pi]> yeah that should be fine
89: [00:50:42] <Colin[pi]> Jakx: have a play, if it's still being screwy, paste the code someone
90: [00:50:46] <Colin[pi]> *somewhere
91: [00:50:52] <Colin[pi]> and we'll have a looksie
92: [00:51:24] <antmas> dumb question, but how can you add your own packages to bower? Like we have a css file that we include all the time in our projects, but I'd rather it be managed through bower
93: [00:51:46] * Tanger has joined #silverstripe
94: [00:51:58] <Jakx> Colin[pi], shot dude. Thanks heaps.
95: [00:56:26] <Stomach> antmas yeah you can
96: [00:57:09] <irogue> I manage my frontend deps using composer :P
97: [00:57:12] * irogue is such a php dev
98: [00:57:20] <antmas> irogue: :P
99: [00:57:32] <antmas> I'm thinking of setting it up with our asp projects
100: [00:57:58] <Colin[pi]> irogue: lol so it's not just me
101: [00:58:10] <antmas> ... you can define a set list of packages right? Like we use very specific js libraries and modules etc...
102: [00:58:59] <Stomach> antmas - just run your own npm
103: [00:59:07] <Stomach> https://github.com/rlidwka/sinopia
104: [00:59:10] <irogue> Colin[pi]: not at all. we use combine_files for all the minification etc anyway, so having two seperate dependency tools seemed unnecessary
105: [00:59:26] <Colin[pi]> irogue: yay so I'm not crazy
106: [00:59:58] <irogue> in fact was discussing with the frontenders on my team yesterday about perhaps making a module that compiles sass so no gulp needed
107: [01:00:14] <Colin[pi]> irogue: nice
108: [01:00:15] <antmas> Stomach: oh chur, nice!
109: [01:00:29] <Colin[pi]> irogue: i'm not a fan of frontend management crap
110: [01:01:45] * glenn-bautista quit (Quit: Leaving.)
111: [01:02:01] * glenn-bautista has joined #silverstripe
112: [01:02:03] <antmas> Colin[pi]: irogue I'm not really either - but pretty much all of our internal apps (like 50 of them) all are using the same, or slightly different, front end libraries
113: [01:02:14] <antmas> so we need some way of managing them
114: [01:03:01] * antmas quit (Quit: Page closed)
115: [01:04:23] <Colin[pi]> irogue: btw
116: [01:04:29] <Colin[pi]> speaking of combine_files
117: [01:04:50] <Colin[pi]> do you know offhand of common reasons for it to fail on prod?
118: [01:04:58] <Colin[pi]> because it works fine on my local box here
119: [01:05:08] <Colin[pi]> but when I try it on the server, it stuffs up :(
120: [01:06:15] <Colin[pi]> (which is kinda backwards from the whole point of it :P)
121: [01:09:07] <irogue> hrmm
122: [01:10:38] <irogue> is it actually combining on your local box? i.e. is it in live mode?
123: [01:11:57] <muskie9> Colin[pi] we've had some issues recently w/combine leaving some files out on production
124: [01:11:57] * antmas has joined #silverstripe
125: [01:12:24] <muskie9> I usually combine locally just in case everything's foobar'd after a push to prod and flush doesn't get everything
126: [01:13:44] <Colin[pi]> irogue: yeah if I switch it to live or do a ?combine=1, it works perfectly on local
127: [01:14:08] <Colin[pi]> but yeah, like muskie9 said, on prod it seems to only *partially* combine
128: [01:14:14] <Stomach> Colin[pi] - file permissions
129: [01:14:15] <Colin[pi]> some files are missing :\
130: [01:14:18] * LG-chris has joined #silverstripe
131: [01:14:19] <Stomach> sometimes
132: [01:14:19] <ss-helper> LG-chris: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
133: [01:14:25] <Stomach> welcome LG-chris
134: [01:14:27] <LG-chris> hey
135: [01:14:29] <Stomach> do you have a problem with tests?
136: [01:14:34] <Colin[pi]> Stomach: yeah? I checked that though
137: [01:14:34] * antmas quit (Client Quit)
138: [01:14:35] <Stomach> and dataobjects within them?
139: [01:14:37] <Stomach> :D
140: [01:15:29] <LG-chris> whats the best way to handle data objects written for module tests that you don't want available outside of the module
141: [01:15:30] <LG-chris> e.g
142: [01:15:38] <LG-chris> not full data base up with test objects
143: [01:16:14] <LG-chris> unfortunately google hasn't yielded any good options :(
144: [01:16:19] <Stomach> irogue you ever seen anything like that?
145: [01:16:37] <LG-chris> for instance
146: [01:16:49] <LG-chris> https://github.com/chrisahhh/silverstripe-batchwrite
147: [01:16:53] <LG-chris> https://github.com/chrisahhh/silverstripe-batchwrite-tests
148: [01:17:04] <LG-chris> :)
149: [01:17:15] <irogue> Stomach: llike what?
150: [01:17:27] <Stomach> dataobjects used only for tests
151: [01:18:01] <Colin[pi]> Stomach: populate module?
152: [01:18:32] <Stomach> ?
153: [01:18:40] <Colin[pi]> https://github.com/dnadesign/silverstripe-populate
154: [01:19:22] <Stomach> bingo!
155: [01:19:23] <Stomach> thanks
156: [01:19:51] <Colin[pi]> Stomach: I love it, greatly eased the creation of a ton of objects for my stuff
157: [01:20:08] <Stomach> LG-chris has written a better one :)
158: [01:20:30] <Colin[pi]> ;P
159: [01:20:38] <LG-chris> awesome, thanks guys
160: [01:20:48] <LG-chris> implemens TestOnly is precisely what I need
161: [01:20:51] <LG-chris> implements*
162: [01:28:11] * joelpittet has joined #silverstripe
163: [01:33:24] * joelpittet quit (Ping timeout: 264 seconds)
164: [01:51:36] <Hailwood> Hey folks, if I have two queries, both returning the same type of DataObject, how can I append the results from one, to the end of the other?
165: [01:53:18] * chocolatemoose has joined #silverstripe
166: [01:56:19] <muskie9> Hailwood, not sure if you can use ->merge() on DataList, if not, create a new array list and merge the two resulting data lists into the ArrayList
167: [01:57:12] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
168: [01:59:49] * micmania1 quit (Quit: micmania1)
169: [02:02:35] * LG-chris quit (Quit: Page closed)
170: [02:04:45] * chocolatemoose quit (Ping timeout: 256 seconds)
171: [02:10:59] <Hailwood> muskie9, DataList is setup to throw an error if you call ->merge(). Does this seem like an apt solution? https://gist.github.com/hailwood/f2707ce6d2bcf16f3e64 how difficult would it be to implement pagination around this?
172: [02:11:39] * chocolatemoose has joined #silverstripe
173: [02:15:05] <helenclarko> Holy Sheit, Just found out my MSI GE62 has 2 extra M.2 ports that are unused on purchase. Time to but some M.2 SSD's!
174: [02:15:25] <muskie9> Hailwood should be easy enough to add pagination to $output per the normal pagination stuff... used pagination on a custom calendar that returned an ArrayList
175: [02:15:32] <Colin[pi]> helenclarko: mm hmm, I understand some of these words
176: [02:15:56] <helenclarko> oh yeah, MSI laptops aren't big here.
177: [02:16:21] <Hailwood> muskie9, The issue I see is that I'm pulling the data before I apply any pagination, so I think I might need to setup the pagination manually
178: [02:16:49] <muskie9> should still work I think
179: [02:17:02] <helenclarko> Is M.2 becoming the new sata laptop replacement?
180: [02:17:06] <Colin[pi]> Hailwood: just get whatever list you need to paginated, and then wrap a PaginatedList around it
181: [02:17:16] <muskie9> ^
182: [02:17:37] <helenclarko> It feels very much like how sata was to IDE ports.
183: [02:17:40] <muskie9> PaginatedList just does offset iirc, nothing really with the data in the list
184: [02:18:16] <helenclarko> slowly motherbords dropped to 1 or no IDE ports and just went mental on sata ports.
185: [02:18:40] <Colin[pi]> helenclarko: my last mobo came with like 10 sata ports
186: [02:18:45] <Colin[pi]> I was all "challenge accepted"
187: [02:19:56] <helenclarko> Now my laptop has one sata harddrive bay (NORMAL RIGHT) and 3 M.2 ports which can support up to 512gb ssd boards.
188: [02:19:56] <muskie9> anyone use HoneyPot with BootstrapForms and have the field hidden?
189: [02:20:34] <muskie9> I think I know the issue, bootstrap forms module uses a different field holder from what I'm seeing
190: [02:24:16] <helenclarko> Colin[pi], I'm thinking "Fuck I could have 1 1/2 TB's in SSD's alone and then a 1TB 2.5 sata drive".
191: [02:25:38] <helenclarko> Colin[pi], But I dont have the money to do that really. I too was like "Challenge accepted"... "Must fill all holes"
192: [02:26:41] <Colin[pi]> helenclarko: lol
193: [02:26:48] <Colin[pi]> I've run out of sata ports on my main pc now
194: [02:27:10] <helenclarko> Smells like... Victory!
195: [02:27:32] <muskie9> Hailwood I just noticed in your merges you were doing ->toArray()... don't think you need that
196: [02:27:49] <Colin[pi]> muskie9 Hailwood: yeah you can just merge another list I think
197: [02:27:49] <irogue> OH: "I'm all yours big boy" "Ooh stop rubbing your hands" "I feel dirty now"
198: [02:27:54] <irogue> not quite sure what's going on in the office
199: [02:28:04] <Colin[pi]> irogue: business as usual by the sounds
200: [02:28:05] <helenclarko> Colin[pi], Yeah, I started on external drives for my desktop after removing CD drives so I could use all sata ports
201: [02:28:49] <DanaeNZ> irogue: bahahah
202: [02:29:03] * patricknelson has joined #silverstripe
203: [02:29:06] * DanaeNZ always jumping in at the right moments to provide useless commentary and laffs
204: [02:29:22] <DanaeNZ> you guys are a talkative bunch today jeez
205: [02:29:33] <irogue> DanaeNZ: HELLO
206: [02:29:39] <DanaeNZ> SUUPPPP
207: [02:29:42] <Colin[pi]> DanaeNZ: HAI2U
208: [02:29:49] * patricknelson quit (Remote host closed the connection)
209: [02:29:50] <DanaeNZ> \o \o \o \o
210: [02:30:59] <helenclarko> *DanaeNZ always clicking links then screaming "FUCKING CHICKENBUTT", like a chickenbutt safety net.
211: [02:31:11] <DanaeNZ> just doin my job
212: [02:31:17] <DanaeNZ> i don't need a hero's praise
213: [02:31:23] <helenclarko> DanaeNZ, Thanks!
214: [02:31:26] <DanaeNZ> XD
215: [02:31:29] <Colin[pi]> DanaeNZ: http://gfycat.com/RevolvingYoungGoa
216: [02:31:41] * DanaeNZ glances suspiciously
217: [02:31:48] <Colin[pi]> not CB :P
218: [02:31:50] <DanaeNZ> hahahahahaa
219: [02:31:57] <helenclarko> ITS SAFE!
220: [02:32:15] <Colin[pi]> gonna have to start prefixing all links eh
221: [02:32:17] <helenclarko> Thanks DanaeNZ!
222: [02:32:19] <Colin[pi]> NOTCB: link
223: [02:32:29] <Colin[pi]> !CB
224: [02:32:32] <Colin[pi]> :D
225: [02:32:42] <DanaeNZ> FUCKIN TIMER WASN'T RUNNING UGH
226: [02:32:43] <helenclarko> I like !CB
227: [02:33:04] <irogue> !notes chickenbutt
228: [02:33:05] <ss-helper> https://github.com/ss-irc/notes/wiki/chickenbutt
229: [02:34:06] <helenclarko> If ss-helper was actually helpful, it would check links for chickenbutt.
230: [02:34:27] <Colin[pi]> helenclarko: ss-helper was posting about 2.4.10 yesty
231: [02:34:34] <Colin[pi]> SO HELPFUL, MUCH CURRENT, WOW
232: [02:34:51] <DanaeNZ> FUCK
233: [02:34:55] <helenclarko> GOD DAMN, I clicked the link! It even has chickenbutt in the title.
234: [02:35:12] <irogue> helenclarko: woooow
235: [02:35:37] <helenclarko> Colin[pi], Yea atleast we got the security update this morning 2.4.13 lol
236: [02:36:40] <helenclarko> Colin[pi], Yes ss-helper actually sent out links to the 2.4.13 security update this morning.
237: [02:37:22] * novaweb quit (Remote host closed the connection)
238: [02:37:34] <helenclarko> irogue, I thought it was going to be a wiki article on chickenbutt, not just chickenbutt itself.
239: [02:38:03] <irogue> talking about how we're always talking shit about sysadmins and they're equally talking shit about developers http://iforce.co.nz/i/honaheev.3qj.png
240: [02:42:28] <irogue> DanaeNZ: COMING TO ECHOLAN? :P
241: [02:43:05] <DanaeNZ> irogue: I HAVEN'T DECIDED HAHA
242: [02:43:31] <irogue> DanaeNZ: registration+payment closes tonight
243: [02:43:35] <DanaeNZ> oops
244: [02:43:36] <DanaeNZ> hm
245: [02:43:40] <DanaeNZ> probably not then XD
246: [02:43:47] <DanaeNZ> i am a lazy ass mofo
247: [02:44:54] * Olliepop has joined #silverstripe
248: [02:50:07] <Jakx> Am I going crazy... I've MyDataObject has $db field "Test", but if I call $this->Test inside public function getTest(), I get "[Notice] Undefined property: MyObject::$Test...". Am I referencing it wrong?
249: [02:52:08] <irogue> Jakx: you're basically being recursive, because getTest() overrides the default behaviour of $this->Test
250: [02:52:22] <irogue> use $this->dbObject('Test') instead
251: [02:53:01] * muskie9__ has joined #silverstripe
252: [02:53:24] <Jakx> irogue, right! Excellent explanation, tyvm.
253: [02:53:51] * spronk quit (Quit: bleep bleep bloop bloop)
254: [02:54:18] * spronk has joined #silverstripe
255: [02:54:47] <jules0x> Earlier I asked about using a custom button to send an ajax POST request to update Page -> Content while in fullscreen editor mode.
256: [02:55:03] <jules0x> I have it working, but I think something is listnening for ajax responses...
257: [02:55:24] * spronk quit (Max SendQ exceeded)
258: [02:55:50] <jules0x> the page appears to reload even though I have nothing In my success: function
259: [02:56:10] * muskie9 quit (Ping timeout: 240 seconds)
260: [02:56:23] <irogue> i've honestly never done any in-CMS javascript stuff before
261: [02:56:28] <jules0x> and when it does, the left CMS menu turns odd colours and the list items padding goes all ***
262: [02:56:49] <irogue> if you're lucky Stomach might have
263: [02:57:19] <jules0x> someone mentioned pjax...
264: [02:58:12] <jules0x> (sounds like Ajax's methed up cousin)
265: [02:59:31] * novaweb has joined #silverstripe
266: [02:59:52] * micmania1 has joined #silverstripe
267: [03:00:26] <jules0x> haha.. form docs.silverstripe in regards to the cms-architecture...
268: [03:00:28] <jules0x> "Due to the procedural and selector-driven style of UI programming in jQuery.entwine, it can be difficult to find the piece of code responsible for a certain behaviour."
269: [03:00:34] * novaweb quit (Remote host closed the connection)
270: [03:03:37] <DanaeNZ> uptown girl
271: [03:03:44] <DanaeNZ> she bin livin in a white-bred world
272: [03:13:06] <DanaeNZ> the winner takes it allll
273: [03:13:06] * muskie9__ quit (Read error: Connection reset by peer)
274: [03:13:11] <DanaeNZ> the loser has to faaaall
275: [03:14:20] * muskie9 has joined #silverstripe
276: [03:16:26] * matt-in-a-hat has joined #silverstripe
277: [03:20:08] <muskie9> stupid vpn's
278: [03:22:22] <Stomach> what?
279: [03:22:44] <Stomach> yeah entwine is hard
280: [03:23:26] <matt-in-a-hat> Hi, I'm using the cwp modules, and I was trying to add search but without having to set up solr. However if I don't include the fulltextsearch module, I can't use FulltextSearchable without errors because cwp-core/code/model/CwpSearchIndex extends SolrIndex which doesn't exist
281: [03:23:29] <matt-in-a-hat> Is there some way around this?
282: [03:24:55] <DanaeNZ> matt-in-a-hat: probably need to use the Before: header block thing in your yaml file
283: [03:25:08] <DanaeNZ> i had to do the same for custom estensions
284: [03:25:30] <muskie9> entwine is one of those things I solve a problem and feel good, then need to do something a couple months later and it's gibberish
285: [03:25:55] <jules0x> not what I want to hear :)
286: [03:26:40] <muskie9> I tend to reference this every time to get started: https://www.bigfork.co.uk/takeaway/a-beginners-introduction-to-using-entwine-in-silverstripe
287: [03:28:40] <jules0x> Yep was using that. I did manage to get the correct behaviour occuring, however I can't stop the page from reloading the CMS menu (and breaking it))
288: [03:28:50] <jules0x> A tomorrow problem I think...
289: [03:29:03] * joelpittet has joined #silverstripe
290: [03:31:45] <irogue> jules0x: entwine is always a tomorrow problem
291: [03:32:02] <jules0x> ^o^
292: [03:32:22] <muskie9> true irogue
293: [03:32:29] <matt-in-a-hat> DanaeNZ I'm not sure I follow. I haven't specified anything to do with search in my yaml file. Is it a matter of configuring it to ignore some of the cwp-core search stuff?
294: [03:33:13] <muskie9> matt-in-a-hat more of having your code get referenced before the cwp for the search I think
295: [03:33:28] <muskie9> ** have it load before the cwp code loads
296: [03:33:39] * novaweb has joined #silverstripe
297: [03:33:51] * joelpittet quit (Ping timeout: 255 seconds)
298: [03:34:37] <muskie9> Before/After in config.yml: https://docs.silverstripe.org/en/3.1/developer_guides/configuration/configuration/#configuration-yaml-syntax-and-rules
299: [03:35:00] <muskie9> rather: https://docs.silverstripe.org/en/3.1/developer_guides/configuration/configuration/#before-after-priorities
300: [03:35:45] <matt-in-a-hat> I was trying to use the simple silverstripe searching e.g. https://docs.silverstripe.org/en/3.1/tutorials/site_search/
301: [03:36:19] * r_hector has joined #silverstripe
302: [03:36:35] <matt-in-a-hat> So it's not really my code that needs to load first, I'm trying to use the framework
303: [03:39:22] <muskie9> not sure then, if it's an extension of some kind there may be a way to disable the extension... thought I saw something somewhere on how to do that
304: [03:41:01] <muskie9> http://api.silverstripe.org/master/class-Object.html#_remove_extension
305: [03:41:13] <muskie9> if it's an extension that might helpo
306: [03:50:22] * Jakx quit (Read error: Connection reset by peer)
307: [03:50:43] <muskie9> can you use multi-forms with just a controller, no page?
308: [03:50:51] <muskie9> I would assume yes but have never tried
309: [03:51:08] * glenn-bautista quit (Quit: Leaving.)
310: [03:51:28] * micmania1 quit (Quit: micmania1)
311: [04:00:59] * DanaeNZ quit (Remote host closed the connection)
312: [04:01:31] * DanaeNZ has joined #silverstripe
313: [04:04:59] * helenclarko quit (Read error: Connection reset by peer)
314: [04:06:01] * DanaeNZ quit (Ping timeout: 256 seconds)
315: [04:11:15] * Hailwood quit (Remote host closed the connection)
316: [04:22:25] <matt-in-a-hat> As far as I can see if you use the cwp module you HAVE to use solr and silverstripe-fulltextsearch
317: [04:23:13] <matt-in-a-hat> And no longer be able to use the framework/search/FulltextSearchable
318: [04:26:23] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
319: [04:29:03] * glenn-bautista has joined #silverstripe
320: [04:37:55] * glenn-bautista quit (Quit: Leaving.)
321: [04:41:44] * novaweb quit (Read error: Connection reset by peer)
322: [04:42:17] * novaweb has joined #silverstripe
323: [04:42:41] * PenguinMan98 has joined #silverstripe
324: [04:42:47] <PenguinMan98> Anybody alive?
325: [04:43:01] <Stomach> hiya
326: [04:43:06] <PenguinMan98> I'm having trouble with the built in forms again
327: [04:43:32] <PenguinMan98> http://screencast.com/t/3Q1cXqUrrC
328: [04:44:28] <PenguinMan98> huh, weird. The link brokew
329: [04:44:51] <PenguinMan98> http://screencast.com/t/WQZDNKzbL
330: [04:45:03] <PenguinMan98> K. There is my form class
331: [04:45:44] <PenguinMan98> The problem I'm having is that Twitter Bootstrap has a fixed height of 34px built into it.
332: [04:45:58] <PenguinMan98> Which seems oddly specific to me
333: [04:46:24] <PenguinMan98> So when I add the form-control class to the form elements, this happens:
334: [04:47:14] <PenguinMan98> http://screencast.com/t/USFxpE5XNj8v
335: [04:48:10] <PenguinMan98> This is because the div that wraps the label and the form element has the .form-control class on it thanks to the magic of Silverstripe and is thus limited to only 34 pixels tall.
336: [04:54:32] <PenguinMan98> Am I using a weird version of bootstrap? Or is this normal?
337: [04:55:01] <PenguinMan98> I want to customize the form layout. How can I do that?
338: [05:03:59] * chocolatemoose quit (Remote host closed the connection)
339: [05:04:37] * chocolatemoose has joined #silverstripe
340: [05:08:54] * chocolatemoose quit (Ping timeout: 246 seconds)
341: [05:09:54] * lerni has joined #silverstripe
342: [05:29:56] * joelpittet has joined #silverstripe
343: [05:35:03] * joelpittet quit (Ping timeout: 268 seconds)
344: [05:35:31] * chocolatemoose has joined #silverstripe
345: [05:41:46] * wmk has joined #silverstripe
346: [06:04:15] * Olliepop quit (Ping timeout: 246 seconds)
347: [06:11:48] * Stomach quit (Ping timeout: 264 seconds)
348: [06:17:29] * novaweb quit (Remote host closed the connection)
349: [06:19:18] * matt-in-a-hat quit (Ping timeout: 246 seconds)
350: [06:21:16] * chocolatemoose quit (Remote host closed the connection)
351: [06:22:06] * chocolatemoose has joined #silverstripe
352: [06:22:11] * Audio- has joined #silverstripe
353: [06:22:12] <ss-helper> Audio-: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
354: [06:22:32] * Audio- is now known as Guest17109
355: [06:25:33] * Audlex quit (Ping timeout: 250 seconds)
356: [06:25:35] * TombL_ quit (Ping timeout: 250 seconds)
357: [06:26:13] * TombL has joined #silverstripe
358: [06:26:39] * chocolatemoose quit (Ping timeout: 255 seconds)
359: [06:48:09] * chocolatemoose has joined #silverstripe
360: [06:49:11] * Guest17109 is now known as Audlex
361: [06:54:39] * PenguinMan98 quit (Ping timeout: 246 seconds)
362: [06:54:48] * Eliseth has joined #silverstripe
363: [06:55:25] <Eliseth> Morning
364: [06:57:17] <Eliseth> I'm using silverstripe/blog and now I'd like the 'Categories' box on the right to only display categories that were created for that specific blog page, anyway to do that?
365: [06:58:37] <Eliseth> There's multiple blog pages on various subjects, and each has its own set of categories. However all categories show up in all blog posts instead of just the categories of it's parent blog page.
366: [07:03:57] <lerni> Eliseth: BlogPost has many_many Categories why not just <% loop $Categories %> ?
367: [07:05:01] * antmas has joined #silverstripe
368: [07:05:11] <antmas> evening all o/
369: [07:05:21] <Eliseth> I'm talking about the admin
370: [07:05:28] <Tanger> Eliseth: You can extend BlogPost and in updateCMSFields, grab the Categories GridField and set it's source to a function that only grabs the categories where PageID == somewhere
371: [07:06:00] <Tanger> *PageID == $this->owner->ID
372: [07:06:20] <Tanger> Or the equivalent column in the many_many table
373: [07:09:11] * Travis__ has joined #silverstripe
374: [07:09:11] <ss-helper> Travis__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
375: [07:11:12] <antmas> anyone spot any error on this? http://www.sspaste.com/paste/show/561cae7f31ee5
376: [07:11:17] <antmas> my page isn't loading in the CMS
377: [07:11:23] <antmas> no errors that I can find
378: [07:12:19] <Eliseth> Thanks Tanger, I'm not that experienced, would that mean removing it (as I'm doing parent::getCMSFields()) and then adding again using a modified source?
379: [07:12:32] <Tanger> antmas: Blank screen or errors?
380: [07:12:33] <wmk> antmas, "my page isn't loading"... -> goto dev mode
381: [07:12:43] <wmk> enable error logging in php
382: [07:13:00] <antmas> no no, it's loading - but there is nothing in the CMS editor panel
383: [07:13:18] <antmas> I have error logging enabled - but this isn't showing as an error in any log file
384: [07:13:22] <Tanger> antmas: Restart the browser, clear cache etc?
385: [07:13:29] <antmas> tried that :(
386: [07:13:31] <Tanger> Eliseth: https://docs.silverstripe.org/en/3.1/developer_guides/extending/extensions/
387: [07:13:53] <antmas> it isn't anything on my DO is it? http://www.sspaste.com/paste/show/561cae7559cfb
388: [07:13:57] <antmas> this all looks fine to me :|
389: [07:14:16] <Tanger> Eliseth: You need to make a new class (such as class BlogPageExtension extends Extension) and add an updateCMSFields(FieldList $fields) method
390: [07:14:49] <Tanger> Then BlogPage will read the getCMSFields function defined on it's PHP class, followed by the one on BlogPageExtension
391: [07:14:55] * Copperis has joined #silverstripe
392: [07:15:14] <Eliseth> Errrr
393: [07:15:59] <Eliseth> I have class MyCustomBlogPage extends BlogPost, can I do it in there? (as I modified a number of other things in there already)
394: [07:16:17] <Eliseth> *MyCustomBlogPost
395: [07:16:37] <antmas> this is driving me crazy
396: [07:16:42] <antmas> maybe I need another beer
397: [07:16:52] <Tanger> antmas; Your DO looks good
398: [07:17:33] <Tanger> antmas: Do you have JS errors and XMLHttpRequests enabled in firebug?
399: [07:17:42] <antmas> hmmm no
400: [07:17:46] <antmas> I'll check that
401: [07:18:12] <Tanger> antmas: I've had the same thing before, but restarting the browser worked for me
402: [07:18:25] <antmas> mmm maybe I need to close it all down
403: [07:18:25] <antmas> brb
404: [07:18:28] * Travis__ has left #silverstripe
405: [07:18:55] * swaiba has joined #silverstripe
406: [07:19:38] <Tanger> Eliseth: Yes, you could. If your getCMSFields(), the one defined on MyCustomBlogPage, uses $fields = parent::getCMSFields(), you should be able to use $fields->fieldByName('Categories') to get the gridfield
407: [07:20:57] <Eliseth> HM, fieldByName is a new one for me, let me check what I can do with that :)
408: [07:22:39] * antmas quit (Ping timeout: 246 seconds)
409: [07:23:17] * r_hector quit (Remote host closed the connection)
410: [07:23:33] <Eliseth> Ok, so that just gives me the field already there...
411: [07:26:07] * antmas has joined #silverstripe
412: [07:26:16] <antmas> ok so none of that returned anything :(
413: [07:26:17] <antmas> BUT
414: [07:26:30] <antmas> it's something to do with my gridfield on my page causing it
415: [07:28:10] <antmas> in my getCMSFields() function
416: [07:30:52] * joelpittet has joined #silverstripe
417: [07:31:56] * chocolatemoose quit (Remote host closed the connection)
418: [07:35:35] * joelpittet quit (Ping timeout: 260 seconds)
419: [07:38:53] * DanaeNZ has joined #silverstripe
420: [07:39:10] <antmas> DanaeNZ: o/
421: [07:40:07] * Mike123 has joined #silverstripe
422: [07:40:14] <Mike123> Morning
423: [07:40:34] <antmas> can anyone see something obvious here I'm missing? http://www.sspaste.com/paste/show/561cb5070b4c9
424: [07:41:43] * Stomach has joined #silverstripe
425: [07:43:26] <Tanger> antmas: Any js included using extra_requirements_javascript?
426: [07:43:46] <antmas> Tanger: nope
427: [07:43:56] * DanaeNZ quit (Ping timeout: 268 seconds)
428: [07:44:57] <Tanger> antmas: Maybe give the DO a has_one back to it's page
429: [07:45:20] <antmas> Tanger: I'll try that
430: [07:47:01] * chocolatemoose has joined #silverstripe
431: [07:47:18] <antmas> ok......
432: [07:47:25] <antmas> I didn't do anything and now it's loading :|
433: [07:47:31] * lerni quit ()
434: [07:47:31] * antmas throws toys around the room
435: [07:47:38] <Tanger> antmas: :P
436: [07:48:04] <Tanger> I know that's happened to me before. The HTML returned in the CMS was correct, but it sure wasn't actually inserting it
437: [07:50:13] <antmas> mmm
438: [07:50:23] <antmas> something was just working against me :(
439: [07:53:04] <wmk> You killed Kenny! You bastard!!! http://jinja.pocoo.org/docs/dev/templates/#if
440: [07:58:33] * GioVdK has joined #silverstripe
441: [08:00:44] * kinglozzer has joined #silverstripe
442: [08:01:55] <swaiba> wmk ha - just because kenny is dead doesn't mean he was killed :-P
443: [08:02:18] <wmk> ;)
444: [08:07:06] * antmas quit (Ping timeout: 246 seconds)
445: [08:10:50] * chocolatemoose quit (Remote host closed the connection)
446: [08:15:01] * mirrors has joined #silverstripe
447: [08:15:50] <mirrors> hey there...has anyone had any success getting the dropzone FileAttachmentField working in a modal popup?
448: [08:16:49] <Zauberfisch> mirrors: are you on 2.4?
449: [08:24:27] * Otterpocket has joined #silverstripe
450: [08:25:22] <Otterpocket> Hello, I have 2 failing framework tests, just trying to find out where to look to fix them. Redirector Page Test::test Empty Redirectors and RedirectorPageTest::testReflexiveAndTransitiveInternalRedirectors
451: [08:27:15] * mirrors quit (Quit: Page closed)
452: [08:34:00] * Colin[pi] quit (Ping timeout: 246 seconds)
453: [08:37:36] * Stomach quit (Quit: zzz)
454: [08:40:41] <kinglozzer> Otterpocket: They're in the cms module, not framework :)
455: [08:41:51] <Otterpocket> So they are, that's why I didn't find them with grep :D
456: [08:42:08] <Otterpocket> any idea why these 2 are failing?
457: [08:43:45] <Otterpocket> Its failing on this assertion $this->assertContains('message-setupWithoutRedirect', $content);
458: [08:44:05] <Otterpocket> Because it seems to be returning the content of the Page.ss template
459: [08:45:18] * Varis has joined #silverstripe
460: [08:45:52] * Copperis quit (*.net *.split)
461: [08:47:23] <kinglozzer> Otterpocket: You mean it's using your theme instead of the default/blank one?
462: [08:47:55] <Otterpocket> yes
463: [08:47:58] * stnvh has joined #silverstripe
464: [08:48:17] <kinglozzer> Hmm, might be a bug
465: [08:48:43] <kinglozzer> Otterpocket: If you edit the test file and add this, does it work? public function setUp() { parent::setUp(); Config::inst()->remove('SSViewer', 'theme'); }
466: [08:49:39] <Otterpocket> Yep, 5passes 0fails
467: [08:50:27] <kinglozzer> Probably a bug then, I think it should disable using custom themes for those tests (as they clearly rely on the theme to pass!)
468: [08:50:41] <kinglozzer> Otterpocket: Just checking, does setting this work too? protected static $disable_themes = true;
469: [08:50:50] <kinglozzer> I think that's a shorter way of doing the same thing :)
470: [08:51:29] <Otterpocket> yep
471: [08:52:22] <kinglozzer> I'm not really sure how you can work around it Otterpocket :/ I wonder if you could somehow setup your config.yml/_config.php to disable your theme when testing or something
472: [08:52:31] <kinglozzer> Do any of your tests rely on your theme?
473: [08:54:49] <kinglozzer> Also Otterpocket, create an issue on the CMS module for it
474: [08:55:46] <Otterpocket> None of my tests rely on it yet
475: [08:57:30] <kinglozzer> Otterpocket: Untested of course, but you could try doing this in _config.php - class_exists('PHPUnit_Runner_Version') { Config::inst()->remove('SSViewer', 'theme'); }
476: [08:57:49] <kinglozzer> Then if any of your tests need your theme, add a setUp() function that adds your theme
477: [08:57:56] <kinglozzer> (then remove it in tearDown())
478: [08:58:03] <kinglozzer> That's the only workaround I can think of
479: [08:58:53] <Otterpocket> Cool, thanks, Ill create an Issue on the Repo
480: [09:03:22] * chocolatemoose has joined #silverstripe
481: [09:05:09] <Otterpocket> Anyone here using Codeship + Silverstripe?
482: [09:05:31] * antmas has joined #silverstripe
483: [09:05:38] * spronka has joined #silverstripe
484: [09:06:00] <antmas> anyone now much about <% if $Multiple(x) %> ?
485: [09:06:03] <antmas> know*
486: [09:08:00] * novaweb has joined #silverstripe
487: [09:08:26] <kinglozzer> antmas: MultipleOf ? What's to know about it? :P
488: [09:08:48] <antmas> well, I'm having trouble laying out a grid (bootstrap)
489: [09:09:29] <antmas> I'm not sure how to add a new <div class='row'> after 2 items (grid items)
490: [09:10:01] <antmas> like I need to wrap 4 columns inside 'row'
491: [09:10:13] <antmas> then repeat after every 2 items
492: [09:10:18] <antmas> if that makes sense :P
493: [09:10:31] <antmas> kinglozzer: I have this http://www.sspaste.com/paste/show/561cca280eb69
494: [09:10:54] <antmas> sorry, 2 columns inside a 'row'
495: [09:11:38] <kinglozzer> I'm confused antmas :P if it's multiple of 2 can't you use even/odd?
496: [09:11:59] <antmas> kinglozzer: hmmmm
497: [09:12:03] <kinglozzer> <% if $First || $Odd %> <div class="row"> <% end_if %> .... <% if $Last || $Even %> </div> <% end_if %> ?
498: [09:12:21] <antmas> kinglozzer: I'll try that
499: [09:12:21] <kinglozzer> Well, $First is always odd, but yaknow
500: [09:13:15] <antmas> I'm not sure that's what I want
501: [09:14:35] <antmas> ok
502: [09:14:41] <antmas> so I have 8 items in my GridField
503: [09:14:53] <antmas> after every 2 items, do a new 'row'
504: [09:15:07] <antmas> inside that 'row' are 2 items
505: [09:18:31] * Tanger quit (Quit: sleep())
506: [09:19:36] * Azure quit (Ping timeout: 265 seconds)
507: [09:19:52] <kinglozzer> I see, so you want a new row every 4 items?
508: [09:21:54] <antmas> not quite, a new row every 2 items
509: [09:22:08] <antmas> inside an 'item' is a couple of divs
510: [09:22:12] <antmas> 2 divs*
511: [09:24:42] <antmas> in that paste
512: [09:25:05] <antmas> it is taking the every 2nd item and ignoring the others
513: [09:28:49] * antmas quit (Quit: Page closed)
514: [09:31:43] * joelpittet has joined #silverstripe
515: [09:36:18] * joelpittet quit (Ping timeout: 246 seconds)
516: [09:47:50] * jcwacky quit (Quit: jcwacky)
517: [09:59:52] * novaweb quit (Remote host closed the connection)
518: [10:14:30] * Pywevhpnk quit (Ping timeout: 246 seconds)
519: [10:15:37] * novaweb has joined #silverstripe
520: [10:27:26] * chocolatemoose quit ()
521: [10:44:55] <wmk> do we need different nginx settings for 3.2?
522: [10:45:02] <wmk> kinglozzer, ^^
523: [10:45:19] <kinglozzer> wmk: Not that I'm aware of
524: [10:50:16] * Mike123_ has joined #silverstripe
525: [10:50:25] * Otterpocket quit (Quit: Leaving)
526: [10:53:21] * Mike123 quit (Ping timeout: 246 seconds)
527: [11:16:23] * DanaeNZ has joined #silverstripe
528: [11:20:36] * DanaeNZ quit (Ping timeout: 246 seconds)
529: [11:25:25] <cupcake> ola o/
530: [11:25:43] <cupcake> is there a filter on a dataobject which reflects not in ?
531: [11:25:53] <cupcake> like ID NOT IN (1,2,3....)
532: [11:28:13] <swaiba> on data list yes cupcake
533: [11:28:27] <swaiba> $list->exclude('ID',array(1,2,3))
534: [11:31:53] <cupcake> cheers :)
535: [11:32:38] * joelpittet has joined #silverstripe
536: [11:35:15] * Otterpocket has joined #silverstripe
537: [11:36:21] <Otterpocket> Hi, What is the correct way(if there is) to create an abstract class of a DataObject ?
538: [11:37:39] * joelpittet quit (Ping timeout: 256 seconds)
539: [11:38:10] <Otterpocket> Or should I be Using DataExtension for this?
540: [11:39:36] * novaweb quit (Remote host closed the connection)
541: [11:47:16] <swaiba> Otterpocket I'd always suggest an extension
542: [11:50:03] <Otterpocket> swaiba, Now I cant tell which Class my Classes extend without reading the config
543: [11:50:58] <swaiba> Otterpocket well yes, with respect it's something I remember
544: [11:51:31] <swaiba> if you need to do this programmatically I'm sure that is possible, but it's not something I've remembered :)
545: [11:52:11] <Otterpocket> swaiba, I mean for other team members, its more confusing
546: [11:53:15] <swaiba> I don't know how to advise you on that, obviously there are many ways of increasing team knowledge
547: [11:53:36] <swaiba> otherwise find the programic method, must be in classinfo...
548: [11:53:41] <Otterpocket> I guess I could chnage the directory structure to models/animal/extensions etc
549: [11:53:50] <Otterpocket> change*
550: [11:55:27] <swaiba> Object::get_extensions('DataObject') should return you a list of extension Otterpocket
551: [11:55:58] <swaiba> so that can be used where you need to know "go left or go right" based on if there is an extension
552: [11:56:36] <Otterpocket> swaiba, Oh, thats handy, thanks
553: [12:04:32] * EasyCo quit (Quit: Connection closed for inactivity)
554: [12:19:56] <swaiba> https://silverstripe.uservoice.com/forums/251266-new-features/suggestions/9393579-signpost-clearly-if-logged-in-during-reset-passswo
555: [12:20:06] <swaiba> any chance folks could up vote this?
556: [12:20:41] <swaiba> I've just been asked by yet another member of staff (non-developer) and after countless support tickets
557: [12:23:08] * hugs-bison quit (Ping timeout: 252 seconds)
558: [12:24:17] * Frans_Amsterdam has joined #silverstripe
559: [12:31:13] * hugs-bison has joined #silverstripe
560: [12:34:15] * cloph_away is now known as cloph
561: [12:40:10] * novaweb has joined #silverstripe
562: [12:44:30] * novaweb quit (Ping timeout: 240 seconds)
563: [13:00:51] * DanaeNZ has joined #silverstripe
564: [13:04:03] <ss-helper> SilverStripe 3.0.6-rc2 Security Release - https://groups.google.com/d/msg/silverstripe-announce/UfqJL9-ay1A/3Ltb-eu1TSQJ
565: [13:19:04] <ss-helper> SilverStripe 2.4.12 Security Release - https://groups.google.com/d/msg/silverstripe-announce/WckJVz7BS7E/qy4kfD2XS0sJ
566: [13:21:37] <wmk> a 2.4 security release after EOL? dream on ss-helper
567: [13:23:20] * headtrip has joined #silverstripe
568: [13:23:38] <headtrip> Hey Guys, is there a Template-Thing to say "Do not parse the following as template"?
569: [13:24:00] <headtrip> because we have something with a lot of $-signs and stuff and it gets parsed as template
570: [13:26:46] <swaiba> headtrip only comments I think
571: [13:27:32] <swaiba> headtrip.. update...
572: [13:27:32] <swaiba> https://docs.silverstripe.org/en/3.1/developer_guides/templates/syntax/
573: [13:27:44] <swaiba> You can also use a backslash to escape the name of the variable, such as:
574: [13:27:53] <swaiba> $Foo // returns "3"
575: [13:27:54] <swaiba> \$Foo // returns "$Foo"
576: [13:28:06] <swaiba> (assuming function Foo() {return 3;}
577: [13:33:34] * joelpittet has joined #silverstripe
578: [13:37:18] <headtrip> okay guys, thanks :)
579: [13:37:26] <headtrip> will do the backslash method
580: [13:37:38] * Otterpocket quit (Quit: Leaving)
581: [13:38:22] * joelpittet quit (Ping timeout: 244 seconds)
582: [13:46:56] * NETim has joined #silverstripe
583: [13:47:27] <NETim> Morning, whats the best way to limit a datalist by an objects related object?
584: [13:50:08] * muskie9 has joined #silverstripe
585: [13:51:06] <kinglozzer> NETim: $list->filter('Object.Title', 'Foo'); ?
586: [13:51:26] <NETim> kinglozzer, no need to join?
587: [13:51:34] <kinglozzer> Nah, it'll do it for you
588: [13:51:35] <NETim> (I might be having a MySQL/literal day)
589: [13:51:38] <NETim> cool.
590: [13:52:43] <NETim> it is filter(array("something:GreaterThan" => $value))?
591: [13:54:17] <kinglozzer> NETim: Yeah you can do that
592: [13:54:53] <NETim> cheers. For some reason, I had to do a leftJoin?
593: [13:55:31] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
594: [13:57:40] * Nafetsch has joined #silverstripe
595: [13:57:42] <kinglozzer> NETim: Did you do ->filter(array('RelationName.FieldName:GreaterThan' => $value)); ?
596: [13:57:45] <Nafetsch> hey guys
597: [13:57:53] <Nafetsch> I have a problem with lumberjack
598: [13:57:58] <kinglozzer> DataList/DataQuery *should* do the join for you
599: [13:58:32] * wilson has joined #silverstripe
600: [13:58:33] <Nafetsch> cant add user in the cms on securety button
601: [13:58:44] <NETim> -should- being the operative word.
602: [13:58:48] <Nafetsch> because of lumberjack I guess
603: [13:58:56] * wilson is now known as Guest65813
604: [13:59:44] <Guest65813> Hi, get this 500 Error when i try to add a new Email Recipient using User Defined Form. => http://mysite.com/ss/admin/pages/edit/EditForm/field/EmailRecipients/item/new
605: [14:00:26] <swaiba> Guest65813 !debug
606: [14:00:41] <kinglozzer> Nafetsch: I'm using Lumberjeck (installed by blog module) and I can add members
607: [14:00:43] <swaiba> that is to say... I suggest you turn on debug mode
608: [14:01:00] <Nafetsch> kinglozzer mhmh thx.
609: [14:01:12] <kinglozzer> Nafetsch: Are you using it standalone?
610: [14:01:20] <swaiba> NETim not sure why "should" comes into it leftJoin is fine
611: [14:01:33] <Nafetsch> with the blog
612: [14:01:47] <Nafetsch> PHP Fatal error: Call to a member function allowedChildren() on a non-object in /var/www/vhosts/xxxx/httpdocs/lumberjack/code/forms/gridfield/GridFieldSiteTreeAddNewButton.php
613: [14:01:52] <kinglozzer> swaiba: I mean that you shouldn't need to do the left join
614: [14:02:05] <kinglozzer> DataQuery should do it for you if you filter on a related object
615: [14:02:06] <swaiba> Guest65813 https://docs.silverstripe.org/en/3.1/developer_guides/debugging/
616: [14:02:16] <Nafetsch> kinglozzer PHP Fatal error: Call to a member function allowedChildren() on a non-object in /var/www/vhosts/xxxx/httpdocs/lumberjack/code/forms/gridfield/GridFieldSiteTreeAddNewButton.php
617: [14:02:21] <swaiba> kinglozzer ah - I get you - but still the join is much more efficeint
618: [14:02:24] <NETim> swaiba, thanks. Was just confused. I had the same impression as kinglozzer in that it should have done the join for me.
619: [14:02:36] <kinglozzer> swaiba: Why? :P
620: [14:03:36] <swaiba> kinglozzer well reading the example I didn't think it would work at all TBH
621: [14:03:52] <swaiba> if relationship name can be a manymany named relationship for eaxmple
622: [14:03:55] <kinglozzer> Nafetsch: Did you install the correct version?
623: [14:04:01] <swaiba> I didn't think SS did that
624: [14:04:21] <Nafetsch> kinglozzer: good question. this is the only version where the blog works :)
625: [14:04:25] <swaiba> and to avoid a join I'd expect to do one query and then use the result in the other to avoid
626: [14:04:38] <Nafetsch> kinglozzer I will try an other version
627: [14:04:56] <swaiba> which means that you'd always do the first query, which isn't tru if they were combine MySQL would only execute what is needed
628: [14:05:04] <swaiba> (and of course saves teh two requests)
629: [14:05:33] <Nafetsch> kinglozzer I think the problem is I did use it everywhere
630: [14:05:57] <Nafetsch> BlogHolder:
631: [14:05:58] <Nafetsch> extensions:
632: [14:05:58] <Nafetsch> - 'Lumberjack'
633: [14:05:59] <Nafetsch> BlogEntry:
634: [14:06:01] <Nafetsch> show_in_sitetree: false
635: [14:06:14] <Nafetsch> but I don´t have an effect
636: [14:06:21] <Nafetsch> it
637: [14:06:32] <kinglozzer> swaiba: DataList::filter() will call DataQuery::applyRelation() which will add all the joins needed to the one query
638: [14:06:49] <kinglozzer> How it handles actually filtering if you do ->filter('ManyManyRelations:Title', 'Foo'); I don't actually know :P
639: [14:07:29] <kinglozzer> I assume that's handled at the db level, looks like it just adds a where clause...
640: [14:10:12] <NETim> eh? trying to use :greaterthanorequalto and getting: Call to a member function setValue() on a non-object
641: [14:12:01] <Nafetsch> kinglozzer: which version you use?
642: [14:13:55] <kinglozzer> NETim: Lose the 'to'
643: [14:14:38] <NETim> tried that.
644: [14:14:43] <kinglozzer> Nafetsch: https://github.com/silverstripe/silverstripe-blog/tree/2.1.0
645: [14:15:03] <kinglozzer> NETim: Are you passing a numeric array instead of associative or something?
646: [14:15:10] <NETim> passing a date.
647: [14:15:31] <kinglozzer> NETim: Can you paste? :)
648: [14:15:35] <NETim> the filter modifiers just modify the comparitor on the query though, don't they?
649: [14:16:21] <NETim> http://www.sspaste.com/paste/show/561d122f722b8
650: [14:16:55] * patricknelson has joined #silverstripe
651: [14:19:20] * patricknelson1 has joined #silverstripe
652: [14:19:21] <ss-helper> patricknelson1: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
653: [14:19:31] <Nafetsch> kinglozzer and which lumberjack version?
654: [14:20:29] * patricknelson1 quit (Remote host closed the connection)
655: [14:21:24] * patricknelson quit (Ping timeout: 264 seconds)
656: [14:21:31] <muskie9> kinglozzer is there something somewhere detailing end of life for SS versions? trying to start to work in maintenance items more regularly with contracts
657: [14:22:04] <muskie9> even if it's just a general x-months after y-release or something
658: [14:22:42] <kinglozzer> muskie9: I'm not sure, is this any help? https://docs.silverstripe.org/en/3.1/contributing/release_process/#supported-versions
659: [14:22:48] <kinglozzer> Nafetsch: Whichever version composer pulls in
660: [14:23:01] * patricknelson has joined #silverstripe
661: [14:23:39] <muskie9> that works, thnx... it'll get easier to be more specific as the release process smooths out from semvar I suppose
662: [14:25:41] * patricknelson quit (Remote host closed the connection)
663: [14:46:27] * Mike123_ quit (Ping timeout: 246 seconds)
664: [14:48:56] * Nafetsch quit ()
665: [14:54:09] <Guest65813> HI to all, User Defined Form module gives me a lot of errors. I am in Dev mode, and no errors is reported to i can't add a new recipient without getting a generic Error 500 message. Is there some other module to create forms on SS?
666: [14:55:15] <muskie9> Guest65813 what version of the module are you using?
667: [14:55:55] <muskie9> and do you have gridfieldextensions and segment-field modules installed as they are requirements
668: [14:56:01] <muskie9> https://github.com/silverstripe/silverstripe-userforms/blob/master/composer.json#L29
669: [14:57:12] <muskie9> gridfieldextensions: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions
670: [14:57:20] <muskie9> segment-field: https://github.com/assertchris/silverstripe-segment-field
671: [14:57:31] <Guest65813> <muskie9>Ok will check that out. Later.
672: [14:58:48] * Otterpocket has joined #silverstripe
673: [14:58:48] * Otterpocket quit (Changing host)
674: [14:58:48] * Otterpocket has joined #silverstripe
675: [15:00:51] <Guest65813> <muskie9>Ok it seems to work. Thanks!
676: [15:00:53] * Guest65813 quit (Quit: Page closed)
677: [15:07:09] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
678: [15:09:14] <swaiba> muskie9 - before he left would have been good to point to composer.json ...
679: [15:09:56] <muskie9> I did: [09:56:01] <muskie9> https://github.com/silverstripe/silverstripe-userforms/blob/master/composer.json#L29
680: [15:11:38] * Eliseth quit (Ping timeout: 268 seconds)
681: [15:31:05] * joelpittet has joined #silverstripe
682: [15:35:15] * DanaeNZ quit (Ping timeout: 252 seconds)
683: [15:44:48] * wmk quit (Ping timeout: 264 seconds)
684: [15:45:38] <cupcake> guys
685: [15:45:57] <cupcake> i have a task
686: [15:46:03] <cupcake> which calls doUnpublish
687: [15:46:16] <cupcake> but if im not logged in and i run it through putty
688: [15:46:23] <cupcake> the record does not get unpublish
689: [15:46:27] <cupcake> the record does not get unpublished
690: [15:53:32] <AlphaCactus> If i recall there is another step?
691: [15:58:30] <AlphaCactus> hm no, doesn't appear that you have to.
692: [15:59:01] * BrewNaked has joined #silverstripe
693: [15:59:01] <ss-helper> BrewNaked: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
694: [16:02:07] * Alboes has joined #silverstripe
695: [16:03:43] * UndefinedOffset has joined #silverstripe
696: [16:03:57] <Alboes> hi. Is there a possibility to show an extra message after adding a dataobject in the cms? There is already a default message "dataobject #1 saved", but I want to show extra messages
697: [16:05:35] * muskie9 quit (Ping timeout: 264 seconds)
698: [16:07:15] <swaiba> muskie9 my bad
699: [16:07:19] <swaiba> opps gone
700: [16:16:14] * qlex has joined #silverstripe
701: [16:16:19] <qlex> hey guys
702: [16:16:31] <qlex> i might be on a mission to update a client from ss 2.4.2 soon
703: [16:16:55] <qlex> i have managed to get the 2.4.2 installation work (all files + db content) on my localhost xampp installation
704: [16:17:18] <qlex> and have spent half of day trying to update it to 3.1.2 (which i had worked on recently)
705: [16:17:43] <qlex> managed to get almost everything done (with small exceptions, including displaying latest news on main page, using ssdropdownmenu module etc)
706: [16:17:57] <qlex> but in the process, i lost the correct encoding of polish characters
707: [16:18:04] <qlex> what was i doing wrong?
708: [16:18:13] <qlex> this is my first question
709: [16:19:07] <qlex> my second question is which theme should i start with, if im to replace the current theme with a responsive one - seen some themes in addons.silverstripe.org like metro or silverstrap - but could any1 suggest which one is a good theme to start with (that would have a bunch of UI elements to be used easily in builing new website)
710: [16:27:20] * muskie9 has joined #silverstripe
711: [16:27:48] * Otterpocket quit (Quit: Leaving)
712: [16:27:55] <qlex> brb
713: [16:27:56] * qlex has left #silverstripe
714: [16:27:57] <swaiba> muskie9 my bad
715: [16:28:09] <muskie9> no worries, it was in a slew of links ;P
716: [16:28:19] * kinglozzer quit ()
717: [16:31:28] * stnvh quit (Quit: quit)
718: [16:38:11] * darjus01 has joined #silverstripe
719: [16:38:59] <darjus01> in 3.2 siteconfig is sperated?
720: [16:39:53] * qlex has joined #silverstripe
721: [16:40:02] <qlex> sorry back
722: [16:40:07] <qlex> did any1 see my 2 questions ?
723: [16:40:47] <swaiba> darjus01 yes, if using composer it is seemless
724: [16:40:52] * Alboes quit (Remote host closed the connection)
725: [16:41:21] <swaiba> qlex you use a non-unix machine?
726: [16:42:18] <muskie9> qlex your theme question, the new default theme (which is responsive) is simple https://github.com/silverstripe-themes/silverstripe-simple
727: [16:42:31] * Varis is now known as Copperis
728: [16:45:47] * swaiba quit (Remote host closed the connection)
729: [16:46:25] <qlex> swaiba: well, for now using windows laptop, with xampp installed so i can practise update and work on new theme
730: [16:46:35] <qlex> but clients installation is on vps server running on linux
731: [16:47:01] <qlex> muskie9: seen it, but im looking for theme that would be a box of UI elements that I could just use shortcuts in the ss files
732: [16:50:58] * Colin[pi] has joined #silverstripe
733: [16:57:18] * Copperis quit (Ping timeout: 246 seconds)
734: [16:57:24] <muskie9> darjus01 reports are also separated
735: [17:02:15] <darjus01> by siteconfig exmaple I would can make my own custom configs?
736: [17:02:31] <darjus01> I mean not extending
737: [17:03:40] * Copperis has joined #silverstripe
738: [17:08:25] * Motoservo has joined #silverstripe
739: [17:10:59] * GioVdK quit (Ping timeout: 264 seconds)
740: [17:14:54] <qlex> any1 ?
741: [17:15:00] <qlex> regarding the theme ?
742: [17:19:48] * cmcramer has joined #silverstripe
743: [17:25:53] * DimiStripe quit (Quit: DimiStripe)
744: [17:30:12] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
745: [17:34:15] * muskie9 has joined #silverstripe
746: [17:58:04] * Stomach has joined #silverstripe
747: [18:07:17] * qlex has left #silverstripe
748: [18:20:51] * novaweb has joined #silverstripe
749: [18:21:14] <terryapodaca> This place going to be empty this week?
750: [18:21:26] <terryapodaca> with the silverstripe thingy going on
751: [18:22:27] * Stomach quit (Quit: zzz)
752: [18:22:53] * headtrip quit (Quit: (null))
753: [18:36:10] <muskie9> if I have 3 steps for a multiform and want to allow for linking back to the first step for edits from the 3rd step, is that possible? been digging through the code and I think I might have a poor solution, but wanted to check if there was something simple before I dig in
754: [18:41:15] * Stomach has joined #silverstripe
755: [19:07:50] <Sphere> Afternoon folks
756: [19:15:06] * wmk has joined #silverstripe
757: [19:17:08] <wmk> Sphere, around?
758: [19:17:52] <Sphere> Jep
759: [19:18:07] <Sphere> Busy, but around, I might react slow ;)
760: [19:25:07] * Motoservo quit (Read error: No route to host)
761: [19:25:55] * Motoservo has joined #silverstripe
762: [19:26:55] * helenclarko has joined #silverstripe
763: [19:40:46] <wmk> anyone tried silverstripe with mariadb?
764: [19:41:06] <Sphere> Yes, I do. All the time. Works perfectly fine.
765: [19:41:37] <Sphere> No issues. Maria is backward compatible with MySQL, so you can even migrate. I did it at least on 4 sites.
766: [19:42:03] <wmk> well, sql export and import at maria should work
767: [19:42:13] * wmk waits for josephDB
768: [19:42:37] <Sphere> Import/export are cross-compatible.
769: [19:42:49] <Sphere> At least, I have not yet experienced any issues.
770: [19:43:12] <Sphere> My Vagrant box even runs on Maria, while my live-site runs on MySQL ;)
771: [19:43:33] <wmk> and what's the biggest pro for ss sites if i switch to maria?
772: [19:43:49] <Sphere> Maria is faster.
773: [19:43:53] <Sphere> MUCH faster.
774: [19:44:16] <wmk> really? ok. that's an argument
775: [19:45:12] <Sphere> Considering one of my biggest websites, the biggest query on MySQL took about 1.3ms
776: [19:45:23] <Sphere> On MariaDB, this same query took about 0.7
777: [19:45:37] <Sphere> A repeated action, took on MySQL about 0.8ms
778: [19:45:48] <Sphere> Where MariaDB took about 0.2ms
779: [19:46:00] <Sphere> The indexes are way more efficient on MariaDB
780: [19:48:22] <wmk> oh key
781: [19:59:38] <Stomach> wmk - you know why its named MariaDB? :D
782: [19:59:46] <wmk> Stomach, no
783: [19:59:55] <Stomach> its his daughters name
784: [20:00:04] <Stomach> he thought she deserved to be famous
785: [20:00:41] <wmk> Stomach, every daughter deserves to be famous
786: [20:00:47] <Stomach> awww
787: [20:01:09] <wmk> (at least that's what parents think before puberty)
788: [20:07:07] * adrexia has joined #silverstripe
789: [20:08:50] * glenn-bautista has joined #silverstripe
790: [20:14:36] * micmania1 has joined #silverstripe
791: [20:15:28] * Stomach quit (Ping timeout: 272 seconds)
792: [20:20:20] <Sphere> Almost time for bed!
793: [20:20:40] <Sphere> Anyone here I'll be meeting thursday or friday?
794: [20:21:07] * Stomach has joined #silverstripe
795: [20:22:14] * DimiStripe has joined #silverstripe
796: [20:29:43] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
797: [20:40:52] * gelignite has joined #silverstripe
798: [20:45:01] * joelpittet quit ()
799: [20:45:31] * muskie9 has joined #silverstripe
800: [20:45:59] * antmas has joined #silverstripe
801: [20:46:06] <antmas> guten morgen!
802: [20:47:16] * UndefinedOffset quit (Quit: Leaving.)
803: [20:49:57] <ss-helper> Blank White Screen After Install - http://stackoverflow.com/questions/33112306/blank-white-screen-after-install
804: [20:51:00] <wmk> antmas, n'abend
805: [20:54:34] <antmas> :D
806: [20:56:14] <antmas> anyone know any good tools for drawing up data flow diagrams?
807: [20:58:03] <antmas> I'm installing Visio 2016 but my memories of using that in the past have been... not great
808: [20:59:31] <adrexia> gliffy
809: [20:59:50] <adrexia> https://www.gliffy.com
810: [21:00:26] <antmas> adrexia: cheers
811: [21:00:37] <adrexia> I love gliffy :D
812: [21:00:39] <antmas> funnily enough, that actually looks very similar to Vision 2016 :P
813: [21:01:03] <adrexia> it's web based ands I can open the goddamn files :P
814: [21:01:18] <adrexia> also, can export to svg, pdf etc
815: [21:02:05] <adrexia> plus, you can share and collaborate easily
816: [21:02:47] * BrewNaked quit (Remote host closed the connection)
817: [21:03:05] <antmas> wicked - I'll take a look at that one
818: [21:04:02] * muskie9__ has joined #silverstripe
819: [21:04:17] * muskie9 quit (Read error: Connection reset by peer)
820: [21:05:55] * muskie9__ is now known as muskie9
821: [21:07:28] * xyphoid quit (Ping timeout: 252 seconds)
822: [21:08:51] * wmk quit (Read error: Connection reset by peer)
823: [21:09:16] * wmk has joined #silverstripe
824: [21:16:09] * DanaeNZ has joined #silverstripe
825: [21:16:53] <DanaeNZ> gtting sick nooooo
826: [21:17:07] * joelpittet has joined #silverstripe
827: [21:17:15] <antmas> DanaeNZ: like a cold thing?
828: [21:17:29] <DanaeNZ> yeh coworker had the flu type thing
829: [21:17:34] <antmas> blegh
830: [21:17:38] <DanaeNZ> i think i've already had it tho
831: [21:17:41] <DanaeNZ> so might be saf
832: [21:17:45] <antmas> dat flu immunisation
833: [21:18:05] <DanaeNZ> old company didn't offer it last year x_x
834: [21:18:11] <antmas> :O
835: [21:18:18] <antmas> ours did, but still had to pay like $20
836: [21:18:23] <antmas> I get mine free anyway though
837: [21:20:07] <antmas> DanaeNZ: do you have asthma or anything?
838: [21:20:18] <DanaeNZ> noep
839: [21:22:38] <antmas> dang, that's what gives me my free injection
840: [21:22:44] <antmas> :P
841: [21:23:45] * darjus01 quit (Quit: Leaving)
842: [21:24:26] * Colin[pi] quit (Read error: Connection reset by peer)
843: [21:24:47] * xyphoid has joined #silverstripe
844: [21:34:08] * Motoservo quit (Remote host closed the connection)
845: [21:34:53] * Motoservo has joined #silverstripe
846: [21:42:08] <irogue> mornin'
847: [21:42:13] * Copperis quit (Read error: Connection reset by peer)
848: [21:43:33] <muskie9> is there a good example of using FileField to upload an image, then process it floating around? last piece to my multi-form puzzle
849: [21:44:06] <muskie9> api shows file_get_contents() but that errors for me
850: [21:44:30] <irogue> what do you mean by "process it floating around"?
851: [21:44:45] <muskie9> a tut floating around, or docs
852: [21:45:14] <muskie9> http://api.silverstripe.org/3.1/class-FileField.html
853: [21:45:39] <muskie9> the example there errors for me, main diff is I'm using multi-form... not sure if that affects it at all
854: [21:45:57] <irogue> what error?
855: [21:46:24] <muskie9> file_get_contents($myTmpName) isn't working
856: [21:46:38] <muskie9> I'll try to get the error and pst the code to show...
857: [21:47:55] * DanaeNZ quit (Remote host closed the connection)
858: [21:49:29] <adrexia> muskie9 what are you trying to do when you say 'process it'?
859: [21:50:12] <muskie9> really just get the file contents at this point, then move forward... per the api
860: [21:50:14] <adrexia> that example is for trying to read the text from a file I think
861: [21:50:25] <adrexia> ...but you are uploading an image?
862: [21:50:32] <muskie9> ah, that's true, and yes
863: [21:50:46] <adrexia> so, what image processing do you want to do?
864: [21:51:00] * DanaeNZ has joined #silverstripe
865: [21:51:06] <muskie9> add it to the FileSystem as an image and associate it to the member I'm creating
866: [21:51:16] <adrexia> oh, easy :)
867: [21:51:24] <muskie9> that's good to hear lol
868: [21:51:29] <adrexia> umm, let's see if I can fiund something
869: [21:51:49] <muskie9> I started with UploadField, but the formatting of that field on the frontend is ass
870: [21:51:54] <adrexia> the filefield should handle the upload, btw
871: [21:52:00] <adrexia> yep
872: [21:53:21] <irogue> [10:51:06] <muskie9> add it to the FileSystem as an image and associate it to the member I'm creating
873: [21:53:36] <irogue> yeah ok you shouldn't be going anywhere near file_get_contents just to do that, its practically default behaviour
874: [21:54:13] <muskie9> here's my debug when I'm processing the step's data for the image I selected: http://puu.sh/kJgap/67fe33b46f.png
875: [21:54:33] <adrexia> irogue, know of a good example?
876: [21:54:46] <adrexia> yeah, it is - works much like the otehr form fields
877: [21:55:00] <muskie9> so is that file in the FileSystem then? or how do I move it from temp to the FileSystem and create the Image record
878: [21:55:03] <adrexia> give it the corretc formfield name and your form->saveinto bit should do the rest
879: [21:55:09] <adrexia> yep - it is
880: [21:55:17] <muskie9> gotcha, I'll try that, thnx
881: [21:55:22] <adrexia> muskie9 - silerstirpe does that for you
882: [21:55:32] * antmas throws some waves up \o/
883: [21:55:41] <adrexia> * silverstripe
884: [21:55:43] <muskie9> do I have to do 'MyImageRelationID' rather than 'MyImageRelation'
885: [21:55:48] <muskie9> as it's a has_one
886: [21:56:15] <adrexia> for some reason files are different
887: [21:56:27] <muskie9> gotcha
888: [21:56:30] <adrexia> not sure why...
889: [21:57:16] <adrexia> FileField::create('MyImageFile', 'My Image')
890: [21:57:18] <muskie9> if I'm looping over my steps for the multi-form, assuming naming for fields match the db/relations can I do $myStep->saveInto($newMember)
891: [21:58:12] <adrexia> are you using this? https://github.com/silverstripe/silverstripe-multiform
892: [21:58:44] <muskie9> ya, if it was a normal form I'd be done, but other agency likes to complicate things for us devs cause they have none lol
893: [21:59:02] * Colin[pi] has joined #silverstripe
894: [21:59:12] <adrexia> hahah
895: [21:59:26] * Azure has joined #silverstripe
896: [22:00:11] <antmas> Colin[pi]: o/
897: [22:00:14] <antmas> Azure: o/
898: [22:02:37] <wmk> stderr: PHP Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in
899: [22:02:38] <wmk> /framework/model/connect/PDOConn
900: [22:02:38] <wmk> ector.php on line 147
901: [22:02:53] <wmk> on a very fresh install
902: [22:03:08] <irogue> wmk: trying to use a PDO with non-mysql database?
903: [22:03:40] <wmk> nope, freshly installed mysql...
904: [22:04:19] <irogue> got the relevant mysql package installed?
905: [22:04:24] <irogue> e.g. php5-mysql
906: [22:04:35] <Colin[pi]> antmas: o/\
907: [22:04:37] <Colin[pi]> wtf
908: [22:04:38] <Colin[pi]> o/
909: [22:05:12] <antmas> Colin[pi]: lol, it's a person clapping for himself in the air
910: [22:05:24] <antmas> 'Good job, me!' /\o o/\
911: [22:05:31] <wmk> irogue, yup.. .doesn't seem to have mysql package installed. let's check..
912: [22:05:57] <Colin[pi]> antmas: XD
913: [22:06:00] * Azure quit (Ping timeout: 246 seconds)
914: [22:09:37] * cmcramer quit (Quit: Textual IRC Client: www.textualapp.com)
915: [22:09:56] <novaweb> dox for overwriting default title on dataobject?
916: [22:10:14] <novaweb> done many times, forgot
917: [22:10:21] <irogue> by title do you mean what shows up on a gridfield etc?
918: [22:10:26] <novaweb> yes
919: [22:10:33] <novaweb> overriding
920: [22:10:35] * jules0x quit (Ping timeout: 260 seconds)
921: [22:10:35] <novaweb> gah
922: [22:10:45] <irogue> private static $singular_name = "Bang"; private static $plural_name = "Bangs";
923: [22:11:08] <novaweb> what about as the record for associated DO's, like has_many
924: [22:11:14] * jules0x has joined #silverstripe
925: [22:11:16] <novaweb> or is that it
926: [22:12:26] <wmk> irogue, thanks
927: [22:12:53] <novaweb> Businesses has many reports. Instead of BusinessID I want BusinessName . " " . BusinessID on the report
928: [22:13:07] <novaweb> done this sooo many times. gah
929: [22:13:21] <irogue> novaweb: you mean getTitle()?
930: [22:13:55] <irogue> public function getTitle() { return $this->BusinessName . ' ' . $this->ID; }
931: [22:22:02] <novaweb> irogue, I thought so but was throwing errors
932: [22:22:08] <novaweb> thanks for pointing in the right direction
933: [22:22:11] <novaweb> this was my issue http://www.silverstripe.org/community/forums/general-questions/show/25216
934: [22:23:04] * Azure has joined #silverstripe
935: [22:26:07] <ss-helper> PHP replace URL segment with str_replace(); - http://stackoverflow.com/questions/33113606/php-replace-url-segment-with-str-replace
936: [22:28:24] <irogue> novaweb: ah, didn't realise you were trying to call $this->Title inside of getTitle() or I'd have corrected that :)
937: [22:30:47] <novaweb> Thank you
938: [22:31:09] <novaweb> is there any way of doing getField('Date.Nice'); ?
939: [22:31:17] <novaweb> or do I just need ()
940: [22:31:19] <novaweb> hmmm
941: [22:33:18] * camfindlay has joined #silverstripe
942: [22:33:43] <Colin[pi]> novaweb: isn't it just $this->dbObject('Date')->Nice() ?
943: [22:34:20] <novaweb> inside getField?
944: [22:35:26] <DanaeNZ> what's y'all favourite way to password protect a whole site. Tossing up between the init function or just a canView on the Page class
945: [22:36:17] <novaweb> DanaeNZ BasicAuth::protect_entire_site(); in _config.php
946: [22:36:21] <Colin[pi]> DanaeNZ: you can set global permissions in Settings > Access
947: [22:36:26] <muskie9> novaweb that's a thing?
948: [22:36:35] <muskie9> I usually do what Colin[pi] said
949: [22:36:37] <DanaeNZ> basic auth is not so user friendly looking tho
950: [22:36:45] <DanaeNZ> you can put SS_USE_BASIC_AUTH in the ss env file too
951: [22:36:49] <DanaeNZ> Colin[pi]: oh right awesome
952: [22:36:51] <novaweb> It depends on what you're going for...
953: [22:37:02] <Colin[pi]> DanaeNZ: yeahm set it up using Security and protect the whole setting in Settings > Access
954: [22:37:04] <irogue> basic auth is good imo because it still allows people to view the site in both "logged-in" and "guest" views
955: [22:37:05] <Colin[pi]> m = ,
956: [22:37:19] <Colin[pi]> irogue: mm true
957: [22:37:28] <irogue> whereas if you use the Security > Access stuff theres no way to see what a non-member sees
958: [22:37:36] <Colin[pi]> good point
959: [22:39:06] <novaweb> BasicAuth::protect_entire_site(); is usually used for when you're in UAT/TEST/PREPROD and are undertaking testing etc
960: [22:39:26] <Colin[pi]> til
961: [22:39:33] <Colin[pi]> I didn't even know about that feature
962: [22:39:51] <novaweb> (y)
963: [22:40:03] <Colin[pi]> 👍
964: [22:40:06] <novaweb> guess after ten years of asking questions im finally coming in handy
965: [22:40:24] <Colin[pi]> everything is coming up novaweb
966: [22:40:32] <novaweb> :)
967: [22:41:44] <DanaeNZ> hey we all learned something today
968: [22:48:20] * muskie9__ has joined #silverstripe
969: [22:51:29] * muskie9__ quit (Read error: Connection reset by peer)
970: [22:52:09] * muskie9 quit (Ping timeout: 255 seconds)
971: [22:52:53] * muskie9 has joined #silverstripe
972: [23:01:17] * terryapodaca quit (Quit: Leaving.)
973: [23:01:31] * Stomach quit (Quit: zzz)
974: [23:11:00] <antmas> :O http://kotaku.com/fancy-pc-looks-like-a-future-killing-machine-1736343931
975: [23:12:56] <Colin[pi]> antmas: jesus
976: [23:14:33] <irogue> http://www.motherjones.com/mixed-media/2015/10/jennifer-connell-lawsuit-nephew-hug
977: [23:21:28] <Colin[pi]> "I was at a party recently," she explained. "And it was difficult to hold my hors d'oeuvre plate."
978: [23:21:31] <Colin[pi]> -_-
979: [23:23:40] <irogue> On Friday, local media reported Tarala sitting next to his father in court looking "confused." His mother died last year.
980: [23:24:04] <irogue> oh, my 12 year old nephew’s mother died last year? this seems like a good time to sue him for something he did 4 years ago.
981: [23:24:22] * BrewNaked has joined #silverstripe
982: [23:24:47] <irogue> i mean, its not like he's got anything else going on in his life, and my hors d'oeuvre eating is seriously impacted
983: [23:25:10] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
984: [23:25:56] <antmas> my westcoast brain reads that aloud as 'Horse Doover'
985: [23:26:21] <irogue> HORSE DOOVER
986: [23:26:40] <antmas> :D
987: [23:26:49] <irogue> I remember the utter confusion when I found out how its pronounced
988: [23:27:26] <antmas> I had to look it up just now :P
989: [23:27:33] <irogue> hahaha
990: [23:27:37] <antmas> I know the word, but have never seen it spelt :P
991: [23:27:39] <irogue> I take it you don't go to a lot of fancy parties ;)
992: [23:27:42] <DanaeNZ> oh it's like those words that you read all the time and hear all the time but never link them together
993: [23:27:48] <DanaeNZ> like "epitome"
994: [23:27:54] <antmas> Epic Tome
995: [23:28:07] <DanaeNZ> read it as "epi - tome" for like the first 15 years of my live
996: [23:28:15] <DanaeNZ> life* whatev
997: [23:28:25] <DanaeNZ> eh pit toh mee
998: [23:28:26] <antmas> I did once write the word Flannel and someone read it aloud as Flan Nell
999: [23:28:27] <antmas> :D
1000: [23:28:34] <DanaeNZ> haha
1001: [23:28:52] <antmas> or when my mate read the name 'Chloe' as SHLOW in a speech in 7th form
1002: [23:28:55] <antmas> that was LOL
1003: [23:29:05] <DanaeNZ> hmmmm i am considering writing this really whorey ternery statement
1004: [23:29:15] <DanaeNZ> lol like schlong
1005: [23:29:18] <DanaeNZ> schlow
1006: [23:29:30] <antmas> right, off for run and lunch
1007: [23:29:31] <antmas> o/
1008: [23:29:51] * antmas quit (Quit: Page closed)
1009: [23:30:12] <DanaeNZ> running? ew
1010: [23:30:26] <irogue> horrible idea
1011: [23:31:27] <irogue> speaking of schlong, http://iforce.co.nz/i/204zpysz.fut.png
1012: [23:32:31] * Colin[pi] does not click
1013: [23:32:44] <adrexia> I also have never seen that word written down and I read it as 'Horse Doofer'
1014: [23:32:45] <adrexia> ;)
1015: [23:32:54] <irogue> Colin[pi]: dude you work for yourself so its totally SFW
1016: [23:33:21] <adrexia> not in a million years would I have expected that was how that word was spelt
1017: [23:33:29] <Colin[pi]> irogue: yeah but it may not be SFB, safe for brain :P
1018: [23:34:38] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1019: [23:35:08] * Stomach has joined #silverstripe
1020: [23:35:45] <irogue> Colin[pi]: its one of those things I posted to facebook and then thought "I probably should have excluded my mother from that post"
1021: [23:35:52] <Colin[pi]> oh lol
1022: [23:38:19] * novaweb quit (Remote host closed the connection)
1023: [23:38:33] * novaweb has joined #silverstripe
1024: [23:39:04] * novaweb quit (Remote host closed the connection)
1025: [23:40:37] * joelpittet quit (Remote host closed the connection)
1026: [23:41:31] * micmania1 quit (Quit: micmania1)
1027: [23:45:45] * wmk quit (Read error: Connection reset by peer)
1028: [23:45:49] * xyphoid quit (Ping timeout: 256 seconds)
1029: [23:46:58] * spekulatius quit (Quit: Leaving)
1030: [23:48:12] * wmk has joined #silverstripe
1031: [23:50:55] * xyphoid has joined #silverstripe
1032: [23:51:56] * spekulatius has joined #silverstripe
1033: [23:54:49] * novaweb has joined #silverstripe

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