2 sam2kb Dec 17, 2010 11:56

sam2kb wrote:
Excerpts get generated from content only when you create a post.
If you really mean 'save', then try to disable avatars plugin.
so what does it have to do with avatars plugin ? i think excerpts should be regenerated when you edit/save a post.. since you could change the post content to a whole another thing some other time.
A checkbox to autocreate excerpt is ok. Disabling the avatars won't help in your case, I thought the form was not saving.
Guessing it's an auto-generated excerpt, in which case I agree, it should auto-regenerate, without a checkbox.
If it's a custom/deliberate excerpt then you'd have custom/deliberately changed it again when you updated your post, in which case you still don't need a checkbox ;)
¥
How will b2evo know if you want to keep an empty, custom or auto-generated excerpt without a checkbox?
Custom is easy ... if you have a value in the excerpt, on any save, then it's custom ... if it changes after that, it's custom, if it doesn't it's still custom
Auto-generated is, almost, as easy, if a skin is set to show excerpts for disp type and excerpt is empty then there's a high chance you want to auto generate it
¥
I was wrong, excerpts get auto-generated on post update too [u]if you leave the field empty[/u].
What if I want to keep it empty, that's the problem.
sam2kb wrote:
I was wrong, excerpts get auto-generated on post update too [u]if you leave the field empty[/u].
correct. but i have to clear the excerpt to regenerate after editing the post
I know this is an old post but I have the same problem. That is, the excerpt is not updated. So what I do is start a post and then I may have to save it and come back to it later. I may then edit the post further. The excerpt does not update. Is this resolved? Many thanks.
It's not "resolved" since it's not "broken".
It's just that you and i happen to dislike the default behaviour.
The fix should be easy though (i suppose)
or maybe update the excerpt with new edited content unless the user clicks on excerpt textare (kinda like the url field does)
Thanks for that, I'll have a go. I disagree though that this is not an issue that needs changing. I would wager that most people would want their excerpt updated when they edit a post. What if you make a typo, what if you change the flow of info, what if you change the meaning of the post itself? I can't see why anyone would not want an excerpt to update.
If we decide to make a setting for that, what do you want it to do?
Will something like "generate excerpt whenever a post is saved" work?
Sorry for digging a kinda old topic, but this thing started bothering me again.
I honestly think the default behavior should be auto-update (like the url being updated when you change the title, unless you edit it manually)
The same should apply to excerpt, it should be regenerated upon save unless edited manually.
I mean for example i started a draft, wrote an opening line, saved it (the excerpt has that, and that ONLY.) If i add more sentences upon 2nd save, or change the opening line, the excerpt stays same, which doesnt make any sense to me.
Yeap! Support tilqicom and ¥abba on this
ok, we'll change it to auto update until you edit it manually.
Thanks
Can you tell me what code I can add to 4.1.7?
There's a function [update_excerpt()] in can I call it each time a post/page is edited
ok i've made it into a one liner plugin, you can get it here : http://forums.b2evolution.net/excerpt-update
Thanks tilqicom
Downloaded, installed and working.
:)
Excerpts get generated from content only when you create a post.
If you really mean 'save', then try to disable avatars plugin.