#silverstripe IRC Log

IRC log for 7 June 2017

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:12:58] * keroberos quit (Quit: WeeChat 1.8)
4: [00:18:18] * kerozene has joined #silverstripe
5: [00:46:16] * samsamek has joined #silverstripe
6: [00:57:48] * mariohofer quit (Remote host closed the connection)
7: [01:13:49] * samsamek has left #silverstripe
8: [01:34:11] * redstubble quit (Quit: Page closed)
9: [02:09:57] * kerozene quit (Ping timeout: 240 seconds)
10: [02:12:00] * kerozene has joined #silverstripe
11: [03:58:37] * mariohofer has joined #silverstripe
12: [04:02:50] * mariohofer quit (Ping timeout: 246 seconds)
13: [04:25:16] * snk__ has joined #silverstripe
14: [04:25:17] <ss-helper> snk__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
15: [04:28:43] <snk__> Hello o/ we need to output all pages as json what would be the best approach, is there a way without the use of a plugin?
16: [04:33:08] <snk__> this would be ideal https://codeshare.io/G6V9jg
17: [04:33:21] <snk__> but it throws an error : $data must be an associative array or a ViewableData instance
18: [04:42:22] <snk__> ok I got my answer here https://stackoverflow.com/questions/17460168/silverstripe-cms-pages-as-json
19: [04:44:04] <cloph> thx for sharing the solution and not just quit with "found it, bye" :-)
20: [04:45:35] <snk__> Almost got my answer :) JSONDataFormatter::convertDataObject returns a string (serialized object)
21: [04:46:04] <snk__> but then I have to serialize the array of serialized string
22: [04:48:15] <snk__> I have to do ^this to avoid the aforementioned error, but then JSON.parse thinks it's an array of string, and doesnt deserialize the string :(
23: [04:48:43] <snk__> if possible I would like to serialize only once
24: [04:51:05] <snk__> Woohoo got it working instead of using JSONDataFormatter::convertDataObject what I needed to use is JSONDataFormatter::convertDataObjectToJSONObject which makes it the way I want it (JSON.parse deserialize my pages correctly now)
25: [04:53:33] <snk__> Here is the final code https://codeshare.io/amORzw
26: [06:00:01] * mariohofer has joined #silverstripe
27: [06:05:54] * mariohofer quit (Ping timeout: 268 seconds)
28: [06:06:05] * snk__ quit (Ping timeout: 260 seconds)
29: [06:17:06] * wmk has joined #silverstripe
30: [06:18:24] * wmk_ has joined #silverstripe
31: [06:21:26] * wmk quit (Ping timeout: 246 seconds)
32: [08:02:27] * mariohofer has joined #silverstripe
33: [08:06:35] * mariohofer quit (Ping timeout: 240 seconds)
34: [10:03:58] * mariohofer has joined #silverstripe
35: [10:18:07] * samsamek has joined #silverstripe
36: [11:18:16] * mariohofer quit (Ping timeout: 240 seconds)
37: [12:21:18] * drthe has joined #silverstripe
38: [12:21:18] <ss-helper> drthe: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
39: [12:30:36] * UndefinedOffset has joined #silverstripe
40: [13:15:46] * mariohofer has joined #silverstripe
41: [14:16:50] * samsamek quit (Quit: samsamek)
42: [14:17:22] * samsamek has joined #silverstripe
43: [14:53:01] * drthe quit (Quit: Page closed)
44: [15:02:07] * wmk_ quit (Ping timeout: 245 seconds)
45: [16:49:06] * samsamek quit (Quit: samsamek)
46: [17:44:23] * samsamek has joined #silverstripe
47: [18:41:07] * gelignite has joined #silverstripe
48: [20:12:09] * samsamek quit (Quit: samsamek)
49: [20:51:14] * UndefinedOffset quit (Quit: Leaving.)
50: [21:26:30] * Sufi has joined #silverstripe
51: [21:26:30] <ss-helper> Sufi: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
52: [21:26:40] <Sufi> hello
53: [21:27:01] <Sufi> i am beginner i need some help/guidance
54: [22:11:27] * mariohofer quit (Remote host closed the connection)
55: [22:11:33] * mariohofer has joined #silverstripe
56: [22:45:19] * mariohofer quit ()
57: [23:09:22] * snk__ has joined #silverstripe
58: [23:51:15] * Sufi quit (Quit: Page closed)
59: [23:52:19] * sufi has joined #silverstripe
60: [23:54:01] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
61: [23:57:05] * sufi quit (Ping timeout: 260 seconds)

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