I have done something similar with the navigation tabs.
Put a tab on your page and add anything you want and then hide the tab links at the top and link your menu to each tab. You must add all the information from the tabs to your menu.
The only problem is your url wont change.
For sure there is better way of doing this and some else will share it here
First of all you will need to create a page with a header and a footer and an empty container with fullscreen padding in-between. No global areas needed. It will be your main page. And basically the only page that will be fully loaded.
Then you will need to create pages with the content that should be loaded. No header or footer needed, it is already present in your first page.
Then you will need to attach these two files to your main page in the settings.
The only downside is that nav active class doesn’t work as it should because the only page that is active is your main page. If anyone has the solution it will be gladly appreciated
The only downside is that nav active class doesn’t work as it should because the only page that is active is your main page. If anyone has the solution it will be gladly appreciated
okay, by running through the code I’ve figured out that the answer is somewhere here:
Attach this two files to your project in Project Attachments. dynamicpage.zip (5.0 KB)
Profit.
This method doesn’t make your links look like this: example.ccc/page1#page2.html.
That means .active class should work now (it relies on a link text that’s why it didn’t work before. If address is the same as your navlink then .active class transfers to your active navlink). But it doesn’t.