Get name of blueprint or requested template

I use the subpage builder to create x subpages (modules) and each subpage (module) has a unique snippet.

With all the subpages I want to build a one-pager like here:

The problem is that I don’t want to use the uid for the name of the snippets. I want to use the name of the template/blueprint for the snippets. But there is no template for the subpage (module) in the template-folder, because it is in the snippet-folder.

So my questions is how can I get the name of the blueprint or the name of the text-file from the current content.

Thanks in advance

$page->intendedTemplate() should do the job.

1 Like

Perfect, I didn’t see this one! Thanks, jakobploens!

1 Like