Jump to content

How I can parse file version?

Featured Replies

Posted

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!

  • Author

@Mark, can you help me please? :)

$file->file_version

 

  • Author
$file->file_version

Thanks, but how I can display version of the one specific file (by file ID). Not from all files

\IPS\downloads\File::load( 1 )->file_version

 

  • Author
\IPS\downloads\File::load( 1 )->file_version

Not working :( This code on my page displays as is:

558bd65308f76_2015-06-25_13-20-32__.thum

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}
  • Author

Resolved. Thanks to @CV01 :)

{expression="\IPS\downloads\File::load( 1 )->version"}

Edited by Ilya Hoilik

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.