1 tilqicom Dec 17, 2010 09:33
3 tilqicom Dec 17, 2010 14:11
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.
4 sam2kb Dec 17, 2010 15:34
A checkbox to autocreate excerpt is ok. Disabling the avatars won't help in your case, I thought the form was not saving.
5 yabba Dec 18, 2010 18:28
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 ;)
¥
6 sam2kb Dec 18, 2010 18:50
How will b2evo know if you want to keep an empty, custom or auto-generated excerpt without a checkbox?
7 yabba Dec 18, 2010 19:12
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
¥
8 sam2kb Dec 18, 2010 19:28
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.
9 tilqicom Dec 18, 2010 23:52
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
10 mojolazarus Mar 25, 2012 12:57
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.
11 tilqicom Mar 25, 2012 13:47
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)
12 mojolazarus Apr 25, 2012 09:51
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.
13 sam2kb Apr 25, 2012 14:31
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?
14 tilqicom Mar 12, 2013 18:42
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.
15 amoun Apr 29, 2013 20:45
Yeap! Support tilqicom and ¥abba on this
16 fplanque Apr 29, 2013 22:05
ok, we'll change it to auto update until you edit it manually.
17 amoun Apr 29, 2013 23:54
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
18 tilqicom Apr 30, 2013 11:20
ok i've made it into a one liner plugin, you can get it here : http://forums.b2evolution.net/excerpt-update
19 amoun Apr 30, 2013 15:04
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.