Skip Menu |

This queue is for tickets about the CatalystX-CMS CPAN distribution.

Report information
The Basics
Id: 41152
Status: resolved
Priority: 0/
Queue: CatalystX-CMS

People
Owner: Nobody in particular
Requestors: bobtfish [...] bobtfish.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.001
Fixed in: (no value)



Subject: Template fragment returned for editing is incomplete..
I have a template fragment like this: <form action="[% c.uri_for(c.action, c.request.captures) %]" method="POST"> <textarea name="description" rows="30" cols="80"> [% page.description | html %] </textarea> <input type="submit" /> However the edit template presented for this file by CX::CMS chops the template after the page.description line.. :/ Can you replicate this, or what other details can I provide to help (without shoving you my entire application)?
Subject: Re: [rt.cpan.org #41152] Template fragment returned for editing is incomplete..
Date: Sat, 22 Nov 2008 21:09:02 -0600
To: bug-CatalystX-CMS [...] rt.cpan.org
From: Peter Karman <peter [...] peknet.com>
Tomas Doran via RT wrote on 11/22/08 5:57 PM: Show quoted text
> Sat Nov 22 18:57:37 2008: Request 41152 was acted upon. > Transaction: Ticket created by BOBTFISH > Queue: CatalystX-CMS > Subject: Template fragment returned for editing is incomplete.. > Broken in: 0.001 > Severity: Critical > Owner: Nobody > Requestors: bobtfish@bobtfish.net > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=41152 > > > > I have a template fragment like this: > > <form action="[% c.uri_for(c.action, c.request.captures) %]" method="POST"> > <textarea name="description" rows="30" cols="80"> > [% page.description | html %] > </textarea> > <input type="submit" /> > > However the edit template presented for this file by CX::CMS chops the > template after the page.description line.. :/ > > Can you replicate this, or what other details can I provide to help > (without shoving you my entire application)?
I'm sure this is due to the edit template using a <textarea> box to hold the editable content. That might have to be a special case of html escaping that particular tag or some other hackery. Do you have a preference or suggestion? oh, and while I was testing I found some other bugs and fixed them in svn. You might want to grab that version till I can get a fix for this ticket and release 0.002 to cpan: https://svn.msi.umn.edu/sw/perl/CatalystX-CMS/trunk requires SVN::Class 0.10 (just uploaded to pause). -- Peter Karman . http://peknet.com/ . peter@peknet.com
Subject: Re: [rt.cpan.org #41152] Template fragment returned for editing is incomplete..
Date: Sun, 23 Nov 2008 13:07:54 +0000
To: bug-CatalystX-CMS [...] rt.cpan.org
From: Tomas Doran <bobtfish [...] bobtfish.net>
On 23 Nov 2008, at 03:09, peter@peknet.com via RT wrote: Show quoted text
>> >> I have a template fragment like this: >> >> <form action="[% c.uri_for(c.action, c.request.captures) %]" >> method="POST"> >> <textarea name="description" rows="30" cols="80"> >> [% page.description | html %] >> </textarea> >> <input type="submit" /> >>
> I'm sure this is due to the edit template using a <textarea> box to > hold the > editable content. >
Yeah, I guessed that would be the issue. Show quoted text
> That might have to be a special case of html escaping that > particular tag or > some other hackery. Do you have a preference or suggestion?
I don't have any real suggestions I'm afraid. I haven't in any way started looking at your code to work out how CX::CMS works under the hood, even in the most trivial way.. Show quoted text
> oh, and while I was testing I found some other bugs and fixed them > in svn. You > might want to grab that version till I can get a fix for this > ticket and release > 0.002 to cpan: > > https://svn.msi.umn.edu/sw/perl/CatalystX-CMS/trunk > > requires SVN::Class 0.10 (just uploaded to pause).
I'm happy to switch to running trunk. There are a load of bugs / issues with CX::CMS which mean it's not optimum for my use yet, however I can deal with all of the ones I have found so far (and will be prepared to help out in fixing some of it and doing some documentation), however this one _is_ a show stopper for me, so it's not worth me proceeding further until it's fixed. :-/ Cheers t0m
Subject: Re: [rt.cpan.org #41152] Template fragment returned for editing is incomplete..
Date: Sun, 23 Nov 2008 12:42:23 -0600
To: bug-CatalystX-CMS [...] rt.cpan.org
From: Peter Karman <peter [...] peknet.com>
Tomas Doran via RT wrote on 11/23/08 7:08 AM: Show quoted text
> > I'm happy to switch to running trunk. There are a load of bugs / > issues with CX::CMS which mean it's not optimum for my use yet, > however I can deal with all of the ones I have found so far (and will > be prepared to help out in fixing some of it and doing some > documentation), however this one _is_ a show stopper for me, so it's > not worth me proceeding further until it's fixed. :-/
try trunk r313. Special tags like 'textarea' are now temporarily escaped in the editor panel with a comment, so you can edit them but they shouldn't interfere with the editor rendering. Please do let me know about other issues/bugs you find. After all, this is a 0.001 project, so it's still very young. -- Peter Karman . http://peknet.com/ . peter@peknet.com
0.002 uploaded to cpan.