fs_row_for_one_file

EveAndersson.com : API Browser : fs_row_for_one_file

fs_row_for_one_file

fs_row_for_one_file [ -n_pixels_in n_pixels_in ] [ -file_id file_id ] \
    [ -folder_p folder_p ] [ -client_file_name client_file_name ] \
    [ -n_kbytes n_kbytes ] [ -n_bytes n_bytes ] \
    [ -file_title file_title ] [ -file_type file_type ] [ -url url ] \
    [ -creation_date creation_date ] [ -version_id version_id ] \
    [ -links links ] [ -author_p author_p ] [ -owner_id owner_id ] \
    [ -owner_name owner_name ] [ -user_url user_url ] \
    [ -export_url_vars export_url_vars ] [ -folder_url folder_url ] \
    [ -file_url file_url ]
Defined in tcl/file-storage-defs.tcl

Returns one row of a HTML table displaying all the information about a file. Set links to 0 if you want this file to be output without links to manage it (to display the folder you're currently in).

The first bunch of arguments are all standard stuff we want to know about the file. The n_pixels_in is the number of pixels you want this line indented.

links: used for one-folder, which likes to show the current folder first, without the hyperlinks. Set this to 0 if you don't want links from an entry (only works for folders).

author: If you want the author shown, set author_p and provide us with owner_id and owner_name, and you'll get the link. If you want the link to go somewhere different than /shared/community-member, you'll want to set user_url to the page you want to link to (user_id will be appended).

export_url_vars: set this to the vars you want exported when a file or folder link is clicked. It should be a query string fragment. If you're unhappy with the default urls 'one-folder' or 'one-file' (say, you're implementing admin pages where they're named differently), change them here. The export_url_vars will be appended.

Switches:
-n_pixels_in (defaults to "0")
-file_id (optional)
-folder_p (defaults to "f")
-client_file_name (optional)
-n_kbytes (optional)
-n_bytes (optional)
-file_title (optional)
-file_type (optional)
-url (optional)
-creation_date (optional)
-version_id (optional)
-links (defaults to "1")
-author_p (defaults to "0")
-owner_id (defaults to "0")
-owner_name (optional)
-user_url (defaults to "/shared/community-member")
-export_url_vars (optional)
-folder_url (defaults to "one-folder")
-file_url (defaults to "one-file")
[ show source ]

Show another procedure:

eve@eveandersson.com