Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Ilya Hoilik Posted June 24, 2015 Posted June 24, 2015 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!
Ilya Hoilik Posted June 24, 2015 Author Posted June 24, 2015 $file->file_version Thanks, but how I can display version of the one specific file (by file ID). Not from all files
Ilya Hoilik Posted June 25, 2015 Author Posted June 25, 2015 \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}
Ilya Hoilik Posted June 25, 2015 Author Posted June 25, 2015 Resolved. Thanks to @CV01 {expression="\IPS\downloads\File::load( 1 )->version"}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.