Welcome Guest, you are in: Login

Search:

download
Version2.0.1.0
Rating  
DeveloperChristian Hollerup Mikkelsen
Updated2016-01-09
Homepagehttp://master-garrett.blogspot.com/
Works withScrewTurn Wiki v5.0.x
LicenseGPLv2
Supported languages-
Visual-editorno

Displays the contents of a txt based file, for example html,css,txt, directly on a wiki page.


Table of Contents [Hide/Show]



Administrators

No special actions required.

Note that this plugin creates it's own help and test pages inside your wiki, for your benefit.

These pages cannot be deleted without disabeling the formatter first.



Markup Usage

What can you do?

  • Display the content of a file(s) in a wiki page
    • Text based files can be displayed
    • PDF Files can be displayed
    • Video can be displayed (Embedded in WMP only)
      • The following files will be attempted to be played by WMP:
        • .aif, .aifc, .aiff, .asf , .asx, .au, .avi, .cda, .dvr-ms, .ivf, .m1v, .m3u, .mid, .midi, .mov,
        • .mp2, .mp3, .mpa, .mpe, .mpeg, .mpg, .mpv2, .qt, .rmi, .snd, .vob, .wav, .wax, .wm, .wma, .wms,
        • .wmv, .wmx, .wmz, .wpl, .wvx
    • The raw content of a file can be displayed
  • Embed the display file in a box with specified size (height/width)
  • Specify which provider to retrieve the file from




Usage:


{ FileCont file=XXX prov=YYY height=ZYX width=XYZ raw=ZZZ rows=XXY cols=YYX }


Where:

  • file - A valid path and file wildcard, must be encapsulated in ' '
  • prov - Fullname as seen in the wiki File management, ex. 'Local Files Provider' and 'SQL Server Files Storage Provider'
  • height - Height of the box to display the file inside
    • If used with raw=true remember to add unit, ex. px or %
  • width - Width of the box to display the file inside
    • If used with raw=true remember to add unit, ex. px or %
  • raw - True or false, will display the raw content of a file.
    • RAW SHOULD ALWAYS BE USED WITH CAUTION, USE ONLY ON SMALL FILES
    • rows - Applies only when using raw=true, can be used instead of height to set the number of rows to display
    • cols - Applies only when using raw=true, can be used instead of width to set the number of cols to display



All args which have a value that contains whitespaces, must be encapsulated in ' ', ex. '/Folder name with spaces/File.txt'.

There's no guarantee that your file can be displayed, it depends on the browser used, plugins installed, server etc.. However basic Text files and standard wide spread video/pdf file types should work in most browsers.


It may require a couple of attempts find the right way of displaying your file, remember that there are < nowiki > and < nobr > tags which might help you get the right result.




Examples

Image

Image

Image

Image

 
  Name Size
- FileCont1.png 28.58 KB
- FileCont2.png 35.73 KB
- FileCont3.png 37.71 KB
- FileCont4.png 20.85 KB
- Garrett.png 27.79 KB

Side Projects

  • RESX Synchronizer allows to synchronize multi-language .resx files (used for the development of ScrewTurn Wiki).
  • Pixel Picker enables to pick the color of pixels on your screen — very handy for day-to-day graphics-related activities.

About