#silverstripe IRC Log

IRC log for 17 April 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:14] * ss-helper has joined #silverstripe
3: [00:03:45] <marvanni> Is there anyone who has a good example on how to clear/ rebuild manifest caches in code
4: [00:19:43] * robbiea quit (Remote host closed the connection)
5: [00:26:38] * muskie9 quit (Ping timeout: 244 seconds)
6: [00:27:09] * Azure quit (Ping timeout: 244 seconds)
7: [00:30:55] * Azure has joined #silverstripe
8: [00:38:34] * robbiea has joined #silverstripe
9: [00:39:32] * robbiea quit (Remote host closed the connection)
10: [01:32:30] * marvanni quit (Quit: marvanni)
11: [01:37:39] * BrewNaked has joined #silverstripe
12: [01:42:18] * BrewNaked quit (Ping timeout: 276 seconds)
13: [03:00:35] * ^pH quit ()
14: [03:17:07] <Firesphere> Hello world
15: [04:09:45] * Stomach has joined #silverstripe
16: [04:49:06] * Stomach quit (Quit: zzz)
17: [06:13:01] * robbiea has joined #silverstripe
18: [06:13:30] * robbiea quit (Remote host closed the connection)
19: [06:15:34] * robbiea has joined #silverstripe
20: [06:19:26] * robbiea quit (Remote host closed the connection)
21: [06:19:59] <Audlex> does anyone know much about MultiForm? it seems to add validation to all fields and I cannot seem to remove it for the life of me
22: [06:41:33] * Stomach has joined #silverstripe
23: [06:49:04] * Stomach quit (Ping timeout: 264 seconds)
24: [06:49:42] * Stomach has joined #silverstripe
25: [07:04:22] * BrewNaked has joined #silverstripe
26: [07:08:36] * BrewNaked quit (Ping timeout: 244 seconds)
27: [07:30:10] <ss-helper> Template inheritance in Silverstripe - http://stackoverflow.com/questions/36673790/template-inheritance-in-silverstripe
28: [07:30:11] * marvanni has joined #silverstripe
29: [07:43:19] <marvanni> @Fireshpere are you there?
30: [07:45:10] <ss-helper> Changing template inheritance order in Silverstripe - http://stackoverflow.com/questions/36673790/changing-template-inheritance-order-in-silverstripe
31: [07:47:10] * krofek_ has joined #silverstripe
32: [07:56:43] * marvanni quit (*.net *.split)
33: [07:56:52] * krofek__ quit (*.net *.split)
34: [08:00:19] * Stomach quit (Quit: zzz)
35: [08:02:17] * krofek__ has joined #silverstripe
36: [08:03:07] * Azure|dc has joined #silverstripe
37: [08:03:42] * vitaly_ has joined #silverstripe
38: [08:03:51] * marvanni has joined #silverstripe
39: [08:06:59] * Kolin_ has joined #silverstripe
40: [08:07:25] * liori_ has joined #silverstripe
41: [08:08:42] * marvanni quit (Ping timeout: 260 seconds)
42: [08:12:07] * krofek_ quit (*.net *.split)
43: [08:12:12] * Azure quit (*.net *.split)
44: [08:12:34] * liori quit (*.net *.split)
45: [08:12:36] * vitaly__ quit (*.net *.split)
46: [08:12:46] * Guest59807 quit (*.net *.split)
47: [08:12:56] * Kolin quit (*.net *.split)
48: [08:14:04] * madmatt has joined #silverstripe
49: [08:14:26] * madmatt is now known as Guest13662
50: [08:19:49] * x4j5 has joined #silverstripe
51: [08:29:16] * Zauberfisch quit (Ping timeout: 264 seconds)
52: [08:31:27] * Zauberfisch has joined #silverstripe
53: [08:53:15] * BrewNaked has joined #silverstripe
54: [08:53:16] * x4j5 quit (Ping timeout: 264 seconds)
55: [08:58:04] * BrewNaked quit (Ping timeout: 264 seconds)
56: [09:41:05] * DimiStripe has joined #silverstripe
57: [10:22:31] * x4j5 has joined #silverstripe
58: [10:42:05] * BrewNaked has joined #silverstripe
59: [10:42:21] * x4j5 quit (Ping timeout: 246 seconds)
60: [10:44:18] * torican has joined #silverstripe
61: [10:46:08] * darjusIT has joined #silverstripe
62: [10:46:33] * BrewNaked quit (Ping timeout: 246 seconds)
63: [10:47:39] <darjusIT> Hi all in controller can I make my own global wariables like public $access_key = ''; and then in some controller functiom $this->access_key = 'abc'; ?
64: [10:53:28] * torican quit (Quit: Page closed)
65: [11:11:32] * kinglozz_ has joined #silverstripe
66: [11:13:34] * kinglozzer quit (Ping timeout: 244 seconds)
67: [11:13:36] * Zauberfisch1 quit (Ping timeout: 244 seconds)
68: [11:13:40] * Zauberfisch1 has joined #silverstripe
69: [11:14:05] * TRB143 quit (Ping timeout: 244 seconds)
70: [11:15:05] * kerozene quit (Ping timeout: 244 seconds)
71: [11:15:41] * TRB143 has joined #silverstripe
72: [11:18:11] * ss-helper quit (Ping timeout: 244 seconds)
73: [11:28:46] <darjusIT> is it pusible to write directly to siteconfig like this $siteConfig = SiteConfig::current_site_config(); $siteConfig->status = 'test'; $siteConfig->write(); ??
74: [11:49:47] * kerozene has joined #silverstripe
75: [12:00:20] * liori_ is now known as liori
76: [12:14:20] * Azure|dc is now known as Azure
77: [12:30:59] * BrewNaked has joined #silverstripe
78: [12:35:10] * BrewNaked quit (Ping timeout: 244 seconds)
79: [12:36:51] * jbrungar quit (Ping timeout: 276 seconds)
80: [12:37:13] * jbrungar has joined #silverstripe
81: [12:56:54] * robbiea has joined #silverstripe
82: [13:01:18] * robbiea quit (Ping timeout: 246 seconds)
83: [13:53:11] * darjusIT_1 has joined #silverstripe
84: [13:54:44] * darjusIT quit (Ping timeout: 244 seconds)
85: [14:19:55] * BrewNaked has joined #silverstripe
86: [14:24:13] * BrewNaked quit (Ping timeout: 250 seconds)
87: [14:38:57] * Azure quit (Ping timeout: 260 seconds)
88: [14:47:47] * gelignite has joined #silverstripe
89: [15:24:27] * Zauberfisch1 quit (Ping timeout: 250 seconds)
90: [15:24:34] * Zauberfisch1 has joined #silverstripe
91: [15:39:31] * robbiea has joined #silverstripe
92: [15:43:53] * robbiea quit (Ping timeout: 250 seconds)
93: [15:47:55] * x4j5 has joined #silverstripe
94: [16:08:44] * BrewNaked has joined #silverstripe
95: [16:13:21] * BrewNaked quit (Ping timeout: 250 seconds)
96: [16:22:35] * kinglozzer has joined #silverstripe
97: [16:31:59] * x4j5 quit (*.net *.split)
98: [16:32:07] * kinglozz_ quit (*.net *.split)
99: [17:00:54] * gelignite quit (*.net *.split)
100: [17:06:55] * gelignite has joined #silverstripe
101: [17:08:36] * marvanni has joined #silverstripe
102: [17:27:55] * robbiea has joined #silverstripe
103: [17:32:27] * robbiea quit (Ping timeout: 268 seconds)
104: [17:52:13] * robbiea has joined #silverstripe
105: [17:53:39] * robbiea quit (Remote host closed the connection)
106: [17:57:40] * BrewNaked has joined #silverstripe
107: [18:02:40] * BrewNaked quit (Ping timeout: 268 seconds)
108: [18:13:01] * Teddy has joined #silverstripe
109: [18:45:42] * Admonish has joined #silverstripe
110: [19:05:46] <darjusIT_1> Hi all one question, I need fake fields on page admin area, is I make fields like text field Fake1 on beforeWrite can I access it like this $this->Fake1?
111: [19:14:38] * Azure has joined #silverstripe
112: [19:25:04] * Teddy_ has joined #silverstripe
113: [19:33:22] * Teddy quit (*.net *.split)
114: [19:46:33] * BrewNaked has joined #silverstripe
115: [19:50:08] * Stomach has joined #silverstripe
116: [19:50:53] * BrewNaked quit (Ping timeout: 250 seconds)
117: [20:12:59] <marvanni> yes
118: [20:26:24] * robbiea has joined #silverstripe
119: [20:49:44] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
120: [20:51:09] * Stomach quit (Quit: zzz)
121: [20:52:39] * Stomach has joined #silverstripe
122: [20:52:49] <Hailwood> Hey guys, if I add a gridfield in beforeUpdateCMSFields that has the same name as one that gets automatically scaffolded it should stop that field from being scaffolded right?
123: [20:57:15] <robbiea> I believe if you add a form element of any kind and give it a name that already exists it will replace whatever was there before
124: [20:57:27] <robbiea> Disclaimer: I'm new to SS and count easily be wrong
125: [20:58:28] <robbiea> @everyone: The StackExchange proposal for SilverStripe has died off a bit - if you're keen to see it happen, sign up for it, use your 5 votes for example questions and ask a few yourself! http://area51.stackexchange.com/proposals/96450/silverstripe
126: [21:05:54] <marvanni> beforeUpdateCMSFields runs before the DO getCMSFields
127: [21:06:11] <marvanni> so that one will be overridden if a scaffold on exists.
128: [21:06:19] <marvanni> better try updateCMSFields()
129: [21:12:15] * Stomach quit (Quit: zzz)
130: [21:13:36] * robbiea quit (Remote host closed the connection)
131: [21:13:47] * darjusIT_1 quit (Quit: Leaving)
132: [21:16:33] * Stomach has joined #silverstripe
133: [21:18:47] * robbiea has joined #silverstripe
134: [21:25:41] * Teddy__ has joined #silverstripe
135: [21:26:11] * DimiStripe_alt has joined #silverstripe
136: [21:29:17] * spronk has joined #silverstripe
137: [21:29:23] * Zauberfi1ch1 has joined #silverstripe
138: [21:35:45] * BrewNaked has joined #silverstripe
139: [21:40:09] * BrewNaked quit (Ping timeout: 250 seconds)
140: [21:40:10] <Admonish> How do you test if a user is apart of a certain group?
141: [21:40:48] <Admonish> I looked through the permissions documentation and it seems to only show how to check by spacific permission
142: [21:41:16] * Teddy_ quit (*.net *.split)
143: [21:41:26] * Zauberfisch1 quit (*.net *.split)
144: [21:41:32] * DimiStripe quit (*.net *.split)
145: [21:41:34] * DimiStripe_alt is now known as DimiStripe
146: [21:41:36] <Admonish> e.g. Permission::check("VIEW_SITE")
147: [21:51:34] <Admonish> robbiea I just folled the stack exchange proposal
148: [21:52:25] <Admonish> robbiea I hope that it goes through as it would be an amazing rescource.
149: [21:53:35] <robbiea> perhaps - the proposal system is crucial though because it gives a good indication of how well used it might be. at this point it doesn't look like there's enough demand for a dedicated stack exchange site, however you'd need to consider that if it were to launch then silverstripe's hosted forums may become deprecated and movement towards the SE site might happen
150: [21:56:59] <Admonish> robbiea I don't think that would be a bad thing (moving away from the ss forums). Personally I find the current forum is rather unimpressive. The fact that seemingly there is no dedicated text search for the forums is very frustrating for me.
151: [21:57:43] <robbiea> There's a lot of pros and cons both ways, the biggest of all being the history of knowledge that the current SS forums contains. It would take some time for a StackExchange site to take over in usefulness
152: [21:58:10] <robbiea> But that's OK, because said site wouldn't graduate into even a public beta before it has a decent amount of content, yet alone a published site
153: [21:58:13] <robbiea> let*
154: [21:59:32] <Admonish> True, and perhaps there is room for both. After all, stack exchange is less of a forum and more of an online questions /answer site. When I go to a forum I expect a lot of discussion. Not so much on stack exchange
155: [22:06:42] <robbiea> Yeah exactly
156: [22:06:45] <robbiea> Different purposes
157: [22:08:20] <marvanni> $Member.inGroup(‘code’)
158: [22:08:33] <Admonish> robbiea Another thing I think is great about sites like stack exchange is that they give users incentive. The sad truth is that people are more likely to help others with there questions if there is something in it for them (rankings,badges,etc.)
159: [22:08:48] <robbiea> Totally - people are inherently selfish!
160: [22:08:49] <Admonish> marvanni thank you :D
161: [22:08:58] <Admonish> robbiea indeed
162: [22:09:20] <marvanni> but it does leads to quality answers right
163: [22:09:45] <Admonish> Depends on the person I guess
164: [22:09:53] <Admonish> and the question asked XD
165: [22:10:06] <marvanni> in the end you live for your self, so if you help someone out, it is probably because it makes YOU feel goed
166: [22:10:07] <Admonish> dumb questions may get dumb answers
167: [22:10:09] <marvanni> oo
168: [22:10:28] <marvanni> true, but thats pretty wel tackled most of the time
169: [22:10:49] <marvanni> I have a lot of reference links to stack overflow in my code comment ;)
170: [22:11:53] <Admonish> marvanni Most people unfortunitly do live for themselves. I am personally am a follower of Jesus Christ, so my goal is not to lie selfishly. I do stumble and fall at times as I am by no means perfect. But I try my best
171: [22:12:33] <Admonish> And encourage others to live the same.
172: [22:12:48] <robbiea> marvanni: yeah - if you ask a stupid question on a Stack site it'll probably get closed pretty quickly
173: [22:12:53] <marvanni> Well, nobody is perfect ;)
174: [22:13:27] <Admonish> Very true. I just try not to let that stop me from trying to be :D
175: [22:13:40] <marvanni> Still pretty beta, but if you like to test this out :
176: [22:13:41] <marvanni> https://github.com/axyr/silverstripe-console
177: [22:14:18] <Admonish> marvanni very neat!
178: [22:14:27] <Admonish> marvanni thanks for the link
179: [22:14:53] <Admonish> AFK for a bit
180: [22:40:06] <Admonish> marvanni If the group has spaces in it do I replace them with - ?
181: [22:40:19] <Admonish> in regards to that code you posted
182: [22:40:22] <Admonish> $Member.inGroup(‘code’)
183: [22:40:25] <marvanni> you need to use the group code
184: [22:40:31] <Admonish> How would I get that
185: [22:40:33] <marvanni> that will be normalised
186: [22:40:37] <marvanni> see the database
187: [22:40:53] <marvanni> but
188: [22:40:54] <Admonish> thanks
189: [22:41:08] <marvanni> checking for groups is not really wise
190: [22:41:09] * terryapodaca has joined #silverstripe
191: [22:41:24] <marvanni> group names might change. i think the codes stay the same
192: [22:41:40] <marvanni> i would rather great e new Permission and add that permission to a group
193: [22:41:57] <marvanni> just use someclass implements PermissionProvider
194: [22:42:12] <marvanni> function provide_permissions()
195: [22:45:02] <Admonish> Basically what im trying to achieve is changing the tabs shown based on the group. The reason I believe it has to be group based is because both my admin and developer permissions allow access to this modelAdmin.
196: [22:45:37] <Admonish> Actually
197: [22:46:20] <marvanni> so you can add 1 permisson to both groups
198: [22:47:08] <Admonish> Now im confused
199: [22:47:10] <Admonish> ..
200: [22:47:17] <marvanni> ok
201: [22:47:25] <marvanni> admin is not really a group
202: [22:47:38] <marvanni> admins can do everything
203: [22:47:41] <marvanni> my bad
204: [22:47:58] <marvanni> content authors are not permitted to access the modeladmin
205: [22:47:59] <Admonish> its both a permission and a group Xd
206: [22:48:06] <Admonish> Adminostrator group
207: [22:48:14] <marvanni> yeah true
208: [22:48:26] <marvanni> i always use the admin from code
209: [22:48:29] <marvanni> default admin
210: [22:48:43] <marvanni> but that is in the admin groupd as well, so you are right
211: [22:48:56] <marvanni> but still admins can do everything
212: [22:48:59] <Admonish> Technically wouldnt the code for a group stay the same even if the name is changed?
213: [22:49:10] <marvanni> yes
214: [22:49:22] <Admonish> right
215: [22:49:23] <marvanni> but, i would not realy on database values
216: [22:49:28] <marvanni> rely
217: [22:49:36] <Admonish> oh?
218: [22:49:47] <Admonish> why?
219: [22:49:48] <marvanni> a permission code is a HARD_CODED code
220: [22:49:50] * EasyCo has joined #silverstripe
221: [22:50:01] <marvanni> and consider this
222: [22:50:18] <marvanni> group : Developers : code DEVELOPERS
223: [22:50:38] <marvanni> later you change Developers group to Programmers
224: [22:50:50] <Admonish> seems like the code is based of the title of the group :/
225: [22:51:02] <Admonish> poop
226: [22:51:07] <marvanni> in you code there is $Member.InGroup(‘DEVELOPERS’) but the groups is called Programmers
227: [22:51:21] <Admonish> yeah I see your point
228: [22:51:31] <Admonish> but isn't that the same with permissions too?
229: [22:51:42] <Admonish> they have a code too right
230: [22:51:54] <marvanni> no, because you create your permissions in code
231: [22:52:00] <marvanni> not by data entry
232: [22:52:31] <marvanni> https://docs.silverstripe.org/en/3.3/developer_guides/security/permissions/#permissionprovider
233: [22:52:56] <marvanni> "VIEW_SITE" will never change by CMS users
234: [22:53:47] <Admonish> true
235: [22:54:01] <Admonish> Good points
236: [22:54:18] <Admonish> I will have to think about the best way forward
237: [22:54:54] <marvanni> Good luck, im off to bed
238: [22:56:28] * marvanni quit (Quit: marvanni)
239: [23:04:24] * Admonish quit (Ping timeout: 265 seconds)
240: [23:13:51] * terryapodaca quit (Ping timeout: 276 seconds)
241: [23:24:18] * BrewNaked has joined #silverstripe
242: [23:28:55] * BrewNaked quit (Ping timeout: 250 seconds)
243: [23:29:50] * Stomach quit (Quit: zzz)
244: [23:34:38] * Stomach has joined #silverstripe
245: [23:53:13] * robbiea quit (Remote host closed the connection)
246: [23:54:16] * robbiea has joined #silverstripe

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