Locator tool and file asset

Joyce's Avatar

Joyce

10 Jul, 2015 08:56 PM

Trying to access a file asset's link node using the Locator Tool, but I think I'm missing something here:

#set ($pageObject = $_.locatePage($currentPagePath, $currentPageSiteName))
#set ($banner = $pageObject.getStructuredDataNode("banner/image"))
#set ($image = $banner.asset.getStructuredDataNode("link"))
$image.textValue

XML attached.

  1. 1 Posted by Joyce on 10 Jul, 2015 09:01 PM

    Joyce's Avatar

    Nevermind! Just figured it out:

    #set ( $image = $banner.asset.link )
    
  2. Support Staff 2 Posted by Tim on 10 Jul, 2015 09:06 PM

    Tim's Avatar

    Hi Joyce,

    Thanks for posting your solution. Have a good weekend!

  3. Tim closed this discussion on 10 Jul, 2015 09:06 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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM