Ilya Hoilik Posted June 24, 2015 Share 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! Link to comment Share on other sites More sharing options...
Ilya Hoilik Posted June 24, 2015 Author Share Posted June 24, 2015 @Mark, can you help me please? Link to comment Share on other sites More sharing options...
Adriano Faria Posted June 24, 2015 Share Posted June 24, 2015 $file->file_version Link to comment Share on other sites More sharing options...
Ilya Hoilik Posted June 24, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Mark Posted June 25, 2015 Share Posted June 25, 2015 \IPS\downloads\File::load( 1 )->file_version Link to comment Share on other sites More sharing options...
Ilya Hoilik Posted June 25, 2015 Author Share 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} Link to comment Share on other sites More sharing options...
Ilya Hoilik Posted June 25, 2015 Author Share Posted June 25, 2015 Resolved. Thanks to @CV01 {expression="\IPS\downloads\File::load( 1 )->version"} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.