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.

17

Found it!

@@Template.Title@@

Thanks for listening :)

  • 2
    Premptive +1 for answering for future you and future others. :-) – Alvin Reyes Jun 6 '13 at 23:55
  • 1
    Yea! I know I will search for this again, and find my own question :) – Chris Morgan Jun 7 '13 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 – Bart Koopman Jun 7 '13 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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