#silverstripe IRC Log

IRC log for 31 May 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:18] * ss-helper has joined #silverstripe
3: [00:04:44] * Dedra has joined #silverstripe
4: [00:05:08] <Dedra> Hi, a short question: http://pastebin.com/1g7aSuYr is there a way to SORT the image field?
5: [00:05:32] <Dedra> Right now it's below "Meta data". I would like to move it up
6: [00:06:01] <Dedra> above the content, but below the navigation name.
7: [00:09:20] * micmania1 quit (Read error: Connection reset by peer)
8: [00:09:20] * micmania1 has joined #silverstripe
9: [00:09:20] * Audlex- has joined #silverstripe
10: [00:09:21] * Audlex quit (Read error: Connection reset by peer)
11: [00:09:22] <Dedra> Guess i got it: $fields->addFieldToTab("Root.Main", new UploadField('Photo'), 'Content');
12: [00:09:28] <Dedra> so it's above Content
13: [00:15:29] * Stomach quit (Quit: zzz)
14: [00:19:39] * Stomach has joined #silverstripe
15: [00:33:44] <Dedra> is this the correct way to get the Name of the site? $rss = new RSSFeed($this->Children(), $this->Link(), $this->data()->MenuTitle);
16: [00:34:10] <Dedra> the part: $this->data)->MenuTitle or is there another way like $this->Title or so?
17: [00:38:16] * EasyCo has joined #silverstripe
18: [00:38:37] <EasyCo> Hey team, by default SS loads modules in alphabetical order... Is there anyway to make sure a certain modules loads before another.
19: [00:38:38] * Admonish has joined #silverstripe
20: [00:41:09] * Admonish quit (Client Quit)
21: [00:44:14] * Admonish has joined #silverstripe
22: [00:48:36] * Phlunk3 quit (Remote host closed the connection)
23: [00:51:53] <Admonish> Hey there everyone. I was reading the documentation on the UploadField (https://docs.silverstripe.org/en/3.2/developer_guides/forms/field_types/uploadfield/) when I came accross this "Although images are uploaded and stored on the filesystem immediately after selection,the value (or values) of this field will not be written to any related record until the record is saved and successfully validated." I was wondering how I can access a path to the fi
24: [00:51:53] <Admonish> le afrter its been uploaded so I can do some valiadtion on it?
25: [01:37:05] * Tanger_ has joined #silverstripe
26: [01:44:43] * micmania1 quit (Quit: micmania1)
27: [01:53:42] * micmania1 has joined #silverstripe
28: [02:20:09] <Admonish> is there an on upload event?
29: [02:20:17] <Admonish> for UploadField
30: [02:26:38] * touchtech has joined #silverstripe
31: [02:26:38] <ss-helper> touchtech: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
32: [02:28:10] * Dedra quit (Quit: Bye guys, have to go!)
33: [02:28:17] <touchtech> Hey all, within the ss CMS I am wanting to show the Parent page within the preview pane rather than the current page
34: [02:28:41] <touchtech> I've tried a few things, these work great when on the frontend of the website
35: [02:28:56] <touchtech> However within the CMS it is always redirecting to the parent page
36: [02:29:24] <touchtech> Which is confusing, as the pane is loaded in an iframe so I figured it wouldn't force a redirect in the CMS
37: [02:30:09] <touchtech> What I am doing is in the contructor I am setting $this->dataRecord as $dataRecord->Parent()
38: [02:30:20] <touchtech> This makes the parent render wherever the child is, which is what I want
39: [02:30:40] <touchtech> but in the CMS this causes a page redirect
40: [02:39:00] <Admonish> touchtech Hey there, welcome to the IRC. Unfortunitly right now I think most of the poepl are AFK or just not reading the IRC Chat.
41: [02:39:42] <Admonish> I wish I could help you with your question but I unfortunitly have no knowledge in that particular area
42: [02:42:12] <micmania1> touchtech: you can use a VirtualPage to do that (already built in).
43: [02:49:29] <touchtech> thanks I will check out virtual pages
44: [02:50:18] <touchtech> hmm I'm not sure that VirtualPage is what I need
45: [02:57:45] <Admonish> micmania1 Is there a way to set up an upload_validator for the UploadField that will trigger only when the used clicks upload? When I use setValidator() on the upload field it is run twice. Once for the actual upload and the second time when the DataObject is saved
46: [02:58:31] <micmania1> Admonish: i’m not too familiar with that. You could checkout the mimevalidator module and see how that works
47: [02:58:53] <Admonish> micmania1 thanks :D
48: [03:00:51] <touchtech> Is there some super secret hidden cache somewhere?
49: [03:01:16] <touchtech> I still can't quite understand how the CMS knows that inside the page within the iframe that it is modifying the dataobject
50: [03:02:55] <touchtech> as soon as I remove this one line from my controller the redirect stops "$this->dataRecord = $dataRecord->Parent();"
51: [03:03:01] <touchtech> inside __constructor
52: [03:03:19] <touchtech> I figured that this controller would be executed seperately to the CMS
53: [03:03:38] <touchtech> But it's somehow picking up the fact that I've changed the data record
54: [03:28:05] <touchtech> ah interestingly I've checked out my repository to the point in the past where this was actually working, and it does work
55: [03:28:21] <touchtech> someone must have since made a change in the repo which has added this funny behaviour
56: [03:28:29] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
57: [03:30:14] * micmania1 quit (Quit: micmania1)
58: [03:31:09] * micmania1 has joined #silverstripe
59: [03:32:00] * wmk has joined #silverstripe
60: [03:32:32] * touchtech quit (Ping timeout: 250 seconds)
61: [03:48:11] * Admonish has joined #silverstripe
62: [03:48:34] * wmk quit (Ping timeout: 240 seconds)
63: [03:50:26] * cheddam has joined #silverstripe
64: [03:50:31] <Admonish> Is there a built in way to stop validation on certian form fields in the CMS? Perhaps through getCMSValidator()?
65: [03:58:03] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
66: [05:20:15] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
67: [05:47:09] * wmk has joined #silverstripe
68: [05:51:31] <wmk> ☺/
69: [06:04:06] * micmania1 quit (Quit: micmania1)
70: [06:08:29] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
71: [06:19:53] * Stomach quit (Quit: zzz)
72: [06:21:20] * Agilix_ has joined #silverstripe
73: [06:31:58] * Eliseth has joined #silverstripe
74: [06:56:55] * Mike123 has joined #silverstripe
75: [06:57:35] * arnhoe has joined #silverstripe
76: [06:59:16] * spronk quit (Quit: I may need a longer sleep timer...)
77: [07:35:33] * spronk has joined #silverstripe
78: [07:59:38] * cheddam has joined #silverstripe
79: [08:03:49] * kinglozzer has joined #silverstripe
80: [08:11:23] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
81: [08:40:34] * spronk quit (Quit: I may need a longer sleep timer...)
82: [09:16:58] * SH__ has joined #silverstripe
83: [09:17:20] <SH__> Hey, how come SIlverstripe exports CSV in ASCII-8BIT encoding instead of UTF-8? And is there a way to change this?
84: [09:21:43] * Liquide has joined #silverstripe
85: [09:48:27] * Tanger_ quit (Quit: Tanger_)
86: [09:48:40] <wmk> is there an easy way to get the ID of a page from the whole URL?
87: [09:52:40] * cheddam has joined #silverstripe
88: [10:16:43] * agent44 has joined #silverstripe
89: [10:21:04] * wmk quit (Read error: Connection reset by peer)
90: [10:22:00] * wmk has joined #silverstripe
91: [10:59:57] * slievr_ has joined #silverstripe
92: [11:02:04] * FrozenFire quit (Ping timeout: 240 seconds)
93: [11:08:39] * FrozenFire has joined #silverstripe
94: [11:56:48] * agent44 quit (Quit: zzz)
95: [11:58:13] * kinglozzer quit (Remote host closed the connection)
96: [11:58:41] * kinglozzer has joined #silverstripe
97: [12:03:28] * kinglozzer quit (Ping timeout: 264 seconds)
98: [12:17:24] * Azure quit (Ping timeout: 276 seconds)
99: [12:21:13] * kinglozzer has joined #silverstripe
100: [12:22:20] * kinglozzer quit (Remote host closed the connection)
101: [12:23:57] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
102: [12:23:59] * agent44 has joined #silverstripe
103: [12:31:00] * UndefinedOffset has joined #silverstripe
104: [12:36:35] * agent44 quit (Quit: zzz)
105: [12:41:08] * SH__ quit (Ping timeout: 250 seconds)
106: [12:43:38] * EasyCo quit (Quit: Connection closed for inactivity)
107: [12:46:15] * kinglozzer has joined #silverstripe
108: [13:00:55] * agent44 has joined #silverstripe
109: [13:07:52] * lerni has joined #silverstripe
110: [13:14:00] <Agilix_> I have a MultiValueField called coordinates and each coordinate is displayed on a map. Now we want to connect a page to each coordinate so that when we click we go through to the page
111: [13:14:04] <Agilix_> Any ideas
112: [13:14:13] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
113: [13:15:19] <Agilix_> talking about these fields: https://github.com/silverstripe-australia/silverstripe-multivaluefield
114: [13:17:02] <Agilix_> Maybe with the $Key
115: [13:18:08] <Agilix_> ah but it can only hold text, not sitetree objects. damn
116: [13:33:34] * Agilix_ quit (Ping timeout: 250 seconds)
117: [14:04:24] * wmk quit (Quit: Leaving)
118: [14:50:48] * scpi has joined #silverstripe
119: [14:51:07] * scpi quit (Client Quit)
120: [14:51:24] * scpi has joined #silverstripe
121: [15:06:26] * DarjusIT has joined #silverstripe
122: [15:06:55] <DarjusIT> hi why I cannot merge this? http://www.sspaste.com/paste/show/574da830df4c0 error: Can't call DataList::merge() because its data comes from a specific query.
123: [15:17:54] * wilson has joined #silverstripe
124: [15:18:19] * wilson is now known as Guest87579
125: [15:19:38] <Guest87579> Hi, migrated to SS3.3.2, and i am having a hard time playing with the CMS. Each time i click on a page in the site tree, i get a blank surface. I have to ?flush=1 to see that individual page in the CMS, but not everytime. Ive tried the usual dev/build/?flush=all to no avail. Thanks!.
126: [15:29:15] * arnhoe quit ()
127: [15:30:08] * Mike123 quit (Ping timeout: 250 seconds)
128: [15:32:28] * ccburns has joined #silverstripe
129: [15:34:43] <ccburns> Hey guys - I have a model where there is a Lesson Object and then a bunch of different types of lessons that extend that base class. In another ModelAdmin section of our application there is a dropdown that allows you to choose which type of Question you’d like to create a new record for (same idea base Question class and extended Question types)…. I can’t work out how to do this in the new model admin for Lesson… I didn’t w
130: [15:34:44] <ccburns> the original Question code - (I’ll throw in a screenshot to help explain it).
131: [15:37:19] <ccburns> https://www.dropbox.com/s/03ykm2l11dn2x0p/Screen%20Shot%202016-05-31%20at%208.35.11%20AM.png?dl=0
132: [15:39:51] * Brad_ has joined #silverstripe
133: [15:39:51] <ss-helper> Brad_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
134: [15:45:58] <Guest87579> Hi, migrated to SS3.3.2, and i am having a hard time playing with the CMS. Each time i click on a page in the site tree, i get a blank surface. I have to ?flush=1 to see that individual page in the CMS, but not everytime. Ive tried the usual dev/build/?flush=all to no avail. Thanks!.
135: [15:48:30] <ccburns> Guest87579: have you tried emptying (deleting) the silverstripe-cache directory? I find that sometime SS doesn’t completely rewrite the cache on a /dev/build or ?flush=all
136: [15:48:47] <ccburns> are you getting any error messages in your logs?
137: [15:49:38] * cmcramer has joined #silverstripe
138: [15:51:31] <slievr_> ccburns, are you trying to replicate that screenshot?
139: [15:51:35] * krofek quit (Ping timeout: 250 seconds)
140: [15:51:38] <slievr_> for lesson
141: [15:51:44] <slievr_> nick slievr
142: [15:52:29] <ccburns> slievr_: yes that’s correct
143: [15:53:17] <slievr_> that's using GridFieldAddNewMultiClass from https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/docs/en/index.md
144: [15:54:53] <ccburns> slievr_: obviously that module is already in our app but I had no idea where to even start… thanks I’ll try to reverse engineer that screenshot now with a bit more knowledge :)
145: [15:55:41] <slievr_> do you have a line like $conf = GridFieldConfig_RelationEditor::create();
146: [15:57:25] * muskie9 has joined #silverstripe
147: [15:57:31] <slievr_> ccburns, as all you'd need to do is change it to this $conf = GridFieldConfig_RelationEditor::create()->removeComponentsByType('GridFieldAddNewButton')
148: [15:57:31] <slievr_> ->addComponent(new GridFieldAddNewMultiClass());
149: [16:00:52] <ccburns> We’ve got a ModelAdminExtension.php class and it looks like it’s here that the magic is happening… Thanks it’s working perfectly now :)
150: [16:02:23] <slievr_> ccburns, good to hear
151: [16:02:54] * slievr_ quit (Quit: Leaving)
152: [16:07:15] * DimiStripe quit (Quit: DimiStripe)
153: [16:08:47] * DimiStripe has joined #silverstripe
154: [16:09:34] * scpi has left #silverstripe
155: [16:24:29] * kinglozzer quit ()
156: [16:30:26] <ss-helper> How to use transactions in Silverstripe 3.3 with MySQL? - http://stackoverflow.com/questions/37551030/how-to-use-transactions-in-silverstripe-3-3-with-mysql
157: [16:32:58] * agent44 quit (Quit: zzz)
158: [16:44:40] * Brad_ quit (Ping timeout: 250 seconds)
159: [18:00:30] * Guest87579 quit (Ping timeout: 250 seconds)
160: [18:03:48] * krofek has joined #silverstripe
161: [18:10:34] * muskie9 quit (Ping timeout: 240 seconds)
162: [18:15:48] * kerozene quit (Remote host closed the connection)
163: [18:16:13] * muskie9 has joined #silverstripe
164: [18:18:31] * kerozene has joined #silverstripe
165: [18:38:58] * cmcramer quit (Quit: Textual IRC Client: www.textualapp.com)
166: [19:02:03] * ccburns has left #silverstripe
167: [19:43:15] * Phlunk3 has joined #silverstripe
168: [19:45:44] * arnhoe has joined #silverstripe
169: [19:47:29] * arnhoe quit (Client Quit)
170: [20:15:30] <ss-helper> Versioned Project Creation in Silverstripe - http://stackoverflow.com/questions/37554777/versioned-project-creation-in-silverstripe
171: [20:17:16] * gelignite has joined #silverstripe
172: [20:19:35] * Stomach has joined #silverstripe
173: [20:30:30] <ss-helper> Accessing the class name of the page being edited - http://stackoverflow.com/questions/37322431/accessing-the-class-name-of-the-page-being-edited
174: [20:35:27] * lerni quit ()
175: [20:35:39] * UndefinedOffset quit (Quit: Leaving.)
176: [20:44:50] * BrewNaked has joined #silverstripe
177: [20:56:30] * adrexia has joined #silverstripe
178: [21:10:14] * micmania1 has joined #silverstripe
179: [21:29:59] * BackEndCoder has joined #silverstripe
180: [21:34:10] * spekulatius quit (Remote host closed the connection)
181: [21:35:10] * Stomach quit (Quit: zzz)
182: [21:51:02] * Azure has joined #silverstripe
183: [22:00:33] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
184: [22:01:13] * cheddam has joined #silverstripe
185: [22:02:39] * zippy has joined #silverstripe
186: [22:15:32] <ss-helper> Silverstripe look up the class in the Injector so that the class can be overriden by dependency injection - http://stackoverflow.com/questions/37556367/silverstripe-look-up-the-class-in-the-injector-so-that-the-class-can-be-override
187: [22:19:40] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
188: [22:25:22] * DarjusIT quit (Read error: Connection reset by peer)
189: [22:34:53] * Boobeus quit (Ping timeout: 244 seconds)
190: [22:47:28] * Audlex- quit (Ping timeout: 252 seconds)
191: [22:52:30] * Audlex has joined #silverstripe
192: [22:54:50] <zippy> hi
193: [22:55:56] <Audlex> anyone have experience with this? "Couldn't run query: SHOW FULL FIELDS IN "Group" Table 'ss_owenga.group' doesn't exist"
194: [22:56:34] <Audlex> it was Members and i read somewhere that you can drop the db, run dev build, logout then re-add the db
195: [22:56:46] <Audlex> but i am getting this from an empty db
196: [22:58:55] <zippy> dev/build and flush?
197: [22:59:04] <Audlex> didn't help
198: [22:59:30] <zippy> turned it off and on again?
199: [22:59:38] <Audlex> that was the issue
200: [22:59:41] <Audlex> i surged my PC
201: [22:59:46] <Audlex> and when i came back this happened
202: [22:59:59] <zippy> the database might be corrupt I wonder
203: [23:00:08] * spronk has joined #silverstripe
204: [23:00:11] <Audlex> i dropped it
205: [23:00:17] <zippy> and recreated it
206: [23:00:21] <zippy> have another look, refresh
207: [23:00:58] <Audlex> i turned mysql off and on again and i am back in!
208: [23:02:57] <Audlex> it has oddly broken a few things but mostly there
209: [23:03:02] <Audlex> cheers for the help zippy
210: [23:03:15] <zippy> magical!
211: [23:04:56] <spronk> bah
212: [23:04:59] <spronk> bah bah bah
213: [23:05:11] <Audlex> completely removed a bunch of DOs
214: [23:05:16] <Audlex> and most content
215: [23:07:02] <zippy> it's probably fighting a different mysql version and using an old database, perhaps
216: [23:08:31] <Audlex> would the unprompted computer reboot corrupt the db?
217: [23:08:56] <Audlex> i notice there was 33 rows added as opposed to 107
218: [23:16:31] <zippy> if it's being written to disk at that exact time it's possible
219: [23:16:45] <zippy> I think :)
220: [23:17:15] <zippy> http://stackoverflow.com/questions/17709335/lost-or-corrupt-mysql-table-after-computer-is-turned-off-or-restarted
221: [23:19:27] * Stomach has joined #silverstripe
222: [23:20:42] <zippy> o/ Stomach
223: [23:20:47] <Stomach> morning
224: [23:20:51] <Stomach> \o

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