YAFLogo

Posted by: ktt - Monday, 18 May 2009 05:35:57
Hi, Can someone guide me in the right direction here? I want to add a page with a custom user control on it. The page should contain a header and foot just like most other YAF pages. Additionaly i want a link to this page in the toolbar, next to "Inbox" and "Search". Can someone give me a link to an example or tell me where i need to make some modifications. I am using 1.9.3. Thanks /Ktt

Posted by: mddubs - Monday, 18 May 2009 06:18:46
It's probably easier if you make your own toolbar and then just duplicate the links that you see for YAF when you hover over "Inbox", "Search" etc. You can then ShowToolBar=false in the web.config and the YAF toolbar will disappear.

Posted by: ktt - Monday, 18 May 2009 06:23:46
Ok, then when i create a link to ex: http://yaf/default.aspx?g=myCustomPage How do it get it to render my custom ascx file instead of the default one that shows the root of the forum? I still want the header and the "Active discussions" / "Information" to be there, i just want to replace the "Forum" part with something else.

Posted by: ktt - Monday, 18 May 2009 06:58:20
Ah, you just need to put the ASCX in the "pages" folder and add its name to the ForumPages ENUM.

Posted by: EP - Saturday, 23 May 2009 16:07:43
and also add an entry in the english.xml file for your new page.