Outputting current folder system name
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
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
1 Posted by lori on Nov 13, 2015 @ 07:59 PM
My apologies, I figured it out.
Support Staff 2 Posted by Tim on Nov 13, 2015 @ 08:02 PM
Thanks for posting your solution, Lori. Have a good one!
Tim closed this discussion on Nov 13, 2015 @ 08:02 PM.