#silverstripe IRC Log

IRC log for 25 May 2017

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:18] * ss-helper has joined #silverstripe
3: [03:26:59] * visod has joined #silverstripe
4: [03:30:06] <visod> Is there any reason why after pushing my project to a live server, the CMS keeps asking me to log in when trying to upload an image using the uploadfield?
5: [03:58:00] * visod quit (Ping timeout: 260 seconds)
6: [04:26:39] * saiyan quit (Quit: BYE)
7: [04:27:16] * saiyan has joined #silverstripe
8: [07:47:30] * kinglozzer has joined #silverstripe
9: [07:51:22] * DimiStripe has joined #silverstripe
10: [08:08:06] * DimiStripe quit (Read error: Connection reset by peer)
11: [08:08:20] * DimiStripe has joined #silverstripe
12: [10:16:20] * gelignite has joined #silverstripe
13: [10:59:03] * em_ has joined #silverstripe
14: [11:03:32] <em_> Hi, I have DataObject Verse with $db field 'Text' => 'Text', Text contains html entities like "&nbsp;" When I render it to template, the text look like "someText&nbsp;continueText"... html entities are showing, I want just to do what it should do, not to show it to user... Is there any way to fix it?
15: [11:05:44] <em_> I am thinking about override Text property with Text() function which return sth like "Convert::something2something($this->Text);"
16: [11:06:32] <em_> ...but still I have no idea how to do it
17: [11:11:57] <kinglozzer> em_: You can use $Text.Raw
18: [11:12:38] <em_> or Convert::html2raw($this->Text); I found it now... thank you so much
19: [11:12:45] <kinglozzer> Make sure you can trust what the CMS users enter em_
20: [11:13:03] <kinglozzer> If someone puts malicious <script> tags in there for example...
21: [11:14:04] <em_> is there any performance difference between doing it in template with $Text.Raw and doing it in PHP with function Text() {return Convert::html2raw($this->Text);}?
22: [11:14:27] <em_> because it can bee called about 200 times per page
23: [11:14:57] <em_> user cannot edit or insert new lines - its static sql table
24: [11:15:24] <kinglozzer> .RAW is probably slightly faster
25: [11:17:05] <em_> thank you kinglozer :)
26: [11:49:55] * em_ quit (Ping timeout: 260 seconds)
27: [12:22:02] * UndefinedOffset has joined #silverstripe
28: [14:29:51] * ^pH has joined #silverstripe
29: [15:07:31] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
30: [16:02:04] * webdoc has joined #silverstripe
31: [16:02:08] <webdoc> Hi
32: [16:02:19] * em_ has joined #silverstripe
33: [16:03:44] * kinglozzer quit ()
34: [16:04:59] <webdoc> is there a way to solve the above the content with all modules
35: [16:05:37] <webdoc> i have problem with googlemaps module the css will always load on head
36: [16:09:31] <em_> Hi folks :) I have some working ajax request, triggred by $('.ajax').click(...). It works, but when I make request which render some content and this new content contains <div class='ajax'>, clicking on this newly rendered div.ajax do nothing and I want to trigger same action as first click...
37: [16:11:45] <em_> Do I need to load my JS file, to run again document ready? how? some require/include in renderWith? ...
38: [16:28:38] <em_> Could this solve my problem? https://stackoverflow.com/questions/40330851/silverstripe-using-requirements-for-each-ajax-call
39: [17:07:17] <em_> Yes, it works! :)
40: [17:11:55] * em_ quit (Ping timeout: 260 seconds)
41: [17:13:33] <webdoc> Or can someone tell how to add async or defer in ss 3.1
42: [17:13:43] <webdoc> to modules
43: [17:13:54] <webdoc> like userdefined form etc
44: [19:33:53] * Azure quit (Ping timeout: 260 seconds)
45: [20:35:12] * DarjusIT_ quit (Quit: Leaving)
46: [20:59:08] * UndefinedOffset quit (Quit: Leaving.)
47: [21:24:50] * Azure has joined #silverstripe
48: [21:25:39] * webdoc quit (Ping timeout: 260 seconds)
49: [22:36:41] * gelignite has joined #silverstripe

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