In MODx when referring to "documents" and "folders", this means in the Manager’s document tree. A "folder" is simply a document that has children; a folder can be an ordinary document or just an empty document to act as an organizing container.
So this means you’ll create two new documents in the root of the tree, one for the public documents and one for the private documents. Make sure they are set to not show in the menu, or even unpublish them so they won’t be shown in any menus.
Move all of your public documents into the new document you created for that purpose, and likewise move the private documents. Now when you make a Wayfinder call, for public documents use the ID of the new document you created, and for the private section use the ID of the new document you created to contain the private documents.
Make a new snippet that has
if( <check for logged-in user here> ) {
$modx->runSnippet('Wayfinder', array('startId' => 'xx', ...) ;
} else {
$modx->runSnippet('Wayfinder', array('startId' => 'yyy', ...);
}
Add any other options you want for the Wayfinder snippet calls as ’name’=>’value’, since the Wayfinder function will use those as its arguments in the same way it does the &name=`value` in regular snippet tags. The ’xx’ and ’yy’ will be the ID of the two documents you are using as containers.
Use this snippet where you would usually put a Wayfinder snippet call.
If you have any public documents that you do want displayed to the private users, just make a weblink to it in your private folder/container section of the document tree.