#silverstripe IRC Log

IRC log for 28 April 2017

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [01:45:04] <ss-helper> Silverstripe 3.5.1/PHP - Subtract 1 year within GroupedList loop (Updated) - http://stackoverflow.com/questions/43666525/silverstripe-3-5-1-php-subtract-1-year-within-groupedlist-loop-updated
4: [01:46:42] * vitaly_ quit (Remote host closed the connection)
5: [01:47:16] * vitaly_ has joined #silverstripe
6: [07:21:30] * deschebbs has joined #silverstripe
7: [07:42:23] * gelignite has joined #silverstripe
8: [07:58:11] * Shrike_Finland has joined #silverstripe
9: [08:05:27] * kinglozzer has joined #silverstripe
10: [08:13:16] * Shrike_Finland quit (Quit: Leaving.)
11: [08:14:38] * Shrike_Finland has joined #silverstripe
12: [08:14:40] * Shrike_Finland quit (Client Quit)
13: [08:49:46] * agent44 has joined #silverstripe
14: [08:50:02] * filisko has joined #silverstripe
15: [09:16:05] * Shrike_Finland has joined #silverstripe
16: [09:16:11] <Shrike_Finland> Hi, I have a problem with link selector in this code: https://pastebin.com/H5RD8HhN If internal or external link is selected, I can not select Attacment anymore. If Attachment is selected at the first time, it works.
17: [09:29:34] * agent44 quit (Quit: zzz)
18: [09:35:17] * agent44 has joined #silverstripe
19: [09:44:19] * agent44 quit (Ping timeout: 258 seconds)
20: [09:48:38] * Shrike_Finland quit (Quit: Leaving.)
21: [09:50:30] * Shrike_Finland has joined #silverstripe
22: [09:52:05] * agent44 has joined #silverstripe
23: [10:02:44] * Shrike_Finland quit (Quit: Leaving.)
24: [10:12:42] * Shrike_Finland has joined #silverstripe
25: [10:52:32] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
26: [10:58:40] * UndefinedOffset has joined #silverstripe
27: [10:59:36] * agent44 quit (Quit: zzz)
28: [11:11:04] * agent44 has joined #silverstripe
29: [11:13:46] * Shrike_Finland quit (Quit: Leaving.)
30: [11:28:19] * UndefinedOffset quit (Quit: Leaving.)
31: [11:29:17] * UndefinedOffset has joined #silverstripe
32: [11:48:17] * webdoc has joined #silverstripe
33: [11:48:58] <webdoc> Can anybody help how to translate the full text search in Silverstripe 3.x
34: [11:54:50] * Shrike_Finland has joined #silverstripe
35: [11:59:25] * UndefinedOffset quit (Quit: Leaving.)
36: [12:00:37] * UndefinedOffset has joined #silverstripe
37: [12:01:53] <webdoc> Can anybody help how to translate the full text search in Silverstripe 3.x
38: [12:28:28] <Shrike_Finland> What you mean?
39: [12:30:18] <webdoc> https://www.ovistar.ee/products/
40: [12:30:42] <webdoc> what ever language the search text remains estonian
41: [12:30:47] * UndefinedOffset quit (Quit: Leaving.)
42: [12:31:25] <webdoc> if i choose english searchtext is estonian
43: [12:31:51] * UndefinedOffset has joined #silverstripe
44: [12:37:22] <webdoc> ok found it out
45: [12:37:24] <webdoc> if($this->dataRecord->hasExtension('Translatable')) { i18n::set_locale($this->dataRecord->Locale); }
46: [12:37:33] <webdoc> helped me in page.php
47: [12:43:53] <Shrike_Finland> Is silverstripe IRC log down?
48: [12:44:39] <kinglozzer> Probably, everyone uses slack now
49: [12:44:52] <Shrike_Finland> damn
50: [12:50:55] <webdoc> https://silverstripe.logged.nz/index.php?date=2015-01-07
51: [12:51:01] <webdoc> looks up here
52: [12:51:37] <webdoc> just need to proceed the certificate is unsecure
53: [12:57:52] <Shrike_Finland> how can I proceed -> Safari and Chrome wont let me in
54: [12:58:59] <webdoc> use chrome in you mac
55: [12:59:00] <webdoc> :P
56: [12:59:17] <webdoc> atleast i use
57: [13:00:32] <webdoc> if the page is shoing safe way out you click on left the advanced link and under it is the proceed to page
58: [13:00:38] <webdoc> showing
59: [13:00:50] * agent44 quit (Quit: zzz)
60: [13:03:07] <webdoc> other possibility is to add the https://silverstripe.logged.nz/ to trusted sites
61: [13:03:46] <webdoc> then it opens the site without asking
62: [13:05:17] <webdoc> did you get in Shrike_Finland
63: [13:06:44] * agent44 has joined #silverstripe
64: [13:08:21] <Shrike_Finland> Tried, but Chrome does not show me "Proceed to page"
65: [13:09:43] * lucinderella has joined #silverstripe
66: [13:09:47] <webdoc> it does
67: [13:10:40] * agent44 quit (Ping timeout: 240 seconds)
68: [13:10:41] * lucinderella is now known as agent44
69: [13:11:17] <Shrike_Finland> Not in my case
70: [13:13:25] <kinglozzer> Doesn't for me either, HSTS preventing it
71: [13:16:10] <webdoc> https://silverstripe.logged.nz/ ask in safari look sertificate and continue
72: [13:16:17] <webdoc> after continue it opens it
73: [13:16:43] <webdoc> the problem is that https://silverstripe.logged.nz/ has a non valid ssl certificate
74: [13:17:05] <Shrike_Finland> kinglozzer: You had this tutorial while ago with entwine, right?
75: [13:17:50] <kinglozzer> Yeah
76: [13:18:07] <kinglozzer> https://www.bigfork.co.uk/blog/an-introduction-to-using-entwine-in-silverstripe/ that one
77: [13:18:57] <Shrike_Finland> I tried to modify the idea to include three options, but I ran to problem with selectedOption -> does not select it right. My code is here: https://pastebin.com/E03JsMaa
78: [13:19:47] <kinglozzer> Shrike_Finland: tbh I just use https://github.com/unclecheese/silverstripe-display-logic instead now :P
79: [13:20:29] <Shrike_Finland> :D That is also in use, but in this case, this is out from display logic
80: [13:22:26] <Shrike_Finland> Maybe I should change it to work with Display Logic also ;)
81: [13:24:12] * Shrike_Finland quit (Quit: Leaving.)
82: [13:33:17] * agent44 quit (Quit: Bai!)
83: [13:33:33] * agent44 has joined #silverstripe
84: [13:46:34] * webdoc quit (Quit: Page closed)
85: [13:54:53] * deschebbs quit (Quit: Konversation terminated!)
86: [14:02:50] * diana_ has joined #silverstripe
87: [14:03:13] <diana_> hello, I hope someone can help me with the following translatable data object question
88: [14:04:16] <diana_> I have PageSection and block objects that extend DataObjects. Blocks and Page Sections have a many_many relationship
89: [14:06:20] <diana_> PageSection is translatable and workin fine with a many_many rel with Page. But I cannot figure out how to call translatable block into pagesections. I tried (as per the extension documentation) $blocksField = new GridField( 'Blocks', 'Blocks', $this->Master()->Blocks(), $conf);
90: [14:07:12] <diana_> but I ge the following error: [User Error] Uncaught Exception: Object->__call(): the method 'master' does not exist on 'PageSection'
91: [14:40:18] <diana_> Additionally, when removing Master()-> and calling the Block Content field as $T(Content) instead of $Content, the value is displayed correctly, but I get the following error on the admin side: [Recoverable Error] Method HTMLText::__toString() must return a string value
92: [15:31:25] * UndefinedOffset quit (Quit: Leaving.)
93: [15:32:47] * agent44 quit (Quit: zzz)
94: [15:46:04] * Shrike_Finland has joined #silverstripe
95: [15:49:56] * agent44 has joined #silverstripe
96: [16:03:18] * kinglozzer quit ()
97: [16:09:07] * UndefinedOffset has joined #silverstripe
98: [16:59:15] * agent44 quit (Quit: zzz)
99: [17:00:54] * filisko quit (Quit: Leaving)
100: [17:13:32] <Shrike_Finland> Is there a way to unlink file at onBeforeWrite
101: [17:16:34] <Shrike_Finland> I do not want to delete file, but unlink it from dataobject
102: [17:41:07] * Shrike_Finland quit (Quit: Leaving.)
103: [19:48:29] * diana_ quit (Ping timeout: 260 seconds)
104: [21:38:59] * UndefinedOffset quit (Quit: Leaving.)
105: [23:38:01] * Azure quit (Ping timeout: 240 seconds)
106: [23:42:45] * Azure has joined #silverstripe

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