Displaying this attribute within template

Permalink Browser Info Environment
Great add-on, thank you. I was curious if there was an easy way to get this attribute to output a list of files in a page template?

Type: Discussion
Status: New
hursey013
View Replies:
lexbi replied on at Permalink Reply
lexbi
$page = Page::getCurrentPage();
$images = $page->getAttribute('files');
$getFiles = MultipleFilesAttributeTypeController::getFiles($images);
foreach($getFiles as $file){
   echo $file->getVersion()->getRelativePath();
}

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.