using dynamic metadata to display content

matthew.wren's Avatar

matthew.wren

Feb 02, 2016 @ 06:40 PM

I'm trying to use a dynamic metadata radio button to display a contact block. I'd like to do the whole thing only using a format block and avoid using a current page index block but I'm having trouble writing the velocity to locate this information. Is there a way to locate a specific dynamic metadata field and its value?

  1. 1 Posted by Ryan Griffith on Feb 02, 2016 @ 07:28 PM

    Ryan Griffith's Avatar

    Hi Matthew,

    You can use the $currentPage variable to access this information. Specifically, you would use something like the following to access the dynamic metadata field itself.

    $currentPage.metadata.getDynamicField("field-identifier")
    

    Since we're working with a radio field, you would use the value property to check the value of the field:

    $currentPage.metadata.getDynamicField("field-identifier").value
    

    For information on what you can do with the field, pass it into $_PropertyTool.outputProperties.

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on Feb 11, 2016 @ 01:34 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