If you had
$has_one = ['Page' => BuilderPage::class]; it’d be
Ok, so ive done
<% loop $BuilderPage.Menu(1) %>
<li class="nav-item"><a class="nav-link" href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
<% end_loop %> and now it displays the li class, no links, title etc, and it only displays one when there are two pages?
Oh it’s because
Menu() is in the controller, not in
How are you rendering the element, via an include?
So on the BuilderPage im
<% loop Elements %> Then withinh the loop if the element matches a Type
<% if Type = 'MainMenu' %>
<% include MainMenu %>
<% end_if %>
So I think you could do
<% include MainMenu CurrentPage=$Top %>, then inside your include use
$Top gets reset inside an include, so you have to manually pass it in as another variable
Working perfect. thank you
There is an issue with viewing history on SS 4.4.4.
When I click to view a previous version it puts & in the url instead of a ?.
Is there a fix for this?