2015-12-17, 00:54:18
Hi Mvlcek
I have request - in the case of using a mixture of single and multipage pages, when you navigate back from a single page to a multipage – is it possible to include an anchor ref to the subpage within the multipage ?
Below is what I want to do and what I have done so far ... So what do think ? Have I misunderstood something ? Can I do what I want some other way ? Or do I need an extra anchor ref in the navi from a single page to a multipage ?
This is what I am trying to do for a website :
i. I have one multipage and a few single pages. The index url navigate to the multipage. On all the multi and single pages the menu just has item refs to each subpage of the multipage. The single pages contain stuff which is not of immediate importance to the user / are not part of the “main message” and so are not in the menu, but their access is just via links eg in the footer. At the moment I have just one single page containing legal stuff.
ii. From the users perspective, I want the menu in each of the frontend multipage and the single pages to look the same and do the same, ie it is a simple flat menu which just contains menu items to navigate to each sub page within the multipage.
iii. So to go to a multipage subpage from a menu item then there must be an anchor ref as part of the href. For navigating from within the multipage then just the anchor ref is enough, but - as far as I see it - for navigating from a single page, we need the site url, an id url param to nav to the multipage (if required), and then an anchor ref to the subpage
And this is what have done so far …
i. In the single page template file I have for the menu navigation :
<?php get_i18n_navigation('index',1,1); ?>
.. So this creates menu items such as href = ”http://my.website.com/index.php?id=sub-page-1”
ii. In the backend ALL child pages, as well as the parent index page, are associated with the multipage template … so that on clicking a menu item from a single page then (with url ..?id=my-sub-page”) we load up the multipage template
iii. In the multipage template file for the content setup I have
set_onepage_content(‘index’)
… and NOT set_onepage_content(return_page_slug() so that this does not load up the single page defined by the id url param, but instead loads up the index child pages for the multipage
iv. But here is my PROBLEM … with the above url in the single page I navigate to the multipage, but the scroll stays at the top and does not go to the subpage within he multipage .. to do that I need an extra anchor ref #my-sub-page
Cheers Aldebaran
I have request - in the case of using a mixture of single and multipage pages, when you navigate back from a single page to a multipage – is it possible to include an anchor ref to the subpage within the multipage ?
Below is what I want to do and what I have done so far ... So what do think ? Have I misunderstood something ? Can I do what I want some other way ? Or do I need an extra anchor ref in the navi from a single page to a multipage ?
This is what I am trying to do for a website :
i. I have one multipage and a few single pages. The index url navigate to the multipage. On all the multi and single pages the menu just has item refs to each subpage of the multipage. The single pages contain stuff which is not of immediate importance to the user / are not part of the “main message” and so are not in the menu, but their access is just via links eg in the footer. At the moment I have just one single page containing legal stuff.
ii. From the users perspective, I want the menu in each of the frontend multipage and the single pages to look the same and do the same, ie it is a simple flat menu which just contains menu items to navigate to each sub page within the multipage.
iii. So to go to a multipage subpage from a menu item then there must be an anchor ref as part of the href. For navigating from within the multipage then just the anchor ref is enough, but - as far as I see it - for navigating from a single page, we need the site url, an id url param to nav to the multipage (if required), and then an anchor ref to the subpage
And this is what have done so far …
i. In the single page template file I have for the menu navigation :
<?php get_i18n_navigation('index',1,1); ?>
.. So this creates menu items such as href = ”http://my.website.com/index.php?id=sub-page-1”
ii. In the backend ALL child pages, as well as the parent index page, are associated with the multipage template … so that on clicking a menu item from a single page then (with url ..?id=my-sub-page”) we load up the multipage template
iii. In the multipage template file for the content setup I have
set_onepage_content(‘index’)
… and NOT set_onepage_content(return_page_slug() so that this does not load up the single page defined by the id url param, but instead loads up the index child pages for the multipage
iv. But here is my PROBLEM … with the above url in the single page I navigate to the multipage, but the scroll stays at the top and does not go to the subpage within he multipage .. to do that I need an extra anchor ref #my-sub-page
Cheers Aldebaran