ASPX templates
Version 5.x > ASPX templates > Curiosity around SelectSingleNode(Guid mGuid, string cultureCode, string siteName) View modes: 
User avatar
Certified Developer 9
Certified Developer 9
Dylan - 3/8/2011 11:54:46 AM
   
Curiosity around SelectSingleNode(Guid mGuid, string cultureCode, string siteName)
Hello,

I'm curious as to why selecting a node via a Guid does not include coupled data.

When using the Document Selector on a Document Field, a Guid for that selected document is stored as a value. It would be nice to be able to select that node by it's Guid and get the value of it's document fields.

Is there a quick and easy way around this?


Thanks,

Dylan

User avatar
Certified Developer 9
Certified Developer 9
Dylan - 3/8/2011 11:58:53 AM
   
RE:Curiosity around SelectSingleNode(Guid mGuid, string cultureCode, string siteName)
Edit: Perhaps a quick and easy way without declaring 2 separate Tree nodes. One where you select the node with Guid, and another where you select a Node using the first Nodes NodeID.

Example:
CMS.TreeEngine.TreeNode nodeByGuid = null;
CMS.TreeEngine.TreeNode node = null;

User avatar
Certified Developer 8
Certified Developer 8
dvanbale - 3/14/2011 10:45:15 AM
   
RE:Curiosity around SelectSingleNode(Guid mGuid, string cultureCode, string siteName)
Dear Dylan,

I do not completely understand which information you are looking for, but one of my personal revelations regarding treenodes was the difference between documents and nodes.

There exists the SelectSingleDocument, which has a coupledData boolean parameter which you can use, please let us know if this helped you.

Regards,
dvanbale