#silverstripe IRC Log

IRC log for 7 May 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [00:40:11] * BrewNaked quit (Remote host closed the connection)
4: [00:48:36] * arnhoe quit (Remote host closed the connection)
5: [01:08:38] * Stomach has joined #silverstripe
6: [01:56:18] * Stomach quit (Quit: zzz)
7: [02:02:28] * Stomach has joined #silverstripe
8: [02:25:36] * Admonish has joined #silverstripe
9: [02:29:05] * BrewNaked has joined #silverstripe
10: [02:33:59] * BrewNaked quit (Ping timeout: 260 seconds)
11: [02:39:21] * spronk has joined #silverstripe
12: [03:09:24] <Admonish> Is it possible to do many filters with filter() ? Like AND in SQL
13: [03:38:44] * Azure quit (Remote host closed the connection)
14: [03:40:48] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
15: [04:05:43] * Stomach quit (Quit: zzz)
16: [04:17:52] * BrewNaked has joined #silverstripe
17: [04:18:40] * zlinux_ is now known as zlinux
18: [04:22:35] * BrewNaked quit (Ping timeout: 276 seconds)
19: [04:25:20] * willr has joined #silverstripe
20: [04:25:30] * Stomach has joined #silverstripe
21: [05:00:46] * willr quit (Quit: willr)
22: [05:51:18] * Stomach quit (Quit: zzz)
23: [06:06:52] * BrewNaked has joined #silverstripe
24: [06:11:43] * BrewNaked quit (Ping timeout: 265 seconds)
25: [06:44:21] <Kolin> Morning
26: [06:46:32] * ss-log has joined #silverstripe
27: [07:26:28] * spronk quit (Quit: I may need a longer sleep timer...)
28: [07:30:27] * spronk has joined #silverstripe
29: [07:54:14] * zlinux quit (Ping timeout: 260 seconds)
30: [07:55:51] * BrewNaked has joined #silverstripe
31: [08:00:03] * BrewNaked quit (Ping timeout: 240 seconds)
32: [08:35:52] * spronk quit (Quit: I may need a longer sleep timer...)
33: [08:40:14] * eightythree has joined #silverstripe
34: [08:45:12] <eightythree> Hi guys, how can I style individual input in SS? I've found Form.ss, duplicate it and know I want to add some div tags, insside that file I have loop $Fields and $FieldHolder (and it seems those are the core of form inputs) but I cannot find any source code
35: [08:45:19] <eightythree> Here some snippet http://www.sspaste.com/paste/show/572daa5ed9dab
36: [09:44:36] * BrewNaked has joined #silverstripe
37: [09:48:52] * BrewNaked quit (Ping timeout: 252 seconds)
38: [10:46:40] * arnhoe has joined #silverstripe
39: [10:49:43] * arnhoe quit (Remote host closed the connection)
40: [10:49:57] * arnhoe has joined #silverstripe
41: [11:31:26] * spronk has joined #silverstripe
42: [11:33:29] * BrewNaked has joined #silverstripe
43: [11:37:50] * BrewNaked quit (Ping timeout: 244 seconds)
44: [11:51:43] * gelignite has joined #silverstripe
45: [12:22:33] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
46: [12:26:43] * eightythree quit (Quit: Page closed)
47: [12:27:04] * eightythree has joined #silverstripe
48: [12:40:12] * eightythree quit (Ping timeout: 250 seconds)
49: [13:22:25] * BrewNaked has joined #silverstripe
50: [13:26:52] * BrewNaked quit (Ping timeout: 244 seconds)
51: [13:46:53] * spronk quit (Quit: I may need a longer sleep timer...)
52: [14:07:55] * eightythree has joined #silverstripe
53: [14:09:04] <eightythree> How to add form (Contact Form) to DataObject ? Should I make that form inside DO or inside Page with has_one to that DO?
54: [14:44:21] * eightythree quit (Quit: Page closed)
55: [14:44:33] * eightythree has joined #silverstripe
56: [15:11:12] * BrewNaked has joined #silverstripe
57: [15:15:49] * BrewNaked quit (Ping timeout: 260 seconds)
58: [15:55:42] <eightythree> Is ->setAttribute('placeholder',SiteConfig::current_site_config()->Message.'...') the best way to get something from SiteConfig?
59: [16:02:31] <cloph> using *set* to *get* something doesn't seem right.
60: [16:17:15] <eightythree> Ok, can you provide any alternative?
61: [16:30:49] <eightythree> Anyone know how to use form (Contact Form) with dataobject? I've got form but it doesn't display with <% loop %>
62: [16:30:59] <cloph> from a controller you'd use $this->SiteConfig() to get siteconfig object, and from there you can access it's properties. Message is none of the defaults, so depending on what you actually want to do there might be other ways.
63: [16:32:18] <eightythree> Ok, thanks cloph I'll look forward to it :)
64: [16:32:49] <cloph> you typically don't loop manually. you "return $theform" in you controller and reference it in the template with $FunctionThatReturnsTheform
65: [16:35:08] <eightythree> So I can't dispaly form in <% loop %> / dataobject ?
66: [16:36:23] <eightythree> I wanted to add sending messages to people, but "people" are dataobject and are generated by <% loop %>
67: [16:38:31] <cloph> eightythree: you should try to explain the duck what you want to achieve first..
68: [16:39:02] <eightythree> Which I did :)
69: [16:39:11] <cloph> not really
70: [16:39:23] <eightythree> Ok
71: [16:39:27] <cloph> if you want to send message to people, why the heck would you need a form in a loop?
72: [16:43:10] <eightythree> Ok, so I have this section "workers", single "worker" have fields like name, phone number, office etc. which are generated in dataobject. Every worker have "send me a message" button ... so I wanted to add form to make it happened
73: [16:45:05] <eightythree> So, you can click that button and then a modal with form showing up so user could send him a message
74: [16:45:58] <eightythree> This is why I'm asking about conecting forms with dataobejcts
75: [16:48:55] <cloph> so you don't want a form, you want a button that triggers a form, that's different, just add buttons that call a action in your controller, passing that worker's ID for example.
76: [16:56:06] <eightythree> Ok, and where I can put a mesage to that worker? I need some input fields
77: [17:00:04] * BrewNaked has joined #silverstripe
78: [17:04:54] * BrewNaked quit (Ping timeout: 260 seconds)
79: [17:14:22] * eightythree quit (Quit: Page closed)
80: [17:14:40] * eightythree has joined #silverstripe
81: [17:37:59] * Azure has joined #silverstripe
82: [17:50:37] <cloph> you could load that via ajax or just have one single form already hidden via css on the page, and pressing the individual button would just set the target parameter. There are many ways to do stuff.
83: [17:53:30] * eightythree quit (Ping timeout: 250 seconds)
84: [18:27:42] * arnhoe quit ()
85: [18:46:45] * gelignite has joined #silverstripe
86: [18:48:59] * BrewNaked has joined #silverstripe
87: [18:53:24] * BrewNaked quit (Ping timeout: 260 seconds)
88: [19:05:15] * Teddy_ has joined #silverstripe
89: [19:11:34] * Teddy_ quit (Ping timeout: 240 seconds)
90: [19:34:55] * zlinux has joined #silverstripe
91: [20:07:57] * Stomach has joined #silverstripe
92: [20:34:09] * helenclarko has joined #silverstripe
93: [20:34:15] <helenclarko> hello all
94: [20:34:42] <helenclarko> quick question... How can I make the settings tab show for content authors?
95: [20:35:29] <helenclarko> Im already extending siteconfig, I assumed I could just add canView. Didnt work though...
96: [20:37:46] * BrewNaked has joined #silverstripe
97: [20:40:32] <helenclarko> Nevermind, I think I got it. Had to enable manage site configurations
98: [20:41:53] * BrewNaked quit (Ping timeout: 244 seconds)
99: [20:43:04] * helenclarko quit (Quit: Page closed)
100: [21:08:22] * glenn-bautista1 has joined #silverstripe
101: [21:08:22] * glenn-bautista quit (Read error: Connection reset by peer)
102: [21:32:45] * Azure|dc has joined #silverstripe
103: [21:33:58] * Azure quit (Ping timeout: 252 seconds)
104: [21:49:48] * Stomach quit (Quit: zzz)
105: [21:52:34] * Stomach has joined #silverstripe
106: [22:02:39] * Stomach quit (Quit: zzz)
107: [22:07:44] * Stomach has joined #silverstripe
108: [22:26:42] * BrewNaked has joined #silverstripe
109: [22:28:28] * Azure|dc is now known as Azure
110: [22:31:48] * BrewNaked quit (Ping timeout: 276 seconds)
111: [23:12:24] * Stomach quit (Quit: zzz)
112: [23:13:30] * Stomach has joined #silverstripe
113: [23:15:20] * zlinux quit (Ping timeout: 244 seconds)
114: [23:26:59] * gelignite quit (Quit: http://bit.ly/1kso8Ta)

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