|
Post by futurosity on Nov 20, 2005 18:43:02 GMT
It's great that the synopsis is now filled in with the first few lines of text in the file, but if you change it and save it, the synopsis doesn't appear to update with the new text.
|
|
|
Post by KB on Nov 20, 2005 19:02:27 GMT
That is how it should be. It only gets updated if it still says @"- No synopsis-" in the index card. That way, you get a few introductory lines the first time you save. But after that, you have to make changes to the synopsis yourself.
To explain a little more clearly: how else could it work? If it updated every time you saved, it would defeat the purpose. Suppose you had edited the index card to put in the synopsis you want - you'd be pretty annoyed if when you saved, your synopsis got replaced with the first few lines of text, wouldn't you? There is no way the program can tell the difference between a custom synopsis and the first few lines of some old text. So the only sensible way for it to work is to go by whether it says "- No synopsis -" in there or not.
Cheers, Keith
|
|
amberv
Junior Member
Posts: 99
|
Post by amberv on Nov 20, 2005 19:10:57 GMT
Yes, that would probably be a good behaviour. If the user has never manually adjusted the synopsis, it should always get updated with the text. If they have updated the synopsis, then it stays the way it was set forever.
All right, I guess there is no way to determine if the user has clicked in there and made a change.
|
|
|
Post by KB on Nov 20, 2005 19:44:39 GMT
Exactly. The synopsis would have to know what the old beginning to your text was, which would be very complicated.
|
|
dunx
Junior Member
Posts: 66
|
Post by dunx on Dec 1, 2005 18:34:59 GMT
You could store a "synopsis modified" flag, although having a new piece of metadata just for this seems a little excessive.
Flow would go like this:
1. on creation of a document, the synopsis data is created with its "synopsis modified" flag set to false.
2. on save, the "synopsis modified" flag is checked. If it is false, then the opening lines of the chapter are inserted. Otherwise, the synopssi is not modified.
3. at some point, the user writes in a new synopsis. The "synopsis modified" flag is set to true and after that the save test in (2) will always leave the synopsis alone.
|
|
|
Post by KB on Dec 1, 2005 22:33:38 GMT
I did consider this, but I think it is excessive. The synopsis is there to be edited, after all...
|
|