Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 24, 20159 yr Hello! I've uploaded file (Downloads app) and created custom page (Pages app). How I can parse version of my file and display it on the my custom page? Thanks!
June 24, 20159 yr Author $file->file_version Thanks, but how I can display version of the one specific file (by file ID). Not from all files
June 25, 20159 yr Author \IPS\downloads\File::load( 1 )->file_version Not working This code on my page displays as is: And this code doesn't display anything {{if \IPS\downloads\File::load( 1 )->file_version}} HTML to display {{endif}} But file with ID 1 exists. This code also doesn't work: {{$myversion = \IPS\downloads\File::load(1)->file_version;}}{$myversion}
June 25, 20159 yr Author Resolved. Thanks to @CV01 {expression="\IPS\downloads\File::load( 1 )->version"} Edited June 25, 20159 yr by Ilya Hoilik
Archived
This topic is now archived and is closed to further replies.