Your syntax should look like so:
{% Documents["/Sub"].GetValue("NodeID") |(identity)GlobalAdministrator%}
You need to define a specific page ie: "/Sub" and no need to get the WithAllData
because NodeID
is part of the regular data.
Have you tried the macro debugger in Kentico? System>Macros>Console