Skip to main content
PasGlop
Inspiring
May 6, 2020
Answered

How to know from which template a page has been spawned

  • May 6, 2020
  • 1 reply
  • 697 views

Dear Forum,

How can I know the template reference from which a page has been spawned ?

Is there a page status available that can be used with javaScript ?

 

Use case

1) I spawned a page from "Template_01", and this new page it the page number 10

2) I would like to determine, starting with the page 10, that this page comes from the Template_01

 

Thank your in advance.

This topic has been closed for replies.
Correct answer Bernd Alheit

On the template page you can use a hidden form field with the name of the template.

1 reply

Bernd Alheit
Community Expert
Community Expert
May 6, 2020

When the template has form fields and you spawn the template with the rename option the template name will part of the field names.

PasGlop
PasGlopAuthor
Inspiring
May 6, 2020

Hi.

I use (and I need to) bRename = false, in this case...

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
May 6, 2020

On the template page you can use a hidden form field with the name of the template.