From Leonard.R.Scardino@usace.army.mil Thu Apr 21 19:39:42 2011 From: "Scardino, Leonard R Jr ERDC-ITL-MS Contractor" To: xwiki-users@xwiki.org Subject: [xwiki-users] Bulletin board app modification question Date: Thu, 21 Apr 2011 12:38:44 -0500 Message-ID: <8CAB08B6CF4D174DB10DD8FA1830317F01C129EA@ERD-ML4ERD.erd.ds.usace.army.mil> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4932345742148575812==" --===============4932345742148575812== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I've modified the bulletin board app by adding an edit link to BBCode.TopicClassSheet (between Quote and Delete) that links to $doc.getURL("edit", "editor=object&classname=BBCode.PostClass&object=$item.number"). This gives me the ability to edit a post by linking to the object editor for that post. But the object editor isn't very user friendly. I noticed towards the top of BBCode.TopicClassSheet, the context.action is checked to see if its "inline". This determines if a new thread is being created, and does what is necessary to create it. I'd like to change the edit link to point back to BBCode.TopicClassSheet but provide a different custom action. This way I could check for that action (say for instance "postEdit") and instead of providing the post as is, provide a form that lets me edit the object. My problem is, I don't know how to create a link to do this. I've tried some of my guesses, but it didn't work. Can someone tell me how to (within BBCode.TopicClassSheet) create a link to BBCode.TopicClassSheet but with a different custom action that would allow me to change the post from just a diplay to a form that allows the object to be edited? Hope that question makes sense. Thanks, Lenny --===============4932345742148575812==-- From rmorosan@gmail.com Tue Apr 26 08:21:04 2011 From: Raluca Stavro To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Bulletin board app modification question Date: Tue, 26 Apr 2011 09:20:47 +0300 Message-ID: In-Reply-To: <8CAB08B6CF4D174DB10DD8FA1830317F01C129EA@ERD-ML4ERD.erd.ds.usace.army.mil> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7798836784142488670==" --===============7798836784142488670== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, On Thu, Apr 21, 2011 at 8:38 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote: > I've modified the bulletin board app by adding an edit link to > BBCode.TopicClassSheet (between Quote and Delete) that links to > $doc.getURL("edit", > "editor=3Dobject&classname=3DBBCode.PostClass&object=3D$item.number= "). > You should have '&' instead of '&' : #set($tURL =3D $doc.getURL("edit","editor=3Dobject&classname=3DBBCode.PostClass&object=3D$it= em.number")) ... Raluca. > This gives me the ability to edit a post by linking to the object editor > for > that post. But the object editor isn't very user friendly. > > I noticed towards the top of BBCode.TopicClassSheet, the context.action is > checked to see if its "inline". This determines if a new thread is being > created, and does what is necessary to create it. > > I'd like to change the edit link to point back to BBCode.TopicClassSheet > but > provide a different custom action. This way I could check for that action > (say for instance "postEdit") and instead of providing the post as is, > provide a form that lets me edit the object. > My problem is, I don't know how to create a link to do this. I've tried > some > of my guesses, but it didn't work. > > Can someone tell me how to (within BBCode.TopicClassSheet) create a link to > BBCode.TopicClassSheet but with a different custom action that would allow > me > to change the post from just a diplay to a form that allows the object to > be > edited? > > Hope that question makes sense. > > Thanks, > > Lenny > _______________________________________________ > users mailing list > users(a)xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > --===============7798836784142488670==--