Skip to content

Instantly share code, notes, and snippets.

@hailwood
Created March 18, 2015 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hailwood/fa9b5cd0c0301b5f0dbb to your computer and use it in GitHub Desktop.
Save hailwood/fa9b5cd0c0301b5f0dbb to your computer and use it in GitHub Desktop.
SELECT DMSTag.* FROM DMSTag
JOIN DMSDocument_Tags ON DMSDocument_Tags.`DMSTagID` = `DMSTag`.`ID`
JOIN DMSDocument_Pages ON DMSDocument_Tags.`DMSDocumentID` = DMSDocument_Pages.`DMSDocumentID`
WHERE DMSDocument_Pages.`SiteTreeID` = {current page id};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment