Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N OnePage
#12
(2015-11-28, 08:55:55)mvlcek Wrote: If you use the I18N plugin, you can mix normal pages and pages combining multiple pages:
  • create a template like described above and use set_onepage_content(return_page_slug())
  • create an empty page "my-multipage" and assign it this template
  • create other pages as children of this page and add them to the menu.
If you display "my-multipage", the content of all its children will be displayed on the page.

Hello,
i want to create a onepager with multiple pages and one or two additional normal pages (credits, legal stuff).
So I installed I18n, I18base, and this I18N onepage plug in. After editing my template as described everything worked fine for the multipages.
Then I altered the code to set_onepage_content(return_page_slug()), created the empty page (even called it my-multipage at first, then changed to index) with subpages + one extra page.
Again, the multipages work, but the normal page is not showing up in the menu!?
What am I doing wrong?
I played arround a little and assigned a template with set_onepage_content() to the single page - didn`t help.
Then I recognized, if I add a second i18n menu call after the onepage menu call, I get the menu link of the extra page, but the page is empty - I guess because of the onepage content before get_header?
The same happens, when hardcoding this single menu link.
The only way to get the menu link AND the content was to set up a second empty parent page with the single normal page as a child.
But then I still have a problem: on the multipages all the menu links are showing up (this child pages, the second parent, showing its child and the hardcoded link as well), but on all this other pages the onepage menu is missing. (Even on the second parent and child page - the only difference here is, the 1st parent is the index slug)

I relly can´t see the solution, and as there´s not even showing up the content of the normal page with all the considered settings I didn`t try to follow aldebarans challenging suggestions.

I hope somebody can help me!?
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: 3 Guest(s)