Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ASPNETZERO CORE MVC/JQUERY PUBLIC - Menu #3630


User avatar
0
riaan created

Hi,

I want to create menu items for the ASPNETZERO CORE MVC/JQUERY Public wesite similar to those of <a class="postlink" href="http://www.aspnetzero.com">http://www.aspnetzero.com</a>.

For example, if the user clicks on the "About" menu item, it should scroll to the About section on the HomePage, same with the "Packages" menu.

Herewith my current FrontEndNavigationProvider. Each menu item is currently its own page (which is working as expected).

//HOME
                .AddItem(new MenuItemDefinition(
                    FrontEndPageNames.Home,
                    L("HomePage"),
                    url: ""
                    )

                //ABOUT - Should navigate to ABOUT section in HomePage
                ).AddItem(new MenuItemDefinition(
                    FrontEndPageNames.About,
                    L("AboutPage"),
                    url: "About"
                    )

                //PACKAGES - Should navigate to PACKAGES section in HomePage
                ).AddItem(new MenuItemDefinition(
                    FrontEndPageNames.Packages,
                    L("PackagesPage"),
                    url: "Packages"
                    )

                //CONTACT 
                ).AddItem(new MenuItemDefinition(
                    FrontEndPageNames.Contact,
                    L("ContactPage"),
                    url: "Contact"
                    )

Thanks in advance,

Riaan


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I think current template of public website does not support this. As I checked, metronic has a free one page template <a class="postlink" href="http://keenthemes.com/free-bootstrap-templates/onepage-1-bootstrap-themefreebie-onepage-1-frontend-theme/">http://keenthemes.com/free-bootstrap-te ... end-theme/</a>.

    If you adapt this to your public website, then you can modify menu items to navigate inside the page.

    Or, of course, you can use another one page theme if you like.

    Thanks.

  • User Avatar
    0
    riaan created

    @ismcagdas, thank you very much for this. :D I will look into the theme

  • User Avatar
    0
    alper created
    Support Team

    Thanks for your feedback ;)