14

An easy few points for someone, I hope!

I want to get the Page Template title in my DWT template. I could knock up a quick C# TBB, but it seems like I should be able to do it without.

I have tried:

@@Page.PageTemplate.Title@@

@@Page.Template.Title@@

and many more permutations.

Hopefully I am missing the obvious.

1 Answer 1

17

Found it!

@@Template.Title@@

Thanks for listening :)

3
  • 2
    Premptive +1 for answering for future you and future others. :-) Commented Jun 6, 2013 at 23:55
  • 1
    Yea! I know I will search for this again, and find my own question :) Commented Jun 7, 2013 at 0:12
  • The explanation as to why you couldn't find it initially is, that you were trying to see the Page Template as part of the Page (in the TOM .NET API, Page.PageTemplate would make sense) but in Dreamweaver Templating, it is of course a separate object, next to that, it is the thing which renders the current Page, hence Template.Title Commented Jun 7, 2013 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.