What I'd like to achieve is to have complete on-site edition.
As I said I'd rather not do that. After all we have one trusted data
source (the database) so why not use it. I think it is "safer",
whatever changes are made, to get back directly to the source, whenever
it is decided to discard those changes.
Regarding what should be the content_id, I don't know why you set up
those two urls in the first place, but they surely look to be made to
allow on-site editing (to me at least). Hence, since the placeholder
name is what is available in the html page, I guess the best way to fix
the problem should be to use that as the content_id for the get-content
url (as well as for all other urls).
Another thing I noticed: when you change the template of a page, you
either see the content of one placeholder mapped to the one that has the
same name in the new template or lose its content. Would it be possible
to see a dialog open, offering to chose how placeholders are mapped to
one another ?
I'm not completely sure it makes sense with respect to the way the
underlying model works.... But I would see something like this: a list
of the previous placeholders on one side, a list for each placeholder in
the new template sided by a button. You then select one or more
placeholders from the previous template, click on the button on the side
of the new placeholder to put the selected content in that placeholder
of the new template.
+--------------------------------------+
| Old Placeholders | New Placeholders |
| +---------------+ | Body |
| | body | | +------------+ |
| |[content ]| | > | | |
| | | | +------------+ |
| | | | left col. |
| | | | +------------+ |
| | | | > | | |
| | | | +------------+ |
| | | | right col. |
| | | | +------------+ |
| | | | > | | |
| +---------------+ | +------------+ |
+--------------------------------------+
+--------------------------------------+
| Old Placeholders | New Placeholders |
| +---------------+ | Body |
| | body | | +------------+ |
| | | | > | | |
| | | | +------------+ |
| | | | left col. |
| | | | +------------+ |
| | | | > | | |
| | | | +------------+ |
| | | | right col. |
| | | | +------------+ |
| | | | > | content | |
| +---------------+ | +------------+ |
+--------------------------------------+
Of course one can imagine much fancier UI for that (drag'n'drop, 'live
preview', etc...) But something that works first would be great :)
>
> For the ergonomy part you are correct. It's a old bug in Django that I
> tried to fix many times but I never manage to make it commited to the
> main repo:
>
> http://code.djangoproject.com/ticket/12241
>
> I don't know if any of the commiter care enough about this one. It's
> obviouvously not gonna be in 1.3.
Maybe if (many) guys like me make bug reports, they'll eventually care !
I'll have a look at the ticket you mention.
Finally, to help keep track of these problem and feature wishes, would
you like me to file in bug reports, on your google code page ?
Thanks again,
Nicolas.
>
>
> On Jan 18, 5:53 pm, NicoC <nicolas.cani...@cemsi.eu> wrote:
> > Hi all !
> >
[...]