Quantcast
Channel: DokuWiki
Viewing all articles
Browse latest Browse all 25542

plugin:getraw - usability suggestions

$
0
0
1439210372current
Line 99:Line 99:
  
 [[user>zioth|zioth]]: Good idea. Next time I revisit this plugin, I might give it a shot. It should be pretty easy. (//2015-07-01//) [[user>zioth|zioth]]: Good idea. Next time I revisit this plugin, I might give it a shot. It should be pretty easy. (//2015-07-01//)
 +
 +==== Usability suggestions ====
 +For ease of use, you can set up another rewrite rule in your .htaccess so that a user only needs to add .txt to their URL to get the text format:
 +
 +''RewriteRule ^(.*).txt$                getRaw.php?id=$1  [L]''
 +
 +Also for readability, throw a ''header('Content-Type: text/plain');'' in line 4, and the browser will know to interpret the newlines instead of eating them like HTML.  --- [[user>NReilingh|NReilingh]] //2015-11-29 07:30//

Viewing all articles
Browse latest Browse all 25542

Latest Images

Trending Articles



Latest Images