Navigation-plugin: Parent-pages link to first child

Post Reply
bnetz
Ssr. Bludit
Posts: 18
Joined: Sun Aug 16, 2020 6:38 pm

Hi,
when I use the navigation-plugin the parents link to the first child (instead to itself) - see attachment.

Interestingly the same thing happened when I manually tried to generate links in the docsx-theme-sidebar - using something like

Code: Select all

$parents = buildParentPages();
	foreach ($parents as $parent) {
		echo '<a href="'.$parent->permalink().'">'.$parent->title().'</a>';
(simplified code) leads to the same problem as described.

So in my installation $parent->permalink() outputs something which could be described as $firstchild->permalink()
I don't have any cue what's going on - might be a bug?

Thanks for help in advance!
Attachments
bludit-navigation-problem.png
bludit-navigation-problem.png (19.34 KiB) Viewed 2339 times
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

This is how the theme works by default, and parent pages are used only for the titles of the chapters.

You can set in the file init.php in the directory /bl-themes/docs-x (line5):

Code: Select all

$REDIRECT_PARENT_TO_FIRST_CHILD = false;
instead of

Code: Select all

$REDIRECT_PARENT_TO_FIRST_CHILD = true;
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
bnetz
Ssr. Bludit
Posts: 18
Joined: Sun Aug 16, 2020 6:38 pm

Ah, this explains a lot :-)

I am not sure if it should be considered to change the default behaviour to false.

Thanks for your help, Edi!

/solved
Post Reply