Outputting current folder system name

lori's Avatar

lori

Nov 13, 2015 @ 07:53 PM

I'm trying to output the system name of the current folder. I tried with the following and the output I got was "$parentFolder.metadata.displayName". Not sure what I'm doing wrong.

#set ( $currentPage = $_.locatePage($currentPagePath) )
#set ( $parentFolder = $_.locateFolder($currentPage.parentFolderIdentifier.path.pathAsString) )

$parentFolder.metadata.displayName
  1. 1 Posted by lori on Nov 13, 2015 @ 07:59 PM

    lori's Avatar

    My apologies, I figured it out.

    #set ( $currentFolder = $currentPage.parentFolder )  
    
    $currentPage.parentFolder
    
  2. Support Staff 2 Posted by Tim on Nov 13, 2015 @ 08:02 PM

    Tim's Avatar

    Thanks for posting your solution, Lori. Have a good one!

  3. Tim closed this discussion on Nov 13, 2015 @ 08:02 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac