#silverstripe IRC Log

IRC log for 13 May 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:02] * micmania1 has joined #silverstripe
3: [00:00:06] <Hailwood> Hey folks, is it possible to disable augmentSQL for a specific query?
4: [00:00:17] * ss-helper has joined #silverstripe
5: [00:06:07] <Firesphere> for one specific query?
6: [00:06:12] <Firesphere> Which one would that be?
7: [00:08:45] <Hailwood> Firesphere, I want to get all blog posts authored by a user, including draft ones, issue is that the BlogFilter is automatically applied to BlogPost which adds a "where PublishDate < NOW()" type thing which filters out draft pages
8: [00:29:01] <Firesphere> You might want to find them by versioned instead then
9: [00:39:40] * micmania1 quit (Quit: micmania1)
10: [00:43:57] * BrewNaked quit ()
11: [00:55:52] * adrexia has joined #silverstripe
12: [01:03:10] * zlinux_ has joined #silverstripe
13: [01:06:05] * zlinux quit (Ping timeout: 276 seconds)
14: [01:15:15] * krofek has joined #silverstripe
15: [01:15:39] * krofek_ quit (Ping timeout: 276 seconds)
16: [01:24:00] * micmania1 has joined #silverstripe
17: [01:29:51] * wmk has joined #silverstripe
18: [01:30:03] * wmk quit (Read error: Connection reset by peer)
19: [02:02:41] <Hailwood> Firesphere, I gave that a go, unfortunately the augumentSQL function for theblog doesn't check the query reading stage, it checks the current site reading stage so ignores it.
20: [02:02:54] <Hailwood> Anyway, I got around it by sacrificing pagination for now
21: [02:12:31] * robbiea has joined #silverstripe
22: [02:27:47] * Audlex quit ()
23: [02:35:56] * Stomach quit (Quit: zzz)
24: [02:36:40] * Stomach has joined #silverstripe
25: [02:37:48] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
26: [02:41:31] * Hailwood quit (Remote host closed the connection)
27: [02:51:43] * UncleCheese has joined #silverstripe
28: [02:58:27] * zlinux_ quit (Ping timeout: 265 seconds)
29: [03:21:26] <Firesphere> Hey UC
30: [03:50:02] * kerozene has joined #silverstripe
31: [03:55:24] * robbiea quit (Remote host closed the connection)
32: [03:59:48] * jules0x quit (Quit: Leaving)
33: [04:05:46] * Stomach quit (Quit: zzz)
34: [04:14:51] * spronk quit (Quit: I may need a longer sleep timer...)
35: [04:17:00] * Stomach has joined #silverstripe
36: [04:28:03] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
37: [04:35:12] * zlinux has joined #silverstripe
38: [04:40:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
39: [05:22:01] * UncleCheese has joined #silverstripe
40: [05:45:19] * wmk has joined #silverstripe
41: [05:55:19] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
42: [06:08:40] * micmania1 quit (Quit: micmania1)
43: [06:10:51] * Stomach quit (Quit: zzz)
44: [06:20:37] * Stomach has joined #silverstripe
45: [06:30:22] * Eliseth has joined #silverstripe
46: [06:33:00] * irogue quit (Ping timeout: 246 seconds)
47: [06:41:44] * lerni has joined #silverstripe
48: [06:42:46] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
49: [06:46:59] * Agilix_ has joined #silverstripe
50: [06:52:20] * adrexia quit (Quit: Textual IRC Client: www.textualapp.com)
51: [07:01:45] * martijn_ has joined #silverstripe
52: [07:03:31] <martijn_> hi
53: [07:03:53] <martijn_> this looks like I can install silverstripe from teh command line :
54: [07:03:53] <martijn_> https://github.com/silverstripe/silverstripe-framework/blob/master/dev/install/install.php5#L214
55: [07:04:10] <martijn_> but i cant find any documentation for ti
56: [07:04:23] <martijn_> what command do I have to enter
57: [07:05:59] <martijn_> note to self::php framework/cli-script.php install
58: [07:06:19] <martijn_> after all these years :)
59: [07:07:26] <martijn_> find me using self::answer('me') in the irc darkroom
60: [07:08:37] * zlinux_ has joined #silverstripe
61: [07:10:58] * zlinux quit (Ping timeout: 252 seconds)
62: [07:22:17] * Stomach quit (Quit: zzz)
63: [07:22:48] <wmk> martijn_, ??? define "install"
64: [07:22:52] <wmk> normally you install it with composer
65: [07:22:56] <wmk> then you run
66: [07:23:06] <wmk> framework/sake dev/build flush=1
67: [07:23:48] <wmk> or if you have more php versions installed (e.g. server): php framwork/cli-script.php dev/build flush=1
68: [07:23:56] <martijn_> yeah but the _ss_environment.php was missing or not configured properly I guess
69: [07:24:12] <wmk> yup. you should configure that before.
70: [07:24:14] <martijn_> ou need that , otherwise it wont work.
71: [07:24:22] <wmk> that's for all machine specific stuff
72: [07:24:31] <wmk> like db connections etc.
73: [07:24:48] <martijn_> but
74: [07:25:11] <martijn_> the cli message suggest i can put a _ss_env file a directory below my projects
75: [07:25:17] <martijn_> but that file still needs a database name
76: [07:25:18] <wmk> you can
77: [07:25:35] <wmk> well, i have it out of the webroot, but still project specific
78: [07:25:36] <martijn_> thats odd in my opinion, since i dont want to set a 'global' database name
79: [07:25:44] <wmk> so i have a tree like
80: [07:25:48] <wmk> - all websites
81: [07:25:52] <wmk> -- website foo
82: [07:25:58] <wmk> --- www <- webroot
83: [07:26:20] <wmk> and _ss_env inside the website foo folder
84: [07:26:22] <martijn_> what i want is : install => provide missing config in cli and run the damn thing
85: [07:26:31] <martijn_> other frameworks can do it to
86: [07:26:58] <wmk> well.. dunno. maybe supersake can do that. didn't try it
87: [07:27:08] <martijn_> i build that
88: [07:27:15] <martijn_> its not capable of it
89: [07:27:17] <martijn_> yet
90: [07:27:21] <wmk> man - every day onother nic?
91: [07:27:33] <wmk> nick
92: [07:27:35] <martijn_> first need to figure out al the buildin cli shizzle
93: [07:28:11] <martijn_> no, normally im marvanni on irc, but im on another laptop thru the web client
94: [07:28:22] <wmk> well, there is the installer in the browser that checks stuff for you and generates the mysite/_config.php
95: [07:28:26] <wmk> i don't like that
96: [07:28:31] <martijn_> me neither
97: [07:28:33] * Stomach has joined #silverstripe
98: [07:29:11] <wmk> so i have my _ss_env i copy over and configure manually (it's just copy paste for the database and $FILE_TO_URL_MAPPING) and then "let's go!"
99: [07:29:20] <martijn_> everytime i want to do domething on the cli in a straight forward way, there is always something that needs to be taken care of
100: [07:29:33] <wmk> you could even calculate the file mapping...
101: [07:29:40] * Stomach quit (Client Quit)
102: [07:29:55] <wmk> martijn_, if you want to install automatically you can utilize ansible or other installation tools
103: [07:30:05] <martijn_> i use something like this : $_FILE_TO_URL_MAPPING[__FILE__] = 'http://localhost';
104: [07:30:19] <wmk> take care of symlinks...
105: [07:30:30] <martijn_> never use those
106: [07:30:34] <wmk> http://www.silverstrip.es/blog/file-to-url-mapping-and-symlinks/
107: [07:30:42] <wmk> we had the problem on a managed server last week
108: [07:30:52] <wmk> we have /user/home/public_html/www
109: [07:31:07] <wmk> but webroot was /usr/html/project/www
110: [07:31:15] <martijn_> ah yes realpath
111: [07:31:22] <wmk> we didn't know of this symlink
112: [07:33:21] <wmk> martijn_, anselmdk also did some cli scripts
113: [07:34:08] * marvanni has joined #silverstripe
114: [07:34:14] <marvanni> back. other laptop battery dies
115: [07:34:38] <wmk> RIP
116: [07:35:48] * martijn_ quit (Ping timeout: 250 seconds)
117: [07:40:50] * zlinux has joined #silverstripe
118: [07:44:06] * zlinux_ quit (Ping timeout: 265 seconds)
119: [07:52:55] * Stomach has joined #silverstripe
120: [07:53:12] * liori quit (Remote host closed the connection)
121: [07:55:43] * ss32noob has joined #silverstripe
122: [07:56:26] <ss32noob> good morning. is there anyway that when i unpublish a Parent page.. it's child pages wouldnt be Unpublish? im using silverstripe 3.2
123: [07:56:49] * kinglozzer has joined #silverstripe
124: [07:56:56] <wmk> if you remove that road to that city, how should we access it, ss32noob
125: [07:57:35] <wmk> if you remove a part of a tree, all leaves on that are also removed...
126: [07:57:55] <wmk> so take care of your saw
127: [07:58:25] <ss32noob> yeah it makes sense.. but i was wondering if there's atleast any configuration that i have to do incase i dont want it?
128: [07:58:46] <wmk> dunno, sorry.
129: [08:04:35] * arise4shine has joined #silverstripe
130: [08:04:35] <ss-helper> arise4shine: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
131: [08:04:59] <arise4shine> Hi
132: [08:11:20] * arise4shine quit (Ping timeout: 250 seconds)
133: [08:17:23] * kinglozzer quit ()
134: [08:17:33] * kinglozzer has joined #silverstripe
135: [08:26:14] * zlinux_ has joined #silverstripe
136: [08:26:26] * zlinux quit (Read error: Connection reset by peer)
137: [08:27:54] <marvanni> wmk https://github.com/axyr/silverstripe-ideagoodies
138: [08:27:58] <marvanni> to get it started
139: [08:28:03] <marvanni> Martijn van Nieuwenhoven
140: [08:28:25] <marvanni> you know this one too ? https://github.com/axyr/silverstripe-ideannotator
141: [08:28:33] <wmk> yup. nice thing
142: [08:29:11] * Dedra has joined #silverstripe
143: [08:30:11] <ss-helper> When installing a new Silverstripe project - mod_rewrite is not enabled? - http://stackoverflow.com/questions/37204719/when-installing-a-new-silverstripe-project-mod-rewrite-is-not-enabled
144: [08:30:16] <Dedra> Hi, someone using eclipse PDT and knows a way to have a nice .ss Editor in it? <% ... %> gives errors in the HTML Editor :)
145: [08:31:31] <wmk> Dedra, nope. many of us use phpstorm - i started with it due to the same errors.
146: [08:32:11] <Dedra> hmm, never saw phpstorm
147: [08:32:16] <Dedra> wmk is that dirty: http://pastebin.com/ktRb8VgC
148: [08:33:05] <Dedra> I'm doing the SS3 Tutorial, and besides that I'm looking into the cms / framework. And I had the problem that an ArticlePage can be set everywhere. With that simple solution I made, everything works like a charm.
149: [08:33:18] <Dedra> BUT I don't know if that makes some trouble somewhere. Would this be ok?
150: [08:33:35] <wmk> isn't there a "needs this parent" functionality?
151: [08:33:48] <Dedra> lol i dont know :D im new ^^
152: [08:34:18] <Dedra> but this works. ArticlePage / StaffPage is only in a Holder of it :) Works fine. Set the same for error page
153: [08:34:34] <Dedra> / Remove ErrorPage (only on root available now)
154: [08:34:34] <Dedra> if(($key = array_search('ErrorPage', $pageTypes)) !== false)
155: [08:34:34] <Dedra> unset($pageTypes[$key]);
156: [08:34:57] <Dedra> As long as it makes no trouble i guess I'll keep that solution :)
157: [08:35:07] <wmk> well, it's duplicated code, you can make a config array what is NOT allowed and remove them
158: [08:35:50] <Dedra> yeah, theoretically true :)
159: [08:37:04] <Dedra> ok, well now i go further with the tutorial: https://docs.silverstripe.org/en/3.3/tutorials/extending_a_basic_site/#modifying-the-date-field
160: [08:46:46] <lerni> ss32noob: one day UI 'll also update if you unpublish parent :) https://github.com/silverstripe/silverstripe-cms/issues/1161
161: [09:01:06] * techquila quit (Quit: Leaving)
162: [09:01:40] * g-n0m3 has joined #silverstripe
163: [09:01:40] <ss-helper> g-n0m3: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
164: [09:13:56] <Agilix_> K, quick question. Can we change the way passwords are saved? A third party wants it in md5, max 32 characters
165: [09:20:14] * agent44 has joined #silverstripe
166: [09:20:51] <kinglozzer> Agilix_: Have you explained to them what a terrible idea that is? :P
167: [09:21:05] <wmk> Agilix_, you can of course make your owm password encryptor.
168: [09:21:08] <kinglozzer> Not sure, have you dug around the code to have a look?
169: [09:21:18] <wmk> i once imported passwords from a drupal installation, worked.
170: [09:21:29] <wmk> but if it makes sense...
171: [09:21:40] <Agilix_> kinglozzer: I have
172: [09:21:46] <kinglozzer> Ahh yeah wmk is correct - you need to create a class that extends PasswordEncryptor
173: [09:21:49] <wmk> you can import from somewhere else and when they update the password it's saved as standard again.
174: [09:22:04] <Agilix_> wmk: k, thank you
175: [09:22:14] <Agilix_> am trying to convince them to upgrade though
176: [09:22:16] <wmk> but think about security...!
177: [09:22:23] <Agilix_> indeed
178: [09:22:48] <wmk> when it's just migrating from another insecure platform it's ok. When you need one password on both platforms there might be other ways
179: [09:23:19] <Agilix_> I'm not even sure what they do with the password :p
180: [09:23:40] <wmk> at least they don't want cleartext *cough*
181: [09:27:23] <Agilix_> they won't change, taken it up with the pm
182: [09:34:41] * doorgeest has joined #silverstripe
183: [09:34:41] <ss-helper> doorgeest: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
184: [09:41:27] * MattyBalaam has joined #silverstripe
185: [09:43:04] <MattyBalaam> Is there a way to set-up emails to send Silverstripe errors to, but on a server-by-server basis. Like using the _ss_evironment.php file
186: [09:43:22] * zippy has joined #silverstripe
187: [09:43:47] <MattyBalaam> in config.php this would be SS_Log::add_writer(new SS_LogEmailWriter('my@e.mail'), SS_Log::WARN, '<=');
188: [09:48:45] <wmk> i have a weird error on 3.3: i cannot save a blog post, it errors when no category or tag is selected
189: [09:49:18] <wmk> it worked on 3.1 before the update
190: [09:50:56] <kinglozzer> wmk: Sounds familiar... se
191: [09:50:58] <kinglozzer> sec
192: [09:51:39] <wmk> i updated tagfield also, seems to work.
193: [09:51:58] <kinglozzer> Ah, yeah it was a tagfield bug, just found the ticket as you sent that :D
194: [09:52:36] <wmk> somehow it wasn't updated automatically... would be great if tagfield (the buggy) version would say SS 3.1 - 3.2, then compser would claim
195: [09:52:47] <wmk> when i'm on 3.3
196: [09:58:34] <wmk> somehow it works now in firefox but not in IE... whitescreen of death
197: [09:59:27] * marvanni quit (Ping timeout: 250 seconds)
198: [10:01:31] <wmk> !flush wmk
199: [10:01:32] <ss-helper> wmk: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
200: [10:03:13] * DimiStripe has joined #silverstripe
201: [10:04:03] * agent44 quit (Quit: zzz)
202: [10:08:46] * Agilix_ quit (Ping timeout: 250 seconds)
203: [10:11:01] * agent44 has joined #silverstripe
204: [10:13:14] * Agilix_ has joined #silverstripe
205: [10:18:03] * wmk quit (Ping timeout: 240 seconds)
206: [10:27:51] <MattyBalaam> In case anyone else finds the problem I had above by searching, I'm not sure if this is the best way, but I have setup my own custom define() in ss_enviroment.php stating which server I am using. I then check against that in _config.php
207: [10:30:47] * cupcake has joined #silverstripe
208: [10:30:56] <cupcake> ola 0/
209: [10:31:08] * ryanpotternz has joined #silverstripe
210: [10:31:22] <ryanpotternz> Stomach: Sup
211: [10:31:39] * zippy is seeing a ghost
212: [10:31:48] <ryanpotternz> :D
213: [10:32:00] <ryanpotternz> I I join every now and again.
214: [10:32:16] <cupcake> when inserting a media file into the content field, should the user be able to add one or more images as if i click one and then change my idea and click another one, the previous image is replaced but if i click fast enough on two images than two images are added
215: [10:32:38] <zippy> :)
216: [10:32:40] <zippy> how ya been
217: [10:35:16] <ryanpotternz> I’ve been well.
218: [10:35:24] <ryanpotternz> London is pretty swish.
219: [10:35:35] <ryanpotternz> I see 4.0 is coming out soon. Exciting!
220: [10:42:11] <zippy> yea the alpha is out
221: [10:42:28] <zippy> time to start remaking your admin theme eh
222: [10:42:33] <zippy> picked up work over there ok?
223: [10:44:34] <cupcake> anyone??
224: [10:48:14] <ryanpotternz> Ha, man I haven’t done any php in so long.
225: [10:48:21] <ryanpotternz> My job is pretty much all Angular.
226: [10:48:45] <ryanpotternz> Yeah, got a job pretty much straight away. It’s really fun. Lots of social events and all that… mainly pub :P
227: [10:51:05] <zippy> Angular, arggh you poor bastard
228: [10:51:08] <ryanpotternz> They also love .gifs, so I’m in heaven.
229: [10:51:20] <ryanpotternz> I don’t mind it too bad. Though routing is a cunt.
230: [10:51:29] <ryanpotternz> much**
231: [10:52:53] <zippy> they got nippys over there though
232: [10:54:43] <Firesphere> Hey ryanpotternz
233: [10:54:50] <Firesphere> we just talked about you at the bar earlier!
234: [10:56:00] <Agilix_> I have a controller with multiple actions. All work except the index. It gives following error: PHP Fatal error: Call to a member function Link() on null in /public/fluent/code/extensions/FluentExtension.php on line 353
235: [10:56:05] <Agilix_> any ideas?
236: [10:56:20] <Agilix_> There is a public function Link()
237: [10:57:42] <zippy> well... whats FluentExtension.php on line 353..
238: [10:59:03] <Agilix_> zippy: it tries to get the link to the page
239: [10:59:16] <zippy> where
240: [10:59:18] <zippy> !paste
241: [10:59:18] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
242: [11:00:47] <ryanpotternz> Firesphere: Hey man :D
243: [11:00:53] <ryanpotternz> Firesphere: All good things I hope :D
244: [11:01:06] <ryanpotternz> I haven’t seen Nippys.
245: [11:01:09] <ryanpotternz> I need my fix!
246: [11:01:21] <ryanpotternz> And burgerfuel :(
247: [11:01:22] <zippy> fuck whats that command...
248: [11:01:25] <zippy> !wiki nippys
249: [11:01:32] <zippy> !faq nippys
250: [11:01:38] * zippy has forgot
251: [11:01:42] <zippy> !help
252: [11:01:42] <ss-helper> Please provide the version, full error message and relevant code. You can put the code in http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and paste the link here.
253: [11:01:46] <zippy> god damn it
254: [11:01:49] <zippy> !commands
255: [11:02:14] <ryanpotternz> https://github.com/ss-irc/notes/wiki/nippys
256: [11:02:27] <zippy> !notes nippys
257: [11:02:27] <ss-helper> https://github.com/ss-irc/notes/wiki/nippys
258: [11:02:31] <zippy> boo ya
259: [11:02:59] <ryanpotternz> https://github.com/ss-irc/notes/wiki/chickenbutt
260: [11:03:09] <zippy> lol
261: [11:04:03] * zlinux_ quit (Ping timeout: 240 seconds)
262: [11:05:59] <ryanpotternz> I need to spread the word of chickenbutt at my new office.
263: [11:06:05] <ryanpotternz> More shall be converted!
264: [11:06:46] <Firesphere> Yeah, they were all good ryanpotternz. No worries {angelface}
265: [11:07:14] <ryanpotternz> Firesphere: “Remember that ryan guy? Fuck I hated him.“
266: [11:07:39] <Firesphere> No, more like "Remember that time in London with that completely smashed up lady?"
267: [11:07:57] <ryanpotternz> Firesphere: Ha! I remember her.
268: [11:08:08] <ryanpotternz> Who was hitting on her?
269: [11:08:17] <Firesphere> Ehhhh, you?
270: [11:08:24] <ryanpotternz> Lol, oh shit. I was too.
271: [11:08:30] <Firesphere> Although somehow, Dylan has a picture of me and her :P
272: [11:08:45] <ryanpotternz> :D
273: [11:08:48] <Firesphere> You were dude. You were bigtime
274: [11:08:55] <zippy> just keeping her warm eh
275: [11:09:03] <ryanpotternz> I think I was taking the piss though, because I was with that other girl.
276: [11:09:48] <NETim_> Any way to get a gridfield action to refresh the gridfield?
277: [11:10:14] <Firesphere> I was too drunk to even care or anything :P I do remember Dylan making a wonderful remark that made you go "aw crap" though :P
278: [11:10:30] <Firesphere> I don't believe you ryanpotternz
279: [11:10:47] <Firesphere> I do completely not believe you. You couldn't be drooling more.
280: [11:11:06] <Firesphere> NETim_: F5, currently
281: [11:11:35] <Firesphere> Or implement your own method. I think the QueuedJobs module has an example of how to do that.
282: [11:11:45] <NETim_> Ah, so is that a popup that says "press f5 pretty please" or should i just use an SS notification?
283: [11:11:47] <Firesphere> Or, at least, have an implementation of semi-realtime refresh.
284: [11:11:59] <NETim_> Just trying to hide records.
285: [11:11:59] <ryanpotternz> Firesphere: Do you remember what it was?
286: [11:12:19] * Stomach quit (Quit: zzz)
287: [11:12:26] <Firesphere> What is "it"?
288: [11:12:34] <ryanpotternz> The aw crap comment.
289: [11:12:54] <Firesphere> You going outside and Dylan going all "you are going with everyone"
290: [11:13:07] <ryanpotternz> Going with everyone?
291: [11:13:16] <Firesphere> Hah, you don't remember? :D
292: [11:13:45] <ryanpotternz> It was like 6 months ago, and we were pretty trashed.
293: [11:14:53] <Firesphere> We were pretty trashed, that's true :)
294: [11:15:08] <ryanpotternz> Pretty much story of my life here.
295: [11:15:14] <ryanpotternz> The British like to drink.
296: [11:15:17] <ryanpotternz> A lot.
297: [11:15:19] <Firesphere> NETim_: What exactly do you want to achieve? Sounds like adding a filter in your ModelAdmin extension should do the trick just fine.
298: [11:15:48] <Firesphere> Don't worry, you weren't the only one who was quite ehm... alcohol induced :P
299: [11:16:24] <ryanpotternz> “£20 for a round, Ryan? What thafuck?!”
300: [11:16:33] <ryanpotternz> I rememberyou saying that :D
301: [11:16:46] <Firesphere> ... I probably have :D
302: [11:17:00] <ryanpotternz> Told you I would pay for my own drinks for that reason, haha
303: [11:17:37] <NETim_> Firesphere, it would, but I'm adding a gridfield action on each row to mark a record as viewed and hide it.
304: [11:18:07] <NETim_> I've got the filter to work with getList, but the new gridfieldaction doesn't seem to want to hide the row.
305: [11:18:45] <Firesphere> Ah, yeah, it doesn't refresh the gridfield by default. I'd suggest having a look how queuedjobs does it.
306: [11:18:48] <Dedra> Doing the SS3 Tutorial right now. I checked my SS2 (old) project. I have in every new Page class like HomePage.php those 2 lines: private static $db = array(); private static $has_one = array(); do i even need to set this?
307: [11:18:53] <Firesphere> It's possible, I just don't know how ;)
308: [11:19:06] <Firesphere> If they're empty, you don't need to set them.
309: [11:19:11] <Firesphere> They're inherited.
310: [11:19:18] <Firesphere> If you need your own fields, you need to set them.
311: [11:19:41] <NETim_> Ah, trying to hijack some of the delete button code.
312: [11:19:43] <NETim_> still no joy.
313: [11:20:01] <Firesphere> ryanpotternz: I'm still amazed at your capabilities to spend 20 pound on a frikkin' beer, while being too pissed to even taste the difference between water and wine.
314: [11:20:21] <ryanpotternz> Firesphere: Double vodkas, not beer.
315: [11:20:22] <Firesphere> NETim_: It will require some custom coding in the controller. It shouldn't be that hard.
316: [11:20:23] <NETim_> Did you just sa £20?
317: [11:20:31] <Firesphere> ryanpotternz: Whatever.
318: [11:20:42] <NETim_> Also, it's friday. everything is harder on fridays.
319: [11:20:43] <ryanpotternz> NETim_: Yeah, don’t drink by london bridge. Bad for your wallet.
320: [11:20:45] <Firesphere> Beerkas or something.
321: [11:20:51] <NETim_> Wow.
322: [11:20:58] * MattyBalaam quit (Quit: Page closed)
323: [11:21:18] <NETim_> £20 is a night of drinking near me.
324: [11:21:20] <Firesphere> NETim_: That's from the StripeCon after-hours. Me and ryanpotternz are retelling stories ;)
325: [11:21:31] <NETim_> ah, didn't stay too late.
326: [11:21:34] <Firesphere> Terrible stories by the way :P
327: [11:21:45] <Firesphere> Wow, 20 pounds?!
328: [11:21:48] <NETim_> left around the time the pub kicked out.
329: [11:21:58] <Firesphere> Damn, I just went to a bar earlier tonight and spend 50 NZD easily
330: [11:22:00] <ryanpotternz> NETim_: that’s the dream.
331: [11:22:01] <Firesphere> if not more.
332: [11:22:03] <NETim_> and yes, a pint is about 2.50 ish.
333: [11:22:08] <Firesphere> O_o
334: [11:22:11] <ryanpotternz> I spent 160 last night.
335: [11:22:20] <ryanpotternz> Stupid london central.
336: [11:22:21] <Firesphere> Yeah, but you sir, are an idiot :P
337: [11:22:27] <ryanpotternz> No arguments here.
338: [11:22:28] <zippy> lol
339: [11:22:55] <Firesphere> Just be glad I took that private thing off the public channel mate :P
340: [11:23:01] <ryanpotternz> ;)
341: [11:23:07] <NETim_> Where's this years con?
342: [11:23:14] <ryanpotternz> No idea.
343: [11:23:18] <ryanpotternz> Too fast.
344: [11:23:26] <ryanpotternz> Though it’s almost summer now, which is nice.
345: [11:23:31] <Firesphere> NETim_: Just a sec, lemme check
346: [11:23:34] <NETim_> ta.
347: [11:24:54] <Firesphere> 13-15th of october, here: http://www.ljubljanskigrad.si/en/hire-a-venue/list-of-the-spaces/castle-theatre/
348: [11:25:22] <Firesphere> Ljubjlana in Lithuania
349: [11:25:42] <NETim_> picturesque.
350: [11:25:58] <Firesphere> Sorry, Slovenia, not Lithuania
351: [11:26:04] <Firesphere> Yep, very awesome place
352: [11:26:12] <Firesphere> Arranged by our primary sponsor :)
353: [11:26:21] <NETim_> Not sure the company budget will cover travel there.
354: [11:27:46] <Firesphere> Why not? Travelling to Slovenia is quite cheap.
355: [11:27:54] <Firesphere> Hotels, a 4* hotel is damn cheap ;)
356: [11:28:30] <Firesphere> The travel might be a bit higher because it's further away, the location itself is nearly free compared to London, Linz or Amsterdam (which were our backup options)
357: [11:29:09] <Firesphere> Plus, maybe some archery lessons? :D
358: [11:29:32] <NETim_> There's got to be some way of arguing that archery will help site builds...
359: [11:30:02] <Firesphere> You have to do cool things some times. Not everything is about building sites. StripeCon is about community as well ;)
360: [11:30:28] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
361: [11:30:38] * agent44 quit (Quit: zzz)
362: [11:30:39] * kinglozzer quit (Remote host closed the connection)
363: [11:30:47] <NETim_> How much is it to hire you as my spokesperson to the boss?
364: [11:31:07] * kinglozzer has joined #silverstripe
365: [11:31:25] <Firesphere> I have no idea, send an email to sam@silverstripe.com for a proposal :)
366: [11:31:59] <NETim_> will do.
367: [11:32:23] <Firesphere> But if you want, the 2016 website will be up soon. So, maybe that helps?
368: [11:32:29] <Firesphere> https://2016.stripecon.eu
369: [11:32:41] * kinglozzer quit (Remote host closed the connection)
370: [11:32:47] * kinglozzer has joined #silverstripe
371: [11:33:07] * agent44 has joined #silverstripe
372: [11:33:35] <Firesphere> And of course, there's the 2014 site and 2015 site. With reviews, pictures etc.
373: [11:33:51] <Firesphere> https://2014.stripecon.eu and https://2015.stripecon.eu
374: [11:34:19] <NETim_> thanks.
375: [11:35:11] <Firesphere> Where are you located NETim_ ?
376: [11:35:21] <NETim_> UK, northants.
377: [11:36:09] <Firesphere> Ok, could you direct-message me your email address? I'll get Paul or Anselm to get in touch with you. They're now the core organizers, as I've moved to New Zealand.
378: [11:36:37] <Firesphere> Sponsoring, either way, etc. They know more than me nowadays ;)
379: [11:37:27] * ryanpotternz has left #silverstripe
380: [11:38:48] <Firesphere> Ow, and on your boss maybe not wanting to invest, I have always liked this one: https://image.slidesharecdn.com/itiltrainingproposal-140109214130-phpapp01/95/itil-2011-foundation-training-by-trainings24x7-10-638.jpg?cb=1389303914
381: [11:39:38] <NETim_> I like that logic.
382: [11:40:22] * zippy has joined #silverstripe
383: [11:41:30] <Dedra> In ss2 i used: function LatestNews($num=2)
384: [11:41:30] <Dedra> {
385: [11:41:30] <Dedra> $news = DataObject::get_one('ArticleHolder');
386: [11:41:30] <Dedra> return ($news) ? DataObject::get('ArticlePage', "ParentID = $news->ID", 'Date DESC', '', $num) : false;
387: [11:41:30] <Dedra> }
388: [11:41:35] <Dedra> in ss3 it seems like:
389: [11:41:42] <Dedra> public function LatestNews($num=5)
390: [11:41:42] <Dedra> {
391: [11:41:42] <Dedra> $holder = ArticleHolder::get()->First();
392: [11:41:42] <Dedra> return ($holder) ? ArticlePage::get()->filter('ParentID', $holder->ID)->sort('Date DESC')->limit($num) : false;
393: [11:41:47] <Dedra> }
394: [11:42:00] <Agilix_> !paste Dedra
395: [11:42:01] <ss-helper> Dedra: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
396: [11:42:15] <Dedra> So PageName::get works great? No get_one needed anymore?
397: [11:42:16] <Agilix_> bit easier on the eyes :)
398: [11:42:26] <Dedra> ah yeah ur right :P
399: [11:42:30] <Dedra> normally i do pastebin.com :)
400: [11:42:51] <Agilix_> the ::get should work fine :)
401: [11:43:26] <Agilix_> if that was the question :) not sure i got it right :p
402: [11:43:31] <Dedra> http://pastebin.com/ddDfT5j4
403: [11:43:32] <Dedra> here
404: [11:43:49] <Dedra> so, but both working still, right?
405: [11:44:04] <Dedra> for me ::get looks smooth ^^
406: [11:45:32] <Dedra> hm, get()->First(); need to look into that, because "first" sound like only one entry. Not like $num=5 wants to get 5
407: [11:46:01] <Agilix_> if you want to find by id you van doe get()->byId($id)
408: [11:46:26] <Dedra> yes, got that part, but why "First();" is the name not a bit hmmm
409: [11:46:28] <Dedra> wrong?
410: [11:46:44] <Agilix_> it just gets the first item it finds
411: [11:46:47] <Dedra> i looked into the method, but first is strange
412: [11:47:10] <Agilix_> not really aware of the first method
413: [11:47:19] <Firesphere> The logic does not make sense...
414: [11:47:33] <Dedra> my logic?
415: [11:47:35] <Firesphere> if the holder exists, return any of it's children?
416: [11:47:54] <Firesphere> But... there's no way the children actually exist! Children might be null at that point.
417: [11:48:14] <Firesphere> Damn, I need to update my mailserver again. Thanks GMail :|
418: [11:49:02] <Dedra> never mind, it's my fail: <% loop $LatestNews %>
419: [11:49:02] <Dedra> <% include ArticleTeaser %>
420: [11:49:02] <Dedra> <% end_loop %>
421: [11:49:27] <Firesphere> That should work, in the right template
422: [11:49:32] <Dedra> i didnt see into the tutorials template, it's looping.
423: [11:50:47] <Dedra> hmm i dont fully get the example of the ss3 tutorial. It makes a loop in the template. But with "First();" i only get one database entry, right?
424: [11:51:03] <kinglozzer> Dedra: Which tutorial?
425: [11:51:04] <Dedra> The first he finds. But how can it loop "5 times" o.O
426: [11:51:12] <Dedra> wait let me link it
427: [11:51:22] <Dedra> https://docs.silverstripe.org/en/3.3/tutorials/extending_a_basic_site/#showing-the-latest-news-on-the-homepage
428: [11:51:51] <kinglozzer> Dedra: The ->first() is getting one *holder* page
429: [11:51:53] <Dedra> im at this part. Doing a new controller function into the HomePage.php i understood that (i guess). And then loop in the template. Gotcha.
430: [11:52:07] <kinglozzer> Then it's finding 5 children of that one page
431: [11:52:11] <Dedra> But if i look into First(); i dont fully see through. For me it takes the first database entry he finds, right?
432: [11:52:24] <Dedra> oh, wait.
433: [11:53:51] <Dedra> ok i see: $holder = ArticleHolder::get()->First(); creates me a complete dataObject of ArticleHolder. So i can have access to all the datas stored.
434: [11:54:16] <Dedra> And with the filter, i get the 5 newest one, limit 5 (because $num) ok got it
435: [11:54:53] <Dedra> in my mind, it was strange because I thought First() gives me a database entry, not the complete Holder class (dataobject). Sry for being stupid, I'm just new to that stuff :) learning myself by doing.
436: [11:55:11] <zippy> is it possible to make 1 DataObject use a different database?
437: [11:55:12] <kinglozzer> Dedra: The first line is getting one holder page, the second line is getting *all* the children of that holder page and then applying limit 5 :)
438: [11:55:45] <Dedra> yep, got that so far :)
439: [11:56:46] <Dedra> oh wait, have to check something to be 100% sure i understand it
440: [11:58:00] <Dedra> $holder is the ArticleHolder DataObject, got that so far. And if the ? Article condition is true, $holder will be returned (so i have access in the template).
441: [11:58:47] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
442: [11:58:59] <Firesphere> I'd go with (int)$holder->article()->count() > 0 ? return $holder->article() : $holder
443: [11:59:09] <kinglozzer> Dedra: Not quite
444: [11:59:11] <Dedra> Guess i got that so far right? But ArticleHolder includes ArticlePages too? I mean: ArticlePage::get()->filter('ParentID', $holder->ID)->sort('Date DESC')->limit($num) is not returned?
445: [11:59:13] <Firesphere> Or something like that. At least making sure there are articles.
446: [11:59:31] <kinglozzer> Dedra: It's a short-hand if statement
447: [11:59:49] <Firesphere> You're easier off doing ArticleHolder::get()->first()->Children()->count()
448: [11:59:49] <kinglozzer> So it's basically saying if ($holder) { return ArticlePage::get()->filter('ParentID', $holder->ID)->sort('Date DESC')->limit($num); } else { return false; }
449: [12:00:05] <kinglozzer> Does that make more sense?
450: [12:00:17] <Firesphere> I think that's what's needed indeed, but it's a bit an oddball
451: [12:00:22] <Dedra> never use those, to be honest. But i guess i understand them. The issue i have is, that's only like: if the ArticlePage::get thing is true (somethings found) it returns $holder
452: [12:00:44] <Dedra> if not return false. I got that part. BUT $holder = ArticleHolder DataObject. not a ArticlePage object?!
453: [12:00:45] <Firesphere> why not go if($holder->children()->count) { return $children;} else { return false;}
454: [12:01:02] <Dedra> How do i get the datas from the ArticlePages?
455: [12:01:13] <Firesphere> No, ArticlePage is a DataObject (I assume)
456: [12:01:34] <Dedra> Ah
457: [12:01:37] <Firesphere> Since it extends from probably Page, and Page is an extension of DataObject
458: [12:01:40] <Dedra> i get it trough the template loop
459: [12:02:23] <Firesphere> Just to give me an idea, how experienced are you with OOP PHP Dedra?
460: [12:02:54] <kinglozzer> Dedra: Yes, $holder is a ArticleHolder - but it's not returning $holder :)
461: [12:03:07] <Dedra> Not that good I guess. But I did some other things like Typo3. But 4-5 years ago, had a burnout and im out of business for many years now
462: [12:03:45] <Dedra> yes. it's returning the ArticlePage objects found.
463: [12:03:55] <Dedra> and looping through that in the template .ss
464: [12:04:26] <Firesphere> Ok :)
465: [12:04:37] <Dedra> i just got confused about the bla = blub : false; because its long time ago i did the short if thing :)
466: [12:05:12] <Dedra> it's returning the ArticlePage stuff or false :) got that now thx, and sorry again ^^
467: [12:05:28] <Firesphere> If the terniary confuses you, I suggest, don't use it ;)
468: [12:05:48] <kinglozzer> And I suggest don't look at PHP 7, because it's worse - they've added more of those kind of things :P
469: [12:05:51] <Dedra> i just saw it in the tutorial ^^ it's not confusing me anymore :P
470: [12:06:14] <Dedra> i got that back right now. Like i said i was out of business for 4-5 years now :-(
471: [12:06:18] <Firesphere> I personally am absolutely not a fan of it, unless it's a return statement like `return $value ?: 'false';`
472: [12:06:26] <Firesphere> Heh, no problems :)
473: [12:06:59] <kinglozzer> http://php.net/manual/en/migration70.new-features.php#migration70.new-features.null-coalesce-op
474: [12:07:02] <kinglozzer> http://php.net/manual/en/migration70.new-features.php#migration70.new-features.spaceship-op
475: [12:07:07] <kinglozzer> And more are incoming :P
476: [12:07:08] <Dedra> I did not eat for 5 days, because my "brain" told me: You're not able to walk 5 min to the supermarket buy food (burnout). So i was really sick. Kicked out of life for many years. Since it's better / fine again. I'm working again getting back to business
477: [12:07:16] <Firesphere> I just got a bit confused, because you displayed you know about the abstractions, and at the same time had issues with the same thing :)
478: [12:08:00] <Firesphere> Although you're absolutely not required to explain yourself, I admire your courage to admit this on IRC.
479: [12:08:15] <kinglozzer> https://wiki.php.net/rfc/short_ternary_equal_operator anyone? D:
480: [12:08:41] <Firesphere> ternary. That's what I meant. I said terniary :|
481: [12:09:05] <Dedra> thanks for the links
482: [12:09:13] <Dedra> this would have confused me if i would see that :P
483: [12:09:47] <Dedra> Well normally i shouldn't have problems with abstractions. But im rosted :P
484: [12:10:52] * liori has joined #silverstripe
485: [12:11:00] <Firesphere> Dedra: If you run into issues, feel free to ask. But admitted, I usually go around looking at the known modules, and see how they fixed it, before I try to answer ;)
486: [12:11:57] <Firesphere> If you run into issues, a good start is to find an addon on the addons site (addons.silverstripe.org) that at least roughly implements the same principle.
487: [12:12:26] <Firesphere> That's what I usually do :P (You are allowed to call me a lazy boy :P )
488: [12:12:47] <Dedra> well, im not at this point that I would know about any addon right now :P
489: [12:12:59] <Firesphere> Hah, perfectly fine :)
490: [12:13:04] <Dedra> just doing the tutorial, looking into the cms / framework and try to "learn again".
491: [12:13:51] <Firesphere> Well, you're always welcome to poke here :) No promises anybody responds though. sometimes it's quiet here for days!
492: [12:16:03] <Dedra> ok i have a short question. If i would like to get 2 instead of 5 articles, when i loop them. Can I change that in template?
493: [12:16:28] <Dedra> <% loop $LatestNews %><% include ArticleTeaser %><% end_loop %> like doing it $LatestNews=2 or so?
494: [12:16:54] <Dedra> Firesphere, np. I'll keep the chat speaking :-P
495: [12:17:35] <Firesphere> You can pass through variables, so <% loop $LatestNews(2) %> <% end_loop %>
496: [12:18:11] <Firesphere> is an option as well, having the actual method in PHP a sensible default like function getLatestNews($amount = 2) {}
497: [12:19:00] * UndefinedOffset has joined #silverstripe
498: [12:20:02] <Dedra> ah ok its simple thx :)
499: [12:20:12] <Dedra> so i can give a simple parameter with () good to know.
500: [12:20:28] <Dedra> the $ in front of it makes it look like a variable :P
501: [12:20:41] <Dedra> need to get used to it :)
502: [12:20:45] <Firesphere> Yeah, that's just syntax :)
503: [12:21:11] <Dedra> methods and variables are $ in the templates :P
504: [12:21:25] <Firesphere> The $ sign is not required, but it makes it clearer you're addressing the backend code ;)
505: [12:21:40] <Dedra> yep figured that one out sooner
506: [12:21:57] <Firesphere> What IDE do you use?
507: [12:22:08] <Dedra> Ok, $Content.FirstParagraph deliveres me the <h1> tag if thats used in the backend editor :D
508: [12:22:45] <Firesphere> Yep, it's the first par in the Content Editor probably :)
509: [12:22:48] <Dedra> I remember I did an extra field "Description" for news, which is used in the overview. So you were able to write other text to descripe it, instead of taking the X first words of the news.
510: [12:23:20] <Firesphere> $FirstPar or $Summary type declarations, try to return the first paragraph. If that's an H1, it'll return the H1 :|
511: [12:23:24] <Dedra> http://api.silverstripe.org/3.3/class-HTMLText.html
512: [12:23:29] <Dedra> im looking here for a moment
513: [12:23:38] <Firesphere> There's not really a way around that.
514: [12:23:43] <Firesphere> It tries to make the best of it ;)
515: [12:23:46] <Dedra> oh o.O
516: [12:24:04] <Dedra> Thought perhaps I would find something in here :P
517: [12:24:10] <Firesphere> Try $Content.Summary
518: [12:24:26] <Dedra> Well, normally none do a H1 titel in the editor, because the title is already
519: [12:24:36] <Dedra> set in template via site name, not navigation name, u now
520: [12:24:39] <Firesphere> You should :)
521: [12:24:43] <Dedra> but sometimes, you have stupid editors :D
522: [12:24:58] <Firesphere> Ow... Don't get me started on stupid editors!
523: [12:25:04] <Dedra> if i remember right, my customers always wanted to being able to coloring texts XD.
524: [12:25:15] <Dedra> and i never agreed to that :D because i dont want a rainbow website :D
525: [12:25:16] <Firesphere> Ow god please no!
526: [12:26:43] <Firesphere> Hah, good on you :D
527: [12:26:53] <Dedra> So many new things i have to check out :\
528: [12:27:09] <Dedra> bootstrap, less / sass. HTML5 / CSS3.
529: [12:27:42] <Dedra> Damit, i was a PRO with html / CSS. I was able to make a website without ANY ie hack, for ie5.5 up to 8. all FF / chrome versions to that time. NO hacks :D
530: [12:28:12] <Dedra> just the knowledge how to build something. Like an extra div around something u normally wouldnt use :D never use widht and padding in the same div. and so on :D but now, everythings different ^^
531: [12:28:19] <Firesphere> Welcome to 2016 I guess :D
532: [12:28:21] <Dedra> (whats good, but yeah) :D
533: [12:28:58] * kinglozzer quit (Remote host closed the connection)
534: [12:29:18] <Firesphere> Anyway, I'm off to bed. I even have to get up early tomorrow. Need to clean before the guests arryve :X
535: [12:29:35] * kinglozzer has joined #silverstripe
536: [12:29:41] <Dedra> sleep well
537: [12:29:46] <Dedra> good dreams, and thanks
538: [12:38:00] <cupcake> anyone there to help me out with a gridfield issue?
539: [12:39:12] <cupcake> when inserting a media file into the content field, should the user be able to add one or more images as if i click one and then change my idea and click another one, the previous image is replaced but if i click fast enough on two images than two images are added
540: [13:03:14] <Dedra> @wmk still here?
541: [13:03:36] <Dedra> ahm nope not in the buddy list :)
542: [13:05:08] * Agilix_ quit (Ping timeout: 250 seconds)
543: [13:15:11] * lerni quit (Remote host closed the connection)
544: [13:15:31] * lerni has joined #silverstripe
545: [13:16:43] <Dedra> I found a mistake in the tutorial: https://docs.silverstripe.org/en/3.3/tutorials/extending_a_basic_site/#articleholder-template $content is available twice in the code example.
546: [13:16:51] <Dedra> Perhaps someone can forward this to the creator?
547: [13:18:40] <Dedra> another short question: in a template: $Date.Format(d.m.Y) isn't working anymore? In ss2 it was working. In 3 seems not. Only $Date.Nice
548: [13:21:34] * kinglozzer quit (Remote host closed the connection)
549: [13:21:40] * kinglozzer has joined #silverstripe
550: [13:21:47] <kinglozzer> Dedra: That should work
551: [13:21:58] <Dedra> isn't i check http://api.silverstripe.org/2.4/class-Date.html right now :)
552: [13:22:12] <kinglozzer> You might need to put quotes around the format
553: [13:22:24] <kinglozzer> E.g. $Date.Format('d.m.Y')
554: [13:22:27] * r3v3rb has joined #silverstripe
555: [13:23:12] <r3v3rb> eek 4.0.0.a1
556: [13:23:37] <r3v3rb> more over, why does a long running onAfterWrite not lock the UI in SS3.3.1
557: [13:23:37] <kinglozzer> r3v3rb: :D
558: [13:23:43] <r3v3rb> kinglozzer: :D
559: [13:24:17] <r3v3rb> shall I switch my custom solution to alpha 1 kinglozzer ;) hehe… that might be a good way to learn ReactJS
560: [13:24:30] <kinglozzer> Are you feeling lucky, r3v3rb?
561: [13:24:31] <kinglozzer> ;)
562: [13:24:50] <r3v3rb> kinglozzer: always - I can see the sea from my office window - now that’s lucky!
563: [13:25:00] <kinglozzer> Namespacing is still to come, just a heads up!
564: [13:25:06] <Dedra> $Date.Ago nice. tells me 39h ago but not in days :D like 80h ago. should be 2 days 10h or so :) but simply overwrite it
565: [13:25:21] <r3v3rb> kinglozzer: I’ll hold off switching the core of this solution I think for now
566: [13:25:57] <r3v3rb> Dedra: it did for me using micmania’s blof module…
567: [13:26:01] <r3v3rb> blog*
568: [13:26:08] <Dedra> ok with '' it works :)
569: [13:26:08] <kinglozzer> I don't blame you r3v3rb, I'm not going to even look at using it for a project until a stable release is out
570: [13:26:22] <r3v3rb> kinglozzer: should the UI be locked during onAfterWrite or not?
571: [13:26:33] <kinglozzer> "locked"?
572: [13:26:43] <r3v3rb> I get no visual indication that the system is doing anything
573: [13:26:46] <Dedra> until now, i don't use modules :D I do when I understand ss3 more :)
574: [13:26:51] <kinglozzer> onAfterWrite should run before any response is returned
575: [13:27:22] <kinglozzer> So you should see a spinny wheel
576: [13:27:23] <kinglozzer> :P
577: [13:27:30] <r3v3rb> nope nothing!
578: [13:27:56] <kinglozzer> Nothing happens when you click save?
579: [13:27:58] <r3v3rb> but I have overridden the SS logo with my own - I see that during admin panel switches etc but not during writes
580: [13:28:13] <kinglozzer> The save button itself should get a spinning wheel where the tick is
581: [13:28:14] <r3v3rb> kinglozzer: yes, it saves - but the user wouldn’t know it’s doing anything
582: [13:28:30] <r3v3rb> hmm, maybe betterbuttons is bolloxing things up
583: [13:28:41] <r3v3rb> or the moderno theme
584: [13:28:49] <shellbac1pacific> so a client asked to remove 'home' from all URLs under the parent page in the CMS. Is this a stupid request or am i just getting grumpy in my old age?
585: [13:29:01] <r3v3rb> grumpy shellbac1pacific
586: [13:29:03] <r3v3rb> ;)
587: [13:29:10] <kinglozzer> r3v3rb: http://i.imgur.com/9OGH3J9.png
588: [13:29:17] <Dedra> hmm, ArticlePage.php i set: $dateField->setConfig('dateformat', 'dd.MM.YYYY'); But in the template I get 12/05/2016 any idea?
589: [13:29:20] <kinglozzer> That's what I mean
590: [13:29:33] <shellbac1pacific> r3v3rb: probably lol
591: [13:29:39] <r3v3rb> :D
592: [13:29:45] <Dedra> oh sure, it's for the backend, nevermind :D
593: [13:30:15] <r3v3rb> kinglozzer: http://i.imgur.com/PisDgTY.png
594: [13:30:24] <kinglozzer> Ahh
595: [13:30:32] <r3v3rb> no spinners
596: [13:30:37] <kinglozzer> Fanciness
597: [13:30:45] <kinglozzer> File a bug!
598: [13:30:49] <r3v3rb> looks nice but no obvious signs anything is happening
599: [13:32:45] <Dedra> kinglozzer, if i look here: http://api.silverstripe.org/2.4/source-class-Date.html#168-195 it seems like days, month and so on "ago". But I get 40h ago not 1 day x ago.
600: [13:33:26] <Dedra> http://api.silverstripe.org/2.4/class-Date.html#_Ago
601: [13:33:27] <kinglozzer> Dedra: Are you using SilverStripe 2.4?
602: [13:33:34] <kinglozzer> Those are the docs for 2.4
603: [13:33:42] <Dedra> oooooooooh damit
604: [13:33:46] <Dedra> ur right XD.
605: [13:33:57] <kinglozzer> Dedra: Try $Date.Ago(1, 2)
606: [13:33:59] <kinglozzer> Sorry
607: [13:34:02] <kinglozzer> $Date.Ago(1, 1)
608: [13:34:19] <kinglozzer> It looks like the default won't switch until at least 48 hours
609: [13:34:30] <Dedra> http://api.silverstripe.org/3.3/class-Date.html#_Ago found it :)
610: [13:35:35] <Dedra> i dont get the second parameter: $significance
611: [13:35:35] <Dedra> int $significance Minimum significant value of X for "X units ago" to display
612: [13:35:43] <Dedra> what does this mean, wait.
613: [13:36:35] <Dedra> parameter for the math kk
614: [13:38:08] <r3v3rb> kinglozzer: oddly it contains this in its js : $("#ActionMenus_MoreOptions > button").entwine({ onadd: function() { ('<i class="fa fa-refresh fa-spin" style="display: none"></i>');
615: [13:38:08] <r3v3rb>
616: [13:39:08] <kinglozzer> O.o
617: [13:41:06] <r3v3rb> but it don’t apply to anything I can see in the code - haha
618: [13:41:18] <r3v3rb> time to remove and see if orginal theme is working
619: [13:41:51] * doorgeest quit (Quit: Leaving)
620: [13:42:09] <r3v3rb> ta da, it’s the removal of the ‘tick’ icon that then screws the indicator
621: [13:42:15] <r3v3rb> time to fix
622: [13:42:35] * doorgeest has joined #silverstripe
623: [13:44:26] <Dedra> kinglozzer, $Date.Ago(1, 1) tells me 2 days ago, but it was yesterday, the 12.05.2016 so Ago() isn't working that good.
624: [13:44:27] * doorgeest has left #silverstripe
625: [13:45:49] * Agent47 has joined #silverstripe
626: [13:45:50] <ss-helper> Agent47: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
627: [13:58:30] * muskie9 has joined #silverstripe
628: [13:59:14] <Eliseth> Yo
629: [13:59:28] <Eliseth> I'm trying to implement http://kylestetz.github.io/CLNDR/
630: [13:59:34] <Eliseth> But the templating gets fucked
631: [13:59:48] <Eliseth> As it uses the same formatting as SS
632: [13:59:50] <Eliseth> (<% _.each(daysOfTheWeek, function(day) { %>)
633: [14:00:15] <Eliseth> How do I make SS ignore these? Is there a way of escaping the tags?
634: [14:14:44] <r3v3rb> hmm ss4 :\
635: [14:15:09] <r3v3rb> needs a new default frontedn theme more than ever now
636: [14:15:14] <r3v3rb> frontend*
637: [14:16:52] <Dedra> I understand the private static $db but can someone tell me what private static $has_one is?
638: [14:18:46] <Dedra> And in SS2 i used: <% if Locale = de_DE %>$Date.format('d.m.Y')<% else %>$Date.format('Y.m.d')<% end_if %> Locale seems not working anymore?!
639: [14:20:21] <r3v3rb> phnarr phnarr - got to love creating a ‘MemberExtension’ in SS :P
640: [14:20:40] <kinglozzer> Eliseth: I know you can escape dollars, not sure about those tags
641: [14:20:44] <kinglozzer> <\% ?
642: [14:21:19] <slievr> How would I go about getting all the file objects included with a pages content
643: [14:21:32] <slievr> *within
644: [14:26:29] <Eliseth> <\% worked
645: [14:55:37] * UndefinedOffset quit (Quit: Leaving.)
646: [15:00:50] * lerni quit (Remote host closed the connection)
647: [15:01:16] * lerni has joined #silverstripe
648: [15:05:23] * UndefinedOffset has joined #silverstripe
649: [15:05:39] * lerni quit (Ping timeout: 260 seconds)
650: [15:14:16] * ss32noob quit (Ping timeout: 250 seconds)
651: [15:24:13] * Agent47 quit (Quit: Leaving)
652: [15:29:06] * r3v3rb_ has joined #silverstripe
653: [15:31:39] * r3v3rb quit (Ping timeout: 246 seconds)
654: [15:31:39] * r3v3rb_ is now known as r3v3rb
655: [15:54:52] * kinglozzer quit ()
656: [16:04:42] * martine has joined #silverstripe
657: [16:05:46] <martine> Help, my site is unresponsive due to heavy load
658: [16:10:21] <cloph> martine: find out what is causing heavy load...
659: [16:10:33] <cloph> if you run slow queries, consider partial caching..
660: [16:11:01] <cloph> but unless you're running a high-volume site, performance/load problems are indication of a bug somewhere..
661: [16:11:20] <cloph> if you're not using it already: deploy xcache or similar opcache (and give large enough cache-size)
662: [16:15:44] <martine> I cannot access /admin
663: [16:16:33] <martine> Page not found for every page i enter in url
664: [16:16:46] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
665: [16:16:46] <martine> but clicking on it a link works fine
666: [16:20:47] <martine> How can a link work when i click on it but not when typing exact url
667: [16:35:56] * NETim_ quit (Quit: Leaving)
668: [16:46:20] <martine> How can i get http_refer in silverstripe
669: [16:55:27] <muskie9> martine check the SS_HTTPRequest class, that might have what you're looking for... to get the request you can do Controller::curr()->getRequest();
670: [16:56:24] * Zauberfisch quit (Remote host closed the connection)
671: [17:07:24] * agent44 quit (Quit: zzz)
672: [17:18:04] * Zauberfisch has joined #silverstripe
673: [17:39:05] <Dedra> Short logical question: What would be the best folder path for a treeicon? themes/NAME/images/treeicons/ feels wrong, because it's an image for the CMS backend. Not a theme graphic.
674: [17:39:28] <Dedra> Would you do it like the /cms do it, just an image/ folder insite of /mysite ?
675: [17:39:52] <Dedra> I mean, it doesn't matter really, but I'm just curious like u guys do it :)
676: [17:40:17] <muskie9> Dedra I think that would work... we've done similar things with modules... if it's needed for that code to run, put it in the dir that holds the code dir, otherwise the theme
677: [17:40:52] <Dedra> so: /mysite/images/
678: [17:40:54] <Dedra> right? :)
679: [17:40:55] <muskie9> yup
680: [17:40:59] <Dedra> thx :)
681: [17:48:04] * r3v3rb quit (Quit: r3v3rb)
682: [17:48:10] <Dedra> https://docs.silverstripe.org/en/3.3/tutorials/extending_a_basic_site/#adding-a-staff-section If I get this right, a $has_one can be used from other page types too? Because it seperated just connected to the StaffPage via saved ID?
683: [17:48:22] <Dedra> So theoretically I could use this "Photo" in other PageTypes to?
684: [17:54:08] <Dedra> ok im correct. The "Photo" will be put into File-Table in the Database, and the ID of that "Photo" is stored in StaffPage - PhotoID
685: [17:55:09] <muskie9> correct, you could link the "Image" object (in the file table), to another object/page in the same fashion.. but then in the cms would select from existing images rather than uploading a new version of it
686: [17:55:26] <Dedra> that's good because all the files are placed at one place.
687: [18:02:24] * martine quit (Ping timeout: 250 seconds)
688: [18:07:11] <Dedra> This looks a bit weird: http://i.imgur.com/AlY36Ra.png Upload folder cut off?
689: [18:07:17] <Dedra> Or is this on purpose like that?!
690: [18:11:07] <muskie9> not sure, I guess I don't usually look at file details from the upload field
691: [18:13:29] * lerni has joined #silverstripe
692: [18:15:47] <Dedra> ahm, where is the: silverstripe-cache folder from ss2 in the ss3?
693: [18:16:32] <muskie9> I think in the tmp dir unless you create one in the webroot
694: [18:17:44] <Dedra> windows temp dir? O.o
695: [18:18:00] <Dedra> oh apache let me have a look
696: [18:19:29] <Dedra> why it's not longer in the project itself?
697: [18:20:03] <muskie9> you have to create a silverstripe-cache directory
698: [18:20:43] <Dedra> ?
699: [18:25:27] * lerni quit (Remote host closed the connection)
700: [18:25:30] <muskie9> so I have a vagrant box where my projects web root is /vagrant/public/myproject/ and I create a silverstripe-cache folder in myproject
701: [18:25:59] <muskie9> SS detects that directory and uses it for the cache folder
702: [18:26:11] <Dedra> oh wait
703: [18:26:17] <Dedra> and SS3 automatically use it
704: [18:26:18] <Dedra> wow
705: [18:26:27] <Dedra> that was not clear :P
706: [18:26:36] <Dedra> cool, thx :)
707: [18:26:45] <muskie9> if there isn't a silverstripe-cache folder there then it puts it in /tmp/wherever or whatever
708: [18:30:28] <muskie9> time to put out fires... by all
709: [18:30:30] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
710: [18:34:02] * Neomang quit (Ping timeout: 250 seconds)
711: [18:36:09] <Dedra> what's better, sass or less?
712: [18:36:28] <Dedra> I tested a bit less, but not that intensive though. heard sass seems to be better.
713: [18:44:16] <shellbac1pacific> sass
714: [18:58:44] * arnhoe has joined #silverstripe
715: [19:13:35] * Stomach has joined #silverstripe
716: [19:25:04] * lerni has joined #silverstripe
717: [19:26:59] * UndefinedOffset quit (Quit: Leaving.)
718: [19:30:16] * neomang has joined #silverstripe
719: [19:30:58] * UndefinedOffset has joined #silverstripe
720: [19:57:41] * marvanni has joined #silverstripe
721: [19:57:47] <marvanni> Hi
722: [19:58:05] <marvanni> what is _configure_database.php used for?
723: [19:58:23] <marvanni> or _register_database
724: [19:59:56] <marvanni> PostgreSQL
725: [19:59:59] <marvanni> i guess
726: [20:10:14] * lerni quit ()
727: [20:12:58] <neomang> Is where() usable in the template like filter is?
728: [20:18:24] * Stomach quit (Quit: zzz)
729: [20:24:29] <marvanni> probably
730: [20:24:48] <marvanni> but i would not prefer to put database queries in a template
731: [20:25:13] <marvanni> templates are for views, not to much fancy logic if you ask me
732: [20:26:10] <Dedra> i have a short question, because im new to composer:
733: [20:26:34] <Dedra> With: composer create-project silverstripe/installer B:\eclipse_workspace\SS_Test i create a new ss project. OK.
734: [20:26:40] <Dedra> With: composer require silverstripe/userforms 3.1.1
735: [20:27:06] <Dedra> i would install userforms addon, right? But how does the composer knows, that he have to install it into SS_Test, and not in an other project? O.o
736: [20:28:02] * UndefinedOffset quit (Quit: Leaving.)
737: [20:29:04] <marvanni> because it checks the directory you are in
738: [20:29:17] <marvanni> probably getcwd();
739: [20:30:01] <Dedra> but if i just open a CMD in windows
740: [20:30:04] <Dedra> im not in any path O.o
741: [20:30:18] <Dedra> so i have to go into the directory first with CD ... ?
742: [20:30:25] <marvanni> yes
743: [20:30:30] <Dedra> ok, thx :)
744: [20:30:42] <marvanni> to the website root where the composer.json file is
745: [20:30:57] <Dedra> What's the point of doing it with composer, and not just download a zip extract / install / use it?
746: [20:31:00] <marvanni> composer require will add the requirement to that file
747: [20:31:07] <marvanni> composer update
748: [20:31:15] <marvanni> and dependencies
749: [20:31:31] <marvanni> with composer you can create a module that requires other packages
750: [20:31:42] <Dedra> i see
751: [20:31:49] <Dedra> and the composer takes them if needed.
752: [20:31:53] <marvanni> like the cms composer requires the framework
753: [20:32:19] <marvanni> and you can use composer to handle post install or update commands
754: [20:43:20] <Dedra> Marvanni do you know any guide for something like this: http://preview.themestripe.com/simline/pages/about-us/ (if you reduce the width of the page) you get a symbol on top for navigation. Basically a good guide for "Fully Responsive Design".
755: [20:43:30] <Dedra> New to that and have to learn the bascis atleast.
756: [20:43:53] <marvanni> checkout twitter bootstrap or zurb foundation
757: [20:44:12] <Dedra> i tested bootstrap a bit.
758: [20:44:28] <Dedra> So bootstrap uses the symbol for navigation too? ok i have to check it out, thx.
759: [20:44:43] <marvanni> https://www.google.nl/search?q=reponsive+hamburger+menu
760: [20:45:00] <marvanni> responsive
761: [20:45:05] * zlinux_ has joined #silverstripe
762: [20:45:23] <ss-helper> Creating custom icons to be associated with each page in SilverStripe - http://stackoverflow.com/questions/37218896/creating-custom-icons-to-be-associated-with-each-page-in-silverstripe
763: [20:48:29] <Dedra> http://brolik.com/blog/responsive-web-design-menu-examples-css-jquery-tips/
764: [20:48:31] <Dedra> seems interessting
765: [20:50:29] * muskie9 has joined #silverstripe
766: [20:56:36] * arnhoe quit ()
767: [21:00:48] * UncleCheese has joined #silverstripe
768: [21:00:59] <UncleCheese> who likes unit testing?
769: [21:02:12] <muskie9> UncleCheese I like to when I have the time, since I'm still getting used to it and it's trial and error
770: [21:02:24] <UncleCheese> do you know anything about mocking?
771: [21:02:30] <Dedra> Well enough for today. gn8 @ everyone
772: [21:02:33] * Dedra quit (Quit: Bye guys, have to go!)
773: [21:02:50] <muskie9> mocking like using yml to spec objects and relations?
774: [21:03:11] <UncleCheese> no, like DI
775: [21:03:58] * Stomach has joined #silverstripe
776: [21:04:27] <muskie9> ah, I may have done mocking w/out knowing it... still pretty new, would that be an instance of implementing TestOnly or whatever it is?
777: [21:05:05] <muskie9> **extend the class you want to test and implement test only on that extended class
778: [21:15:23] <ss-helper> Dynamically adding Semantic UI modals with SilverStripe - http://stackoverflow.com/questions/36303517/dynamically-adding-semantic-ui-modals-with-silverstripe
779: [21:30:24] <ss-helper> Associate an Icon with a page for use in site menu in Silverstripe - http://stackoverflow.com/questions/37219507/associate-an-icon-with-a-page-for-use-in-site-menu-in-silverstripe
780: [21:34:25] * irogue has joined #silverstripe
781: [21:35:03] <marvanni> mocking with php classes, faker ?
782: [21:35:20] <marvanni> fixtures ?
783: [21:54:46] * irogue quit (Quit: Textual IRC Client: www.textualapp.com)
784: [21:55:05] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
785: [21:59:03] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
786: [22:01:43] * r3v3rb has joined #silverstripe
787: [22:01:55] <r3v3rb> anyone about?
788: [22:10:40] * Stomach quit (Quit: zzz)
789: [22:14:40] * r3v3rb quit (Quit: Leaving)
790: [22:15:24] <ss-helper> Dynamically adding Semantic UI modals with SilverStripe - http://stackoverflow.com/questions/36303517/dynamically-adding-semantic-ui-modals-with-silverstripe
791: [22:20:56] * Stomach has joined #silverstripe
792: [22:53:12] * Azure|dc has joined #silverstripe
793: [22:54:04] * Azure quit (Ping timeout: 260 seconds)
794: [22:57:55] * marvanni quit (Quit: marvanni)
795: [23:09:24] * Azure|dc quit (Remote host closed the connection)

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