#silverstripe IRC Log

IRC log for 8 January 2013

All timestamps are in UTC.

1: [00:00:00] <FrozenFire> Might mean something different here
2: [00:01:00] <FrozenFire> But probably not
3: [00:21:00] <spronk> FrozenFire: polytech has cooking school
4: [00:22:00] <spronk> institute of technology is a bit lol
5: [00:22:00] <FrozenFire> Sounds like PEI
6: [00:22:00] <FrozenFire> I never bothered with any of that college silliness
7: [00:22:00] <FrozenFire> Ah
8: [00:22:00] <spronk> asking for a signature to say they went to an interview, so they can get their benefit money
9: [00:22:00] <spronk> the more important part is people that just go there with no intention of getting the job
10: [00:23:00] <FrozenFire> :P
11: [00:23:00] <FrozenFire> The bi-annual signing of the pogey
12: [00:23:00] <FrozenFire> Or they do work for a bit, when the potatoes are being harvested
13: [00:25:00] <FrozenFire> Hrmm
14: [00:26:00] <terryapodaca> if I comment that line out, it sends the stupid email
15: [00:26:00] <spronk> seriously.... benefit should be abolished in favour of a card for food and clothing (no alcohol, no cigs, only approved stores etc), and a direct rental allowance
16: [00:26:00] <terryapodaca> is there something wrong with the way I am writing that
17: [00:26:00] <FrozenFire> terryapodaca, Debug::dump($data);
18: [00:26:00] <terryapodaca> $from = $data['Email'];
19: [00:26:00] <FrozenFire> Figure out what's in there
20: [00:26:00] <FrozenFire> Somewhere in the scope of $Top in the template is supposed to be something like CurrentUser
21: [00:26:00] <terryapodaca> I am really getting pissed of here
22: [00:26:00] <terryapodaca> I did..., it's fine
23: [00:26:00] <FrozenFire> spronk, You'd not say that if you were one of the people not abusing it
24: [00:27:00] <catcher> terryapodaca, shared hosting?
25: [00:27:00] <terryapodaca> yes
26: [00:27:00] <terryapodaca> dreamhost
27: [00:27:00] <catcher> terryapodaca, might be an invalid sender for the host
28: [00:27:00] <spronk> FrozenFire: of course i wouldn't, but really...
29: [00:27:00] <catcher> If the MX records are internal, you need the email address to exist on your dreamhost acct
30: [00:27:00] <FrozenFire> Also, how are you coming to believe it's not working, terryapodaca?
31: [00:28:00] <terryapodaca> because if I comment out the $from , the email sends
32: [00:28:00] <FrozenFire> That is, documenting what they spent the benefits on
33: [00:28:00] <FrozenFire> spronk, I'd agree with having beneficiaries of EI submit something akin to a tax return for their benefits.
34: [00:29:00] <FrozenFire> terryapodaca, And when you don't, what happens?
35: [00:29:00] <terryapodaca> it's a simple contact form
36: [00:29:00] <terryapodaca> I get no email from the contact form
37: [00:29:00] <FrozenFire> catcher, Yes you can
38: [00:29:00] <catcher> terryapodaca, your server can't send emails on another domain's behalf
39: [00:29:00] <catcher> terryapodaca, wait, are you trying to have the email come from the email address filled in the form?
40: [00:29:00] <FrozenFire> However, if you're using the server's sendmail (the default), it will get spammed most of the time.
41: [00:30:00] <FrozenFire> (That is, expecting your web server to act as an MTA)
42: [00:30:00] <FrozenFire> Always.
43: [00:30:00] <FrozenFire> Sending email from your webserver is bad.
44: [00:30:00] <FrozenFire> Always.
45: [00:30:00] <FrozenFire> Sendmail and its ilk are bad.
46: [00:30:00] <terryapodaca> http://www.stricklandapps.com/contact/
47: [00:30:00] <FrozenFire> https://github.com/xeraa/silverstripe-smtp
48: [00:30:00] <FrozenFire> So configure it using SMTP
49: [00:31:00] <catcher> FrozenFire, my basic shared host can send a mail from FrozenFire@frozenfire.com?
50: [00:31:00] <terryapodaca> right...I've always done this...so I have no idea why this form isnt working
51: [00:31:00] <FrozenFire> That's good news.
52: [00:31:00] <catcher> that's bad news.
53: [00:31:00] <FrozenFire> The one exception being, in spam filtering.
54: [00:31:00] <FrozenFire> The from field in emails is not checked in any way, shape or form.
55: [00:31:00] <FrozenFire> catcher, Yes
56: [00:31:00] <terryapodaca> I've done ALL my contact forms this exact way...so that when the admin gets the From is the person filling out the form
57: [00:32:00] <FrozenFire> Plain and simple.
58: [00:32:00] <catcher> spoofing any from address at will seems bad.
59: [00:32:00] <FrozenFire> Whether it be personal authentication ("I know and trust this person") or actual authentication
60: [00:32:00] <FrozenFire> That way, sites like this can act as a middle-man for certain types of emails.
61: [00:32:00] * lurker quit (Ping timeout: 245 seconds)
62: [00:32:00] <FrozenFire> Such as contact forms.
63: [00:32:00] <terryapodaca> yep
64: [00:32:00] <FrozenFire> If you use the from field in an email as form of authentication, you're stupid.
65: [00:33:00] <terryapodaca> that's the code again...
66: [00:33:00] <terryapodaca> http://www.sspaste.com/paste/show/4ffc7cbc7d719
67: [00:34:00] <terryapodaca> and if you fill out my form, you can see the debug::() info and the Email IS there
68: [00:35:00] <catcher> and then I create the web@domain.com address on the host.
69: [00:35:00] <catcher> I always let the sender be web@domain.com and just pass along & store the relevant data (including their email address).
70: [00:36:00] <catcher> For the authentication methods mentioned above
71: [00:36:00] <FrozenFire> That just makes it so you can't just hit reply on the email
72: [00:36:00] <FrozenFire> Why?
73: [00:36:00] <FrozenFire> No authentication takes place on the email address
74: [00:36:00] <catcher> I wouldn't trust hitting 'reply' anyway
75: [00:37:00] <FrozenFire> Makes no sense to treat it as a special thing
76: [00:37:00] <FrozenFire> SMTP doesn't unpack the email to check such things
77: [00:37:00] <FrozenFire> SMTP credentials have no relation to the From field in an email
78: [00:37:00] <FrozenFire> You can authenticate to that SMTP user without setting the from to that email address.
79: [00:37:00] <FrozenFire> There are a dozen different ways you could manipulate the From field
80: [00:38:00] <catcher> Agreed. But for one, it's a simple way for clients to filter emails that came from the site's contact form.
81: [00:39:00] <FrozenFire> Or just set the subject
82: [00:39:00] <FrozenFire> $subject = SiteConfig::current_site_config()->Title." Contact Form Submission";
83: [00:39:00] <FrozenFire> Which, you know, is the point of the subject.
84: [00:40:00] <FrozenFire> Meh
85: [00:40:00] <FrozenFire> Seems round-about and silly
86: [00:40:00] <catcher> of course there are other ways, but this way has always served its purpose.
87: [00:41:00] <FrozenFire> What's wrong with hitting reply?
88: [00:41:00] <catcher> and most clients *do* trust the 'from' field, and would feel fine hitting 'reply' on a completely user-provided address.
89: [00:43:00] <catcher> if it's a spoofed email address, the dev seems at fault. If the info is provided as 'submitted email address', the client knows they can't definitely trust the address.
90: [00:43:00] <FrozenFire> Are you aware that I can send you an email from bill.gates@microsoft.com right now?
91: [00:44:00] <catcher> I am indeed. But if it came through the site, client will blame the site.
92: [00:44:00] <FrozenFire> The server has nothing to do with it
93: [00:44:00] <catcher> ^
94: [00:44:00] <catcher> Subject, for filtering
95: [00:44:00] <FrozenFire> That makes no sense
96: [00:44:00] <catcher> I can explain that to them, or I can just send them a 'submitted email address' field instead.
97: [00:44:00] <FrozenFire> How does the client know it came through the site?
98: [00:44:00] <FrozenFire> Anyone can send any email using any from address anywhere
99: [00:45:00] <FrozenFire> That can always happen
100: [00:45:00] <FrozenFire> No, it really makes no sense.
101: [00:45:00] <catcher> Right - and it can either look like the sever's at fault, or not.
102: [00:45:00] <FrozenFire> You're saying that they might receive an email from an address, where the email is malicious or something.
103: [00:46:00] <catcher> Obviously it's not, but I'd sooner avoid the explanation.
104: [00:46:00] <FrozenFire> So you want to provide a false sense of security, is what you're saying.
105: [00:46:00] <catcher> The opposite, it says "trust this address at your own risk"
106: [00:46:00] <FrozenFire> Or just place a message at the top of each email saying "This email was generated by <site>'s contact form. Trust its contents at your own risk."
107: [00:47:00] <catcher> sure, that'd work too
108: [00:48:00] <lewellyn> SPF
109: [00:48:00] <lewellyn> however, you seem to be missing something here. :)
110: [00:48:00] <lewellyn> "All information, including the email address, are user-submitted."
111: [00:49:00] <Webdoc> hi
112: [00:49:00] * Webdoc has joined #silverstripe
113: [00:50:00] <Webdoc> have someone made webform for silverstripe that calculates
114: [00:50:00] <Webdoc> any idea how to to if
115: [00:50:00] <Webdoc> do it
116: [00:50:00] <lewellyn> FrozenFire: but yeah, spf may prevent the mail from arriving, if he's using their input as the From :)
117: [00:50:00] <FrozenFire> Meh. People will click emails no matter what.
118: [00:50:00] <FrozenFire> They don't care about warnings
119: [00:51:00] <Webdoc> example: http://arbalans.ee/www/node/164
120: [00:51:00] <FrozenFire> Webdoc, Still not sure what you're looking for
121: [00:51:00] <FrozenFire> Webdoc, Please clarify what you're looking for.
122: [00:51:00] <Webdoc> something like that http://drupal.org/project/webform_calculator
123: [00:52:00] <FrozenFire> Still unsure. Just make a form
124: [00:52:00] <FrozenFire> Unless you're talking about an extension to UserForms
125: [00:52:00] <FrozenFire> And have the action do calculation
126: [00:53:00] <Webdoc> yeah but how to make it calculate like i have writen here http://www.silverstripe.org/form-questions/show/21936
127: [00:53:00] <chrisrio> gents - does SS support (out of the box, or easily) page by page permissions for users? (just out of curiosity)
128: [00:53:00] * chrisrio has joined #silverstripe
129: [00:54:00] <Webdoc> chrisrio using groups is one posibility
130: [00:54:00] <chrisrio> so like, I want bob to be able to see 5 of 7 total pages (set on a page by page basis)
131: [00:55:00] <FrozenFire> You can make it whitelisted
132: [00:55:00] <FrozenFire> chrisrio, A few options in that regard
133: [00:55:00] * terryapodaca has left #silverstripe
134: [00:55:00] <FrozenFire> Which means that you specify explicitly *who* can view/edit
135: [00:55:00] <Webdoc> and in cms u just check what groups can see it
136: [00:55:00] <FrozenFire> By group
137: [00:55:00] <FrozenFire> You can also implement your own canView on your Page
138: [00:55:00] <FrozenFire> Or canEdit
139: [00:57:00] <FrozenFire> That's not a normal thing for people to need
140: [00:57:00] <FrozenFire> Webdoc, I'm inclined to answer: no
141: [00:57:00] <FrozenFire> Webdoc, I don't browse the forums
142: [00:57:00] <Webdoc> Frozenfire any ideas on my forumpost
143: [00:58:00] <FrozenFire> However, it's trivial to make using a form
144: [00:58:00] <FrozenFire> So it's unlikely that it's been built for SS
145: [00:59:00] <chrisrio> cheers folks
146: [00:59:00] <FrozenFire> You're not making any sense
147: [00:59:00] <chrisrio> hrm okie dokie
148: [00:59:00] <Webdoc> yeah i understand i can make form using enum fields but how to make them auto calculate
149: [01:00:00] <FrozenFire> Build it yourself.
150: [01:00:00] <Webdoc> Example: Pages if 1 = 20 ??? if 2 = 30 Forms if 1 = 10??? if 2 = 15 ??? design if yes 50 ??? if no 0 and then it gives sum of pages + forms + design and then posts it if u submit with normal stuff like name adress and so on.
151: [01:00:00] <FrozenFire> Webdoc, You're asking for a very specific thing. The answer is no, nobody has built that for SS
152: [01:01:00] <Webdoc> ok i understand
153: [01:01:00] <Webdoc> can someone give an example how to make it calculate in form
154: [01:02:00] <FrozenFire> Use the tutorials on silverstripe.org to learn about forms
155: [01:02:00] <Webdoc> normal form is easy to make u just add fields u need and let it submit
156: [01:02:00] <FrozenFire> Then you handle the calculation in your form action
157: [01:03:00] <Webdoc> is there any example for the action
158: [01:04:00] <FrozenFire> Yes
159: [01:11:00] * catcher quit (Quit: Leaving)
160: [01:22:00] * howardgrigg has joined #silverstripe
161: [01:24:00] * Webdoc quit (Ping timeout: 245 seconds)
162: [01:25:00] * C10ne quit (Ping timeout: 245 seconds)
163: [01:25:00] * chrisrio quit (Ping timeout: 245 seconds)
164: [01:26:00] * Marvanni quit (Ping timeout: 240 seconds)
165: [01:29:00] * Marvanni has joined #silverstripe
166: [01:34:00] * Marvanni quit (Ping timeout: 260 seconds)
167: [01:49:00] * howardgrigg quit (Remote host closed the connection)
168: [01:50:00] * howardgrigg has joined #silverstripe
169: [02:17:00] * Stomach has joined #silverstripe
170: [02:17:00] <Stomach> where does one submit a bug ticket? silverstripe/sapphire 2.4.9's composer file is incorrectly tagged as silverstripe/framework
171: [02:35:00] * Zauberfisch quit (Ping timeout: 246 seconds)
172: [02:38:00] * Zauberfisch has joined #silverstripe
173: [03:23:00] <dnz-> good afternoon lifter bros and other dudez
174: [03:24:00] <dnz-> no pyro, no irogue, this place is dead bruz
175: [03:24:00] <dnz-> me and spronk holden down the fortz
176: [03:25:00] <dnz-> che boi
177: [03:25:00] <spronk> LIFTIN !
178: [03:33:00] * aznain has joined #silverstripe
179: [03:35:00] <aznain> DataObject "A" has one to many relationship with DataObject "B". DataObject "A" has field name. When creating new "B", I want to populate "name" field of "B" with "name" of "A". How can I get that value in the form ?
180: [03:36:00] <Stomach> dataobject B has a has_one relationship to A right
181: [03:36:00] <aznain> yea
182: [03:36:00] <dnz-> wot
183: [03:36:00] <dnz-> $B->A()->Title()
184: [03:37:00] <dnz-> ot whatev
185: [03:37:00] <aznain> in populateDefault function right ?
186: [03:37:00] <dnz-> shoudl check out the tutorial page on relations bra
187: [03:37:00] <Stomach> exactory
188: [03:38:00] <Stomach> you cant get the relationship until after it is set
189: [03:38:00] * dnz- &
190: [03:38:00] <dnz-> if($related = $B->A()) $related->Title
191: [03:38:00] <dnz-> http://doc.silverstripe.com/framework/en/tutorials/5-dataobject-relationship-management
192: [03:39:00] <dnz-> you can write() first and get the ID after
193: [03:39:00] <aznain> but is there any way to know to whom dataobject it is going to save
194: [03:40:00] <dnz-> but theres no ID until you write
195: [03:40:00] <dnz-> brb
196: [03:40:00] <dnz-> for the first time
197: [03:40:00] <dnz-> $o = new Object(); $o->write(); $o->ID;
198: [03:42:00] <aznain> While writing , how does silverstripe know which dataobject will be the parent ...
199: [03:42:00] <aznain> I want to that field before writing "B" ..means it is creating first time ...
200: [03:44:00] <aznain> from where it get the ParentID
201: [03:44:00] <aznain> ?
202: [03:45:00] <dnz-> ParentID orits realtion ID
203: [03:49:00] <aznain> Can you please elaborate more ?
204: [03:53:00] * DesignerX has joined #silverstripe
205: [03:53:00] <dnz-> have you read the tutorial ?
206: [03:53:00] <dnz-> and setup your relations like that ?
207: [03:54:00] <aznain> Yes! that is not what i am asking
208: [03:55:00] <aznain> when u open for the very first time of "B" then I want to populate "B" 's "name" with "A" 's "name"
209: [03:56:00] * DigNZ quit (Quit: DigNZ)
210: [03:56:00] <aznain> it is different from onAfterWrite or onBeforeWrite ..
211: [03:56:00] <aznain> how does that form knows from where to get ParentID
212: [03:58:00] * nickmolhoek quit (Quit: nickmolhoek)
213: [04:01:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
214: [04:04:00] <dnz-> i really dont understand your question bro
215: [04:04:00] <dnz-> there shouldnt be a parentid field if you have named your relations
216: [04:04:00] <dnz-> it should be fieldnameId
217: [04:04:00] <dnz-> then you can just populate it however itis required
218: [04:05:00] <dnz-> even if there is a relation defined, ID will be 0
219: [04:05:00] <dnz-> it wont be related unless you relate it
220: [04:05:00] <dnz-> s/filednameId/ObjectNameID/
221: [04:06:00] * Error404NotFound has joined #silverstripe
222: [04:07:00] <dnz-> $a->BID = $b->ID; $a->write(); $a->B();
223: [04:07:00] <aznain> Let me give an example
224: [04:07:00] <aznain> dnz can have many aznain
225: [04:07:00] <dnz-> pastie.org
226: [04:07:00] <dnz-> paste your code man
227: [04:08:00] * liam has joined #silverstripe
228: [04:08:00] <aznain> i create dnz dataobject say by name "A"
229: [04:08:00] <aznain> when I go see that dataobject then I see create new "AzNain"
230: [04:08:00] <aznain> I click on that button
231: [04:08:00] <aznain> A form open
232: [04:09:00] <liam> Hi anyone know why this error is appearing when trying to build the db? Uncaught InvalidArgumentException: SiteTree_Live is not a subclass of DataObject
233: [04:09:00] <aznain> is it making sense till so far ?
234: [04:10:00] <aznain> when form opens very first time ... u see fields for "aznain"
235: [04:10:00] <aznain> I want to populate a field from value of "dnz" object
236: [04:11:00] <aznain> ok let me
237: [04:11:00] <dnz-> aznain: paste your code man
238: [04:11:00] <dnz-> i dont want you to explain it to me
239: [04:12:00] <dnz-> becasue tldr
240: [04:33:00] <aznain> dnz: http://www.sspaste.com/paste/show/50eba197daf0b
241: [04:35:00] <dnz-> k
242: [04:35:00] <dnz-> now what do you want from it
243: [04:37:00] <dnz-> $ed = new DnzEventDate(); $d = new DnzEvent(); $d->DnzEventDateID = $ed->ID; $d->write()l
244: [04:37:00] <dnz-> or you want to to display on summary fields ?
245: [04:40:00] <aznain> when i am creating DnzLocalDate ... i want to populate dnzDateName with value of dnzName
246: [04:41:00] <dnz-> ah
247: [04:42:00] <dnz-> no
248: [04:42:00] <dnz-> i it already related ?
249: [04:42:00] <dnz-> *is
250: [04:42:00] <dnz-> derp
251: [04:43:00] <dnz-> because onbeforeWriotetheres no Id
252: [04:43:00] <dnz-> you can do it in onAfterWrite()
253: [04:43:00] * cloph_away1 has joined #silverstripe
254: [04:43:00] <aznain> why u r going to onafterwrite
255: [04:43:00] <dnz-> so that the ID exists
256: [04:43:00] <dnz-> so that you can relate it
257: [04:43:00] <aznain> i am telling that i am on that stage
258: [04:43:00] <aznain> I am not saving the form
259: [04:44:00] <aznain> http://i.imgur.com/y5kTA.png
260: [04:44:00] <dnz-> the object doesnt exist then
261: [04:44:00] <dnz-> its just a form
262: [04:44:00] <aznain> then another question comes
263: [04:44:00] <aznain> I am talking about when form opens
264: [04:45:00] <dnz-> not sure, i dont use gridfield
265: [04:45:00] <dnz-> havent done much in ss3
266: [04:45:00] <dnz-> tho, if you use the onBeforeWrite9)
267: [04:45:00] <aznain> when u click the save button from where it get the id of DnzEvent to associate with DnzEventDate
268: [04:45:00] <aznain> ?
269: [04:45:00] * cloph_away quit (Ping timeout: 276 seconds)
270: [04:45:00] <aznain> otherwise how can it associate both records correctly
271: [04:46:00] <dnz-> it will be in the dnzEventID on $this in dnzEventDate
272: [04:47:00] <aznain> Click the button - > open form -> fill the fields -> perform onBeforeWrite -> save the form -> perform onAfterWrite
273: [04:47:00] <aznain> I know u love onBeforeWrite but I am using that one
274: [04:47:00] <dnz-> ?
275: [04:47:00] <dnz-> thats generic to all dataobjects
276: [04:47:00] <dnz-> it happens before write()
277: [04:47:00] <dnz-> as the name suggests
278: [04:48:00] <aznain> anyway
279: [04:48:00] <dnz-> yes
280: [04:48:00] <aznain> those are steps in general
281: [04:48:00] <aznain> i am in second one ...
282: [04:48:00] * dnz- shrugs
283: [04:49:00] <dnz-> i havent used gridfield yet
284: [04:49:00] <dnz-> when you create that form, i dont know where its set
285: [04:49:00] <dnz-> but when you submit the form, likey its provided as a field
286: [04:50:00] <dnz-> *likely
287: [04:50:00] <dnz-> inspect it
288: [04:51:00] * Stomach has left #silverstripe
289: [04:55:00] <aznain> any idea how does url is building up ?
290: [04:56:00] <aznain> in the url there is id for parent ...
291: [04:56:00] <aznain> r u using 2.4.7 or 3 ?
292: [04:58:00] <DesignerX> $Form
293: [04:58:00] <DesignerX> hi guys, any idea to how I can get $From of another page ? <% with page(contact-us) %>
294: [04:58:00] <DesignerX> <% end_with %> doesnt work !
295: [05:00:00] <DesignerX> try9ing to get the UserDfinedForm from 'contact-us" page to show on the sidebar , any tips ?
296: [05:05:00] * guci0 has joined #silverstripe
297: [05:10:00] * dendeffe has joined #silverstripe
298: [05:15:00] * howardgrigg quit (Remote host closed the connection)
299: [05:18:00] * howardgrigg has joined #silverstripe
300: [05:19:00] * howardgrigg quit (Remote host closed the connection)
301: [05:52:00] * MichaelDesignerX has joined #silverstripe
302: [05:54:00] <mirrors> Hi everyone....I am using SS 2.4.8 and was hoping somebody could point me in the direction of where the drop down for the TreeMultiselectField is built
303: [05:54:00] * mirrors has joined #silverstripe
304: [05:56:00] * DesignerX quit (Ping timeout: 276 seconds)
305: [06:01:00] <mirrors> anyone ?
306: [06:06:00] * SticksM quit (Read error: Connection reset by peer)
307: [06:14:00] * liam quit (*.net *.split)
308: [06:14:00] * PigeonFriend quit (*.net *.split)
309: [06:15:00] * PigeonFriend has joined #silverstripe
310: [06:16:00] * aznain quit (Ping timeout: 245 seconds)
311: [06:18:00] * liam has joined #silverstripe
312: [06:25:00] * mirrors quit (Quit: Page closed)
313: [06:42:00] * C10ne has joined #silverstripe
314: [07:11:00] * dendeffe quit (Quit: dendeffe)
315: [07:28:00] * C10ne quit (Ping timeout: 245 seconds)
316: [07:28:00] * Zauberfisch quit (Ping timeout: 246 seconds)
317: [07:35:00] * Zauberfisch has joined #silverstripe
318: [07:44:00] * dendeffe has joined #silverstripe
319: [07:48:00] * Shrike_Finland has joined #silverstripe
320: [08:02:00] * howardgrigg has joined #silverstripe
321: [08:04:00] <Bollig|DesignCty> anyone about who can tell me the easiest way to move an asset folder and all children to a new location?
322: [08:05:00] * zfmf has joined #silverstripe
323: [08:09:00] <MichaelDesignerX> Bollig|DesignCty: Hi, shouldnt just moving the files then "sync files & folders" in the backend do the trick ?
324: [08:10:00] <Bollig|DesignCty> sorry, I mean via PHP :)
325: [08:10:00] * hubertusanton quit (Remote host closed the connection)
326: [08:11:00] <MichaelDesignerX> are you moving the files to a new ss website ?
327: [08:11:00] <Bollig|DesignCty> no, just moving files around within assets
328: [08:11:00] <Bollig|DesignCty> (when the name of the page changes, I want the related assets folder to move as appropriate)
329: [08:12:00] <MichaelDesignerX> I had it 1/2 working, let me grab the code
330: [08:12:00] <MichaelDesignerX> :D , i was working on something like that a while backl
331: [08:13:00] * travis-ci has left #silverstripe
332: [08:13:00] <travis-ci> [travis-ci] silverstripe/sapphire#1122 (post-2.4 - a3df18d : Ingo Schommer): The build is still failing.
333: [08:13:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/19e44ca40960...a3df18ddade2
334: [08:13:00] <Bollig|DesignCty> 1/2 working is the problem unfortunately. I can get the folder to be created, but the files within that folder aren't being moved...
335: [08:13:00] * travis-ci has joined #silverstripe
336: [08:13:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4018127
337: [08:14:00] <MichaelDesignerX> U just rename the folder & make sure the files inside it have ParentID = yourFolder-.ID
338: [08:14:00] <MichaelDesignerX> U dont move the files inside
339: [08:14:00] <Bollig|DesignCty> yeah, I shouldn't think you'd need to...
340: [08:15:00] <MichaelDesignerX> if you have nested folder, U need to create each folder & chain them with parentID (or Folder ID, which one )
341: [08:16:00] * howardgrigg quit (Remote host closed the connection)
342: [08:17:00] <Bollig|DesignCty> okay, so say I have a folder at sub/directory/HERE and I want to move it to where/ever/HERE... I'm setting the FIlename to the new loation, so I need to also set the parentID to the where/ever/ directory's ID?
343: [08:19:00] <MichaelDesignerX> close
344: [08:19:00] <MichaelDesignerX> In short, each folder/files need to have its PrentID corrected
345: [08:20:00] <MichaelDesignerX> & sub/ by default will have presntID=assets->ID
346: [08:20:00] <MichaelDesignerX> in your example "sub/directory/HERE" , Here/ will have ParentID=directoryID , directory/ will have parentID=sub
347: [08:22:00] <Bollig|DesignCty> so i don't need to worry about the filename, just adjust the parentid and write?
348: [08:22:00] <MichaelDesignerX> https://gist.github.com/4482171
349: [08:23:00] * ocm_ has joined #silverstripe
350: [08:23:00] <MichaelDesignerX> Bollig|DesignCty: Let me do a small test & will get back to you with more info
351: [08:24:00] <Bollig|DesignCty> thanks MichaelDesignerX :)
352: [08:25:00] <MichaelDesignerX> Bollig|DesignCty: do you have alot of files ? wanna post me the exact From & to paths
353: [08:26:00] <Bollig|DesignCty> they're dynamic based on the page name, and the 3 parent pages....
354: [08:29:00] <MichaelDesignerX> Bollig|DesignCty: wanna post what code u have so far , maybe I can use some of it
355: [08:29:00] <Bollig|DesignCty> sorry, brb!!
356: [08:29:00] <Bollig|DesignCty> <phone>
357: [08:30:00] * hubertusanton has joined #silverstripe
358: [08:34:00] * ARNHOFF has joined #silverstripe
359: [08:38:00] * ARNHOFF is now known as ARNHOE
360: [08:42:00] <ocm_> howdy
361: [08:42:00] * Shrike_Finland quit (Quit: Leaving.)
362: [09:05:00] <Bollig|DesignCty> think I might have nabbed it
363: [09:05:00] <MichaelDesignerX> Bollig|DesignCty: U still here?
364: [09:05:00] <Bollig|DesignCty> yeah, still here...
365: [09:05:00] * Shrike_Finland has joined #silverstripe
366: [09:06:00] <Bollig|DesignCty> looks like the client is duplicating pages, which will retain the original relationship and then as soon as the duplicated page is saved, the related folder will be moved, causing the original page to asplode.
367: [09:06:00] <MichaelDesignerX> Just going to upload some files to it & see if it breakes them
368: [09:06:00] <MichaelDesignerX> Bollig|DesignCty: I have code that creates & update just one folder (not nested folders )
369: [09:07:00] * kinglozzer has joined #silverstripe
370: [09:07:00] <Bollig|DesignCty> or more accurately, causing the client to be confused.
371: [09:07:00] * hubertusanton quit (Remote host closed the connection)
372: [09:08:00] <Bollig|DesignCty> so now I need to figure out how to break the relationship when the page is duplicated.......
373: [09:08:00] <MichaelDesignerX> does it duplicate the relation or ONLY add FolderID on the page ? the latter one is easy to fix
374: [09:10:00] <Bollig|DesignCty> I mean it does as you'd expect, the new page has the same FolderID as the original. Then the code moves that folder to the new location, and all of a sudden you've got 2 pages with the same connected folder which on this site causes all sorts of issues.
375: [09:10:00] <Bollig|DesignCty> (since the folders *should* be created on creation, there's no way to manually create a new folder easily)
376: [09:11:00] <MichaelDesignerX> Bollig|DesignCty: The plan is NOt to move the folder, 1- we create the new path , 2- we copy NOT move the files 3- remove old files if they are not used
377: [09:12:00] <Bollig|DesignCty> ... stand by ;)
378: [09:12:00] <Bollig|DesignCty> I;m having a look and it seems we can use onBeforeDuplicate() on the sub class to possibly zero out the relationship and have the default behaviour of creating a new folder happen
379: [09:16:00] * hubertusanton has joined #silverstripe
380: [09:20:00] <MichaelDesignerX> now I cant even get has_many files to wotk with UploadField !!
381: [09:23:00] <MichaelDesignerX> Bollig|DesignCty: another problems, what if 2 pages have the same files , which one will do the copy ?
382: [09:29:00] <Bollig|DesignCty> personally I use the url segment for Name and Title for title so there will never be duplicate problems
383: [09:31:00] <MichaelDesignerX> Bollig|DesignCty: Justed test my code , I got it 100% working but with only one folder, havt tested nested folders+parent pages
384: [09:32:00] * g4b0 has joined #silverstripe
385: [09:32:00] <MichaelDesignerX> what I have is : simple object which creates a newFolder with the name $Pagename_ID & use it for all new files . It will update the folder name & all files inside that folder
386: [09:38:00] <kinglozzer> Quick question, if I declare a property in my Page class, it's available in my Page_Controller class by using $this->propertyName. How come? I assume it's some SilverStripe magic.
387: [09:39:00] <MichaelDesignerX> kinglozzer: yeh, I think it should work , SS has alot of magic in it :D
388: [09:40:00] <kinglozzer> Yeah I know it does work, I just wondered how/why!
389: [09:48:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
390: [10:03:00] <MichaelDesignerX> anyone here understands how SS able to move files in the assets section ? I am trying to move files using PHP
391: [10:11:00] * samthejarvis has joined #silverstripe
392: [10:17:00] <samthejarvis> ello all, forums can't seem to enlighten mes, so i'll ask here
393: [10:20:00] * Emil_Blume has joined #silverstripe
394: [10:20:00] <samthejarvis> with a gridfield, does anyone know how I can access the current parent object, for example, i have a parent object "Row" and it is linked by many_many to "Cells", how do i access the current Row from the Cell's context?
395: [10:21:00] <samthejarvis> and since it's not has_many/has_one, i can't just pull the RowID
396: [10:21:00] <samthejarvis> so in the Cell's getCMSField, i need to know how many Cells are already linked to the parent row, but this is impossible without getting that Row object
397: [10:22:00] <samthejarvis> if anyone has any idea, lemme know :)
398: [10:25:00] * Shrike_Finland quit (Quit: Leaving.)
399: [10:27:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4019449
400: [10:27:00] * travis-ci has joined #silverstripe
401: [10:27:00] <travis-ci> [travis-ci] silverstripe/sapphire#1123 (3.0 - a8904e3 : Will Rossiter): The build passed.
402: [10:27:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b63e55a77a44...a8904e3de01b
403: [10:27:00] * travis-ci has left #silverstripe
404: [10:29:00] * bino has joined #silverstripe
405: [10:29:00] * bjrN has joined #silverstripe
406: [10:30:00] <bino> Howdy!
407: [10:30:00] <bjrN> Anyone.. I tried to install SS 3 on my webhost, (www.unoeuro.com), when i try to load my site, this error is comming (open_basedir restriction in effect.)
408: [10:31:00] <bino> i have a page which as some other dataobjects related with has_many, I need to set a limit
409: [10:31:00] <bino> does anybody knows if it is possible to limit the max number of records related to an has many relation?
410: [10:31:00] <samthejarvis> you can use onBeforeWrite for that, bino
411: [10:32:00] <bjrN> btw. cant change the php.ini from server and htaccess dosn't work for me
412: [10:32:00] <samthejarvis> in your dataobject, with the has_one to the parent object
413: [10:32:00] <samthejarvis> you can do:
414: [10:32:00] <samthejarvis> function onBeforeWrite() {
415: [10:32:00] <samthejarvis> bino: lemme just write a bit of code here
416: [10:33:00] <bino> @samthejarvis thanks in advance!
417: [10:41:00] <samthejarvis> heh, sorry, still figuring it out :)
418: [10:43:00] <samthejarvis> hey, bino, are you using GridField to manage your objects?
419: [10:44:00] <samthejarvis> bino: hey, are you using GridField to manage your objects?
420: [10:45:00] <bino> yes, samthejarvis
421: [10:46:00] <g4b0> Is it possible to disable the "Preview mode" in SS 3.1-beta1?
422: [10:47:00] <MichaelDesignerX> samthejarvis: hi, for your question, you have page has_many or many_many rows ?
423: [10:48:00] <samthejarvis> MichaelDesignerX: a Row has a many_many link to Cells (Cells can be replicated to other rows if necessary)
424: [10:50:00] <samthejarvis> bino: i can't seem to get onBeforeWrite to return an error message, but you could use this if it's essential there are no extra objects: http://pastie.org/5647310
425: [10:51:00] <samthejarvis> otherwise, you can use the same if($this->Relation()->Count() > $max_objects){ logic to remove the gridfield from the field list
426: [10:52:00] <samthejarvis> sorry, that pastie code is flawed, it's similar to the problem i'm having now hehe
427: [10:53:00] <bino> ok samthejarvis, thank you
428: [10:53:00] <MichaelDesignerX> samthejarvis: IF Cell many_many Rows , how do you decide which Row is the parent Row ? is the 1st RowID in the relation good enough ?
429: [10:54:00] <MichaelDesignerX> bino: give me 2 min, I think I read something about settinmg limit in GF
430: [10:54:00] <bino> it's a good start point!
431: [10:54:00] <samthejarvis> MichaelDesignerX: hehe, i'm afraid not, as a cell can be in any number of Rows, so I can't really determine it like that, i'm onto something here though, thanks
432: [10:56:00] <bino> ok, MichaelDesignerX, thanks!
433: [10:56:00] <MichaelDesignerX> samthejarvis: np , if i know how you determine the ParentRow then I may be able to help :D
434: [11:00:00] <bjrN> i just changed the line before to $file = '/var/www/cms-seo-adwords.dk/public_html/' . $filename;
435: [11:00:00] <bjrN> anyone knows... because of the open_basedir restriction in effect error i got, says something about /framework/thirdparty/Zend/Loader.php line 198
436: [11:00:00] <bjrN> something is wrong with the $path
437: [11:01:00] <MichaelDesignerX> bjrN: create silverstripe-cache in the project root
438: [11:01:00] <bjrN> anyone knows if there's any issues with this solution
439: [11:01:00] <bjrN> there is a silverstripe-cache folder
440: [11:02:00] <MichaelDesignerX> bjrN: mm. check the folder, does it have files inside it ? remove it , flush=all then check again
441: [11:02:00] * Err404NotFound has joined #silverstripe
442: [11:02:00] * Error404NotFound quit (Disconnected by services)
443: [11:03:00] <MichaelDesignerX> bjrN: had similar problem before ,SS didnt detect the silverstripe-cache folder (ss3.0.0 that is )
444: [11:03:00] <MichaelDesignerX> yep
445: [11:03:00] <bjrN> u want me to delete all files in silverstripe-cache ??
446: [11:03:00] <bjrN> this is 3.0.3
447: [11:04:00] * Err404NotFound is now known as Error404NotFound
448: [11:05:00] <bjrN> but
449: [11:05:00] <MichaelDesignerX> do ?flush=all
450: [11:05:00] <bjrN> all the pages are server errors
451: [11:05:00] <bjrN> now it shows the site
452: [11:06:00] <MichaelDesignerX> check *
453: [11:06:00] * liam quit (Quit: Leaving)
454: [11:06:00] <MichaelDesignerX> after that shceck if silverstripe-cache has files in it .
455: [11:07:00] <bjrN> and files in one of them
456: [11:07:00] <bjrN> there is
457: [11:07:00] <bjrN> 2 folders
458: [11:08:00] <bjrN> there's always the error
459: [11:08:00] <bjrN> now there is no error
460: [11:08:00] <MichaelDesignerX> kk, one more question, when do you get the error ?
461: [11:08:00] <bjrN> when i open the site
462: [11:09:00] <MichaelDesignerX> is this on a localhost or live ?
463: [11:09:00] <bjrN> and if i try go to admin its the same
464: [11:09:00] <bjrN> just a page called Server error
465: [11:09:00] <bjrN> no matter wich page i try go to
466: [11:10:00] <bjrN> live
467: [11:11:00] <bjrN> works fine
468: [11:11:00] <MichaelDesignerX> ok, I can view the website fine
469: [11:11:00] <bjrN> install live and then doesn't work
470: [11:11:00] <bjrN> http://www.cms-seo-adwords.dk/
471: [11:11:00] <MichaelDesignerX> did u start getting this error after u moved it live ?
472: [11:11:00] <bjrN> yes
473: [11:11:00] <bjrN> or i tried install local
474: [11:12:00] <bjrN> yes but it is Server error pages
475: [11:12:00] <bjrN> http://www.cms-seo-adwords.dk/admin
476: [11:12:00] <bjrN> same
477: [11:12:00] <MichaelDesignerX> kk add this in _config.php
478: [11:12:00] <MichaelDesignerX> Director::set_environment_type("dev");
479: [11:12:00] <MichaelDesignerX> so we can see the error
480: [11:12:00] <bjrN> i have
481: [11:12:00] <bjrN> :)
482: [11:12:00] <bjrN> or
483: [11:12:00] <bjrN> 2 sec
484: [11:12:00] <MichaelDesignerX> ah lolz
485: [11:13:00] <bjrN> w00t
486: [11:13:00] <bjrN> not same error as i had before
487: [11:13:00] <bjrN> done
488: [11:15:00] <bjrN> i did that
489: [11:15:00] <MichaelDesignerX> make silverstripe-cache permisstion too 777 for now ? try it
490: [11:15:00] <bjrN> it is 777
491: [11:18:00] <MichaelDesignerX> bjrN: last try, change language back to default English & see if u still get the error
492: [11:20:00] <bjrN> so reinstall with default language
493: [11:20:00] <bjrN> ?
494: [11:21:00] * dendeffe quit (Quit: dendeffe)
495: [11:21:00] * samthejarvis quit (Ping timeout: 245 seconds)
496: [11:23:00] <MichaelDesignerX> bjrN: I think u can just change the language back to english in the _config.php ? I never used the translatable module btw
497: [11:25:00] <bjrN> hmm. did that before and didn't change all of it. btw now im deleting it and reinstall from begenning so u can see the exact problem
498: [11:26:00] <bjrN> it will appear again and i think its the same now, it just wont show it
499: [11:29:00] <MichaelDesignerX> bjrN: try this : install a clean copy of SS3.0.3 then add your code
500: [11:30:00] <bjrN> my code ?
501: [11:31:00] <bjrN> its a fresh install
502: [11:31:00] <MichaelDesignerX> do you have any extra modules/php code ?
503: [11:31:00] <MichaelDesignerX> or is this just a fesh install ?
504: [11:32:00] <bjrN> no themes no nothing
505: [11:32:00] <bjrN> now
506: [11:32:00] <bjrN> there u go
507: [11:32:00] <bjrN> my problem from begenning
508: [11:32:00] <bjrN> http://www.cms-seo-adwords.dk/
509: [11:33:00] * mattybalaam has joined #silverstripe
510: [11:35:00] <bjrN> any solution for that ?
511: [11:36:00] <bjrN> or can i add my own line into the Loader.php without any issues ?
512: [11:36:00] * samthejarvis has joined #silverstripe
513: [11:36:00] <MichaelDesignerX> wll, give it a try & make sure u have a backup.. its not recomened
514: [11:37:00] <MichaelDesignerX> but if you have to do it till you find a solution then go for it
515: [11:37:00] <samthejarvis> after some intense reading through the content of a Controller object, i found out that
516: [11:37:00] <mattybalaam> robots.txt query: I think I had always assumed Silverstripe looked after this for me, but I???ve noticed thanks to Google sending me an email that it returns a page not found error. Is there a dynamic solution anyone knows about, or should I manually create one?
517: [11:37:00] <samthejarvis> you can use Controller::curr()->currentPage() to get the current page model
518: [11:37:00] <samthejarvis> which isn't documented at all
519: [11:38:00] <MichaelDesignerX> samthejarvis: nice findings , the core code is full of magic, we just need to learn the spells :D
520: [11:38:00] <samthejarvis> MichaelDesignerX: haha, indeed :)
521: [11:39:00] <MichaelDesignerX> bjrN: try 3.0.2 , I find that the latest releas have som bugs like this all the time (my personal opinion )
522: [11:40:00] <MichaelDesignerX> 3.0.0 was good , 3.0.1 had some open_basedir so i wated for ss.0.2
523: [11:41:00] <MichaelDesignerX> samthejarvis: about that Row cell idea , I had something like is on my ToDO list , how is it going for u
524: [11:42:00] * samthejarvis quit (Ping timeout: 245 seconds)
525: [11:45:00] <samthejarvis> sorry, it's actually here, http://api.silverstripe.org/trunk/sapphire/view/ViewableData.html, CurrentPage(), sorry for doubting you SilverStripe!
526: [11:45:00] * samthejarvis has joined #silverstripe
527: [11:49:00] * samthejarvis quit (Ping timeout: 245 seconds)
528: [11:49:00] <MichaelDesignerX> samthejarvis: :D
529: [11:57:00] * lobarvaz has joined #silverstripe
530: [11:59:00] <lobarvaz> Anyone know if it's possible to access the current record within a loop? Can't find it here: http://doc.silverstripe.com/framework/en/reference/templates#looping-over-lists
531: [12:04:00] * Shrike_Finland has joined #silverstripe
532: [12:04:00] <MichaelDesignerX> I think U looking for $Top & $Up
533: [12:04:00] <MichaelDesignerX> lobarvaz: hi, you trying to jump out of the loop & access other fields/loops ?
534: [12:05:00] <lobarvaz> Used $Top to access the controller but want to pass the current row in the loop into a function on the controller
535: [12:06:00] <lobarvaz> Looks like I can't do this anyway as function arguments seem to be handled as a literal string
536: [12:07:00] <lobarvaz> Thanks for the help. :)
537: [12:07:00] <lobarvaz> Think I found an alternative anyway :)
538: [12:08:00] * dendeffe has joined #silverstripe
539: [12:08:00] <bjrN> Michael: idk how, but now after a fresh install i didn't work
540: [12:08:00] <bjrN> i just set chmod to 777 on the folder and go for a smoke
541: [12:08:00] <bjrN> and now after a while i suddently works
542: [12:08:00] <bjrN> idk why
543: [12:11:00] * dendeffe quit (Client Quit)
544: [12:15:00] <MichaelDesignerX> bjrN: I know, its the smoke :D
545: [12:16:00] <MichaelDesignerX> bjrN: well, now its working , maybe the server needed more time to picvkup on changes !! GTG for now GL :D
546: [12:17:00] * dendeffe has joined #silverstripe
547: [12:17:00] <bjrN> thx, and for help aswell
548: [12:24:00] <bjrN> knows*
549: [12:24:00] <bjrN> anyone now this error ?
550: [12:24:00] <bjrN> http://www.cms-seo-adwords.dk/
551: [12:24:00] <bjrN> I've tried install ecommerce module and now all the pages again shows the server error as before
552: [12:25:00] <MichaelDesignerX> bjrN: e-commerce for ss3 ? where did u find it !
553: [12:25:00] <bjrN> http://www.silverstripe.org/ecommerce-module/
554: [12:26:00] * Shrike_Finland1 has joined #silverstripe
555: [12:27:00] <bjrN> :D
556: [12:27:00] <MichaelDesignerX> bjrN: o yeh .. been wating for this :D
557: [12:28:00] <bjrN> but, again i got thie user error
558: [12:28:00] <MichaelDesignerX> I think, its trying to access folder ouside of the user/ folder
559: [12:28:00] <bjrN> do u know what it means ?
560: [12:28:00] <MichaelDesignerX> go take anothe vsmoke :D
561: [12:29:00] <MichaelDesignerX> if you have var/www/user (i think ) then itr trying to access var/www/temp which is blocked for security resons on some hosts
562: [12:30:00] * Shrike_Finland quit (Ping timeout: 256 seconds)
563: [12:30:00] <MichaelDesignerX> try ss3.0.2 & not ss3.0.3 & see if you get the same error
564: [12:31:00] * mattybalaam quit (Ping timeout: 245 seconds)
565: [12:32:00] * dendeffe quit (Quit: dendeffe)
566: [12:36:00] <ocm_> bjrN is the ecommerce module based in silvercard or something completely new?
567: [12:38:00] * Shrike_Finland1 quit (Quit: Leaving.)
568: [12:39:00] <MichaelDesignerX> bjrN: I dont think the e-commerce modules is ss3 ready, it need SilverStripe 2.4
569: [12:41:00] <MichaelDesignerX> NVM, it is SS3 ready :D
570: [12:41:00] <ocm_> haha
571: [12:41:00] <ocm_> the payment module is based on 2.4
572: [12:41:00] <ocm_> but probably suitable for 3 aswell
573: [12:42:00] <ocm_> did you manage to install it MichaelDesignerX ?
574: [12:42:00] <ocm_> just tried out installing the ecommerce module, it gives Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\testbase\ecommerce\code\model\Order.php on line 1977
575: [12:43:00] <MichaelDesignerX> All ADSL lines in the complex are damaged , that is 1mbps after brdiging 2 internet connections !
576: [12:43:00] <MichaelDesignerX> the Ecommerce ? havnt yet, still downloading at 1mbps internet !!!
577: [12:43:00] <ocm_> awesome :D
578: [12:44:00] <ocm_> maybe you should get a tincan and build your own internet antenna
579: [12:45:00] <MichaelDesignerX> not sure if my PC can handle the speed of a tincan , after getting used to my current connection :)
580: [12:46:00] <ocm_> I once managed to get 3.5mb through home made tin-antenna :D
581: [12:47:00] <MichaelDesignerX> i am downloading backtrack 5, for testing only :)
582: [12:47:00] <ocm_> with the help of some electro-students though
583: [12:47:00] <MichaelDesignerX> how do you get the internet ?
584: [12:47:00] <ocm_> and aiming it to the right spot
585: [12:47:00] <ocm_> stealing it from the uni :D
586: [12:48:00] * Shrike_Finland has joined #silverstripe
587: [12:54:00] * Shrike_Finland quit (Read error: Connection reset by peer)
588: [12:54:00] * Shrike_Finland1 has joined #silverstripe
589: [12:57:00] * PigeonFriend quit (Ping timeout: 276 seconds)
590: [12:58:00] * PigeonFriend has joined #silverstripe
591: [13:08:00] * hubertusanton quit (Remote host closed the connection)
592: [13:10:00] * UndefinedOffset has joined #silverstripe
593: [13:13:00] * PigeonFriend quit (Ping timeout: 240 seconds)
594: [13:13:00] * PigeonFriend has joined #silverstripe
595: [13:14:00] * lx-berlin has joined #silverstripe
596: [13:15:00] * hubertusanton has joined #silverstripe
597: [13:16:00] * hubertusanton quit (Client Quit)
598: [13:20:00] * Error404NotFound quit (Ping timeout: 248 seconds)
599: [13:21:00] * PigeonFriend quit (Ping timeout: 276 seconds)
600: [13:23:00] * PigeonFriend has joined #silverstripe
601: [13:28:00] * PigeonFriend quit (Ping timeout: 264 seconds)
602: [13:28:00] * PigeonFriend has joined #silverstripe
603: [13:32:00] * Error404NotFound has joined #silverstripe
604: [13:33:00] * PigeonFriend quit (Ping timeout: 256 seconds)
605: [13:34:00] * dendeffe has joined #silverstripe
606: [13:40:00] * bjrN quit (Quit: Page closed)
607: [13:41:00] * PigeonFriend has joined #silverstripe
608: [13:44:00] * hubertusanton has joined #silverstripe
609: [13:50:00] * PigeonFriend has joined #silverstripe
610: [13:50:00] * PigeonFriend quit (Ping timeout: 255 seconds)
611: [13:55:00] * PigeonFriend quit (Read error: Operation timed out)
612: [13:56:00] * PigeonFriend has joined #silverstripe
613: [14:00:00] * PigeonFriend quit (Ping timeout: 256 seconds)
614: [14:03:00] * PigeonFriend has joined #silverstripe
615: [14:04:00] * Shrike_Finland1 quit (Quit: Leaving.)
616: [14:08:00] * PigeonFriend quit (Ping timeout: 252 seconds)
617: [14:11:00] * PigeonFriend has joined #silverstripe
618: [14:20:00] * PigeonFriend quit (Ping timeout: 248 seconds)
619: [14:20:00] * dendeffe quit (Quit: dendeffe)
620: [14:20:00] * PigeonFriend has joined #silverstripe
621: [14:25:00] * C10ne has joined #silverstripe
622: [14:27:00] <C10ne> Is there some control to display first image/intro text from child/selected pages?
623: [14:28:00] <kinglozzer> Or Content.Summary(), something along those lines
624: [14:28:00] <kinglozzer> Content.FirstParagraph() ?
625: [14:30:00] <kinglozzer> Is it seen as really bad practise to not include a $belongs_many_many with a $many_many? I don't need accessors from both ends, and it just adds an extra tab to the CMS fields that I then need to remove.
626: [14:31:00] * PigeonFriend quit (Ping timeout: 260 seconds)
627: [14:31:00] <C10ne> FirstParagraph() is about what I need, but I'd like to have a bit more control over resizing the image, or the length of the text
628: [14:31:00] <C10ne> and both functions don't respect closing tags
629: [14:31:00] <C10ne> But I think I have a script written for that
630: [14:32:00] * PigeonFriend has joined #silverstripe
631: [14:36:00] * PigeonFriend quit (Ping timeout: 252 seconds)
632: [14:39:00] * PigeonFriend has joined #silverstripe
633: [14:43:00] * PigeonFriend quit (Ping timeout: 248 seconds)
634: [14:49:00] * dendeffe has joined #silverstripe
635: [14:52:00] * OxFF1 has joined #silverstripe
636: [15:13:00] <discorpia> can anyone explain to me why this would occur; http://imgur.com/G83Id
637: [15:14:00] <discorpia> the site has been moved to a new server
638: [15:15:00] <discorpia> and that happens afterward. frontpage seems to work like it should
639: [15:15:00] <ec8or_> discorpia: did you install the cms?
640: [15:16:00] <discorpia> hmm
641: [15:16:00] <ec8or_> i've only ever seen that screen when using the standalone framework package
642: [15:16:00] <discorpia> yes, all files/folders have been copied
643: [15:17:00] * popeshoe quit (Ping timeout: 255 seconds)
644: [15:17:00] <ec8or_> aha
645: [15:17:00] <discorpia> i can try publishing cms directory again
646: [15:17:00] <discorpia> i don't have control over that server environment at all, only have publishing tools to copy entire directories to it
647: [15:18:00] <ec8or_> it might be something theme-related as well, that is the deafult Controller.ss template that is rendered
648: [15:19:00] <discorpia> could it be cache related as well?
649: [15:19:00] <discorpia> i've encountered really really bisarre stuff due to their load balancing system
650: [15:19:00] <discorpia> the caches seems to be partially overwritten/leaking into each other
651: [15:23:00] * popeshoe has joined #silverstripe
652: [15:25:00] <discorpia> ec8or_: i had to make a caching workaround that named the directory based on uname -n rather than sitename, but that means /dev/build and similar is only run on the one i happened to land on :P
653: [15:28:00] <ec8or_> haha
654: [15:29:00] * bjrN has joined #silverstripe
655: [15:29:00] <discorpia> this is just seriously weird, because when i do /dev/build i get an error at the end saying "Class 'Convert' not found" on the staging environment (where the theme works) but not on the live env where the theme doesn't work :P
656: [15:29:00] <ec8or_> but the home page works fine?
657: [15:30:00] <discorpia> the convert-error is from the dbsession module, it uses Convert::raw2*, is there any special reason that would not be available in the /dev/build controller?
658: [15:31:00] <bjrN> have anyone tried install the ecommerce module?
659: [15:31:00] <bjrN> http://www.silverstripe.org/ecommerce-module/
660: [15:31:00] <discorpia> could be alphabetical problem with the module, unrelated to the theme error
661: [15:31:00] <discorpia> ah that one might be easy though
662: [15:32:00] <bjrN> silverstripe 3.0.3 and made it work ?
663: [15:32:00] <discorpia> nope, not for many years
664: [15:33:00] <bjrN> anyone knows about any ecommerce module for silverstripe 3.0.3 wich actually works ??
665: [15:34:00] <discorpia> bjrN: i have no idea about the status of swipestripe, but could be worth a look; http://swipestripe.com/
666: [15:35:00] <hubertusanton> silvercart maybe?
667: [15:35:00] <lx-berlin> http://www.silvercart.de/ ?
668: [15:37:00] <bjrN> swipestripe is only for 2.4.*
669: [15:39:00] <discorpia> aha
670: [15:46:00] * catcher has joined #silverstripe
671: [15:47:00] <discorpia> i'm just desperately doing random debugging
672: [15:47:00] <discorpia> when i run Convert::raw2sql() in a controller it works, when it's run from a regular class in the dbsession plugin it says "class Convert not found" at the bottom of every page
673: [15:47:00] <discorpia> after using Convert::raw2sql() in code, shouldn't get_declared_classes() include it in it's list?
674: [15:48:00] <discorpia> https://github.com/silverstripe-labs/silverstripe-dbsession is the plugin
675: [15:50:00] <discorpia> it must be something broken with the manifests file or cache folders
676: [15:52:00] * Ramon_ has joined #silverstripe
677: [15:55:00] <Ramon_> @ bjrN We are working on SilverCart 2, which will work with SilverStripe 3, but it's still a long way to go
678: [15:56:00] <bjrN> okay
679: [15:57:00] <Ramon_> our codebase and feature list has grown so much...wich is good, on the other hand ;)
680: [16:00:00] * bino quit (Quit: Page closed)
681: [16:01:00] <lx-berlin> Ramon_: I liked your idea to ask for funding in the forum
682: [16:02:00] * bjrN quit (Ping timeout: 245 seconds)
683: [16:03:00] <Ramon_> you gotta fight for your ideas, though :)
684: [16:03:00] <Ramon_> thx, but unfortunately the feedback was not what I was hoping
685: [16:04:00] <lx-berlin> i would do it, but i never needed to make any ecommerce with SS nor do we have any orders for the next future
686: [16:05:00] <Ramon_> sure, and if you're from berlin as your name suggests, there is no need cause support for VAT is there ;)
687: [16:05:00] <lx-berlin> i would like to see a community website, where devs can present their ideas for modules and ask for fundings (like a kickstarter for SS) :)
688: [16:06:00] * dendeffe quit (Quit: dendeffe)
689: [16:06:00] <Ramon_> I think we have to realize that the world is a small place and SilverStripe needs more traction to achieve more....the community is not that huge yet
690: [16:07:00] <lx-berlin> berlin
691: [16:07:00] <lx-berlin> as you can see in this chat room with only a handfull of users
692: [16:07:00] <Ramon_> are you from germany?
693: [16:07:00] <lx-berlin> for the previous shop we build, we used magento. But next time we will try out silvercart
694: [16:08:00] <lx-berlin> i was just joing the wordpress channel. It has 10 times more users online :)
695: [16:09:00] * franksmith has joined #silverstripe
696: [16:09:00] <lx-berlin> *joining
697: [16:10:00] * instabil has joined #silverstripe
698: [16:11:00] <franksmith> Anyone getting a 500 error when attempting to upload PDFs via the files section in SS3? (size limit is good, PDFs are allowed)
699: [16:13:00] <Ramon_> franksmith, what do the logfiles say?
700: [16:14:00] <Ramon_> php.ini
701: [16:14:00] <franksmith> more info: the upload completes and I get the "File Upload Completed!" message. Ramon_: logfiles are enabled, but oddly enough, empty...
702: [16:14:00] <Ramon_> maybe there is a fcgi setting that overrides the pgp.ini
703: [16:15:00] <franksmith> and other filetypes upload fine
704: [16:15:00] * hubertusanton quit (Ping timeout: 240 seconds)
705: [16:15:00] <franksmith> WRT the upload that is
706: [16:19:00] <franksmith> scratch, now they don't. this smells of a config error, but I can't seem to get any info...
707: [16:21:00] <Ramon_> franksmith, so you can't upload any files?
708: [16:22:00] <Ramon_> if not, I would check chmod of assets directory
709: [16:24:00] <C10ne> hi, I've got i18n::set_locale('sr_RS'); in mysite/_config but I get lang="en-US" when I call <html lang="$ContentLocale">... Anywhere else I should set this?
710: [16:27:00] <ocm_> c10ne what versions of ss?
711: [16:27:00] <C10ne> 3.0.3, and I'm using Translatable
712: [16:27:00] <kinglozzer> C10ne: It's using $locale = Translatable::get_current_locale(); then
713: [16:28:00] <ocm_> set locale before installing (/dev/build) the website with translatable module
714: [16:28:00] <ocm_> otherwise it will think your mainsite is english
715: [16:29:00] <travis-ci> [travis-ci] silverstripe/sapphire#1125 (3.0 - 2ace1de : Ingo Schommer): The build passed.
716: [16:29:00] <C10ne> kinglozzer, that' already called (or should be) by ContentController::ContentLocale
717: [16:29:00] * travis-ci has joined #silverstripe
718: [16:29:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a8904e3de01b...2ace1de328db
719: [16:29:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4024945
720: [16:29:00] * travis-ci has left #silverstripe
721: [16:29:00] <C10ne> I did set it during instalation
722: [16:29:00] <kinglozzer> C10ne: Are you using Translateable::set_default_locale(); ?
723: [16:29:00] <kinglozzer> Translatable*
724: [16:30:00] <kinglozzer> Actually I think you should be using Translatable::set_current_locale();
725: [16:30:00] <C10ne> Lemme try
726: [16:30:00] <C10ne> No, didn't use that
727: [16:30:00] * g4b0 quit (Quit: Sto andando via)
728: [16:34:00] <C10ne> This is strange, when I added Translatable::set_current_locale(); all the pages went from sr_RS to english.
729: [16:34:00] <C10ne> But at least something is happening :)
730: [16:36:00] <franksmith> Ramon_: correct, only via the WYSIWYG
731: [16:37:00] <lx-berlin> One thing that i think is a bug in SS3 modeladmin is, that if you filter your records in modeladmin and then got to the third page for example, then click to edit a record and then click "back" to return to the list all filters and paging is reset and you have to do it again.
732: [16:37:00] <lx-berlin> or is there anyone who thinks that this is a feature rather than a bug ? :)
733: [16:38:00] <franksmith> Ramon_: looks like a permission error with the temp directory, online with host now
734: [16:40:00] <Ramon_> franksmith, sounds like you'll get there. Even though there quite some issues, such basic features should work, so assuming that it's the environment makes sense ;)
735: [16:40:00] <franksmith> yeah, it just sucks when the error reporting, on the server, is lacking
736: [16:41:00] <lx-berlin> anyone noticed this behaviour in ss3 modeladmin ?
737: [16:44:00] * lx-berlin has left #silverstripe
738: [16:45:00] * jcwacky has joined #silverstripe
739: [16:46:00] <jcwacky> Is it possible to enable CSV import for a grid field somehow?
740: [16:49:00] * franksmith quit (Ping timeout: 245 seconds)
741: [16:56:00] * ocm_ quit ()
742: [17:00:00] * jcwacky quit (Quit: jcwacky)
743: [17:04:00] * Emil_Blume quit (Ping timeout: 255 seconds)
744: [17:09:00] * Ramon_ has left #silverstripe
745: [17:10:00] * Liquide has joined #silverstripe
746: [17:16:00] * ratcat has joined #silverstripe
747: [17:19:00] * kinglozzer quit (Remote host closed the connection)
748: [17:28:00] * ChairyOnehouse has joined #silverstripe
749: [17:41:00] * Marvanni has joined #silverstripe
750: [17:42:00] * OxFF1 has left #silverstripe
751: [17:52:00] <discorpia> ec8or_: in case you're interested it was a big combination of problems/things that were off. including corrupt cache on 1 out of 3 servers in transparent round robin, and at one place in the code a developer no longer in the project had done his own SSViewer::set_theme() override for subpages matching a pattern that happened to be empty :P so any page except home got a non-existing template.
752: [17:53:00] <discorpia> ec8or_: not to mention that the recommended way to make the site compliant between staging and live is to include a global file provided by them called sitevars.inc that includes db-settings etc. problem is, when that was included from session_write() [the session handlers seem to be executed in another context] it got a completely different sitevars.inc
753: [17:54:00] * metanat has joined #silverstripe
754: [18:03:00] <discorpia> ec8or_: hmm, there was a few more issues (apart from no error logs, not allowed to override display_errors and such things ;P), but what i've mostly taken away from all of this is that silverstripe caches can be corrupted to a point where it gives 500 error and /dev/build is not accessible.
755: [18:04:00] * metanat quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
756: [18:04:00] <discorpia> there might have existed race conditions between the different mirror servers in the round robin, causing all sorts of 404 and "unable to read/open file", especially when the cache was shared
757: [18:08:00] <FrozenFire> Is there a way to "safely" inject a new ancestor into the model without basically losing all of your data in the descendent?
758: [18:18:00] * Webguest has joined #silverstripe
759: [18:23:00] * howardgrigg has joined #silverstripe
760: [18:25:00] * lobarvaz has left #silverstripe
761: [18:26:00] * gelignite has joined #silverstripe
762: [18:31:00] * Webguest quit (Quit: Page closed)
763: [18:38:00] * howardgrigg quit (Remote host closed the connection)
764: [19:02:00] * dendeffe has joined #silverstripe
765: [19:12:00] * DigNZ has joined #silverstripe
766: [19:12:00] * DigNZ quit (Remote host closed the connection)
767: [19:12:00] * DigNZ has joined #silverstripe
768: [19:15:00] * zfmf has left #silverstripe
769: [19:31:00] * SightUnseen has joined #silverstripe
770: [19:31:00] * SightUnseen has left #silverstripe
771: [19:35:00] * nickmolhoek has joined #silverstripe
772: [19:50:00] * Bollig|DesignCty has joined #silverstripe
773: [19:51:00] * Zauberfisch quit (Ping timeout: 246 seconds)
774: [19:57:00] * Zauberfisch has joined #silverstripe
775: [20:12:00] * dendeffe quit (Quit: dendeffe)
776: [20:33:00] * ARNHOE quit (Read error: Connection reset by peer)
777: [20:36:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/06f05d0e7a98...5bd8619dd325
778: [20:36:00] * travis-ci has joined #silverstripe
779: [20:36:00] <travis-ci> [travis-ci] silverstripe/sapphire#1126 (3.1 - 5bd8619 : Ingo Schommer): The build passed.
780: [20:36:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4028176
781: [20:36:00] * travis-ci has left #silverstripe
782: [20:38:00] * lx-berlin has joined #silverstripe
783: [20:39:00] * lx-berlin_ has joined #silverstripe
784: [20:39:00] * lx-berlin quit (Read error: Connection reset by peer)
785: [20:39:00] * lx-berlin_ is now known as lx-berlin
786: [20:40:00] <FrozenFire> Uggh. I've managed to hit one of the limitations of SS
787: [20:40:00] <FrozenFire> many_many_extraFields stable support
788: [20:41:00] <FrozenFire> Having to resort to hacks to get an extra field handled in my CMS fields
789: [20:45:00] * lx-berlin quit (Read error: Connection reset by peer)
790: [20:45:00] * lx-berlin_ has joined #silverstripe
791: [20:47:00] * lx-berlin has joined #silverstripe
792: [20:47:00] * lx-berlin_ quit (Read error: Connection reset by peer)
793: [20:49:00] * lx-berlin_ has joined #silverstripe
794: [20:49:00] * lx-berlin quit (Read error: Connection reset by peer)
795: [20:49:00] * lx-berlin_ is now known as lx-berlin
796: [20:50:00] * MichaelDesignerX quit (Ping timeout: 260 seconds)
797: [20:51:00] * r3v3rb has joined #silverstripe
798: [20:53:00] * lx-berlin quit (Read error: Connection reset by peer)
799: [20:53:00] * lx-berlin_ has joined #silverstripe
800: [20:53:00] * lx-berlin_ is now known as lx-berlin
801: [20:54:00] * lx-berlin has left #silverstripe
802: [20:55:00] * instabil quit (Read error: Connection reset by peer)
803: [20:55:00] * lx-berlin has joined #silverstripe
804: [20:56:00] * lx-berlin_ is now known as lx-berlin
805: [20:56:00] * lx-berlin_ has joined #silverstripe
806: [20:56:00] * lx-berlin quit (Read error: Connection reset by peer)
807: [21:00:00] * lx-berlin quit (Read error: Connection reset by peer)
808: [21:00:00] * lx-berlin_ has joined #silverstripe
809: [21:00:00] * lx-berlin_ is now known as lx-berlin
810: [21:01:00] * ChairyOnehouse quit (Ping timeout: 240 seconds)
811: [21:04:00] * DesignerX has joined #silverstripe
812: [21:10:00] * lx-berlin quit (Read error: Connection reset by peer)
813: [21:10:00] * lx-berlin_ has joined #silverstripe
814: [21:10:00] * lx-berlin_ is now known as lx-berlin
815: [21:12:00] * lx-berlin_ has joined #silverstripe
816: [21:12:00] * lx-berlin quit (Read error: Connection reset by peer)
817: [21:12:00] * lx-berlin_ is now known as lx-berlin
818: [21:16:00] * lx-berlin_ has joined #silverstripe
819: [21:16:00] * lx-berlin quit (Read error: Connection reset by peer)
820: [21:16:00] * r3v3rb quit (Quit: r3v3rb)
821: [21:16:00] * lx-berlin_ is now known as lx-berlin
822: [21:17:00] * lx-berlin quit (Read error: Connection reset by peer)
823: [21:17:00] * lx-berlin has left #silverstripe
824: [21:17:00] * lx-berlin_ is now known as lx-berlin
825: [21:17:00] * lx-berlin_ has joined #silverstripe
826: [21:24:00] * DigNZ quit (Quit: DigNZ)
827: [21:28:00] * UndefinedOffset quit (Quit: Leaving.)
828: [21:28:00] * DigNZ has joined #silverstripe
829: [21:28:00] * UndefinedOffset has joined #silverstripe
830: [21:28:00] * DigNZ has joined #silverstripe
831: [21:28:00] * DigNZ quit (Remote host closed the connection)
832: [21:33:00] * UndefinedOffset quit (Ping timeout: 255 seconds)
833: [21:39:00] * tankr has joined #silverstripe
834: [21:40:00] * zfmf has joined #silverstripe
835: [21:42:00] * liam has joined #silverstripe
836: [21:52:00] <FrozenFire> So many people are absent
837: [21:52:00] * FrozenFire wonders where all of the SS guys are
838: [21:52:00] <FrozenFire> Nobody to be at my beck and call
839: [21:56:00] * Emil_Blume has joined #silverstripe
840: [21:59:00] * pippy_ has joined #silverstripe
841: [21:59:00] * DigNZ quit (Quit: DigNZ)
842: [22:02:00] <FrozenFire> For like, two weeks?
843: [22:02:00] * pippy quit (Ping timeout: 264 seconds)
844: [22:02:00] <ss23> FrozenFire: Holidays atm
845: [22:03:00] <ss23> Protip: First world countries outside of the US have decent holidays
846: [22:03:00] <ss23> Yeah
847: [22:03:00] * pippy_ is now known as pippy
848: [22:03:00] <FrozenFire> I'm Canadian
849: [22:03:00] <ss23> GOOD
850: [22:03:00] <FrozenFire> And we don't
851: [22:03:00] <FrozenFire> :P
852: [22:03:00] <ss23> ENJOY LONG HOLIDAYS THEN
853: [22:03:00] <FrozenFire> Then again, I work for an American company
854: [22:03:00] <FrozenFire> So who knows
855: [22:10:00] <ss23> :)
856: [22:10:00] <ss23> Maybe
857: [22:10:00] * FrozenFire has to wonder how extra fields work on a many_many
858: [22:10:00] <FrozenFire> Does it attach an onBeforeWrite extension or something?
859: [22:13:00] * DigNZ has joined #silverstripe
860: [22:13:00] * DigNZ quit (Remote host closed the connection)
861: [22:14:00] * DigNZ has joined #silverstripe
862: [22:23:00] * Liquide quit ()
863: [22:27:00] * liam quit (Quit: Leaving)
864: [22:28:00] * liam has joined #silverstripe
865: [22:52:00] * aznain has joined #silverstripe
866: [23:00:00] <aznain> Hi, I am using ss3, "A" dataobject has_many relationship with "B", "B has has_one relation with "A". When creating "B", I want to know ID of "A". I can see that in URL but how to get that when form for "B" opened after creating on click button. I want to populate a field of "B" based on "A" 's field
867: [23:01:00] <aznain> it is for back-end
868: [23:03:00] * liam quit (Quit: Leaving)
869: [23:04:00] * zfmf has left #silverstripe
870: [23:08:00] <C10ne> FrozenFire, what about extra fields? Didn't catch the beginning... :P
871: [23:23:00] <FrozenFire> Many things about them
872: [23:23:00] <FrozenFire> I can probably figure it out myself from the code
873: [23:23:00] <FrozenFire> Just didn't want to spend that time today
874: [23:24:00] <FrozenFire> The medium of the item is the way it can be viewed, e.g. stream, dvd, blu-ray, etc
875: [23:24:00] <FrozenFire> I have a "CatalogItem" that has a many_many to "CatalogItemMedium".
876: [23:25:00] <FrozenFire> Just finding myself dealing with inadequate documentation for the estoteric nature of the extra fields
877: [23:25:00] <FrozenFire> esoteric**
878: [23:25:00] <FrozenFire> I have an extra field on that many_many which represents the price of that medium for that item
879: [23:29:00] * pex__ has joined #silverstripe
880: [23:38:00] <aznain> anybody ?
881: [23:40:00] <pex__> yes
882: [23:41:00] <FrozenFire> aznain, I don't really understand your question
883: [23:42:00] <pex__> $this->b()-ID?
884: [23:42:00] <pex__> mabye i dont understand
885: [23:42:00] <FrozenFire> Anyways
886: [23:42:00] <FrozenFire> Oh, wait, perhaps I do
887: [23:42:00] <FrozenFire> pex__, That'd be silly
888: [23:42:00] <FrozenFire> Just $this->BID
889: [23:43:00] <FrozenFire> I *think* that's set as part of the EditForm action
890: [23:43:00] <FrozenFire> What he's looking for is, when creating a new B using a GridFieldConfig_RelationEditor associated with A's relation to B, he wants to know A's ID
891: [23:44:00] <FrozenFire> So you don't get it in the getCMSFields call
892: [23:45:00] <aznain> yes. I want A's id when EditForm is showing for "B"
893: [23:46:00] <aznain> EditForm or AddForm, whatever. When I look in the url in address bar of browser then i see the id ...
894: [23:46:00] <FrozenFire> And $this->AID isn't set?
895: [23:46:00] <FrozenFire> It'd just make it much more simple if it were
896: [23:46:00] * pex__ has left #silverstripe
897: [23:46:00] <FrozenFire> It probably isn't
898: [23:48:00] <FrozenFire> Could this not be handled in your onBeforeWrite?
899: [23:48:00] <aznain> I want to populate field of B based on A's field when form is displayed
900: [23:48:00] <FrozenFire> What sort of field?
901: [23:48:00] <FrozenFire> Out of curiosity, why do you need to know the ID?
902: [23:49:00] <FrozenFire> Just trying to figure out if it might be easier to come at this a different way
903: [23:49:00] <aznain> form field .. textfield
904: [23:50:00] <aznain> should i post some simple code at sspaste ?
905: [23:51:00] <FrozenFire> That'd help
906: [23:51:00] <aznain> let me ...
907: [23:53:00] <aznain> http://www.sspaste.com/paste/show/50ecb14f19dd4
908: [23:53:00] <aznain> it is simple example ... there are three class ...
909: [23:53:00] <aznain> modeladmin , dnzevent and dnzeventdate
910: [23:54:00] <FrozenFire> And what field are you wanting to create on DnzEventDate?
911: [23:54:00] <aznain> DnzDateName
912: [23:55:00] <aznain> when i click on the create button , form is showing like this http://i.imgur.com/y5kTA.png
913: [23:55:00] <aznain> when form is showing, i want to populate DnzDateName from DnzName of DnzEvent class
914: [23:56:00] <FrozenFire> Why do you need to show the name there?
915: [23:56:00] <FrozenFire> Why?
916: [23:56:00] <aznain> am i making sense ?
917: [23:57:00] <aznain> I want to populate the field so that when form is showing there should be some text inside the field based on the parent field
918: [23:57:00] <aznain> you create an record of "DnzEvent", saved the record by providing "aznain" as DnzName field 's value
919: [23:58:00] <aznain> that code is for just demonstration...
920: [23:58:00] <FrozenFire> What would that text be?
921: [23:59:00] <aznain> to get the value of DnzEvent's DnzName , I need ID of the DnzEvent to which DnzEventDate will be associate. When form is opened url shows the id along with action name method name
922: [23:59:00] <FrozenFire> Unless it's set by EditForm when the new DataObject is creted
923: [23:59:00] <FrozenFire> created**
924: [23:59:00] <FrozenFire> The short answer is no, I don't think there's a way to get the ID
925: [23:59:00] <aznain> I can get action name and method name but how to get that particular id

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