tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/13724-locator-tool-and-getting-the-current-attributeCascade CMS: Discussion 2018-10-18T20:37:50Ztag:help-archives.hannonhill.com,2010-02-09:Comment/392629912016-02-25T18:42:47Z2016-02-25T18:56:18ZLocator Tool and getting the current attribute<div><p>Hi, Ashley,</p>
<p>What exactly are you trying to do? When you use the Locator
Tool, there is no current attribute available. In fact, you are not
dealing with XML at all, and there are no attributes to look
at.</p>
<p>One more thing. The global variable <code>$currentPage</code>
already points to the current page. There is no point in using
<code>locatePage</code> at all.</p>
<p>For more information, see <a href="http://www.upstate.edu/cascade-admin/formats/velocity/course/lesson08.php">
Lesson 8: $_DateTool and $_</a></p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/392629912016-03-03T16:12:56Z2016-03-03T16:12:56ZLocator Tool and getting the current attribute<div><p>Hi Wing,</p>
<p>Sorry for not replying sooner. I was trying to check the current
page's path against the path of a link I was setting up in a list.
If they matched then I'd set a class to highlight the link. I ended
up using<br></p>
<pre>
<code>#set ( $pagepath = $currentPagePath)</code>
</pre>
which seems to work for my purposes. Thank you for your help!</div>Ashley Williams