rocky
  •  rocky
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2013-10-14T10:27:19Z
Hello Team,

I am using YAF and want to add new menu on top of site and also provide a new link with a fresh page.
So,how it can possible i feel here page's name are made in GetPageSource() function under
Classes\ forum.cs page.if anyone have suitable answer please let me know as soon with suitable example,response will appreciable.


Thanks

Regards,
Rocky tom
Sponsor
tha_watcha
2013-10-14T11:45:58Z
Originally Posted by: rocky 

Hello Team,

I am using YAF and want to add new menu on top of site and also provide a new link with a fresh page.
So,how it can possible i feel here page's name are made in GetPageSource() function under
Classes\ forum.cs page.if anyone have suitable answer please let me know as soon with suitable example,response will appreciable.


Thanks

Regards,
Rocky tom



If you want to add an page link to the header you need to modify the controls\YafHeader.ascx

there is an ul list


<div class="menuContainer">
            <ul class="menuList">
                <asp:PlaceHolder ID="menuListItems" runat="server">
                </asp:PlaceHolder>
            </ul>


after/before the place holder you can add your custom link


<div class="menuContainer">
            <ul class="menuList">
                <asp:PlaceHolder ID="menuListItems" runat="server">
                </asp:PlaceHolder>
                <li class="menuGeneral">
                    <a href="link">Link</a>
                </li>
            </ul>


If you want to add the link between the existing links you need to modify the code behind file YafHeader.ascx.cs in the private function RenderMainHeaderMenu. there you can add your custom link (look at the existing code how its done).

Is the page you want to link to outside of yaf or inside yaf? If the link should go to a custom page inside yaf, you should read this little guide on how to create a custom page first...

http://forum.yetanotherf...stom-page.aspx#post52957 
UserPostedImage
rocky
  •  rocky
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2013-10-14T12:16:34Z
Thanks,i solved that issue .
your comments are very useful.
Thanks alot 🙂
tyhaitrieua
2014-04-13T14:22:02Z
thank for tha_watcha

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved