Jaben wrote:The page that contains your head should have this in it:
<head id="YAFHead" runat="server">
...blah title, etc...
</head>
YAF will locate it and change the title as needed. (Works for Master Pages too.)
Another way that was useful for me, when I didn't want to change the page header, was to use the PageTitleSet event:
public event EventHandler<yaf.pages.ForumPageArgs> PageTitleSet;
So in the page I embed the forum control I can do the following:
protected void Page_Load(object sender, EventArgs e)
{
forum.PageTitleSet += new EventHandler<yaf.pages.ForumPageArgs>(forum_PageTitleSet);
}
And then the handler could look something like:
void forum_PageTitleSet(object sender, yaf.pages.ForumPageArgs e)
{
Title = e.Title;
}