#silverstripe IRC Log

IRC log for 13 July 2013

All timestamps are in UTC.

1: [00:02:26] * mobiusnz has left #silverstripe
2: [00:03:28] * DenzaPoopedblood is now known as DenzaPppoedPEPE
3: [00:04:13] * DenzaPppoedPEPE is now known as DenerPoopedcats
4: [00:05:31] * Error404NotFound has joined #silverstripe
5: [00:05:37] * Error404NotFound quit (Changing host)
6: [00:05:37] * Error404NotFound has joined #silverstripe
7: [00:06:22] * DenerPoopedcats is now known as DenzaDynamite
8: [00:08:42] * DenzaDynamite is now known as DenzaLove
9: [00:10:01] * DenzaLove is now known as swordsmanz
10: [00:12:09] * swordsmanz is now known as DenzaTrolledMe
11: [00:14:54] * DenzaTrolledMe is now known as DenzaOvulates
12: [00:24:07] * DenzaOvulates is now known as DenzaTard
13: [00:27:50] * DenzaTard is now known as DenzasWeeping
14: [00:30:44] * DenzasWeeping is now known as DenzasBegging
15: [00:31:28] * DenzasBegging is now known as DenzaIsBegging
16: [00:33:19] * DenzaIsBegging has left #silverstripe
17: [00:53:14] * SphereSilverNL quit (Remote host closed the connection)
18: [00:54:50] * joelpittet quit (Remote host closed the connection)
19: [00:55:04] <guzzlefry_dev> How can I show SiteTree pages that require login in the site menu?
20: [00:58:06] <howardgrigg> you can just write a function that will return them all on your Page.php file but I have a feeling there is already something built in
21: [00:58:11] <howardgrigg> but can't remember
22: [01:04:08] <guzzlefry_dev> yeah...hm
23: [01:10:30] <guzzlefry_dev> okay, ContentController::getMenu() removes anything that hte current user can't view. :/
24: [01:10:58] <guzzlefry_dev> So I guess to get around that I'd need to set the pages public in the CMS, and then just handle access in the controller?
25: [01:17:06] <howardgrigg> nah there's an easier way
26: [01:17:29] <howardgrigg> dont use getMenu - is this for a top level navigation or sub-pages?
27: [01:18:21] <guzzlefry_dev> top level nav
28: [01:20:43] <howardgrigg> add this to Page.php function AllPages(){return Page::get()->filter('Parent', 0);};
29: [01:21:19] <howardgrigg> then in your template <% loop AllPages %>
30: [01:21:48] <guzzlefry_dev> ah, thanks
31: [01:22:06] <guzzlefry_dev> Now to figure out where ThemedCSS looks for files. :P
32: [01:26:36] * willr has joined #silverstripe
33: [01:28:10] * chillu quit (Quit: chillu)
34: [01:38:15] * priithansen quit (Quit: priithansen)
35: [01:39:50] * pippy has joined #silverstripe
36: [01:40:40] * pippy_ quit (Ping timeout: 260 seconds)
37: [01:47:02] * liam_ has joined #silverstripe
38: [01:47:26] * liam_ is now known as Guest89114
39: [01:58:02] <guzzlefry_dev> Will template stuff work with CSS files?
40: [01:58:28] <guzzlefry_dev> mainly $ThemeDir
41: [01:58:35] * Guest89114 quit (Quit: Guest89114)
42: [01:59:42] * supernovah has joined #silverstripe
43: [02:00:06] <supernovah> What's a 2.4 wysiwyg field I can use for a form
44: [02:04:37] * willr quit (Quit: willr)
45: [02:08:04] <supernovah> I see HtmlEditorField should work
46: [02:25:34] * lerni has joined #silverstripe
47: [02:26:09] * lerni quit (Remote host closed the connection)
48: [02:27:03] * micmania1 quit (Quit: Leaving)
49: [02:27:18] * lerni has joined #silverstripe
50: [02:27:31] <howardgrigg> guzzlefry_dev: nope :(
51: [02:28:07] <howardgrigg> but the links in css are relative to where they are not the root directory
52: [02:28:57] <guzzlefry_dev> ah yeah, just realized that.
53: [02:29:09] <guzzlefry_dev> And by realized I mean read in a forum post. :P
54: [02:29:12] * Error404NotFound quit (Ping timeout: 260 seconds)
55: [02:33:07] * supernovah quit (Ping timeout: 246 seconds)
56: [02:59:12] * lerni quit (Remote host closed the connection)
57: [03:14:01] * Pyromanik__ has joined #silverstripe
58: [03:14:51] * cloph_away has joined #silverstripe
59: [03:15:09] * cloph quit (Ping timeout: 264 seconds)
60: [03:26:45] * willr has joined #silverstripe
61: [03:28:23] * willr quit (Client Quit)
62: [03:33:10] * willr has joined #silverstripe
63: [03:35:30] * DigNZ has joined #silverstripe
64: [03:35:33] * DigNZ quit (Client Quit)
65: [03:45:15] * nickmolhoek has joined #silverstripe
66: [03:45:17] * nickmolhoek quit (Remote host closed the connection)
67: [03:45:30] * nickmolhoek has joined #silverstripe
68: [03:50:20] * nickmolhoek quit (Client Quit)
69: [03:50:57] * toddmorey quit (Quit: Leaving.)
70: [03:52:15] * AlphaCactus_ has joined #silverstripe
71: [03:54:06] * AlphaCactus quit (Ping timeout: 264 seconds)
72: [03:54:11] * AlphaCactus_ is now known as AlphaCactus
73: [03:56:31] * kerosene has left #silverstripe
74: [04:21:16] * toddmorey has joined #silverstripe
75: [04:22:49] * Colin[pi] quit ()
76: [04:30:04] * toddmorey quit (Ping timeout: 260 seconds)
77: [04:33:20] * willr quit (Quit: willr)
78: [04:37:54] * toddmorey has joined #silverstripe
79: [04:37:59] * willr has joined #silverstripe
80: [04:53:39] * toddmorey quit (Quit: Leaving.)
81: [05:10:53] * Pyromanik__ has left #silverstripe
82: [05:20:05] * toddmorey has joined #silverstripe
83: [05:35:50] * toddmorey quit (Quit: Leaving.)
84: [05:39:36] * inadream has joined #silverstripe
85: [05:45:31] * toddmorey has joined #silverstripe
86: [06:01:16] * toddmorey quit (Quit: Leaving.)
87: [06:03:44] * DigNZ has joined #silverstripe
88: [06:04:21] * DigNZ quit (Client Quit)
89: [06:08:48] * Error404NotFound has joined #silverstripe
90: [06:09:48] * Error404NotFound quit (Client Quit)
91: [06:14:17] * EasyCo has joined #silverstripe
92: [06:20:20] * Error404NotFound has joined #silverstripe
93: [06:36:40] * simon_w has joined #silverstripe
94: [06:38:16] * simon_w quit (Client Quit)
95: [06:49:10] * willr quit (Quit: willr)
96: [06:52:01] * toddmorey has joined #silverstripe
97: [07:05:14] * gelignite has joined #silverstripe
98: [07:06:26] * UncleCheese has joined #silverstripe
99: [07:06:36] * violetina has joined #silverstripe
100: [07:07:44] * toddmorey quit (Quit: Leaving.)
101: [07:25:42] * howardgrigg quit (Remote host closed the connection)
102: [07:25:46] <violetina> i made a homepage like in the tutorials , but i did set the homepage.ss file in templates , for some reason i ca'nt use <% include Something %> , also i cant really figure out how to not load the other css files for the home page , also the body part not renders any color/ background , unless i hardcode it in the HomePage.ss file , any help is welcome
103: [07:44:01] * guzzlefry_dev quit (Quit: Ex-Chat)
104: [07:44:29] * EasyCo quit (Quit: EasyCo)
105: [07:49:55] * kerosene has joined #silverstripe
106: [08:08:34] * toddmorey has joined #silverstripe
107: [08:13:07] * toddmorey quit (Ping timeout: 260 seconds)
108: [08:15:47] * toddmorey has joined #silverstripe
109: [08:26:05] * willr has joined #silverstripe
110: [08:29:04] * zfmf1 has joined #silverstripe
111: [08:31:30] * toddmorey quit (Quit: Leaving.)
112: [08:31:57] * Shrike_Finland has joined #silverstripe
113: [08:32:31] * chillu has joined #silverstripe
114: [08:32:34] * toddmorey has joined #silverstripe
115: [08:33:37] * gelignite quit (Quit: http://bit.ly/nkczDT)
116: [08:34:55] * willr quit (Quit: willr)
117: [08:39:38] * Shrike_Finland quit (Quit: Leaving.)
118: [08:47:26] * metanat has joined #silverstripe
119: [08:48:17] * toddmorey quit (Quit: Leaving.)
120: [09:11:36] * simon_w has joined #silverstripe
121: [09:12:20] * metanat quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
122: [09:18:43] * toddmorey has joined #silverstripe
123: [09:26:08] * howardgrigg has joined #silverstripe
124: [09:30:38] * howardgrigg quit (Ping timeout: 245 seconds)
125: [09:34:27] * toddmorey quit (Quit: Leaving.)
126: [09:46:29] * metanat has joined #silverstripe
127: [09:56:14] * metanat quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
128: [10:06:28] * toddmorey has joined #silverstripe
129: [10:09:47] * simon_w quit (Ping timeout: 260 seconds)
130: [10:20:48] * UncleCheese quit (Quit: UncleCheese)
131: [10:22:08] * Error404NotFound quit (Read error: Connection reset by peer)
132: [10:22:10] * toddmorey quit (Quit: Leaving.)
133: [10:40:14] * toddmorey has joined #silverstripe
134: [10:40:39] * priithansen has joined #silverstripe
135: [10:47:20] * howardgrigg has joined #silverstripe
136: [10:55:24] * inadream quit (Quit: Leaving)
137: [10:56:06] * toddmorey quit (Quit: Leaving.)
138: [10:59:28] * micmania1 has joined #silverstripe
139: [11:00:14] * toddmorey has joined #silverstripe
140: [11:07:28] <violetina> any idia what is missing if <% include Blah %> not works on my home page but works on other pages?
141: [11:07:59] <cloph_away> you forgot to flush?
142: [11:08:04] <violetina> nope
143: [11:09:01] <violetina> the HomePage.ss has different layout tho and is in themes/tina/templates/HomePage.ss
144: [11:11:15] <violetina> maybe the HomePage.php file is missing something?
145: [11:12:07] <cloph_away> could only thinkg of something going wrong when there is a function "Blah" in your php (but never tried whether that would conflict with include
146: [11:13:12] <violetina> http://dpaste.com/1297409/ it has nothi,g in it just the extends page /page controller
147: [11:14:30] <violetina> http://dpaste.com/1297411/ the templates/Includes/links.ss , which renders just fine in Page.ss but not in HomePage.ss
148: [11:15:29] <violetina> http://dpaste.com/1297412/ templates/HomePage.ss
149: [11:15:58] * toddmorey quit (Quit: Leaving.)
150: [11:16:19] <violetina> also <% include Breadcrumbs %> in there not renders or any other include
151: [11:16:50] * cloph_away still thinks it is a cacheing problem. Did you try ?flush=all as well?
152: [11:17:04] <violetina> not yet second
153: [11:18:50] * DigNZ has joined #silverstripe
154: [11:18:54] * DigNZ quit (Client Quit)
155: [11:20:45] <violetina> Please log in as an administrator to flush the template cache. You're logged in as admin. << that is weird any idea about that , seems i'm not allowed to ?flush=all
156: [11:22:18] <cloph_away> nah, no idea - ar you using ss 3.x or 2.4 btw? If all fails, you can flush the cache using the sake commanline utility
157: [11:22:26] <violetina> 3.x
158: [11:23:05] <cloph_away> strange that your admin user doesn't actually have administrator privileges - you might need to reset permissions.
159: [11:26:02] <violetina> where i find sake? or how do i restet the permissions , in the settings it says full control
160: [11:32:49] <cloph_away> see http://doc.silverstripe.org/framework/en/topics/commandline for sake and http://doc.silverstripe.org/framework/en/topics/environment-management for configuring an administrator-user in the configuration
161: [11:34:13] <violetina> ty
162: [11:34:55] <cloph_away> well - flush=all not working despite being admin might be another weired problem - maybe best to ask during the week, when more of the regulars are listening :-)
163: [11:36:35] <micmania1> violetina try adding ?showtemplates=1 to your URL
164: [11:38:28] <micmania1> also, can you post Page.ss that works?
165: [11:39:46] <violetina> http://dpaste.com/1297446/ themes/tina/templates/Page.ss
166: [11:43:21] <micmania1> What do you get when you add showtemplates=1 to your URL?
167: [11:43:32] <violetina> nothing :x
168: [11:44:00] <micmania1> sorry, its showtemplate=1 (without the s)
169: [11:44:48] <violetina> http://pastebin.com/DybAKiW3
170: [11:45:59] <micmania1> is that your Home page? Its using Page.ss (not HomePage.ss)
171: [11:46:52] <violetina> that is ss3/index.php/?showtemplate=1 home is set to use homepage
172: [11:47:51] <micmania1> Its not using the correct template then if that's your HomePage
173: [11:48:00] <cloph_away> that should then be ss3/home?showtemplate=1 or only ss3/?showtemplate=1 - or don't you have rewrite capability in your webserver?
174: [11:48:17] <violetina> yes that is not working
175: [11:49:01] <violetina> i also have some cache issues with zend
176: [11:50:45] <micmania1> Just realised that page you posted was a 404 not found (hence why its using Page.ss). Are you sure you were on your HomePage?
177: [11:51:11] <cloph_away> as your links contain nginx - did you set it up as the ss 3.1 configuration suggests?
178: [11:51:38] <violetina> yes but i moved to apache2 ;)
179: [11:51:56] <violetina> due the rewrite stuff , but it not seems to work with apache either
180: [11:52:11] <violetina> LoadModule rewrite_module modules/mod_rewrite.so i have tho
181: [11:52:21] <cloph_away> http://doc.silverstripe.org/framework/en/3.1/installation/nginx I know that works, since I contributed to that documentation :-P
182: [11:55:32] <violetina> this is my testing server (just a workstation at home) maybe i'll try on a propper server :x
183: [11:55:56] <cloph_away> runs on a rasperry pi, so should run everywhere :-)
184: [11:56:30] <violetina> if i recall right the install said that rewrite was on and it made .htaccess which seems ok
185: [11:57:23] <micmania1> I've had a problem in the past where I had to set AllowOverride All in my vhost for the rewrites to work
186: [11:57:41] <violetina> let me try that
187: [11:58:02] <cloph_away> .htaccess is only for apache, but yes, that's the default method silverstripe uses. You don't need to use htaccess though, but could also configure the rewrite rules in the vhost - using htaccess is a convenience method.
188: [11:58:50] * cloph_away reboots for a kernel update
189: [11:59:04] <violetina> micmania1: how did you set it ? can you recall or look it up quick?
190: [11:59:06] * toddmorey has joined #silverstripe
191: [11:59:11] * cloph_away quit (Remote host closed the connection)
192: [12:01:28] * ARNHOE has joined #silverstripe
193: [12:04:41] <violetina> seems i have that set already
194: [12:14:49] * toddmorey quit (Quit: Leaving.)
195: [12:15:07] * cloph_away has joined #silverstripe
196: [12:17:48] * quiznilo has left #silverstripe
197: [12:18:36] * howardgrigg quit (Remote host closed the connection)
198: [12:26:06] * ARNHOE quit (Remote host closed the connection)
199: [12:26:53] * ARNHOE has joined #silverstripe
200: [12:27:42] * chillu quit (Quit: chillu)
201: [12:27:48] * ARNHOE quit (Remote host closed the connection)
202: [12:40:04] * micmania1 quit (Ping timeout: 260 seconds)
203: [12:41:24] * openbees has joined #silverstripe
204: [12:47:09] * micmania1 has joined #silverstripe
205: [12:50:56] * toddmorey has joined #silverstripe
206: [12:53:08] <violetina> http://violetina.heliohost.org/stripe/ not sure what is wrong with my server here it works , still needs a lot of work ;)
207: [13:27:47] * chillu has joined #silverstripe
208: [13:57:15] * toddmorey quit (Quit: Leaving.)
209: [14:17:22] * Error404NotFound has joined #silverstripe
210: [14:18:59] * howardgrigg has joined #silverstripe
211: [14:23:02] * howardgrigg quit (Ping timeout: 240 seconds)
212: [14:27:37] * toddmorey has joined #silverstripe
213: [14:36:14] * toddmorey quit (Ping timeout: 240 seconds)
214: [14:36:51] * micmania2 has joined #silverstripe
215: [14:36:54] * micmania1 quit (Ping timeout: 256 seconds)
216: [14:54:24] * violetina quit (Remote host closed the connection)
217: [14:58:14] * openbees quit (Ping timeout: 240 seconds)
218: [15:03:19] * toddmorey has joined #silverstripe
219: [15:08:04] * toddmorey quit (Ping timeout: 256 seconds)
220: [15:11:05] * openbees has joined #silverstripe
221: [15:14:58] * zfmf1 quit (Ping timeout: 276 seconds)
222: [15:25:53] * toddmorey has joined #silverstripe
223: [15:31:10] * micmania2 quit (Ping timeout: 246 seconds)
224: [15:32:11] * micmania1 has joined #silverstripe
225: [15:41:37] * toddmorey quit (Quit: Leaving.)
226: [15:47:57] * openbees quit (Quit: Good Bye)
227: [16:01:47] * toddmorey has joined #silverstripe
228: [16:02:37] * zauberfisch has joined #silverstripe
229: [16:14:18] * micmania1 quit (Ping timeout: 240 seconds)
230: [16:17:34] * toddmorey quit (Quit: Leaving.)
231: [16:19:29] * howardgrigg has joined #silverstripe
232: [16:20:43] * micmania1 has joined #silverstripe
233: [16:21:42] * chillu quit (Quit: chillu)
234: [16:24:09] * howardgrigg quit (Ping timeout: 264 seconds)
235: [16:25:02] * Motoservo_ has joined #silverstripe
236: [16:25:05] * Error404NotFound quit (Read error: Connection reset by peer)
237: [16:25:50] * toddmorey has joined #silverstripe
238: [16:26:24] * Motoservo quit (Ping timeout: 260 seconds)
239: [16:26:24] * Motoservo_ is now known as Motoservo
240: [16:26:41] * Error404NotFound has joined #silverstripe
241: [16:43:11] * Error404NotFound quit (Read error: Connection reset by peer)
242: [17:11:39] * toddmorey quit (Quit: Leaving.)
243: [17:19:27] * toddmorey has joined #silverstripe
244: [17:21:00] * toddmorey1 has joined #silverstripe
245: [17:21:00] * toddmorey quit (Read error: Connection reset by peer)
246: [17:25:39] * toddmorey1 quit (Ping timeout: 260 seconds)
247: [17:55:03] * guzzlefry_dev has joined #silverstripe
248: [17:57:34] * dreaming^of^me is now known as RojoD
249: [18:04:40] * swordsmanz has joined #silverstripe
250: [18:17:47] <micmania1> do Form templates not inherit from their parent class?
251: [18:19:55] * howardgrigg has joined #silverstripe
252: [18:24:46] * howardgrigg quit (Ping timeout: 276 seconds)
253: [18:28:11] * jrthomer has joined #silverstripe
254: [18:39:59] * jrthomer quit (Remote host closed the connection)
255: [18:40:22] * jrthomer has joined #silverstripe
256: [18:40:43] * jrthomer quit (Remote host closed the connection)
257: [18:47:10] * jrthomer has joined #silverstripe
258: [18:49:02] * micmania1 quit (Ping timeout: 240 seconds)
259: [18:57:33] * micmania1 has joined #silverstripe
260: [19:57:57] * micmania2 has joined #silverstripe
261: [20:01:25] * micmania1 quit (Ping timeout: 240 seconds)
262: [20:05:05] * pippy quit (Ping timeout: 240 seconds)
263: [20:07:12] * pippy has joined #silverstripe
264: [20:20:22] * howardgrigg has joined #silverstripe
265: [20:20:57] <micmania2> does anybody use namespaces in their ss projects?
266: [20:22:29] <zauberfisch> micmania2: simon_w|air does
267: [20:24:06] <micmania2> I'm curious as to how it affects DataExtension. Does SS know which namespace to work in?
268: [20:24:24] <micmania2> I'm running out of things to call MemberExtension lol
269: [20:24:38] * howardgrigg quit (Ping timeout: 240 seconds)
270: [20:26:27] <zauberfisch> micmania2: haha
271: [20:26:39] <zauberfisch> in 2.4 I had several projects with equal extensions
272: [20:26:47] <zauberfisch> I then started prefixing them with folder names
273: [20:27:05] <zauberfisch> like the memberextension in mysite was "class mysiteMemberExtension"
274: [20:27:21] <micmania2> yeah, I'm at that point.
275: [20:27:21] <zauberfisch> and someModule then became "class someModuleMemberExntesion"
276: [20:28:08] <micmania2> The more modular I make it, the more annoying it gets lol
277: [20:28:58] <zauberfisch> ^^
278: [20:37:53] * UncleCheese has joined #silverstripe
279: [20:39:00] <micmania2> Eventually, modules are going to conflict. Its too easy to call something "MemberExtension"
280: [20:39:51] <micmania2> With that said, I don't suppose table columns are much different.
281: [20:47:30] <zauberfisch> yeah
282: [20:47:43] <zauberfisch> to be honest, that question has been bothering me since a while
283: [20:47:56] <zauberfisch> but not enough to actually look for an answer
284: [20:49:43] * micmania2 quit (Ping timeout: 276 seconds)
285: [20:50:14] * UncleCheese quit (Quit: UncleCheese)
286: [20:52:17] * UncleCheese has joined #silverstripe
287: [20:56:31] * UncleCheese quit (Client Quit)
288: [20:58:22] * zauberfisch quit (Quit: Leaving...)
289: [21:05:46] * micmania1 has joined #silverstripe
290: [21:13:56] * UncleCheese has joined #silverstripe
291: [21:13:56] * UncleCheese quit (Client Quit)
292: [21:34:28] * UncleCheese has joined #silverstripe
293: [21:42:04] * UncleCheese quit (Quit: UncleCheese)
294: [21:43:13] <simon_w|air> micmania1, I don't have any public modules that have extensions in namespaces, but you provide the fully qualified class name when adding the extension
295: [21:47:20] <micmania1> simon_w, I'm new to namespacing. Would that mean DataObject::addExtension("namespace\ClassName")?
296: [21:47:40] <simon_w|air> yes
297: [21:47:51] <micmania1> nice one. thanks.
298: [21:58:19] <micmania1> does it affect how the database is built up?
299: [21:58:56] <micmania1> when I ran dev/build it said that it built new db's that had already been built before the namespace.
300: [21:59:04] <micmania1> new tables*
301: [22:00:40] <micmania1> I'm on a new PC so installing Navicat. I'm not being (completely) lazy :p
302: [22:02:34] * simon_w has joined #silverstripe
303: [22:04:29] <micmania1> oooo Just seen the change in the CMS.
304: [22:17:52] * willr has joined #silverstripe
305: [22:20:46] * howardgrigg has joined #silverstripe
306: [22:25:13] * howardgrigg quit (Ping timeout: 245 seconds)
307: [22:56:10] * supernovah has joined #silverstripe
308: [23:00:35] * willr quit (Quit: willr)
309: [23:01:22] <guzzlefry_dev> For hiding the nav menu if the visitor isn't logged in, is it best to handle this in the template or controller?
310: [23:04:33] * willr has joined #silverstripe
311: [23:29:02] <micmania1> guzzlefry_dev, probably template. use <% if CurrentUser %>Logged in<% else %>not logged in<% end_if %>
312: [23:29:27] <guzzlefry_dev> oh...well that's insanely simple. :P
313: [23:29:28] <guzzlefry_dev> thank you
314: [23:45:59] * UncleCheese has joined #silverstripe
315: [23:48:59] <guzzlefry_dev> How do I configure email access? I need to use a server other than what's set for PHP's mail() function.
316: [23:52:11] * DigNZ has joined #silverstripe
317: [23:55:16] * guzzlefry_dev quit (Changing host)
318: [23:55:17] * guzzlefry_dev has joined #silverstripe
319: [23:58:45] * DigNZ quit (Quit: DigNZ)
320: [23:58:55] <willr> guzzlefry_dev not sure you can, pretty sure SS just uses mail()

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