Using macros to pull previous document name into H1 tag

Andrea Stark asked on June 30, 2015 20:19

Hello, I am trying to create an h1 tag that includes the document name from the previous page the user visited. For example:

The user visits the careers page on our website and selects the job description for "Marketing Assistant". Marketing Assistant is also the document name. When that user selects "Apply Now", I'd like for the h1 to read "Apply Now - Marketing Assistant".

Is this possibile?

Recent Answers


Brenden Kehren answered on June 30, 2015 20:29

If it's a parent page you can use something like {% CurrentDocument.Parent.DocumentName %}

0 votesVote for this answer Mark as a Correct answer

Andrea Stark answered on June 30, 2015 20:36

Thank you for the reply! Unfortunately, it's not a parent page. Below is the set up of how are pages are organized in this section of the website.

Careers (parent)
- Apply Now
- Marketing Assistant (job page)
- Client Manager (job page)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.