Fullscreen
[Show/Hide Right Column]

Print
English

Raw page display

Tiki allows to display wiki page in "raw" format by means of calling a wiki page through tiki-index.raw.php with some extra parameters in the url. This is useful for highly customized content presentation of that wiki page, such as in the case of JQS5 slideshow presentations or exporting file with data from pretty trackers for R scripts (see PluginR to cite just two examples.



Usage and Parameters

To show the content of a wiki page in raw format, you can use a combination of the following parameters in the url use the syntax:

Parameter Accepted values Default Effect Required? Since
page text (wiki page names) default homepage show that wiki page in raw mode y
clean will show the page without the author & contributor information nor the labels for the buttons at the page bar (edit, source, etc) n 6.1
download will show the user a dialog to allow downloading a file on disk with the raw contents of that page instead of displaying it in the browser. Useful to be used in conjunction with the params clean, "textonly" and "filename" n 6.1
full will most the page with the javascript and css effects associated to it 5.0
format jqs5 will show the page with the required javascript to display the contents as an S5 slideshow presentation 5.0
textonly will show contents of the page without any html tags, but only the text. Useful to be used in conjunction with the params "clean", "download" and "filename" n 6.1
filename my_custom_script.r (wiki page name) will provide a default filename (and extension, if added) to the user in the download dialogue. Useful to be used in conjunction with the params "download" n 6.1


Example 1

This code,
Syntax for the S5 slideshow presentation
http://doc.tikiwiki.org/tiki-index_raw.php?page=ExampleSlideShow&full&format=jqs5


Would produce on this site: (click in the url to see it)
http://doc.tikiwiki.org/tiki-index_raw.php?page=ExampleSlideShow&full&format=jqs5

Example 2

This code,
Syntax to allow downloading the contents of a page as clean text (no buttons) and in text only mode
http://mytiki.com/tiki-index_raw.php?page=Foo&itemId=33&clean&textonly&download&filename=bar.r


Would produce on this site: (click in the url to see it)
http://mytiki.com/tiki-index_raw.php?page=Foo&itemId=33&clean&textonly&download&filename=bar.r



alias
Raw display | Raw


Contributors to this page: xavi67984 points  and xavidp1213 points  .
Page last modified on Monday 29 November, 2010 14:12:24 UTC by xavi67984 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki