{% TreeProvider tree = new TreeProvider(CMSContext.CurrentUser); DataSet documents = tree.SelectNodes(CMSContext.CurrentSiteName, "./%", "en-us", false, "CMS.MenuItem"); if (DataHelper.DataSourceIsEmpty(documents)) {"../%"} else {"./%"} %}
This is what I am trying to make work.