Get page template selected info when create new document

Jarvis Robertson asked on July 5, 2014 12:22

Hi mates,

Currently, I have one scenarios following: 1. One document type with Show template selection mode is checked. 2. I create a new document, I have to choose page template first.

My questions is: after choose page template, how can I get page template info which I just chosen ?

Please suggest me to resolve this case. Thank you so much

Recent Answers


Adam Gitin answered on July 6, 2014 08:15

Hi,

When you say "how can I get page template info which I just chosen ?",

what do you mean?

Because you can see which template you choose by going to DESIGN tab, at the top you will see green background and on it "page template: ..pageTempalteName.."

OR you can go to Properties tab -> Template.

If you looking for some other way, you can use macros:

{%CurrentDocument.DocumentPageTemplate.CodeName%}
or
{% DocumentContext.CurrentTemplate.CodeName %}

Hope this helps,

Adam @ 4Hilton

1 votesVote for this answer Mark as a Correct answer

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