We have started some blogs and are feeding them onto a page in our space using the {blog-posts} macro. Unfortunately, this macro does not allow for time intervals more sophisticated than "posts from the last week" or "posts from the last x number of days."
We will have a large collection of posts pretty quickly and would like to allow people to browse the archive from the page, rather than clicking through to 'viewrecentblogposts.action?key=SPACEKEY' in order to see the native blog table of contents.
How can we replicate this table of contents, which appears natively on 'viewrecentblogposts.action?key=SPACEKEY' on the blog page?
I didn't quite find the solution but this Adaptavist macro is a good stopgap for me. Hope it helps others.
https://www.adaptavist.com/display/Builder/blog-calendar+macro
There is no out of the box macro that shows this table of contents. You can always write a custom macro that searches for blog posts and displays a nice table of contents.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I digged up some code we wrote that shows a table of contents. It has nice parameters like:
space-key; The space to get the blog posts from
max-results; The maxium number of blog posts to display
min-age; The minimum age of the blog posts (for example; '30m', '6h', '30d', '10w'. m = minutes, h = hours, d = days, w = weeks)
max-age;
link-length; The maximum length of the blog post title
labels; A comma separated list of labels, only blog posts with one or more of the labels are displayed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the suggestions!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.