Skip to content

Instantly share code, notes, and snippets.

@PetersonDave
Created January 24, 2013 01:13
Show Gist options
  • Save PetersonDave/4616627 to your computer and use it in GitHub Desktop.
Save PetersonDave/4616627 to your computer and use it in GitHub Desktop.
Dynamically setting the datasource of a droptree field (or any field for that matter) to the site context of the current site.
query:ancestor-or-self::*[@@templatename='Site']/home/content-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment