Message of the day:
Security release 4.4.4 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4/docs/en/04_Changelogs/4.4.4.md
SilverStripe 4 related information and questions.
we have the weirdest issue ... when we publish a page with an image IN the HTMLEditor section, then it shows fine, when we load it in an incognito (logged out window), then it shows, however, when we close all incognito windows and reload the page, the image stops working. It is the SAME url - but it goes from "perfectly"visible to 404 - with a really weird 404 error.
Got a strange issue. If I create a new user group, give it the permission "Access to 'Pages' section" and thats all, then any user in that group (and only that group) seems to be able to create and edit pages. When I look summary of permissions for the user, only "Access to 'Pages' section" is ticked. I can override the canEdit and check permissions and return false, but this seems like it might be an issue..
Thanks a lot @dorsetdigital is clear now. 😊
You can add the conditional statements on the children so you don't end up with markup you don't need
You'll end up with something like this:
- <% loop $Menu(1) %>
- <li><a href="$Link">$MenuTitle.XML</a>
- <% if $Children %>
- <% loop $Children %>
- <li><a href="$Link">$MenuTitle.XML</a></li>
- <% end_loop %>
- <% end_if %>
- <% end_loop %>
That's OK @Jose - I understand you're new. We're all here to help! You can't learn if you don't ask the question :)
Thanks a lot @nightjarnz I interpreted literally, sorry I am new to Silverstripe. I will use <% loop $Children %> instead. Regards Jose
I hope that helps :)
ah, some confusion there @Jose
<% loop $Menu(1) %> is only needed to start a menu.
If you wish to go deeper in the tree from that point, you should use
<% loop $Children %> instead :)
<% loop $Menu(2) %> would be used to start a sidebar, and exclude the top level menu from the list (where the top level probably runs horizontal across the top of the page)