tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/9384-get-current-folder-display-nameCascade CMS: Discussion 2014-03-11T20:21:47Ztag:help-archives.hannonhill.com,2010-02-09:Comment/320336352014-03-11T18:43:07Z2014-03-11T18:43:07ZGet current folder display-name<div><p>Hi Eric,</p>
<p>If you wanted to ditch the Index Block, you should be able to
accomplish this using the Locator Tool along with the
<code>$currentPagePath</code> variable:</p>
<pre>
<code>#set ( $currentPage = $_.locatePage($currentPagePath) )
#set ( $parentFolder = $_.locateFolder($currentPage.parentFolderIdentifier.path.pathAsString) )
$parentFolder.metadata.displayName</code>
</pre>
<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/320336352014-03-11T19:00:41Z2014-03-11T19:00:41ZGet current folder display-name<div><p>That's exactly what I was looking for, thanks!</p></div>Erictag:help-archives.hannonhill.com,2010-02-09:Comment/320336352014-03-11T20:21:46Z2014-03-11T20:21:46ZGet current folder display-name<div><p>Not a problem at all, Eric. I am glad to hear that did the
trick.</p>
<p>Have a great day!</p></div>Ryan Griffith