aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki/pagespec/attachment/index.html
diff options
context:
space:
mode:
authorArquivo Publico de Memoria Coletiva <arquivo@sarava.org>2015-07-31 23:38:38 -0300
committerArquivo Publico de Memoria Coletiva <arquivo@sarava.org>2015-07-31 23:38:38 -0300
commitdf4566af59ba8e453d12f27784bbcd4082cfc666 (patch)
tree6fffdd129c497f550b2d32831b274dc7cebe6792 /ikiwiki/pagespec/attachment/index.html
parent1fac146001ef2ed20f20fb5adf802e81452879ce (diff)
downloadarquivo-df4566af59ba8e453d12f27784bbcd4082cfc666.tar.gz
arquivo-df4566af59ba8e453d12f27784bbcd4082cfc666.tar.bz2
Initial static site generation
Diffstat (limited to 'ikiwiki/pagespec/attachment/index.html')
-rw-r--r--ikiwiki/pagespec/attachment/index.html153
1 files changed, 153 insertions, 0 deletions
diff --git a/ikiwiki/pagespec/attachment/index.html b/ikiwiki/pagespec/attachment/index.html
new file mode 100644
index 00000000000..1f835dbf12c
--- /dev/null
+++ b/ikiwiki/pagespec/attachment/index.html
@@ -0,0 +1,153 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>attachment</title>
+
+<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" />
+<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" />
+
+<link rel="stylesheet" href="../../../local.css" type="text/css" />
+
+
+
+
+<meta name="robots" content="noindex, follow" />
+<style type="text/css">
+@media (max-width: 979px) {
+ .navbar-fixed-top {
+ position: fixed;
+ margin-left: 0px;
+ margin-right: 0px;
+ }
+}
+</style>
+</head>
+<body>
+
+<div class="container">
+
+ <div class="row-fluid">
+ <div class="span12">
+ <h1></h1>
+
+ <ul class="breadcrumb">
+
+ <li><a href="../../../">Arquivo Público de Memória Coletiva</a> <span class="divider">/</span> </li>
+
+ <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li>
+
+ <li><a href="../">pagespec</a> <span class="divider">/</span> </li>
+
+ <li>attachment</li>
+ <li><span class="divider">|</span> <a href="/meta">Meta</a></li>
+ <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=arquivo.git;a=history;f=ikiwiki/pagespec/attachment.mdwn">History</a></li>
+ <li><span class="divider">|</span> <a href="/index.rss">Feed</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="page row-fluid">
+
+ <div>
+ <div class="pageheader">
+ <div class="header">
+ <h1>
+ attachment
+
+ </h1>
+
+ </div>
+
+ </div>
+
+ <div id="pagebody">
+
+ <div id="content">
+ <p class="pagedate">
+ <strong>Posted <span class="date">Sex 23 Abr 2010 18:36:07 BRT</span></strong>
+ </p>
+ <p>This wiki has attachments <strong>disabled</strong>.</p>
+
+<p>If attachments are enabled, the wiki admin can control what types of
+attachments will be accepted, via the <code>allowed_attachments</code>
+configuration setting.</p>
+
+<p>For example, to limit most users to uploading small images, and nothing else,
+while allowing larger mp3 files to be uploaded by joey into a specific
+directory, and check all attachments for viruses, something like this could be
+used:</p>
+
+<pre><code>virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (mimetype(image/*) and maxsize(50kb)))
+</code></pre>
+
+<p>The regular <a href="../">PageSpec</a> syntax is expanded with the following
+additional tests:</p>
+
+<ul>
+<li><p>"<code>maxsize(size)</code>" - tests whether the attachment is no larger than the
+specified size. The size defaults to being in bytes, but "kb", "mb", "gb"
+etc can be used to specify the units.</p></li>
+<li><p>"<code>minsize(size)</code>" - tests whether the attachment is no smaller than the
+specified size.</p></li>
+<li><p>"<code>ispage()</code>" - tests whether the attachment will be treated by ikiwiki as a
+wiki page. (Ie, if it has an extension of ".mdwn", or of any other enabled
+page format).</p>
+
+<p>So, if you don't want to allow wiki pages to be uploaded as attachments,
+use <code>!ispage()</code> ; if you only want to allow wiki pages to be uploaded
+as attachments, use <code>ispage()</code>.</p></li>
+<li><p>"<code>mimetype(foo/bar)</code>" - checks the MIME type of the attachment. You can
+include a glob in the type, for example <code>mimetype(image/*)</code>.</p></li>
+<li><p>"<code>virusfree()</code>" - checks the attachment with an antiviral program.</p></li>
+</ul>
+
+
+ </div>
+
+ <hr />
+
+
+
+
+
+ </div>
+
+ <div id="footer" class="pagefooter">
+
+ <div id="pageinfo">
+
+
+
+
+
+
+
+
+
+ <!--<div class="pagedate">
+ Last edited <span class="date">Sex 23 Abr 2010 18:36:07 BRT</span>
+ </div> -->
+
+ </div>
+
+
+ <!-- from Arquivo Público de Memória Coletiva -->
+ </div>
+
+ </div>
+
+ <div class="span4">
+
+
+
+ </div>
+
+ </div>
+</div>
+
+</body>
+</html>