blogotext icon indicating copy to clipboard operation
blogotext copied to clipboard

Excerpt of Blogposts

Open ragnar76 opened this issue 7 years ago • 6 comments

Hi again,

imho, a good feature would be to have excerpt of blogposts. just display the first 50 letters with a "read more" button.

ragnar76 avatar Aug 24 '17 09:08 ragnar76

Hi,

It can be done with an addon (to do).

Or, you can play with {article_chapo} ( = the "abstract" in edit page).
For this solution, you will need to do some things :

  • modify in your template article.html and change {article_contenu} by {article_chapo}
  • (optional) modify in your template post.html and change {article_contenu} by {article_chapo}{article_contenu}

Please note :

  • the fact that abstract can be used by the HTML meta description
  • we don't recommand using BBcode, HTML in "abstract"

Right now it's the only solution (from what I see). If you need a plugin, I can make a quick one in the next days.

remrem avatar Aug 25 '17 07:08 remrem

i think an addon for everyone would be better. no hurry on that, using {article_chapo} is double work, imho, but a good workaround for that so far (maybe until v4)

ragnar76 avatar Aug 25 '17 09:08 ragnar76

I wrote a small addon to do so. It will show excerpt only on main page of the blog. Options are :

  • Label for the link "read more"
  • Length of the excerpt.

See here : https://github.com/BlogoText/blogotext-addons/pull/42

B4rb3rouss avatar Dec 31 '17 11:12 B4rb3rouss

Did anyone tried the addon ? any comments or bugs?

B4rb3rouss avatar Jan 14 '18 10:01 B4rb3rouss

Not yet. Real Life is strong atm but i will, maybe, next week

Am 14.01.2018 11:33 vorm. schrieb "Thuban" [email protected]:

Did anyone tried the addon ? any comments or bugs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BlogoText/blogotext/issues/314#issuecomment-357502343, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoWCN6PEg6f92BJ03FiaRi2oq4IQm2Lks5tKdfsgaJpZM4PBJNv .

ragnar76 avatar Jan 14 '18 11:01 ragnar76

Nop, sorry. I've got some free time in the next few days, will focus on BT...

remrem avatar Jan 14 '18 22:01 remrem