If you need to upgrade your PGV installation, then hopefully you will also consider that you can conveniently move to webtrees with our PGV-to-webtrees wizard. It will move ALL your users, news, favorites and family trees to webtrees in a matter of minutes.

TOPIC: [SOLVED] Menu order

Menu order 2 years 3 months ago #1

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • New
  • Posts: 93
Hello,

I try to replicate the menu order from PGV with vytux_menu2:






How can I get the Item "zurück zum BVfF" (= back to the BVfF) to the first position?

PGV: http://www.bvff.de/PhpGV/index.php?ctype=gedcom&ged=Bauermann_Pool2.ged&changelanguage=yes&NEWLANGUAGE=english

WT: http://bvff.de/PoolWT/index.php?ctype=gedcom&ged=LUENENSCHLOSS-1806_UTF8.ged
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.

Menu order 2 years 3 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10299
You could modify the menu very easily in webtrees using a custom theme.
For example, save this file as themes/bvff/theme.php
<?php
use Fisharebest\Webtrees\Menu;
use Fisharebest\Webtrees\Theme\XeneaTheme;

class BvffTheme extends XeneaTheme {
	public function themeId() {
		return 'bvff';
	}

	public function themeName() {
		return 'BVfF';
	}

	protected function primaryMenu() {
		$primary_menu = parent::primaryMenu();
		$bvff_menu    = new Menu('BVfF', 'http://www.bvff.de/', 'menu-tree');
		return array_merge(array($bvff_menu),  $primary_menu);
	}
}

return new BvffTheme;
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Menu order 2 years 3 months ago #3

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • New
  • Posts: 93
Super, thank you very much!
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.

[SOLVED] Menu order 2 years 3 months ago #4

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • New
  • Posts: 93
Problem solved.
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum