I don't know what to say to you. I just installed it, tried it, and it's not having any problems with the menu.
Here is my chunk for testing
<!doctype html>
<html>
<head>
<title>Testing</title>
</head>
<body>
[[pdoMenu? &parents=`0`]]
<h1>[[+pagetitle]]</h1>
<p>This is a test.</p>
</body>
</html>
The menu is the same as for the main template (BaseTemplate)
<!doctype html>
<html>
<head>
<title>[[++site_name]] - [[*pagetitle]]</title>
<base href="[[++site_url]]" />
</head>
<body>
<nav>
[[pdoMenu? &parents=`0`]]
</nav>
<hr>
[[*content]]
</body>
</html>
-
- 4 Posts
Strange, with pdoTools menu, it work fine, with wayfinder - dont.
Maybe its time to move to pdoTools.
During my tests I have used pdoTools too. So I did not see the Wayfinder issue …
There could be some issues in SwitchTemplate i.e. with placeholders and context/system setting placeholders. It is more a hack to bypass the missing template switch but hopefully a good one.
Sorry for answering that late. I will work on SwitchTemplate next week.
Use the latest version of this extra. It could use i.e. [[+alias]]Whatever as chunk name in a setting. All resource fields are possible as placeholder (no template variables).
-
- 10 Posts
Thanks Jako, great work!
As a resource field can I use the template associated with the resource?
For example [[*template]]_m
In this way if the resource is associated to template "test" SwitchTemplate will load the template "test_m". Right?
ROb