<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>pagespec_alias (third party plugin)</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../../style.css" type="text/css" /> <link rel="stylesheet" href="../../local.css" type="text/css" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="../../index.html">ikiwiki</a>/ <a href="../../plugins.html">plugins</a>/ <a href="../contrib.html">contrib</a>/ </span> <span class="title"> pagespec_alias (third party plugin) </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p><span class="infobox"> Plugin: pagespec_alias<br /> Author: <span class="createlink">Jon</span><br /> Included in ikiwiki: no<br /> Enabled by default: no<br /> Included in <a href="../goodstuff.html">goodstuff</a>: no<br /> Currently enabled: no<br /> </span></p> <p>The pagespec_alias plugin allows the administrator(s) of a wiki to define <span class="createlink">PageSpec</span> aliases: short names for PageSpecs to ease re-use.</p> <p>Within the setup file, the <code>pagespec_aliases</code> value is treated as a list of key/value pairs. The keys define alias names, the values the pagespecs to which they refer.</p> <p>For example:</p> <pre><code>pagespec_aliases: image: "*.png or *.jpg or *.jpeg or *.gif or *.ico" helper: "*.css or *.js" boring: "image() or helper() or internal(*)" </code></pre> <p>With the above, you could use the pagespec aliases such as </p> <pre><code>[[!map pages="!boring()"]] </code></pre> <p>To define a site map which excluded various page names which might be uninteresting to include in a site map.</p> <h2>Download</h2> <ul> <li><a href="https://github.com/jmtd/ikiwiki/blob/pagespec-alias/IkiWiki/Plugin/pagespec_alias.pm">https://github.com/jmtd/ikiwiki/blob/pagespec-alias/IkiWiki/Plugin/pagespec_alias.pm</a></li> </ul> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div class="tags"> Tags: <a href="../type/meta.html" rel="tag">type/meta</a> </div> <div id="backlinks"> Links: <a href="./signinview.html">signinview</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>