Skip to main content
Skip table of contents

Blog Posts & Pages

This documentation covers version of the Enterprise Theme.

Parameter


Name

Description

Type

This is a required field

Default

Values

Content source
cotentSource


enum

(error)

blog

blog, page, pageblog

Content type to display
content


enum

(error)

excerpts

titles, excerpts, entire

Date format
dateformat


enum

(error)

date

posted_on, date, datetime, datefull

Date Source
datesource

Choose which date should be displayed

enum

(error)

created

created, last_modified

Time
time

Specify how far back to display blog posts. Example: 12h

relativedate

(error)



Restrict to these labels (OR)
labels

Separate each label with a comma or single space.

string

(error)



Must have labels (AND)
mustHaveLabels

A list of labels, that a result must have. For multiple labels separate each label with a comma.

string

(error)



Exclude these labels (NOT)
excludeLabels

Separate each label with a comma or single space.

string

(error)



Restrict to these authors
author

Separate each author with a comma or use a placeholder like @self, @network, @follower, @following.

string

(error)



Restrict to these spaces
spaces

These are case-sensitive. Separate each item with a comma or single space. Example: SPACEKEY, @favorite, @personal, @all. Specify space categories with #category. If not specified, the current space is searched.

spacekey

(error)



Maximum number of items
max

The maximum number of results

int

(error)

10


Pagination
usepagination

Shows a pagination, with max items on each page

boolean

(error)

false


Sort by
sort


enum

(error)


title, creation, modified

Reverse sort
reverse


boolean

(error)

false


Maximum number of displayed content
numWithExcerpt

The number of list entries, where the full content or the excerpt is displayed. All the following entries only show the title.

int

(error)



Thumbnail - image label
thumbnailLabel

The macro searches for an attachment with the defined label(s) and uses it as thumbnail in the listing.

string

(error)



Use another image as fallback
thumbnailType

If no image with the correct label could be found, you can define a fallback to use another image as thumbnail.

enum

(error)

firstAttachment

noFallback, firstAttachment, spaceLogo, spaceLogoIfCustom, firstAttachmentOrspaceLogoIfCustom

Max width of the image
thumbnailWidth

The maximum width of the displayed thumbnail. (In px, example: 150)

int

(error)


150


Max height of the image
thumbnailHeight

The maximum height of the displayed thumbnail. (In px, example: 100).

int

(error)

100


Number of visible labels
visibleLabelsCount


int

(error)

10


Show "Not found" message
showNoEntriesMessage


boolean

(error)

true


Internationalisation i18n Key for the "Not found" message
noEntriesMessageI18n

Any available i18n key can be used.

string

(error)

net.getunik.confluence.skin.core.gu-blog-posts.error.no.content.found


Show author avatar
showIconBlock


boolean

(error)

false


Show the name of the author
showAuthorName


boolean

(error)

false


Show the space
showSpace


boolean

(error)

true


Show the edit link
showEditLink


boolean

(error)

false


Show the labels
showLabels


boolean

(error)

false


Show the comment link
showComments


boolean

(error)

false


Force more link
moreLink

Show a "more..." link every time (doesnt hide the link if the complete news text is already displayed - this is default Confluence behaviour)

boolean

(error)

false


Background color
backgroundColor


string

(error)



CSS styles to apply to titles
titleCSS


string

(error)



Blog post CSS class
className

Define a CSS class which is added to all blog post list entries

string

(error)



Additional Lucene Query
luceneQuery

This is a very advanced and powerfull parameter, which you can use for additional content selection by lucene.
This paramter supports the Metadata Add-on and the User Profile Add-on by Communardo. Please find more information and examples in our documentation.

string

(error)



Examples

Example 1

CODE
{gu-blog-posts:theme=newslist|content=excerpts|spaces=News|showIconBlock=false|showEditLink=false}

gu-blog-post1.png

Example 2

CODE
{gu-blog-posts:theme=newslist|content=excerpts|spaces=News}

gu-blog-post2.png

Example 3

CODE
{gu-blog-posts:theme=newslist|excludeLabels=gu-exclude|content=excerpts|spaces=News|showThumbnail=true|showIconBlock=false|showEditLink=false}

gu-blog-post3.png

Example 4

CODE
{gu-blog-posts:theme=newslist|content=excerpts|spaces=News|showIconBlock=true|showEditLink=true|showThumbnail=false}

gu-blog-post4.png

Mobile Mode

In the mobile mode, this macros is rendered in the same way like the Top Stories Slider Macro.




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.