tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/9763-still-trying-to-figure-out-the-locator-toolCascade CMS: Discussion 2018-10-18T20:37:11Ztag:help-archives.hannonhill.com,2010-02-09:Comment/326393942014-04-21T14:08:12Z2014-04-21T14:08:12ZStill trying to figure out the locator tool<div><p>Hi Ashley,</p>
<p>You are very close. Because the field is a chooser, you would
use the <code>getStructuredDataNode</code> method to obtain the
chooser field itself and then use the Asset API to access the path
property. When you have a moment, give the following a try and let
me know how it works out:</p>
<pre>
<code>#set ( $page = $_.locatePage($infoFile.getChild("path").value, $infoFile.getChild("site").value) )
#set ( $contactPage = $page.getStructuredDataNode("department-information/contact-us-page") )
#set ( $contactLink = $contactPage.asset.path )</code>
</pre>
<p>If you would like to see additional properties and methods
available to objects, you can use the <a href=
"http://www.hannonhill.com/kb/Script-Formats/#property-tool">Property
Tool</a>.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/326393942014-04-28T13:16:24Z2014-04-28T13:16:24ZStill trying to figure out the locator tool<div><p>That helps! Thank you.</p></div>Ashley Williams