Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N OnePage
#8
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
Reply


Messages In This Thread
I18N OnePage - by mvlcek - 2015-11-28, 08:55:55
RE: I18N OnePage - by aldebaran - 2015-11-30, 21:30:00
RE: I18N OnePage - by mvlcek - 2015-12-02, 06:35:43
RE: I18N OnePage - by shawn_a - 2015-12-02, 09:13:25
RE: I18N OnePage - by mvlcek - 2015-12-02, 16:57:09
RE: I18N OnePage - by aldebaran - 2015-12-03, 21:38:20
RE: I18N OnePage - by shawn_a - 2015-12-05, 08:04:55
RE: I18N OnePage - by aldebaran - 2015-12-17, 00:54:18
RE: I18N OnePage - by aldebaran - 2015-12-30, 22:33:47
RE: I18N OnePage - by cvrglj - 2016-02-26, 17:44:03
RE: I18N OnePage - by retrofan - 2017-01-03, 19:37:42
RE: I18N OnePage - by pikku - 2017-04-14, 23:52:44
RE: I18N OnePage - by jjancel - 2021-02-17, 05:48:37
RE: I18N OnePage - by datiswous - 2021-02-22, 08:25:12
RE: I18N OnePage - by Oleg06 - 2021-02-22, 08:30:08
RE: I18N OnePage - by jjancel - 2021-03-15, 09:27:16
RE: I18N OnePage - by Oleg06 - 2021-03-15, 18:39:17
RE: I18N OnePage - by Felix - 2021-03-18, 21:11:36
RE: I18N OnePage - by Oleg06 - 2021-03-18, 23:11:47
RE: I18N OnePage - by jjancel - 2021-03-26, 04:40:14
RE: I18N OnePage - by Oleg06 - 2021-03-26, 05:46:28
RE: I18N OnePage - by jjancel - 2021-03-30, 03:38:36
RE: I18N OnePage - by Felix - 2021-03-30, 03:51:37
RE: I18N OnePage - by jjancel - 2021-03-30, 04:20:02
RE: I18N OnePage - by jjancel - 2021-03-30, 04:38:17
RE: I18N OnePage - by Felix - 2021-03-30, 05:26:26
RE: I18N OnePage - by jjancel - 2021-04-02, 00:48:28
RE: I18N OnePage - by Oleg06 - 2021-04-02, 01:45:48
RE: I18N OnePage - by Felix - 2021-04-02, 00:57:40
RE: I18N OnePage - by jjancel - 2021-04-02, 03:18:04
RE: I18N OnePage - by Oleg06 - 2021-04-24, 19:19:12
RE: I18N OnePage - by Felix - 2021-04-02, 03:32:00



Users browsing this thread: 4 Guest(s)