I am having the hardest time making it so that I can set the page title based upon the document type.
After trying to do it with straight macros like this :
{%if(classname == "Custom.Class"){ return DocumentName + " Something"} else if(classname == "Custom.Class2"{ return "Something Else"}
This didn't really work the way I wanted it to, so I came up with a Custom Method and registered it.
I won't get into the details of what my custom method does because it isn't important for this issue.
I call my custom method like this :
//This works in the context of a web part or widget, but not in the Page Title meta field
{% ClassPageTitle(classname) %}
// I've tried using other string methods on the classsname macro that might give me the same result as SubString, but none of them work.
Basically, when used in the Page Title Meta field, the classname macro acts very strangely. I've spent several hours trying to get this to work and I am extremely frustrated.