#silverstripe IRC Log

IRC log for 4 January 2013

All timestamps are in UTC.

1: [00:14:00] * SticksM has joined #silverstripe
2: [00:42:00] <SticksM> A CTF popup comes up empty (completely empty, no html inside) when clicking Add DataObject or when editing/viewing an existing DO. Anyone seen this before?
3: [00:43:00] <FrozenFire> SticksM, I presume this is SS 2.4?
4: [00:44:00] <SticksM> FrozenFire, Yep, 2.4. Was working fine before new year. Trying to think of what changes I've made recently but none come to mind.
5: [00:45:00] <FrozenFire> SticksM, Yeah, my guess would be server error
6: [00:45:00] * Zauberfisch quit (Ping timeout: 246 seconds)
7: [00:45:00] <FrozenFire> Howdy
8: [00:45:00] <pex__> i seent this when i made server error
9: [00:45:00] <pex__> hi Frozen :)
10: [00:46:00] <SticksM> Damn. It works fine on a few other sites running the same DO setup and same server. Such a pain, it comes up with nothing to help.
11: [00:47:00] <FrozenFire> Check your server's error log
12: [00:47:00] <FrozenFire> E.g. /var/log/apache2/error.log
13: [00:49:00] * Zauberfisch has joined #silverstripe
14: [00:49:00] <SticksM> Right, I'll hunt that down.
15: [00:57:00] <SticksM> Error log is showing nothing, besides some missing images and .css files. Add DO button links to this URL: http://beach.asnevents.com.au/admin/EditForm/field/key_dates/add?SecurityID=4db5f408b90947b177f914202c0f68c5b594d1fe
16: [00:57:00] <SticksM> Which comes up completely blank
17: [00:58:00] <FrozenFire> Err, it's a bad idea to post SecurityIDs like that
18: [01:00:00] <SticksM> Haha, shit. Yeah it is.
19: [01:05:00] * catcher quit (Quit: Leaving)
20: [01:53:00] <DesignerX> hi guys, any tips / links on how to use documnet my php code ? so it works with the IDE too ( I use netbeans)
21: [01:54:00] <FrozenFire> DesignerX, You mean documenting?
22: [01:54:00] <FrozenFire> That's the first place to start, is basic code documentation
23: [01:54:00] <FrozenFire> See PHPDocumentor and its docblocks
24: [01:54:00] <DesignerX> yeh
25: [01:58:00] <DesignerX> FrozenFire: thats way more then i was looking for :D
26: [01:58:00] <FrozenFire> It really isn't more than you're looking for.
27: [01:58:00] <FrozenFire> That's how you document PHP code.
28: [01:58:00] <FrozenFire> Docblocks.
29: [01:58:00] <FrozenFire> That's how you document most any C-style code
30: [01:59:00] <DesignerX> mmm ,was looking to learn how to write better comments for my classes & functions , something simpler
31: [02:00:00] <DesignerX> when hover over SS classes, i see fancy hints with links to other classes/methods , was looking for info on that ..:)
32: [02:00:00] <FrozenFire> Please don't make me repeat myself again. Docblocks
33: [02:00:00] <FrozenFire> Yes. Docblocks.
34: [02:01:00] <FrozenFire> I'm part of the PHP documentation team. Docblocks.
35: [02:01:00] <DesignerX> googling
36: [02:01:00] <FrozenFire> I love documentation. Docblocks
37: [02:01:00] <FrozenFire> :P
38: [02:01:00] <DesignerX> ahhhhh Docblocks :D
39: [02:01:00] <FrozenFire> PHPDocumentor is just a tool which reads the docblocks you've written in your project and converts it to a manual
40: [02:02:00] <DesignerX> ah ok
41: [02:03:00] <DesignerX> for now just Docblocks will do , then i iwll try phpdoc later :.thanks :D
42: [02:05:00] <irogue> docblocks are awesome
43: [02:05:00] <irogue> and easy as fuck
44: [02:05:00] <ss23> Just like your mother
45: [02:05:00] <irogue> actually, easier than fucking
46: [02:05:00] <irogue> ss23: lulz
47: [02:05:00] <irogue> she's getting married on saturday :P
48: [02:05:00] <ss23> aw snap, rly?
49: [02:05:00] <irogue> yep
50: [02:05:00] <ss23> You coming down for it? She's still in Hamilton right?
51: [02:05:00] <irogue> yarr
52: [02:05:00] <DesignerX> yeh u 2 , go private :D
53: [02:05:00] <ss23> aw kk
54: [02:06:00] <irogue> am coming down on tuesday, will be down til sunday
55: [02:06:00] <ss23> long tiem ;_;
56: [02:06:00] <irogue> annual leave bitches
57: [02:06:00] <irogue> was in hams 24th - 2nd, then came back for work yesterday today & monday, then back down again :-P
58: [02:08:00] * FrozenFire gripes about a bug
59: [02:08:00] <FrozenFire> DataList doesn't retain any SS_ListDecorators is has, if you apply a filter
60: [02:08:00] <FrozenFire> it has**
61: [02:09:00] <FrozenFire> So if you return a PaginatedList from a method, and then try to filter that PaginatedList, it reverts to a plain DataList
62: [02:09:00] <FrozenFire> So far as I can tell, anyway
63: [02:11:00] <ss23> fml, amazon shipped my order in two parts...
64: [02:11:00] <ss23> what cunts
65: [02:11:00] <ss23> Going to cost fucktons to send it back to NZ since I'm using that nzpost thing that doesn't allow you to combine packages :/
66: [02:12:00] <ss23> rawr
67: [02:14:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
68: [02:15:00] * Bollig|DesignCty has joined #silverstripe
69: [02:17:00] <irogue> lol
70: [02:17:00] <irogue> if they get that sorted, they'll pwn up that market
71: [02:17:00] <irogue> cos the other services are all randoms that you don't know who you can trust
72: [02:29:00] <FrozenFire> Yeah, I bloody hate Amazon for that.
73: [02:30:00] <FrozenFire> But no, apparently that'd be ridiculous
74: [02:30:00] <FrozenFire> They shipped all four in individual medium-sized boxes
75: [02:30:00] <FrozenFire> I bought four individual socket saver things (basically little extension cords that you hook wall warts to, to save your sockets)
76: [02:30:00] <FrozenFire> These things are tiny, and easily could've gone together
77: [02:33:00] <pex__> how can i get info from URL in Model admin? i try get $this->link but i got an error. SS3
78: [02:33:00] <pex__> i nned to know which action was actually lauched
79: [02:34:00] <FrozenFire> $this->Request->param("Action")?
80: [02:35:00] <FrozenFire> It really depends on the context
81: [02:38:00] <pex__> Frozenfire: i have URL admin/orders/magReservation/EditForm/field/magReservation/item/2/edit
82: [02:38:00] <pex__> when i edit DO magReservation managerd by modeladmin orders
83: [02:39:00] <FrozenFire> What are you trying to accomplish?
84: [02:39:00] <FrozenFire> Don't do that
85: [02:39:00] <pex__> i want to know in onbeforewrite method is 'edit' in url or is some number
86: [02:40:00] <pex__> ii want to logg info from that, i have other class an i wan to add who and what did
87: [02:40:00] <FrozenFire> I'm sorry, you're not speaking English. Please rephrase that in the form of actual words.
88: [02:40:00] <pex__> i know hen somone delete item by using onbefore delete
89: [02:40:00] <pex__> ok
90: [02:41:00] <FrozenFire> Hacking that into your DataObject is not the way. Don't do that.
91: [02:41:00] <pex__> I need to know every action that users did
92: [02:42:00] * MichaelDesignerX has joined #silverstripe
93: [02:42:00] <FrozenFire> https://github.com/silverstripe-labs/silverstripe-security_audit
94: [02:43:00] <FrozenFire> A bit old, but maybe it'll give you the right idea
95: [02:44:00] * DesignerX quit (*.net *.split)
96: [02:44:00] <pex__> documentation link is broken :(
97: [02:45:00] <FrozenFire> Alternatively, I believe Versioned keeps track of every time a user edits that object
98: [02:47:00] <pex__> hmm,ok. but i will try to describe what i need exacly, mabye you dont understand me
99: [02:49:00] <FrozenFire> You are just doing it wrong
100: [02:49:00] <FrozenFire> I do understand you
101: [02:49:00] <FrozenFire> Log externally, not internally.
102: [02:50:00] <pex__> externally?
103: [02:51:00] <pex__> i have other class for it
104: [02:51:00] <pex__> but i have to call it from this DO right?
105: [02:52:00] <pex__> some like onbeforewrite() { $log = new Logger(); $log->userID = 12.....}
106: [02:53:00] <pex__> i dont know other way
107: [02:56:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
108: [03:10:00] <pex__> frozenfire: ok i red the code from this module. I understand now what you mean. But dont unserstand why
109: [03:19:00] * pex__ has left #silverstripe
110: [03:49:00] * Error404NotFound quit (Ping timeout: 248 seconds)
111: [04:04:00] * DigNZ quit (Quit: DigNZ)
112: [04:04:00] * Error404NotFound has joined #silverstripe
113: [04:05:00] * Emil_Blume quit (Quit: Leaving.)
114: [04:06:00] * nickmolhoek quit (Quit: nickmolhoek)
115: [04:06:00] * ratcat quit (Ping timeout: 276 seconds)
116: [04:09:00] <MichaelDesignerX> how can I add more fields to the Settings ModelAdmin in SS3 ?
117: [04:14:00] * BEdge has joined #silverstripe
118: [04:15:00] <BEdge> How do you guys handle unique indexes?
119: [04:16:00] <BEdge> Do I have to manually create them with PHPMyAdmin?
120: [04:19:00] <MichaelDesignerX> Hi BE
121: [04:19:00] <BEdge> Can I specify a field as unique in the DataObject?
122: [04:19:00] * BEdge quit (Client Quit)
123: [04:20:00] <MichaelDesignerX> oh, he left already !
124: [04:20:00] * BEdge has joined #silverstripe
125: [04:21:00] <BEdge> Hello Michael
126: [04:22:00] <MichaelDesignerX> BEdge: hi, check out this http://www.silverstripe.org/customising-the-cms/show/14005 it may help
127: [04:22:00] <BEdge> Accidentally hit close button on iPad.
128: [04:22:00] <BEdge> Cool thanks!
129: [04:23:00] <BEdge> I have both books and I haven't seen it in there either.
130: [04:23:00] <MichaelDesignerX> my book is the internet , books are harder to update :D
131: [04:24:00] <MichaelDesignerX> are the books for ss2 or ss3 ?
132: [04:25:00] <BEdge> Thanks again.
133: [04:25:00] <irogue> 2.3 and 2.4, no books for 3 yet
134: [04:25:00] <BEdge> 2.3 and 2.4
135: [04:27:00] * irogue quit ()
136: [04:29:00] <BEdge> Worked. Thanks again.
137: [04:30:00] * cloph_away1 has joined #silverstripe
138: [04:30:00] * BEdge quit (Quit: Page closed)
139: [04:32:00] * cloph_away quit (Ping timeout: 272 seconds)
140: [04:47:00] * DigNZ has joined #silverstripe
141: [04:52:00] * instabil2 has joined #silverstripe
142: [04:52:00] * DigNZ quit (Client Quit)
143: [04:56:00] * instabil quit (Ping timeout: 276 seconds)
144: [04:59:00] * MichaelDesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
145: [05:05:00] * dendeffe has joined #silverstripe
146: [05:09:00] * Error404NotFound quit (Ping timeout: 248 seconds)
147: [05:09:00] * Error404NotFound has joined #silverstripe
148: [06:01:00] * SticksM quit (Read error: Connection reset by peer)
149: [07:07:00] * dendeffe quit (Quit: dendeffe)
150: [07:35:00] * ratcat has joined #silverstripe
151: [07:43:00] * dendeffe has joined #silverstripe
152: [07:44:00] * DesignerX has joined #silverstripe
153: [07:46:00] * chillu has joined #silverstripe
154: [07:53:00] * iamss has joined #silverstripe
155: [08:14:00] * iamss quit (Ping timeout: 245 seconds)
156: [08:57:00] * ratcat quit (Quit: who said I was leaving :P)
157: [09:19:00] * ss-log has joined #silverstripe
158: [09:39:00] * lx-berlin has joined #silverstripe
159: [09:46:00] <DesignerX> hi, is there any SS GoogleMap widget/code ?
160: [09:47:00] <DesignerX> so client can enter the address & have the map display on the sidebar ?
161: [10:00:00] <ocm_> happy new year everybody :D
162: [10:00:00] * ocm_ has joined #silverstripe
163: [10:00:00] <ocm_> howdy!
164: [10:27:00] <DesignerX> ocm_: happy new year :)
165: [10:29:00] <DesignerX> Question : can I make a funtion return a string then use that function in template ? without having to return "ArrayData()" ?
166: [10:32:00] * ogelami has joined #silverstripe
167: [10:33:00] * ugly_duck quit (Ping timeout: 240 seconds)
168: [10:36:00] * lobarvaz has joined #silverstripe
169: [10:39:00] <discorpia> when is the session initiated?
170: [10:40:00] <discorpia> i get empty response frome session_id() when running in onBeforeInit().. that doesn't seem right
171: [10:52:00] <ocm_> isnt the session initiated at Init() ?
172: [10:54:00] * ogelami quit (Quit: Leaving.)
173: [11:07:00] <discorpia> thanks for you input
174: [11:07:00] <discorpia> ocm_: it seemed another admin had [partially] removed the cache directory in tmp, resulting in no new sessions being written, i.e. session_id() returning empty string
175: [11:16:00] * Shrike_Finland has joined #silverstripe
176: [11:18:00] * ogelami has joined #silverstripe
177: [11:20:00] * ivoba has joined #silverstripe
178: [11:21:00] * dendeffe quit (Quit: dendeffe)
179: [11:32:00] * travis-ci has left #silverstripe
180: [11:32:00] * travis-ci has joined #silverstripe
181: [11:32:00] <travis-ci> [travis-ci] silverstripe/sapphire#1106 (3.0 - 5d9819b : Ingo Schommer): The build passed.
182: [11:32:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d872202ae5fb...5d9819be5347
183: [11:32:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3949414
184: [11:36:00] <DesignerX> Need SS3 help , I am looking to create a tab on the right which have similar setup to the "Settings" , So when I click the tab on the right I only gave TextFields & maybe a dropdown . Is this done using the Model admin ? & how can I get it to work ?
185: [11:52:00] * zfmf has joined #silverstripe
186: [12:00:00] * ARNHOFF has joined #silverstripe
187: [12:09:00] <DesignerX> Hi again, does anyone understand how SiteConfig class has been added to the "Settings" section in the CMS ? I am trying to do the same thing but after reading the code I got lost!
188: [12:17:00] * gelignite has joined #silverstripe
189: [12:46:00] * dendeffe has joined #silverstripe
190: [13:15:00] * UndefinedOffset has joined #silverstripe
191: [13:17:00] * UndefinedOffset quit (Client Quit)
192: [13:17:00] * ogelami quit (Quit: Leaving.)
193: [13:33:00] <lx-berlin> DesignerX: you want to add a new section to the cms (adding a new button to the left menu), without using modeladmin ? is this your question ?
194: [13:47:00] <DesignerX> lx-berlin: SOmething like that, My question is better explain here http://www.silverstripe.org/general-questions/show/21876
195: [13:56:00] <lx-berlin> argh, that was unexpected. adding raphael-min.js to a js combined file brings a JS error in this file.
196: [13:59:00] <DesignerX> lx-berlin: hey, did u get a change to real my post ? I am not sure if it makes sense so let me know if you think I should add/edit anything to it that will help explain it to others
197: [14:01:00] <lx-berlin> btw. our first SS3 site is online :)
198: [14:01:00] <DesignerX> sure
199: [14:01:00] <DesignerX> I already have 2 small ones up & 3rd on the way
200: [14:01:00] <lx-berlin> wanna see ?
201: [14:01:00] <DesignerX> :D
202: [14:01:00] <lx-berlin> not yet. The bug i just mentioned just accured online. So i needed to fix it right now
203: [14:02:00] <DesignerX> woow, very nice
204: [14:02:00] <lx-berlin> http://www.secowarwick.com
205: [14:03:00] <lx-berlin> thanks
206: [14:04:00] <DesignerX> uisng SVG under the slider ?
207: [14:04:00] <lx-berlin> its raphael.js
208: [14:04:00] <lx-berlin> for the curve
209: [14:04:00] <lx-berlin> makes the site a little bit unique
210: [14:06:00] <DesignerX> nice , never heard of it till now
211: [14:07:00] <DesignerX> not much
212: [14:07:00] <lx-berlin> but its additional 89kb in a minified version
213: [14:07:00] <DesignerX> compaired to doing it with images
214: [14:07:00] <lx-berlin> true
215: [14:09:00] <DesignerX> While I am working on my I am building adding up to my master theme, i have saperate layout.css & style.css quickly changes styles, next step is to use LessCSS for things like gradienst & Variable colors :D
216: [14:10:00] <DesignerX> working on my jobs *
217: [14:11:00] <lx-berlin> i will read your post in 2 min
218: [14:11:00] <DesignerX> :) thanks
219: [14:12:00] <DesignerX> I like the Meet us table , how it updates based on dropdown selection
220: [14:13:00] <lx-berlin> thanks. Even nicer is the .ics export we did :)
221: [14:14:00] <C10ne> can I ask you a question, on the bottom of the site the "Ask Us/Find Us/..." part, is that hard coded or editable from the cms?
222: [14:14:00] <C10ne> Nice site :D
223: [14:15:00] <lx-berlin> DesignerX: concerning your question: i have no idea. :)
224: [14:16:00] <lx-berlin> C10ne: what exactly do you mean. The social urls are editable in the settings section of the cms
225: [14:16:00] <DesignerX> lx-berlin: U extend SiteConfig ?
226: [14:16:00] <lx-berlin> all additional sections we added to the cms are by using modeladmin. Or we extended the settings to add a tab with some input fields there
227: [14:16:00] <DesignerX> I am looking for the same idea, the same way we have the Settings section
228: [14:17:00] <lx-berlin> DesignerX: to make sure you dont get me wrong i will upload a screenshot :)
229: [14:18:00] <C10ne> I'm still new to SS, so I'm wondering what's the best way to replace widgets, so I thought that the entire part might be something like that
230: [14:20:00] <lx-berlin> http://www.netefx.de/settings_cms.png
231: [14:20:00] <DesignerX> C10ne: I dont use widgets but I have sections like this split into smaller .ss files then include them in my template in what ever order I need them . Becasue I use a CSS framework , I just change css class on my div & everything fits in
232: [14:21:00] <lx-berlin> i think that this is possible
233: [14:21:00] <lx-berlin> But i wouldnt know how to add a new section
234: [14:21:00] <DesignerX> lx-berlin: ah like that :D , can u have sub_tabs too ?
235: [14:21:00] <lx-berlin> as you can see, we just added some tabs to the Settings section of the cms
236: [14:22:00] <lx-berlin> btw. Did you take a look at "Locations" in the website. Its the best part of the website i think :)
237: [14:22:00] <DesignerX> I guess this have to do for now .. I tried to duplicate then modiofy siteconfig.php but only got an empty section lolz
238: [14:23:00] <zfmf> i should send $MyFieldName to a method
239: [14:23:00] <zfmf> why this doesn't work ?? $Top.MyField($MyFieldName)
240: [14:23:00] <lx-berlin> zfmf: I dont think you can use variables as params in the template
241: [14:24:00] <zfmf> hmm
242: [14:24:00] <lx-berlin> what i expected
243: [14:24:00] <zfmf> when its not a variable its workin lx-berlin
244: [14:24:00] <lx-berlin> does this work ?
245: [14:24:00] <DesignerX> lx-berlin: Now that is fun work u doing with SS3 :D
246: [14:24:00] <lx-berlin> try $Top.MyField(Title)
247: [14:25:00] <DesignerX> lx-berlin: yeh, & now u have good source code to go back to for similar projects :)
248: [14:25:00] <lx-berlin> DesignerX: this was not only fun. The website took quite a while
249: [14:26:00] <C10ne> Locations are a killer, I'm building something similar for what I'm working on
250: [14:26:00] <lx-berlin> i hope so :)
251: [14:26:00] <lx-berlin> do you stil need any advice to extend the Settings section ?
252: [14:27:00] <lx-berlin> C10ne: the cool thing is, that the admin can add new locations in this map in the cms using modeladmin
253: [14:28:00] <DesignerX> lx-berlin: looking now how to add the tabs to Settings'
254: [14:28:00] * Err404NotFound has joined #silverstripe
255: [14:28:00] * Error404NotFound quit (Disconnected by services)
256: [14:28:00] <lx-berlin> DesignerX: if so, we have to hurry up. I must leave in 10min
257: [14:28:00] <C10ne> Same here, but I don't do it in model admin, but directly on a page. I like to keep everything they can edit connected to the page it displays on.
258: [14:29:00] <lx-berlin> C10ne: As you can see here http://www.netefx.de/settings_cms.png i am building modeladmins whenever its possible :)
259: [14:29:00] <DesignerX> is it MyClass extends SiteConfig or do i decorate the class ?
260: [14:30:00] <DesignerX> yeh , looks good, for FAQ , what JS/JQuery plugin u used ?
261: [14:30:00] <C10ne> It is a model admin by function, just not displayed in the left menu
262: [14:31:00] <lx-berlin> DesignerX: to make it short i will paste the code from the site
263: [14:31:00] <DesignerX> C10ne: :D same here, I have many things loaded on the HomePage class lolz , need to clean up my code & put settings where they belong
264: [14:31:00] <zfmf> lx-berlin: any idea why only first two validators are working here? are netefxvalidator tested with scaffoldformfields: http://sspaste.com/paste/show/50e6e7973e939
265: [14:32:00] <lx-berlin> does this help ?
266: [14:32:00] <lx-berlin> DesignerX: http://www.sspaste.com/paste/show/50e6e7f8f0098
267: [14:33:00] <lx-berlin> ok, forget everything below line 63
268: [14:33:00] <DesignerX> lx-berlin: yeh thanks, I gues I also need something in _config.php , but all good I will look that one up , Thanks for the help :D
269: [14:34:00] <DesignerX> I remember now how to do it :D
270: [14:34:00] <C10ne> lx-berlin: the images in faq/your contact are not resized before displaying
271: [14:34:00] <lx-berlin> zfmf: i have no idea, since all are required rules and you added all of them to the validator
272: [14:35:00] * samthejarvis has joined #silverstripe
273: [14:35:00] <lx-berlin> C10ne: can you give me the URL ?
274: [14:36:00] <lx-berlin> thanks !
275: [14:36:00] <lx-berlin> yep
276: [14:36:00] <lx-berlin> i found it
277: [14:36:00] <C10ne> np, was just browsing around and noticed it takes too long to load
278: [14:36:00] <lx-berlin> thanks for letting me know
279: [14:36:00] <C10ne> lx-berlin: http://www.secowarwick.com/en/solutions/faq/show/what-is-a-radiation-tube/
280: [14:37:00] <DesignerX> C10ne: he is using the CSS resize but not the SS image resize
281: [14:37:00] <lx-berlin> :)
282: [14:37:00] <lx-berlin> we just forgot to. This will be fixed today
283: [14:38:00] <lx-berlin> or you mean, that there is additional text and images in the menu ?
284: [14:38:00] <DesignerX> :) now, U are free to go :D
285: [14:38:00] <lx-berlin> ? you mean dropdown menus ?
286: [14:38:00] <C10ne> one more question, probably a simple one, how do you handle multiple menus?
287: [14:38:00] <C10ne> Like what you have on top secowarwick, career... and company...
288: [14:39:00] <DesignerX> C10ne: I think add 2 new boolean fields to each page , add to menu1 ? add to menu 2 ? then get pages & filter based on the selection
289: [14:39:00] <samthejarvis> g'day all, got a question about UploadField, is there any way to remove the Edit button?
290: [14:39:00] <lx-berlin> ah
291: [14:39:00] <lx-berlin> similar
292: [14:40:00] <samthejarvis> (and preferably the edit permissions)
293: [14:40:00] <lx-berlin> each menu is rendered with its own template file
294: [14:40:00] <lx-berlin> its an addtional property of Page, that we call "WhichMenu" . The admin can select "TopMenu", "MainMenu", "FooterMenu"
295: [14:40:00] <lx-berlin> ok, now i need to run. cu all
296: [14:40:00] <C10ne> DesignerX: That would work
297: [14:41:00] * lx-berlin has left #silverstripe
298: [14:41:00] <DesignerX> c ua 7 ty ty
299: [14:41:00] <C10ne> lx-berlin: thanks, it would make it a bit harder for the ordering thru the site tree
300: [14:41:00] <C10ne> samthejarvis: you can edit the templates for upladField
301: [14:42:00] <samthejarvis> good plan, thanks
302: [14:42:00] <DesignerX> C10ne: I think there is another way, let me check the class
303: [14:42:00] <samthejarvis> it seems i can edit them per instance, which is fine :>
304: [14:42:00] <C10ne> but, that would remove it permanently
305: [14:44:00] <C10ne> DesignerX: Yeah, I could also pay a bit more attention to the classes, but I worked with uploadField.js on some previous project, so I kept the habit :)
306: [14:45:00] <samthejarvis> though hacking the template doesn't stop a user being smart and posting data to the right url
307: [14:45:00] <samthejarvis> ah, i can set the allowed_actions
308: [14:47:00] <DesignerX> samthejarvis: if that doesnt work, a simple Css to hide tha button will do the trick
309: [14:48:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
310: [14:48:00] <DesignerX> gtg 1:45 am , zzzZZZzz time
311: [14:48:00] <DesignerX> c u later
312: [14:49:00] <C10ne> samthejarvis: you have http://api.silverstripe.org/3.0/framework/forms/UploadField.html#methodsetTemplateFileButtons
313: [14:49:00] <samthejarvis> yep, i've got that far, thanks
314: [14:52:00] <C10ne> yw
315: [14:56:00] <Zauberfisch> just checked out latest master
316: [14:56:00] <Zauberfisch> pretty awesome work
317: [14:57:00] <Zauberfisch> chillu big compliments to all the folks at ss, the new side by side editing is amazing
318: [14:58:00] * houleness has joined #silverstripe
319: [14:58:00] <chillu> Yay, glad you like it!
320: [15:00:00] <houleness> In SS3 my content managers can only create pagetype "Page", and custom page types they try to add give a "Forbidden" error. Do I need to add something to each pagetype for that? I tried stuff like this function canCreate($Member = null) { return true; } but no dice.
321: [15:02:00] <houleness> @chillu any ideas?
322: [15:03:00] <houleness> 3.0.3
323: [15:03:00] <chillu> version?
324: [15:04:00] * Shrike_Finland quit (Quit: Leaving.)
325: [15:05:00] <samthejarvis> the side-by-side editing is just what SS needs to entice people to start using it also
326: [15:05:00] <houleness> do I need a canCreate function? Or should that be true for publishers by default? I don't understand why they can create page, but all the other pages that extend page get the forbidden error.
327: [15:10:00] * samthejarvis quit (Quit: Page closed)
328: [15:13:00] <chillu> houleness: I've just tried this on a default install witha simple "MyPage extends Page" class, can't reproduce
329: [15:13:00] <chillu> Logged in as a user in the default "Content Authors" group
330: [15:15:00] <houleness> So strange. I have the issue on all my 3.0.3 sites. Here is a screenshot of the groups permissions http://cl.ly/image/0U0o2t412C3I That should be fine, right?
331: [15:17:00] <zfmf> is tehre a another method for dataFieldByName which is not only returning the data field also name title all attributes
332: [15:21:00] <houleness> chillu: here is my simplest page - http://cl.ly/image/0n0M2K3E1A0I and the corresponding error when a content manager tries to add that page - http://cl.ly/image/2a3v2i0h0h0L
333: [15:29:00] <chillu> houleness: Can you reproduce on a fresh install with this page type?
334: [15:30:00] <chillu> And can you click on "hi andrew" and screenshot the "permissions" tab?
335: [15:30:00] <houleness> I'll try
336: [15:32:00] <houleness> chillu: here's the permission tab screenshot - http://cl.ly/image/023d3q141I0p
337: [15:33:00] <chillu> Oh, uhm there should be *another* tab, but its not there for some reason??? well, then the "permissions" tab of the group this user is a member in
338: [15:34:00] <houleness> chillu: do you mean this one? http://cl.ly/image/0U0o2t412C3I
339: [15:35:00] <chillu> yeah - hm that looks good.
340: [15:46:00] <Marvanni> When you do DO::get(); where is the DataList created from the query results?
341: [16:01:00] * dendeffe quit (Quit: dendeffe)
342: [16:09:00] <houleness> chillu: I think I've narrowed down the issue. Looks like it's tied to the "Who can create pages in the root of the site?" option. Once that is removed content managers can add any pagetype??? When they do it's added to the root of the site despite properly selecting the "Under another page" option properly. Is this a known bug?
343: [16:12:00] <Marvanni> Is there a way to hook in dev/build, i.e. add an extra task?
344: [16:18:00] <chillu> houleness: I don't understand. So you've limited the "who can create on root" option to a group that the currently logged-in user is not a member of? In that case its correct behaviour
345: [16:19:00] <chillu> But he shouldn't be able to create *any* page types, including the base "Page" type.
346: [16:19:00] <chillu> Which he can't in my own tests, so can't see anything wrong
347: [16:20:00] <houleness> chillu: No, the content mgr should only be limited from creating pages in the root of the site, but that option seems to limit him from creating pages anywhere on the site.
348: [16:21:00] <houleness> No matter what is chosen for the "Under another page" option it tries to throw the page on the root level, so for content mgrs without that permission, they get the forbidden error
349: [16:22:00] <chillu> Works for me as well. Can you check which data gets submitted via ajax when clicking "add"? Maybe it doesn't register the selection change somehow
350: [16:23:00] <chillu> And that's on a clean install as well? Where you've just set up the group with one user, and the restriction on "who can create on root" with a clean db?
351: [16:23:00] <houleness> Yeah, I just tested on a clean install
352: [16:25:00] * catcher has joined #silverstripe
353: [16:33:00] <houleness> chillu: you can replicate the issue signed in as a content manager on my test site. URL - http://apps.niagara.edu/sstestsite/admin/ Username - Test, Password - password
354: [16:35:00] <chillu> houleness: I've just created a new "My Page" under "About Us" and "Contact Us", no problem
355: [16:35:00] <chillu> Chrome 23
356: [16:39:00] <houleness> chillu: here's a screencast of me replicating the error on firefox 17.0.1 - http://cl.ly/2h1B0X220Q2s
357: [16:40:00] <houleness> chillu: just tested in Chrome 23 and you're right, it works fine there
358: [16:42:00] <chillu> The ParentID <input> doesn't be populated properly in FF
359: [16:46:00] <catcher> to remove a component
360: [16:46:00] <houleness> Hopefully something that gets fixed in a future release then
361: [16:46:00] <catcher> hm, how can I get to one gridfield contained in another?
362: [16:48:00] <catcher> maybe it's not nested in the FieldList like I think it is.
363: [16:52:00] * ocm_ quit ()
364: [16:54:00] * houleness quit (Quit: houleness)
365: [16:56:00] <catcher> ModelAdmin is managing PhotoSeries and PhotoSeriesCategory. PhotoSeriesCategory has_many PhotoSeries, so I'm not sure how dataFieldByName('PhotoSeries') can be deterministic if they're not nested.
366: [16:56:00] <catcher> Ah, I think I see now.
367: [16:59:00] <catcher> It needs to be done at the PSC getCMSFields() level. Still curious how the other way works though.
368: [17:02:00] * UndefinedOffset has joined #silverstripe
369: [17:19:00] * Marvanni quit (Ping timeout: 264 seconds)
370: [17:20:00] * Marvanni has joined #silverstripe
371: [17:24:00] * ivoba quit (Quit: Leaving)
372: [17:26:00] * Marvanni has joined #silverstripe
373: [17:26:00] * Marvanni quit (Ping timeout: 260 seconds)
374: [17:34:00] * CodeTrap has joined #silverstripe
375: [17:54:00] <Gerhardt> hello
376: [17:54:00] * Gerhardt has joined #silverstripe
377: [17:55:00] <Gerhardt> is anyone available?
378: [17:56:00] <catcher> perhaps, depends on the question..
379: [17:57:00] <Gerhardt> i just installed the new version of silverstripe, yet the htmleditorfield is not showing, and i can't get anything edited
380: [17:57:00] <Gerhardt> have used older version of SS, but a lot has changed
381: [17:57:00] <Gerhardt> yeah
382: [17:57:00] <catcher> And other fields in the same interface are working?
383: [17:57:00] <Gerhardt> textfield and metadata is working
384: [17:57:00] <catcher> All other fields are showing?
385: [17:58:00] <Gerhardt> content block not showing
386: [17:58:00] <C10ne> re-check if everything is there
387: [17:58:00] <catcher> Are you adding your new HTML field to 'Root.Main'?
388: [17:58:00] <C10ne> You have some javascript errors
389: [17:58:00] <Gerhardt> and when i click edit, i can't navigate away
390: [17:59:00] <Gerhardt> yes, have redownloaded and reinstalled 3 times now
391: [17:59:00] <Gerhardt> showing no errors in firebug
392: [17:59:00] <C10ne> did you download ziped archive?
393: [18:00:00] <Gerhardt> that is already created, i have not created any other custom pages
394: [18:00:00] <Gerhardt> kk
395: [18:00:00] <C10ne> or get it from github
396: [18:00:00] <Gerhardt> no, this is just for the default page
397: [18:00:00] <C10ne> get the tar.gz, I also had some trouble with the zip.
398: [18:07:00] <C10ne> is there a way (and what) to extend every object creation function (DO, Page)?
399: [18:13:00] * ray__ has joined #silverstripe
400: [18:14:00] <Gerhardt> still the same problem, meh
401: [18:14:00] <catcher> Gerhardt, I still suspect your getCMSFields(), will you sspaste.com it?
402: [18:15:00] <Gerhardt> thing is, this is a fresh install, i installed it, logged into admin, went to home page, and it froze
403: [18:15:00] <Gerhardt> without creating any custom pages
404: [18:16:00] <Gerhardt> yes
405: [18:16:00] <catcher> Gerhardt, with no custom code whatsoever?
406: [18:16:00] <C10ne> Gerhardt: when you enter edit form, try to refresh the page, and see if it reports any errors there
407: [18:16:00] <catcher> which version?
408: [18:16:00] <Gerhardt> from site, 3.0.3
409: [18:17:00] <Gerhardt> can't see any errors
410: [18:18:00] <catcher> Gerhardt, make sure you're in dev mode (_config.php), set php to show errors
411: [18:18:00] <catcher> If it's js, that won't help, but it's a good place to start.
412: [18:19:00] <C10ne> I had some trouble with "No template found..." on fresh install, but extracting tar.gz sorted it out
413: [18:21:00] <catcher> Gerhardt, also ?flush=all
414: [18:21:00] <Gerhardt> maybe its the workflow
415: [18:23:00] <Gerhardt> its like its not calling any requests when i click something
416: [18:23:00] <catcher> Gerhardt, what's happening on the front end?
417: [18:24:00] <Gerhardt> front end is fine
418: [18:24:00] <Gerhardt> dev/build is fine
419: [18:24:00] <Gerhardt> datebase is there
420: [18:26:00] <C10ne> check the ajax requests in console, they may appear to load fine, but in stead return an error
421: [18:27:00] <C10ne> responses, that is
422: [18:29:00] * CodeTrap quit (Ping timeout: 260 seconds)
423: [18:30:00] <Gerhardt> yeah, i have no idea
424: [18:30:00] <Gerhardt> no errors
425: [18:31:00] <Gerhardt> found the error
426: [18:31:00] <Gerhardt> siiiiiiiiiiigh
427: [18:31:00] <C10ne> so you have Chrome installed?
428: [18:32:00] <Gerhardt> removed it, now everything works
429: [18:32:00] <Gerhardt> in the url
430: [18:32:00] <Gerhardt> because earlier, i had to add index.php
431: [18:32:00] <C10ne> *do
432: [18:32:00] <catcher> why did you have to add index.php?
433: [18:33:00] <C10ne> it should also work with index in the url, so it's probably a mod_rewrite thing
434: [18:33:00] <catcher> mod_rewrite issues?
435: [18:37:00] <Gerhardt> yeah
436: [18:40:00] <lobarvaz> Hai guise! Any idea how to reload a form after an action method and keep the fields populated?
437: [18:40:00] * popeshoe quit (Quit: This computer has gone to sleep)
438: [18:41:00] <FrozenFire> That's one bit of functionality in SS that hasn't been well-documented. My recollection (though only having done it in 2.4) is that you can push certain values into the session and it will load them on next display
439: [18:41:00] <FrozenFire> Something like Session::set("FormName.FieldName", $value);
440: [18:42:00] <lobarvaz> Great, I'll try that. Thanks!
441: [18:43:00] * CodeTrap has joined #silverstripe
442: [18:46:00] <UndefinedOffset> webguest: look into Requirements::block()
443: [18:46:00] * webguest has joined #silverstripe
444: [18:46:00] <webguest> if i do render with, how can i block the default css files from loading?\
445: [18:46:00] <catcher> I thought returning the form from the action would re-populate by default.
446: [18:47:00] <UndefinedOffset> you can also clear all requirements with Requirements::clear()
447: [18:48:00] <webguest> http://paste2.org/p/2695939
448: [18:48:00] <webguest> yes i know, but where is the controller for the render with page
449: [18:48:00] <webguest> i currently just have a function in page.php
450: [18:49:00] <webguest> for the whole site
451: [18:49:00] <webguest> where is the controller function that i can type, requirements block
452: [18:49:00] <webguest> for this specific page
453: [18:49:00] <UndefinedOffset> webguest: then the controller will be the controller defined in page.php
454: [18:49:00] <webguest> IF I block something there, my whole site is looking weird
455: [18:49:00] <webguest> cause there are the general css files
456: [18:49:00] * lobarvaz has left #silverstripe
457: [18:50:00] <webguest> should i create an init() inside my function
458: [18:50:00] <webguest> maybe im calling it wrong
459: [18:56:00] * Marvanni quit (Ping timeout: 255 seconds)
460: [18:58:00] * Marvanni has joined #silverstripe
461: [18:59:00] * Bollig|DesignCty has joined #silverstripe
462: [19:11:00] * flamman has joined #silverstripe
463: [19:11:00] <Gerhardt> does Folder still work with Dataobject::get ?
464: [19:13:00] <catcher> Gerhardt, my db says 'Folder' is a valid File class, so I'd say yes.
465: [19:13:00] <Gerhardt> hmmmm ok thanks
466: [19:14:00] <catcher> Don't forget about the ORM updates though, it's Folder::get() now
467: [19:15:00] * flamman quit (Ping timeout: 245 seconds)
468: [19:15:00] <Gerhardt> hehe so it has changed
469: [19:15:00] <Gerhardt> ah
470: [19:15:00] <catcher> tested, it does indeed still work
471: [19:15:00] <webguest> UndefinedOffset solved
472: [19:15:00] <webguest> http://paste2.org/p/2696118
473: [19:17:00] <catcher> Gerhardt, DataObject::get() is deprecated completely, not just related to Folder.
474: [19:17:00] * Liquide has joined #silverstripe
475: [19:18:00] <catcher> DataObject::get shouldn't be used for anything, and Folder works as it should.
476: [19:20:00] * webguest quit (Ping timeout: 245 seconds)
477: [19:24:00] <Gerhardt> for gallery
478: [19:24:00] <Gerhardt> with a dropdownfield in the cms
479: [19:24:00] <Gerhardt> i just created a has_one folder relationship
480: [19:38:00] * terryapodaca has joined #silverstripe
481: [19:41:00] <FrozenFire> Bad Gateway error on /admin/pages
482: [19:41:00] * FrozenFire laughs at himself
483: [19:41:00] <FrozenFire> Was looking for an answer to an issue I'm having
484: [19:42:00] * ARNHOFF is now known as ARNHOE
485: [19:42:00] <ARNHOFF> life is though with that kind of stuff sometimes :p
486: [19:42:00] <FrozenFire> fml
487: [19:42:00] <FrozenFire> Searched it on Google. Got a log of me saying "Bad Gateway usually has nothing to do with SilverStripe"
488: [19:43:00] * Zauberfisch quit (Ping timeout: 246 seconds)
489: [19:44:00] <FrozenFire> I'm apparently getting this issue only on /admin/pages, assets and settings
490: [19:45:00] <FrozenFire> Boy that's frustrating
491: [19:46:00] <terryapodaca> any reason why that doesn't work in SS3?
492: [19:46:00] <terryapodaca> $from = $data['Email'];
493: [19:47:00] <terryapodaca> trying to send a Contact Form via email but it's not taking this variable
494: [19:48:00] <FrozenFire> Except for if you have an issue elsewhere
495: [19:48:00] <FrozenFire> Yeah, by all rights that would work. ;)
496: [19:48:00] <catcher> ha
497: [19:48:00] <UndefinedOffset> terryapodaca: paste of the code per-chance?
498: [19:49:00] <terryapodaca> let me give this a good look over for any errors in the code, then i'll pastie it or something
499: [19:49:00] <catcher> terryapodaca, debug::show($data); in the action, make sure it's there
500: [19:51:00] <FrozenFire> Oh that's frustrating
501: [19:52:00] <FrozenFire> On the Pages tab, it doesn't, because the inner area is loaded via AJAX always
502: [19:52:00] <FrozenFire> I think this issue is *only* happening when doing AJAX loads
503: [19:52:00] <FrozenFire> If I'm in the CMS and click the assets tab, it tries to load via AJAX and gets a bad gateway
504: [19:52:00] <FrozenFire> If I refresh thereafter, it loads fine
505: [19:53:00] <terryapodaca> damn...debug shows it's all there
506: [19:53:00] <terryapodaca> smh
507: [19:54:00] <catcher> fieldname typo?
508: [19:55:00] * Zauberfisch has joined #silverstripe
509: [20:05:00] <Gerhardt> have you had any problems with the new drag&drop ?
510: [20:05:00] <Gerhardt> catcher
511: [20:06:00] <catcher> not outside of having to increase pagination counts so I don't have to flip boundaries.
512: [20:06:00] <catcher> Oh, you're talking about CMS, not gridField sort component
513: [20:06:00] <Gerhardt> the sitetree drag&drop
514: [20:06:00] <Gerhardt> mine just stopped working
515: [20:07:00] <catcher> right, sitetree. Pretty smooth for me - I occasionally have to repeat my action, and occasionally have to refresh the CMS.
516: [20:09:00] <Gerhardt> ah, just had to flush=all
517: [20:15:00] * Shrike_Finland has joined #silverstripe
518: [20:29:00] * popeshoe has joined #silverstripe
519: [20:40:00] <terryapodaca> [User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'ArrayData'
520: [20:41:00] * popeshoe quit (Quit: This computer has gone to sleep)
521: [20:43:00] <FrozenFire> MediaTemple dv CentOS server with Plesk that configures by default an nginx reverse proxy with a buffer size that is too small
522: [20:43:00] <FrozenFire> Wow. That was an adventure
523: [20:43:00] <FrozenFire> Finally fixed my Bad Gateway issue
524: [20:44:00] <FrozenFire> So I had to modify the default vhost nginx configuration template for Plesk to propagate a larger buffer size to the vhost's configuration
525: [20:44:00] <FrozenFire> So the AJAX requests in the CMS result in a bad gateway error, as they transfer a lot of state information upstream
526: [20:46:00] <FrozenFire> Yuck indeed
527: [20:46:00] <catcher> yuck
528: [20:47:00] * CodeTrap quit (Ping timeout: 260 seconds)
529: [20:48:00] <FrozenFire> I really need to figure out a better assets management system
530: [20:48:00] <FrozenFire> Maybe git-annex
531: [20:49:00] <FrozenFire> Which is probably a better idea
532: [20:49:00] <FrozenFire> Or git-media
533: [20:51:00] <FrozenFire> Then again, I suspect those things will screw up deployment
534: [21:01:00] * zfmf has left #silverstripe
535: [21:04:00] * Gerhardt quit (Ping timeout: 245 seconds)
536: [21:22:00] * chillu quit (Quit: chillu)
537: [21:34:00] <terryapodaca> how do I get PhoneNumberField in the template?
538: [21:36:00] <terryapodaca> I think it's split into three so it's coming in as an array and errors in the email template
539: [21:39:00] * pex__ has joined #silverstripe
540: [21:41:00] * UndefinedOffset quit (Read error: Connection reset by peer)
541: [21:47:00] <catcher> terryapodaca, hm, I'd think that'd send back an ArrayData instead of an array. You may need to re-work $data if that's what's happening.
542: [21:55:00] <FrozenFire> The length limit is too short, among other issues
543: [21:55:00] <FrozenFire> It's beyond broken
544: [21:55:00] <FrozenFire> terryapodaca, Honestly, I'd recommend *not* using PhoneNumberField
545: [22:06:00] * OomElvis has joined #silverstripe
546: [22:07:00] <terryapodaca> just use an integer field then?
547: [22:07:00] <terryapodaca> well crap
548: [22:07:00] <terryapodaca> i was excited to try and use it
549: [22:08:00] * DesignerX has joined #silverstripe
550: [22:10:00] <DesignerX> good morning, I am trying to create a member in the Php code & set its Group(s) , the setGeoup(s) part is not working for mer, here is my code https://gist.github.com/4457746
551: [22:12:00] <DesignerX> I copied most of this code from the core (where Admin is created & have the group set) but no luck :(
552: [22:15:00] <catcher> DesignerX, to begin, it looks like you're trying to create a member with an email address that belongs to another member.
553: [22:16:00] <catcher> DesignerX, email addresses need to be unique for Member.
554: [22:17:00] <DesignerX> the problems is when this member is created it doesnt belong to any group
555: [22:17:00] <DesignerX> catcher: The member part get created, the full code checks if !$getmember then excute the code
556: [22:18:00] <catcher> get_groups_by_permission returns an SS_List, so $getGroup won't have an ID field
557: [22:19:00] <DesignerX> oh,
558: [22:20:00] <terryapodaca> that's not my exact code, but it's very very similar to mine
559: [22:20:00] <catcher> $getGroup = Permission::get_groups_by_permission('content-authors')->first();
560: [22:20:00] <terryapodaca> http://www.sspaste.com/paste/show/4ffc7cbc7d719
561: [22:20:00] <terryapodaca> any ideas why the email wouldn't be sending?
562: [22:30:00] <catcher> terryapodaca, have you inspected the email before the send() action? particularly, $this->Mailto?
563: [22:36:00] <DesignerX> catcher: adding firest()->ID get me this : Trying to get property of non-object
564: [22:41:00] <catcher> firest()?
565: [22:41:00] <DesignerX> first() *
566: [22:42:00] <DesignerX> typo just here lolz , didnt copy/paste
567: [22:42:00] <DesignerX> I did this instead : $getGroup = Group::get()->filter(array('Code'=>'content-authors'))->first(); should I be doing this with permisstions ?
568: [22:43:00] <catcher> DesignerX, as long as you're getting the right GroupID, doesn't matter.
569: [22:43:00] <DesignerX> yep, its working ty
570: [22:44:00] <DesignerX> what I dont get that can multiple groups have the same Code ?
571: [22:47:00] <catcher> I don't think so..
572: [22:48:00] <DesignerX> mm, anyways the Code field is not unique becasue I had more then one group with the same code
573: [23:03:00] * liam has joined #silverstripe
574: [23:05:00] <FrozenFire> Is there a way to get the length of a Text field in a template?
575: [23:06:00] <FrozenFire> E.g. <% if MenuTitle.Length %> ...
576: [23:17:00] <pex__> i try to do CustomLoginForm (tip from SSbits) on SS3 for automatic user redirection after login. I was used return Director::redirect(Director::baseURL() . 'admin' ); but i got informed that Director::redirect was deprecated
577: [23:17:00] <pex__> and i should use Controller->redirect instead. I try but it wont work :(
578: [23:17:00] <catcher> redirect has been moved to Controller,
579: [23:18:00] <pex__> return Controller->redirect(Director::baseURL() . 'admin' ); return an error
580: [23:18:00] <catcher> pex__, are you in the context of a controller?
581: [23:18:00] <catcher> if so, you want $this->redirect...
582: [23:19:00] <pex__> i am in class extending memberloginform
583: [23:19:00] <pex__> ok i try
584: [23:20:00] <catcher> gotta jet, later y'all
585: [23:20:00] <catcher> happy weekend!
586: [23:21:00] * catcher quit (Quit: Leaving)
587: [23:27:00] * terryapodaca quit (Quit: Leaving.)
588: [23:30:00] * OomElvis quit (Ping timeout: 255 seconds)
589: [23:39:00] * OomElvis has joined #silverstripe
590: [23:53:00] * ARNHOE quit (Read error: Connection reset by peer)

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