#silverstripe IRC Log

IRC log for 10 August 2013

All timestamps are in UTC.

1: [00:00:09] <BPower> simon_w: don't you think they should? or is there another way to attach a callback before a DO is unpublished?
2: [00:01:02] <simon_w> Unpublish as an action only exists in the CMS and only for SiteTree objects
3: [00:02:46] <BPower> how does one achieve the same result for a versioned dataobject?
4: [00:03:03] <simon_w> You delete it from the stage you don't want it in any more
5: [00:03:19] * pippy_ has joined #silverstripe
6: [00:03:56] <BPower> oh, so onBeforeDelete should handle it.... i'd just need to check what stage i'm on
7: [00:04:12] <BPower> FYI the default download link on http://www.silverstripe.org/pre-releases/ is broken.
8: [00:04:49] <simon_w> You'll need to update the correct stage though.
9: [00:05:11] <BPower> correct
10: [00:05:12] <simon_w> FYI I don't work for SilverStripe
11: [00:05:15] <BPower> I know
12: [00:05:25] * pippy quit (Ping timeout: 248 seconds)
13: [00:05:33] <simon_w> So why do I need to know the link's broken?
14: [00:05:34] <BPower> well I didn't know for sure, but I had a feelin'
15: [00:05:43] <BPower> I was broadcasting to the whole channel :)
16: [00:06:15] * simon_w sighs
17: [00:06:19] <BPower> Ubuntu Edge is up 1mil! #2 crowdfunded campaign ever!
18: [00:06:21] <simon_w> In a directed discussion.
19: [00:06:27] <BPower> my bad
20: [00:07:31] <BPower> People of the Great and Powerful SilverStripe: The default download link on http://www.silverstripe.org/pre-releases/ is broken.
21: [00:07:44] <BPower> better? ;-)
22: [00:07:44] * Kapdap quit (Remote host closed the connection)
23: [00:08:15] * pippy_ quit (Ping timeout: 256 seconds)
24: [00:08:25] * pippy has joined #silverstripe
25: [00:09:45] * Kapdap has joined #silverstripe
26: [00:14:47] <BPower> thanks simon_w
27: [00:16:26] <BPower> y'all have a great weekend!
28: [00:16:30] * BPower quit (Remote host closed the connection)
29: [00:22:10] * mobiusnz has joined #silverstripe
30: [00:55:28] * robert_ has joined #silverstripe
31: [03:41:11] * cloph_away has joined #silverstripe
32: [03:42:13] * cloph quit (Ping timeout: 276 seconds)
33: [03:43:04] * SightUnseen has joined #silverstripe
34: [03:43:07] * SightUnseen has left #silverstripe
35: [03:49:57] * Colin[pi] has joined #silverstripe
36: [03:51:19] * Colin[pi] quit (Client Quit)
37: [04:21:29] <howardgrigg> pokes sminnee the download link for 3.1rc1 is broken on http://www.silverstripe.org/pre-releases/
38: [04:31:30] * hamror is now known as HAMROR
39: [04:31:42] * HAMROR is now known as hamror
40: [04:52:10] * wmk quit (Remote host closed the connection)
41: [04:53:17] * mobiusnz1 has joined #silverstripe
42: [04:53:29] * wmk has joined #silverstripe
43: [04:54:01] * mobiusnz2 has joined #silverstripe
44: [04:54:32] * mobiusnz quit (Ping timeout: 246 seconds)
45: [04:58:04] * mobiusnz1 quit (Ping timeout: 260 seconds)
46: [05:14:37] * jrthomer has joined #silverstripe
47: [05:47:28] * henkpoley has joined #silverstripe
48: [06:33:43] * SightUnseen has joined #silverstripe
49: [06:33:47] * SightUnseen has left #silverstripe
50: [06:36:16] * priithansen quit (Quit: priithansen)
51: [06:49:49] * Marvanni_ has joined #silverstripe
52: [06:56:36] * Marvanni quit (Ping timeout: 260 seconds)
53: [06:56:45] * Marvanni has joined #silverstripe
54: [06:56:52] * Marvanni_ quit (Ping timeout: 264 seconds)
55: [06:58:31] * henkpoley_ has joined #silverstripe
56: [07:02:16] * henkpoley quit (Ping timeout: 264 seconds)
57: [07:02:16] * henkpoley_ is now known as henkpoley
58: [07:05:00] * Marvanni_ has joined #silverstripe
59: [07:11:30] * Marvanni_ quit (Ping timeout: 264 seconds)
60: [07:17:34] * SightUnseen has joined #silverstripe
61: [07:17:38] * SightUnseen has left #silverstripe
62: [07:22:42] * SightUnseen has joined #silverstripe
63: [07:23:31] * SightUnseen has left #silverstripe
64: [07:44:55] * henkpoley quit (Read error: Connection reset by peer)
65: [07:45:06] * henkpoley has joined #silverstripe
66: [07:49:48] * Shrike_Finland has joined #silverstripe
67: [08:02:22] * simon_w|air has joined #silverstripe
68: [08:19:20] * simon_w|air quit (Quit: This computer has gone to sleep)
69: [08:45:44] * henkpoley quit (Quit: henkpoley)
70: [08:47:44] <Shrike_Finland> Silverstripe.org RC1 download is missing http://www.silverstripe.org from the beginning of address.
71: [08:48:46] <Shrike_Finland> testing on Safari
72: [08:53:15] * henkpoley has joined #silverstripe
73: [08:56:12] * micmania1 has joined #silverstripe
74: [09:20:23] * chillu has joined #silverstripe
75: [09:27:52] * ARNHOE_ has joined #silverstripe
76: [09:38:36] * micmania2 has joined #silverstripe
77: [09:41:52] * micmania1 quit (Ping timeout: 246 seconds)
78: [09:43:07] <ARNHOE_> Hi chillu would I be possible to merge the translations from 3.1.0 to branch 3.1 on github?
79: [09:43:55] <ARNHOE_> would it be possible* ...
80: [09:51:09] * chillu quit (Quit: chillu)
81: [09:56:12] * henkpoley quit (Quit: henkpoley)
82: [10:02:02] * chillu has joined #silverstripe
83: [10:09:32] * micmania2 quit (Ping timeout: 246 seconds)
84: [10:24:30] * micmania1 has joined #silverstripe
85: [10:25:40] * howardgrigg quit (Remote host closed the connection)
86: [10:30:28] * SightUnseen has joined #silverstripe
87: [10:30:59] * SightUnseen has left #silverstripe
88: [11:36:07] * howardgrigg has joined #silverstripe
89: [11:41:52] * howardgrigg quit (Ping timeout: 264 seconds)
90: [11:42:21] * CodeTrap has joined #silverstripe
91: [11:46:54] * CodeTrap quit (Ping timeout: 264 seconds)
92: [11:48:48] * CodeTrap has joined #silverstripe
93: [11:48:51] * Shrike_Finland quit (Read error: Connection reset by peer)
94: [11:57:19] * mayko1 quit (Ping timeout: 240 seconds)
95: [12:02:07] * CodeTrap quit (Quit: CodeTrap)
96: [12:02:46] * mobiusnz2 quit (Quit: Leaving.)
97: [12:03:08] * mobiusnz has joined #silverstripe
98: [12:03:11] * zfmf1 has joined #silverstripe
99: [12:05:55] * ss23 quit (Ping timeout: 264 seconds)
100: [12:07:14] * mobiusnz quit (Client Quit)
101: [12:07:40] * zfmf1 quit (Ping timeout: 264 seconds)
102: [12:10:27] * chillu quit (Quit: chillu)
103: [12:13:03] * zfmf1 has joined #silverstripe
104: [12:14:59] * mayko has joined #silverstripe
105: [12:36:38] * zfmf1 has left #silverstripe
106: [12:41:12] * ss23 has joined #silverstripe
107: [12:41:19] * AlphaCactus_ has joined #silverstripe
108: [12:45:29] * ARNHOE has joined #silverstripe
109: [12:50:56] * AlphaCactus quit (Ping timeout: 246 seconds)
110: [12:50:56] * micmania1 quit (Ping timeout: 246 seconds)
111: [12:50:57] * ARNHOE_ quit (Ping timeout: 246 seconds)
112: [12:53:42] * ss23 quit (Remote host closed the connection)
113: [12:57:31] * ss23 has joined #silverstripe
114: [12:58:30] * micmania1 has joined #silverstripe
115: [13:03:20] * priithansen has joined #silverstripe
116: [13:08:41] * ss23 quit (Ping timeout: 240 seconds)
117: [13:16:47] * micmania1 quit (Ping timeout: 246 seconds)
118: [13:26:22] * ss23 has joined #silverstripe
119: [13:36:54] * howardgrigg has joined #silverstripe
120: [13:40:14] * chillu has joined #silverstripe
121: [14:09:10] * micmania1 has joined #silverstripe
122: [14:21:22] * NitinShah has joined #silverstripe
123: [14:30:05] * henkpoley has joined #silverstripe
124: [14:32:05] <NitinShah> I am using SS3 and the blog module, would like to display latest posts containing specific tags on certain pages
125: [14:33:20] <NitinShah> Am not able to figure out the post with specific tag part
126: [14:35:51] * CodeTrap has joined #silverstripe
127: [14:35:57] <Zauberfisch> NitinShah: tags are just a string, right?
128: [14:37:45] <NitinShah> @Zauberfisch: yes, tags as specified on the blog entry page
129: [14:38:04] <NitinShah> I am currently using the following code to pull the latest blog posts http://sspaste.com/paste/show/52064f3264d83
130: [14:38:07] <Zauberfisch> NitinShah: try BlogEntry::get()->filter('Tag:PartialMatch', 'foobarTag')->sort('Date', 'DESC')->limit(3);
131: [14:38:49] <Zauberfisch> you don't have to check for the blogholder
132: [14:39:30] <NitinShah> So if I need to check for tag "Hypnotherapy", I can replace foobarTag with Hypnotherapy?
133: [14:40:50] <Zauberfisch> if BlogEntry::get() does not get any results, it will return an empty set
134: [14:40:54] * chillu quit (Quit: chillu)
135: [14:40:56] <Zauberfisch> yes, just replace foobarTag
136: [14:43:11] <NitinShah> Thank you, I will just check and get back
137: [14:44:25] <Zauberfisch> http://sspaste.com/paste/show/52064f3264d83
138: [14:44:31] <Zauberfisch> posted a reply
139: [14:49:54] * CodeTrap quit (Quit: CodeTrap)
140: [14:51:44] * howardgrigg quit (Remote host closed the connection)
141: [15:12:59] * micmania1 quit (Ping timeout: 246 seconds)
142: [15:23:25] * ARNHOE quit (Remote host closed the connection)
143: [15:28:27] * ARNHOE has joined #silverstripe
144: [15:29:13] * micmania1 has joined #silverstripe
145: [15:32:33] <NitinShah> I tried your code but I get internal server error
146: [15:32:56] * chillu has joined #silverstripe
147: [15:35:41] <NitinShah> Zauberfisch: Found the error. In filter it needs to be Tags instead of Tag
148: [15:35:49] <NitinShah> updated the solution http://sspaste.com/paste/show/52064f3264d83
149: [15:37:36] <NitinShah> Is there a way to use the template variable in the html editor when creating a page instead of template
150: [15:38:10] <ss23> NitinShah: There are shorttags, which might give what you want sometimes
151: [15:39:07] <NitinShah> ss23: I was just searching about shorttags / shortcodes, but am not sure where can I find more details
152: [15:39:48] <ss23> NitinShah: http://doc.silverstripe.org/framework/en/topics/shortcodes has about the most information
153: [15:40:02] <ss23> (Though the page is totally broken/messed up)
154: [15:44:53] <NitinShah> So I am now able to create a template variable for latest blogs based on tag. Is there any tutorial to be able to create shortcodes from template variables?
155: [15:57:14] * Shrike_Finland has joined #silverstripe
156: [16:02:11] * howardgrigg has joined #silverstripe
157: [16:06:29] * howardgrigg quit (Ping timeout: 248 seconds)
158: [16:22:54] <micmania1> My blog module is nearly ready: http://awesomescreenshot.com/0071led19a :)
159: [16:30:14] * ARNHOE_ has joined #silverstripe
160: [16:33:06] * ARNHOE quit (Ping timeout: 264 seconds)
161: [16:33:56] * ARNHOE_ quit (Read error: Connection reset by peer)
162: [16:35:22] * ARNHOE has joined #silverstripe
163: [16:37:30] <NitinShah> Going back to latest blog with specific tag, can I also pull latest blogs that do not contain a specific tag
164: [16:38:32] <NitinShah> What should I change in the following code, http://sspaste.com/paste/show/52064f3264d83
165: [16:41:04] <priithansen> Tag:PartialMatch:Not might work
166: [16:42:52] <micmania1> you could switch the filter out for exclude
167: [16:53:59] * zfmf1 has joined #silverstripe
168: [17:30:38] * osterlaus has joined #silverstripe
169: [17:52:12] * Zauberfisch_ has joined #silverstripe
170: [17:52:40] * Zauberfisch_ quit (Read error: Connection reset by peer)
171: [18:02:58] * howardgrigg has joined #silverstripe
172: [18:10:28] * NitinShah quit (Quit: Leaving)
173: [18:11:52] * ARNHOE quit (Ping timeout: 264 seconds)
174: [18:32:52] * Shrike_Finland quit (Ping timeout: 260 seconds)
175: [18:36:55] * Shrike_Finland has joined #silverstripe
176: [18:46:05] * chillu quit (Quit: chillu)
177: [18:46:13] * Shrike_Finland quit (Quit: Leaving.)
178: [18:50:05] * osterlaus quit (Quit: Leaving.)
179: [19:17:57] * howardgrigg quit (Remote host closed the connection)
180: [19:24:03] <Zauberfisch> priithansen: I am back
181: [19:24:07] <Zauberfisch> you got it all working?
182: [19:24:29] <priithansen> what? :)
183: [19:24:41] <Zauberfisch> the blog entry fetching
184: [19:24:48] <priithansen> wrong number dude
185: [19:24:57] <Zauberfisch> ah, right
186: [19:25:00] <Zauberfisch> my appologise
187: [19:25:06] <priithansen> :)
188: [19:25:31] <Zauberfisch> I see he already left, I gues he did thenn
189: [19:25:34] <Zauberfisch> -n
190: [19:26:28] <priithansen> or gave up and became a plumber
191: [19:26:42] <Zauberfisch> or that
192: [19:29:13] <Zauberfisch> anyone in here using vagrant?
193: [19:29:30] <Zauberfisch> I would love to know how others deal with file permission in shared dirs
194: [19:29:48] <Zauberfisch> this bloody thing is driving me mad
195: [19:30:08] <Zauberfisch> owner: www-data
196: [19:30:11] <Zauberfisch> group: www-data
197: [19:30:17] <Zauberfisch> perms: 777
198: [19:30:28] <Zauberfisch> could not write file: Permission denied
199: [19:30:31] <Zauberfisch> son of a
200: [19:30:32] <Zauberfisch> ...
201: [19:31:14] <Zauberfisch> su www-data & touch test.txt // works
202: [19:31:33] <Zauberfisch> exec('touch test.txt') // fails
203: [19:31:47] <Zauberfisch> exec('whoami') // returns www-data
204: [19:32:06] <Zauberfisch> exec is obviously in a php file, su www-data in bash
205: [19:33:49] * zfmf1 has left #silverstripe
206: [19:38:08] <Zauberfisch> even that works:
207: [19:38:14] <Zauberfisch> su www-data & php -r 'file_put_contents("test.txt", "yay");'
208: [19:38:38] <Zauberfisch> but if I put file_put_contents("test.txt", "yay"); into a php file, it fails
209: [20:05:48] <Zauberfisch> oh god
210: [20:06:00] <Zauberfisch> turns out, vagrant had 2 vms running for this project
211: [20:06:29] <Zauberfisch> one was a zombi VM that was still there
212: [20:09:50] * henkpoley quit (Quit: henkpoley)
213: [20:17:57] * chillu has joined #silverstripe
214: [20:18:54] <Zauberfisch> hmmm, it now works with 777, thats at least something
215: [20:22:12] <micmania1> does <% require themedCSS() %> work with subthemes?
216: [20:23:32] <micmania1> It never seems to work for me at all lol
217: [20:23:50] <micmania1> You don't have to put the .css extension do you?
218: [20:23:54] * priithansen quit (Quit: priithansen)
219: [20:28:25] * howardgrigg has joined #silverstripe
220: [20:32:34] * howardgrigg quit (Ping timeout: 240 seconds)
221: [20:47:28] * Shrike_Finland has joined #silverstripe
222: [21:04:53] * Shrike_Finland quit (Quit: Leaving.)
223: [21:06:03] * Shrike_Finland has joined #silverstripe
224: [21:06:53] <simon_w> <Zauberfisch> su www-data & touch test.txt // works
225: [21:07:00] <simon_w> Of course it does, touch is running as root
226: [21:07:52] * Shrike_Finland quit (Read error: No route to host)
227: [21:10:25] <simon_w> you want sudo -u www-data touch test.txt
228: [21:11:08] <Zauberfisch> simon_w: sorry, my misstelling
229: [21:11:21] <Zauberfisch> in fact I was using the compands seperated
230: [21:11:35] <Zauberfisch> s/&/\r\n
231: [21:11:58] <Zauberfisch> it was in fact run as www-data
232: [21:12:07] <Zauberfisch> but I think I figured it out
233: [21:12:24] <Zauberfisch> the VM was there twice
234: [21:12:35] <Zauberfisch> I killed both and it worked again
235: [21:37:20] <Rojod> hm
236: [21:37:33] <Rojod> Anybody knows a good theme maker for linux?
237: [21:37:52] <simon_w> Your generic text editor
238: [21:38:45] <Rojod> I mean a WYSIYG-editor
239: [21:38:57] <Rojod> 'cause it would help me very much :S
240: [21:39:37] <simon_w> Is there any WYSIWYG theme creator?
241: [21:40:23] <Rojod> I am searching :)
242: [21:40:32] <Rojod> http://www.silverstripe.org/archive/show/1568
243: [21:40:35] <Rojod> found that already
244: [21:42:25] <simon_w> Yeah, that only barely worked and is now dead
245: [21:43:26] <simon_w> You'll find that WYSIWYG HTML creators are usually frowned upon, and that's pretty much what SilverStripe templates are
246: [21:45:28] <Rojod> all right
247: [21:45:54] <Rojod> I find SS nice to work with... except it always fails when I try to install a module :(
248: [21:46:43] <simon_w> Probably means you're installing a module that's incompatible with the version of SS you're running
249: [22:28:57] * jrthomer quit (Remote host closed the connection)
250: [22:29:00] * howardgrigg has joined #silverstripe
251: [22:29:23] * jrthomer has joined #silverstripe
252: [22:43:06] * simon_w quit (Quit: Leaving)
253: [23:07:19] * Nightjar has joined #silverstripe
254: [23:12:22] * chillu quit (Quit: chillu)
255: [23:27:45] * digitaldesign has joined #silverstripe
256: [23:29:45] <micmania1> https://github.com/micmania1/silverstripe-blog - Finally pushed it to Github :)
257: [23:34:13] <digitaldesign> does anyone have a link to an tutorial / demo / code for beginners on image galleries in ss3? i found one in the forums that links to silverstriperesources.com which seems to be down.
258: [23:38:39] <Nightjar> digitaldesign: google deadly technology
259: [23:38:43] <Nightjar> image gallery
260: [23:38:51] <Nightjar> and or github.com/frankmullenger
261: [23:39:17] * digitaldesign quit (Ping timeout: 256 seconds)
262: [23:40:35] <Nightjar> or don't./
263: [23:40:50] <Nightjar> micmania1: is that based on the original blog, or completely from scratch?
264: [23:41:11] <micmania1> from scratch, although its quite similar
265: [23:42:52] <Nightjar> I was thinking to do something similar
266: [23:43:01] <micmania1> I was mainly just trying to take the good parts from Wordpress and focused on the CMS components
267: [23:43:18] <Nightjar> yeh
268: [23:43:27] <Nightjar> when people think blog they think wordpress
269: [23:43:38] <Nightjar> I was thinking to tidy the official blog module up and add missing features
270: [23:43:56] <Nightjar> but I'm just so gosh darned lazy
271: [23:44:06] <micmania1> http://awesomescreenshot.com/0071led19a - I've made the posts (which are pages) managable through GridField.
272: [23:44:56] <Nightjar> yeah
273: [23:45:03] <Nightjar> parentID -1 ?>
274: [23:45:59] <micmania1> nah, I augment the query to exclude subclasses of BlogPost :)
275: [23:46:30] <micmania1> all optional though. You can set blog posts to appear in the site tree again using yaml
276: [23:46:37] <micmania1> BlogPost:
277: [23:46:42] <micmania1> show_in_sitetree: true
278: [23:46:49] <micmania1> that easy :)
279: [23:47:11] <micmania1> http://awesomescreenshot.com/00f1lf579b - You can also add tags/categories without clicking into the gridfield too.
280: [23:48:14] <Nightjar> yeah I saw
281: [23:48:17] <Nightjar> cool man
282: [23:48:24] * priithansen has joined #silverstripe
283: [23:48:26] <Nightjar> nicer solution that ParentID -1 too
284: [23:48:32] <Nightjar> :)
285: [23:52:04] <micmania1> yeah, took a while to figure it out though lol

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