Integrates any DokuWiki RSS feed with HTML formatted abstracts
{{htmlabs><feed_url>[&feed=options] [integration options]}}
feed.php
will work with the local RSS feed of the wiki being modifiedhttp://any_site.com/dokuwiki/feed.php
will work with any DokuWiki-generated RSS feed.
This plugin is made for to work with the feed.php
file available in the DokuWiki package, so most of options which are available for this feed are available for htmlabstract plugin too, except content
option, which is automatically set to HTML, and type
which is set to RSS 2.0.
These options (linkto, mode, num, minor) and their description are viewable on this page.
Note: these options must be separated by the &
sign, and set with =
sign, like in URL schemes.
By default, the feed will be integrated including
If you want to skip one of these details, just add one of the following options:
notitle
(A link to the page will still append at the end of the preview)noauthor
nodate
These options are available in the config page.
paragraph
– if enabled, htmlabstract will try to cut the abstract at the end of a paragraph, instead of the middle of a sentence/wordmaxlength
– maximal length of the abstract's texttextlink
– the text to be put at the end of abstracts as a link to the pagebg_color
– background color for abstracts{{htmlabs>feed.php?num=42&ns=misc notitle noauthor}}
will integrate the 42 last modifications in the namespace misc
, displaying the date of modification for each item.
{{htmlabs>feed.php?minor=1 nodate}}
will integrate the x
last modifications, including minor changes, and displaying the page's title and the author of the modification for each item. (x
being what you configured for your DokuWiki.)
Please feel free to add your own links if you use it!
2016/11/07
2011/07/10
2010/07/23
2010/07/22 From suggestions by Vincent Fleury
:
2009/12/15 As suggested by Mc.Prins
:
2009/11/28 As suggested by Anonymous
:
dformat
parameter available in configuration page. (Config page ⇒ Display Settings ⇒ dformat
)2009/11/16
div
to pad them.2009/11/15
Don't hesitate to post feedback (or to mail me if I don't seem to notice your remarks), and to post links to pages where this plugin is used! It's particularly motivating for enhancement!
And don't forget to use popularity plugin!
Bug:
cache file from htmlabstract's feed is in conflict with the usual DokuWiki feed
Fixes:
in feed.php change
// the feed is dynamic - we need a cache for each combo // (but most people just use the default feed so it's still effective) $cache = getCacheName(join('',array_values($opt)).$_SERVER['REMOTE_USER'],'.feed');
for
// the feed is dynamic - we need a cache for each combo // (but most people just use the default feed so it's still effective) $cache = getCacheName(join('',array_values($opt)).$_SERVER['REMOTE_USER'],'.htmlabstractfeed'); $cmod = @filemtime($cache); // 0 if not exists
Bug :
an 'FEED_ITEM_ADD' event is throw by feed.php from HTML abstract.
and this event is in conflict with normal feed.php from DokuWiki. then when you build an action plugin on 'FEED_ITEM_ADD' you get 2x more events ;)
Fixes :
comment thoses lines in feed.php
// finally add the item to the feed object, after handing it to registered plugins $evdata = array('item' => &$item, 'opt' => &$opt, 'ditem' => &$ditem, 'rss' => &$rss); $evt = new Doku_Event('FEED_ITEM_ADD', $evdata); if ($evt->advise_before()) .... $evt->advise_after(); // for completeness
fleury vincent for : http://www.tangueando.frProblems solved in last update, which where there's nofeed.php
added. Thanks for your suggests
Vince / {psycho.}
Thanks! Very useful addition. With this plugin, DokuWiki can get a CMS type of “frontpage”, solving the problem of what to put there. Would be nice if the date format and the “Read more” could be according to default language. Cheers!For the format and the link's text, I've planned to do that, but I'm currently under pressure at work, so I won't be able to work on before a few weeks . Thanks for the feedback and suggests,
Vince / {psycho.}Finally found time! Hope this is what you wanted . Cheers and thanks again!
Vince / {psycho.}
seems this plugin at the moment only works when DokuWiki is installed in the root of the server as you construct the path to your feed.php (line 65 in syntax.php) by using the [SERVER_NAME], you should use the proper DokuWiki variableDOKU_PLUGIN/htmlabstract/feed.php
for this (which you have included in the plugin). please change this ASAP because it's a really useful plugin! — mailto:mc [dot] prins [at] gmail [dot] comYou're right, I didn't consider the possibility to not install DokuWiki in the root. Fixed! Now uses DOKU_URL.
Vince / {psycho.}