Skip to end of metadata
Go to start of metadata

I can see the excerpt macro, but is there any way of auto-generating an excerpt for pages without the explicit excerpt macro?

  • No labels

4 Comments

  1. The content entity object has a .getExcerpt method which grabs the first x bytes of a page (about 50 chars iirc) this method is used by 3.0 if an excerpt is not available when generating the meta description tag.

    it should be possible to modify the {excerpt} macro to fall back to this method, however that would require a modification to your confluence source code or intervention by atlassian.

    1. Unknown User (gfraser)

      I'm surprised that the excerpt-include macro doesn't already do that.

      Related: Confluence 2.6.1 and above seem to be much better at making cleaner automatic excerpts. Things like macros, image markup and other unsightly things seem to be getting removed now, leaving behind more easily readable excerpt text.

      1. Unknown User (simonwheatley)

        Yes. It's one of those things that you'd hope a CMS-ish system might "just do". Good to hear that the excerpts are clean though.

        Thanks.

    2. Unknown User (simonwheatley)

      Thanks Alain.