Sophie

Sophie

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

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>aggregate</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>/ 

</span>
<span class="title">
aggregate

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p><span class="infobox">
Plugin: aggregate<br />
Author: <span class="createlink">Joey</span><br />
Included in ikiwiki: yes<br />
Enabled by default: no<br />
Included in <a href="./goodstuff.html">goodstuff</a>: no<br />
Currently enabled: no<br />
</span></p>

<p>This plugin allows content from other feeds to be aggregated into the
wiki. To specify feeds to aggregate, use the
<a href="../ikiwiki/directive/aggregate.html">aggregate</a> <a href="../ikiwiki/directive.html">directive</a>.</p>

<h2>requirements</h2>

<p>The <a href="./meta.html">meta</a> and <a href="./tag.html">tag</a> plugins are also recommended to be used with this
one. Either the <a href="./htmltidy.html">htmltidy</a> or <a href="./htmlbalance.html">htmlbalance</a> plugin is suggested, since
feeds can easily contain html problems, some of which these plugins can fix.</p>

<p>Installing the <a href="http://search.cpan.org/search?mode=dist&amp;query=LWPx%3A%3AParanoidAgent">LWPx::ParanoidAgent</a> Perl module is strongly
recommended. The <a href="http://search.cpan.org/search?mode=dist&amp;query=LWP">LWP</a> module can also be used, but is susceptible
to server-side request forgery.</p>

<h2>triggering aggregation</h2>

<p>You will need to run ikiwiki periodically from a cron job, passing it the
--aggregate parameter, to make it check for new posts. Here's an example
crontab entry:</p>

<pre><code>*/15 * * * * ikiwiki --setup my.wiki --aggregate --refresh
</code></pre>

<p>The plugin updates a file <code>.ikiwiki/aggregatetime</code> with the unix time stamp
when the next aggregation run could occur. (The file may be empty, if no
aggregation is required.) This can be integrated into more complex cron
jobs or systems to trigger aggregation only when needed.</p>

<p>Alternatively, you can allow <code>ikiwiki.cgi</code> to trigger the aggregation. You
should only need this if for some reason you cannot use cron, and instead
want to use a service such as <a href="http://webcron.org">WebCron</a>. To enable
this, turn on <code>aggregate_webtrigger</code> in your setup file. The url to
visit is <code>http://whatever/ikiwiki.cgi?do=aggregate_webtrigger</code>. Anyone
can visit the url to trigger an aggregation run, but it will only check
each feed if its <code>updateinterval</code> has passed.</p>

<h2>aggregated pages</h2>

<p>This plugin creates a page for each aggregated item. </p>

<p>If the <code>aggregateinternal</code> option is enabled in the setup file (which is
the default), aggregated pages are stored in the source directory with a
"._aggregated" extension. These pages cannot be edited by web users, and
do not generate first-class wiki pages. They can still be inlined into a
blog, but you have to use <code>internal</code> in <a href="../ikiwiki/pagespec.html">PageSpecs</a>,
like <code>internal(blog/*)</code>.</p>

<p>If <code>aggregateinternal</code> is disabled, you will need to enable the <a href="./html.html">html</a>
plugin as well as aggregate itself, since feed entries will be stored as
HTML, and as first-class wiki pages -- each one generates
a separate HTML page in the output, and they can even be edited. This
option is provided only for backwards compatability.</p>

<h2>cookies</h2>

<p>The <code>cookiejar</code> option can be used to configure how <a href="http://search.cpan.org/search?mode=dist&amp;query=LWP%3A%3AUserAgent">LWP::UserAgent</a>
handles cookies. The default is to read them from a file
<code>~/.ikiwiki/cookies</code>, which can be populated using standard perl cookie
tools like <a href="http://search.cpan.org/search?mode=dist&amp;query=HTTP%3A%3ACookies">HTTP::Cookies</a>.</p>

</div>







</div>

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

<div id="pageinfo">




<div class="tags">
Tags:

<a href="./type/special-purpose.html" rel="tag">type/special-purpose</a>

</div>



<div id="backlinks">
Links:

<a href="./camelcase.html">camelcase</a>

<a href="../features.html">features</a>

<a href="../security.html">security</a>

<a href="../tips/add_chatterbox_to_blog.html">tips/add chatterbox to blog</a>

<a href="../tips/upgrade_to_3.0.html">tips/upgrade to 3.0</a>

<a href="../tips/using_a_proxy.html">tips/using a proxy</a>

<a href="./transient.html">transient</a>

<a href="../usage.html">usage</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>