Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you access the page properties macro within a Confluence Layout template?

Damon Morda March 15, 2018

Hi all,

I'm trying to modify the Confluence Main Layout template to retrieve values from a page properties macro. My goal is to retrieve those values, should they exist, and include them in the Main Layout template within the head tag.

Specifically, I plan to create a page properties macro with a seoTitle and seoDescription field and then use that to populate the <title> and <meta name="description"> tag.

 

Can anyone explain how to access the page properties macro from within the layout velocity templates so that I can do the above.

Thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events