Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 242

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>default content for *copyright* and *license*</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">
default content for *copyright* and *license*

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p><span class="infobox">
Plugin: copyright<br />
Author: <span class="createlink">tschwinge</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><span class="infobox">
Plugin: license<br />
Author: <span class="createlink">tschwinge</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>Someone was just asking for it and I had written these two plugins already some months ago,
so I'm now publishing them here.</p>

<p><a href="http://git.savannah.gnu.org/cgit/hurd/web.git/plain/.library/IkiWiki/Plugin/copyright.pm"><code>copyright.pm</code></a>
and
<a href="http://git.savannah.gnu.org/cgit/hurd/web.git/plain/.library/IkiWiki/Plugin/license.pm"><code>license.pm</code></a></p>

<p>Usage instructions are found inside the two plugin files.</p>

<p>--<span class="createlink">tschwinge</span></p>

<p>I was asking about this in IRC the other day, but someone pointed me at the
<span class="createlink">Varioki</span>
plugin. It seems to me that it would be a better idea to have a way of defining
template variables in general, rather than having to add a new plugin for every
template variable somebody wants to use.</p>

<p>--<span class="createlink">bma</span></p>

<p>Copyright and license values are not "template values", they are values
tracked by the <a href="../meta.html">meta</a> plugin, and that various code compares and uses to fill
out the templates. Something like varioki cannot do that. --<span class="createlink">Joey</span></p>

<p>Somewhat more detailed usage documentation would be appreciated. I tried to setup
those plugins with a current ikiwiki release, i.e. 2.61, but they appeared to do
nothing, really. Also, those example pages don't seem to use those plugins, even;
they set "copyright" and "license" properties using ordinary <a href="../meta.html">meta</a> tags. Maybe
I'm missing something terribly obvious? --Peter</p>

<blockquote>
  <p>Only obvious if you read the source :-). You need to put a file named "copyright.html"
  (respectively "license.html") in your wiki. Everything underneath that (in the wikilink sense) will use that
  content for the license or copyright. Saves putting [[meta license="foo"]] in every page <span class="createlink">DavidBremner</span></p>
</blockquote>

<p>By the way: these need not be <em>HTML</em> files; <code>copyright.mdwn</code>,
respectively <code>license.mdwn</code>, or every other format supported
by ikiwiki are likewise fine.  --<span class="createlink">tschwinge</span></p>

<blockquote>
  <p>Jon has done something similar in <span class="createlink">allow site-wide meta definitions</span>;
  his version has the advantages that it doesn't invent magical page names,
  and can extend beyond just copyright and license, but has the disadvantage
  that it doesn't support setting defaults for a given "subdirectory"
  only. --<span class="createlink">smcv</span></p>
  
  <p>I downloaded the two *.pm files and made them executable, and put in 
  <code>&#036; ls /usr/local/lib/site_perl/IkiWiki/Plugin/</code> and added <code>copyright.mdwn</code> and <code>license.mdwn</code> 
  and rebuilt the wiki, but the copyright/license text doesn't show up. Does these plugin work with Ikiwiki <code>3.20100815</code>?
  -- 9unmetal</p>
  
  <blockquote>
    <p>Solved by email long ago; the problem was that the user had not put them
    into the <em>add_plugins</em> set in the wiki's <code>ikiwiki.setup</code>.  --<span class="createlink">tschwinge</span></p>
  </blockquote>
</blockquote>

<div class="infobox">
Available in a <a href="../../git.html">git</a> repository <a href="../../branches.html">branch</a>.<br />
Branch: smcv/contrib/defcopyright<br />
Author: <span class="createlink">tschwinge</span><br />
</div>

<blockquote>
  <p>For <code>./gitremotes</code> convenience (taking the Linus approach to backups <img src="../../smileys/smile.png" alt=":-)" /> )
  I've added this to my git repository as a branch. No review, approval or
  ownership is implied, feel free to replace this with a branch in any other
  repository --<span class="createlink">smcv</span></p>
</blockquote>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">




<div class="tags">
Tags:

<a href="../../branches.html" rel="tag">branches</a>

<a href="../../git.html" rel="tag">git</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>