I understand what everyone is saying. However, there is no exclude_from_nav property. If I set it equal to True or False, it makes a property (I dislike this about python in general) and puts it in there, but then it never uses it. This tells me it is not the right property to set.
To make it more interesting, I randomly picked a folder and checked “exclude from navigation” in plone frontend, and it takes effect, but still the property of exclude_from_nav on the folder object is missing. Am I looking in the wrong place for it? Could it be somewhere else?
I am using:
Plone 5.0.8 (5018)
Python 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]
PIL 3.3.0 (Pillow)
EDIT: I figured it out… turns out it was a case of a missing trailing slash