#silverstripe IRC Log

IRC log for 5 January 2013

All timestamps are in UTC.

1: [00:00:00] * ugly_duck has joined #silverstripe
2: [00:00:00] * ugly_duck has joined #silverstripe
3: [00:00:00] * ugly_duck quit (Changing host)
4: [00:02:00] * Shrike_Finland quit (Quit: Leaving.)
5: [01:15:00] * pex__ has left #silverstripe
6: [01:34:00] * OomElvis quit (Ping timeout: 240 seconds)
7: [01:35:00] * OomElvis has joined #silverstripe
8: [02:07:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
9: [02:15:00] * OomElvis quit (Ping timeout: 255 seconds)
10: [02:35:00] * liam quit (Ping timeout: 265 seconds)
11: [02:35:00] * liam has joined #silverstripe
12: [03:09:00] * gelignite has joined #silverstripe
13: [03:31:00] * ray__ quit (Ping timeout: 245 seconds)
14: [04:06:00] * popeshoe has joined #silverstripe
15: [04:16:00] * instabil2 quit (Read error: Connection reset by peer)
16: [04:21:00] * popeshoe quit (Quit: This computer has gone to sleep)
17: [04:31:00] * cloph_away1 quit (Ping timeout: 248 seconds)
18: [04:31:00] * cloph_away has joined #silverstripe
19: [04:44:00] * ratcat has joined #silverstripe
20: [05:14:00] * Err404NotFound quit (Ping timeout: 276 seconds)
21: [05:26:00] * Err404NotFound has joined #silverstripe
22: [05:42:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
23: [05:43:00] * SightUnseen has joined #silverstripe
24: [05:43:00] * SightUnseen has left #silverstripe
25: [05:49:00] * Error404NotFound has joined #silverstripe
26: [05:53:00] * Error404NotFound quit (Disconnected by services)
27: [05:53:00] * Err404NotFound has joined #silverstripe
28: [06:15:00] * Err404NotFound is now known as Error404NotFound
29: [08:09:00] * streetspirit has joined #silverstripe
30: [08:13:00] * streetspirit quit (Ping timeout: 245 seconds)
31: [08:40:00] * Error404NotFound quit (Ping timeout: 260 seconds)
32: [08:43:00] * Error404NotFound has joined #silverstripe
33: [09:46:00] * zfmf has joined #silverstripe
34: [09:57:00] * SightUnseen has joined #silverstripe
35: [09:58:00] * SightUnseen has left #silverstripe
36: [10:05:00] * Shrike_Finland has joined #silverstripe
37: [10:33:00] * SightUnseen has joined #silverstripe
38: [10:40:00] * SightUnseen has left #silverstripe
39: [11:00:00] * Err404NotFound has joined #silverstripe
40: [11:00:00] * Error404NotFound quit (Disconnected by services)
41: [11:08:00] * Liquide quit ()
42: [11:13:00] * gelignite quit (Ping timeout: 276 seconds)
43: [11:14:00] * gelignite has joined #silverstripe
44: [11:17:00] * C10ne quit (Quit: Page closed)
45: [11:18:00] * C10ne has joined #silverstripe
46: [11:39:00] <Shrike_Finland> Is there something changed in SS3.1 on push? Example of "old" code in here: http://www.sspaste.com/paste/show/50e810d2288d6
47: [11:39:00] <Shrike_Finland> hello guys
48: [11:40:00] <Shrike_Finland> Should I use insertAfter instead of push?
49: [11:41:00] * ARNHOFF has joined #silverstripe
50: [11:54:00] * ChairyOnehouse has joined #silverstripe
51: [11:55:00] <ChairyOnehouse> hello my friends!
52: [11:55:00] <Shrike_Finland> hello
53: [11:56:00] * ratcat waves
54: [11:56:00] <ChairyOnehouse> very lame quaestion: what does :::php mean in the github examples?
55: [11:56:00] <zfmf> he guys i added for a DO a field active , i'm generating a form with scaffoldFormFields, now im getting all rows from the DO but i want only this with active=1 is there a easy way to do this
56: [12:02:00] <Shrike_Finland> ChairyOnehouse: what do you mean? Where?
57: [12:03:00] * Err404NotFound is now known as Error404NotFound
58: [12:13:00] * Shrike_Finland1 has joined #silverstripe
59: [12:13:00] * Shrike_Finland quit (Quit: Leaving.)
60: [12:16:00] * gelignite quit (Ping timeout: 272 seconds)
61: [12:22:00] * gelignite has joined #silverstripe
62: [12:44:00] * onre quit (Ping timeout: 264 seconds)
63: [12:44:00] * onre has joined #silverstripe
64: [12:45:00] * onre is now known as Guest80764
65: [12:46:00] * Guest80764 quit (Changing host)
66: [12:46:00] * Guest80764 has joined #silverstripe
67: [12:46:00] * Guest80764 is now known as onre_
68: [12:55:00] * pex__ has joined #silverstripe
69: [12:57:00] <DesignerX> anyone using composer ?
70: [13:04:00] <ss23> http://www.cs.dartmouth.edu/~sergey/langsec/occupy/
71: [13:10:00] <pex__> doc link is broken :(
72: [13:10:00] <pex__> has anyone documentation for security audit module?
73: [13:12:00] <Shrike_Finland1> How can I set the dateformat in GridFields summary_fields?
74: [13:32:00] * pex__ has left #silverstripe
75: [14:11:00] * ratcat quit (Ping timeout: 276 seconds)
76: [14:20:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
77: [14:36:00] * liam quit (Ping timeout: 256 seconds)
78: [14:36:00] * liam has joined #silverstripe
79: [14:39:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
80: [14:41:00] <C10ne> ChairyOnehouse: That just marks that it's a php example, and often marks the place where you should put opening php tag (if the code is complete example of file)
81: [15:26:00] * zfmf has left #silverstripe
82: [15:42:00] * dendeffe has joined #silverstripe
83: [15:50:00] * pex__ has joined #silverstripe
84: [15:52:00] <pex__> i have a DO managed by Modeladmin. I need to check some things in onBeforeWrite and eventually return some info for user
85: [15:53:00] <pex__> i'am trying do that like http://doc.silverstripe.org/framework/en/topics/datamodel#onBeforeWrite
86: [15:53:00] <pex__> i try to use user_error but i get an error
87: [15:53:00] <pex__> how can i do that?
88: [16:12:00] * dendeffe quit (Quit: dendeffe)
89: [17:39:00] * CodeTrap has joined #silverstripe
90: [17:47:00] * CodeTrap quit (Quit: CodeTrap)
91: [18:08:00] <C10ne> What data type should be used for CountryDropdownField?
92: [18:13:00] <FrozenFire> Varchar
93: [18:14:00] <FrozenFire> Pretty sure three characters will suffice
94: [18:15:00] <FrozenFire> In fact, two will
95: [18:18:00] <C10ne> yeah, forgot to check value for the created select... I believe it takes 5 chars, as the value is full locale code
96: [18:19:00] <C10ne> But can't use it for what I wanted for now, would have to change a lot of javascript
97: [18:23:00] <FrozenFire> The returned value is two characters
98: [18:23:00] <FrozenFire> I just looked at an existing one
99: [18:23:00] <FrozenFire> http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
100: [18:24:00] <FrozenFire> I mean, it's not hard to create your own DropdownField making use of Zend_Locale as your data source
101: [18:24:00] <FrozenFire> Oh, you're talking about a different thing?
102: [18:25:00] <FrozenFire> Zend_Locale is available through the framework
103: [18:32:00] <C10ne> and stored value is en_US
104: [18:32:00] <C10ne> the way it's set up for the siteconfig is: Locale varchar(16)
105: [18:32:00] <FrozenFire> Ah. Yeah, you're looking for a locale selector?
106: [18:33:00] <C10ne> No, just wanted to use that nice dropdown field :)
107: [18:33:00] <FrozenFire> Which is rather different than a country selector
108: [18:46:00] <C10ne> Hm, in fact, when you create it, it uses only 2-character code
109: [18:48:00] <FrozenFire> Didn't I say that?
110: [18:48:00] <FrozenFire> :P
111: [18:50:00] <C10ne> I was looking at SiteConfig one, thought that would be the default settings, but it isnt
112: [18:50:00] * pex__ has left #silverstripe
113: [18:50:00] <C10ne> 'Yes, you were right.
114: [18:51:00] <FrozenFire> Canada has two, iirc
115: [18:51:00] <FrozenFire> Yeah, there's a big difference between Locale, which SiteConfig handles, and country
116: [18:51:00] <FrozenFire> There can be several locales per country
117: [18:51:00] * gelignite has joined #silverstripe
118: [19:07:00] * Bollig|DesignCty quit (Read error: Connection reset by peer)
119: [19:18:00] * Bollig|DesignCty has joined #silverstripe
120: [19:50:00] * Liquide has joined #silverstripe
121: [19:59:00] * Wilson has joined #silverstripe
122: [19:59:00] * Wilson is now known as Guest7411
123: [20:00:00] <Guest7411> Hi everyone. I need to loop through children of a holder page and render each child with it's actual template. For example if children are, Page1, Page2, I need to render using Page1.ss and Page2.ss all on parent page. Could anyone point me in the right direction?
124: [20:01:00] <Guest7411> And thanks for your help
125: [20:29:00] * Shrike_Finland1 quit (Read error: No route to host)
126: [20:29:00] * Shrike_Finland has joined #silverstripe
127: [20:33:00] * ARNHOFF quit (Read error: Connection reset by peer)
128: [20:36:00] * ARNHOE has joined #silverstripe
129: [20:51:00] * ChairyOnehouse quit (Read error: Operation timed out)
130: [21:35:00] <liam> Guest7411: you can do <% if ClassName = Page1 %> <% include Page1 %> <% else if ClassName = Page2 %> <% include Page2 %> <% end_if %>
131: [21:49:00] <Guest7411> foreach ($children as $child) { $html.= $child->renderWith(array($child->class, $child->dataRecord)); }
132: [21:49:00] <Guest7411> Thanks Liam. I ended up doing it in the controller like
133: [21:49:00] * Guest7411 quit (Quit: Page closed)
134: [21:58:00] * ARNHOE quit (Quit: ARNHOE)
135: [22:23:00] * Shrike_Finland quit (Quit: Leaving.)
136: [22:49:00] * lurker has joined #silverstripe
137: [23:25:00] * lx-bln has joined #silverstripe
138: [23:29:00] <lx-bln> hi all. i think there is a problem with our first ss3 project. its a multilanguage site that doesnt use the translateable module but has each language in a subtree
139: [23:30:00] * cloph_away1 has joined #silverstripe
140: [23:31:00] <lx-bln> but when i visit www.secowarwick.com it does make a 301 redirect to http://www.secowarwick.com/en/home/ to get me to the home page
141: [23:31:00] <lx-bln> i dont know if this is a seo problem , but i would expect it to be
142: [23:32:00] * cloph_away quit (Ping timeout: 272 seconds)
143: [23:32:00] <lx-bln> why cant ss find the starting page in /en/home without a redirect?
144: [23:34:00] <lx-bln> in a normal website ss will not redirect a user from www.mysite.com to www.mysite.com/home
145: [23:35:00] <lx-bln> is anyone around?
146: [23:38:00] * Bollig|DesignCty quit (Read error: Connection reset by peer)
147: [23:49:00] * Bollig|DesignCty has joined #silverstripe
148: [23:50:00] * lx-bln quit (Remote host closed the connection)

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