Learn about DokuWiki
Learn about DokuWiki
Compatible with DokuWiki
No compatibility info given!
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Extension name contains underscore, will not generate popularity points.
See http://peter.deweeses.net/doku.php?id=programming:wp_most_recent. : transfer more information here.
: Broken Download Link
Wordpress Most Recent Entries allows you to show the most recent entries from wordpress blogs in any Dokuwiki page. The display and many properties are completely customizable, and polish can be added. For example, dates can be displayed as “1 day 7 hours ago”, and summeries are ended with “[…]”. This is my first PHP project, so please give me tips! For bugs and tips (not gripes), email mailto:email@example.com. Please include the exact versions of dokuwiki and wordpress that you are using with a full description of any issue. (add a compatibility chart)
Configure wp_most_recent in your dokwiki installation under conf/local.php.
Since WordPress blogs are databased as dynamic, the semi-static nature of Dokuwiki rendering can get in the way.
At least one alias is required, but you can also configure the plugin to work with multiple WordPress databases. By default, the default alias should be named “default”. For each alias of name <aliasname>, include the following properties:
/These settings should mirror the configuration for a wordpress configuration. $conf['wp_most_recent']['db_alias']['<aliasname>']['host'] = "localhost"; $conf['wp_most_recent']['db_alias']['<aliasname>']['user'] = "db_user"; $conf['wp_most_recent']['db_alias']['<aliasname>']['pass'] = "db_password"; $conf['wp_most_recent']['db_alias']['<aliasname>']['sid'] = "wordpress"; $conf['wp_most_recent']['db_alias']['<aliasname>']['table_prefix'] = "wp_"; $conf['wp_most_recent']['db_alias']['<aliasname>']['baseurl'] = "http://<host>/blog";
Although any attribute can be defined by editing the wiki tags, a default attribute can be overridden using the following line:
<wp_most_recent [attribute1="value1" attribute2="value2" (...)]>[entry_template]</wp_most_recent>
Entry templates can include tokens, html (, and wiki syntax):
<p>@categories@ <b>@title@</b><br/>@time_ago@ - @author@<br/>@content@</p>
|blog||‘default’||A configured WordPress database alias.|
|category||none||A category constraint or no value to display all categories.|
|cat_delimeter||‘, '||A string to join categories if more than one exists.|
|cat_max||-1||The maximum number of categories to display for an entry or -1 for no limit.|
|cat_template||‘@name@’||A template for each category found. This is then used to replace @categories@. Must be HTML encoded! (”=", etc.)|
|content_max||128||The number of chars to truncate a content summary at or -1 for no limit. If needed, the content will be truncated at a word boundary and appended with ‘…’.|
|link||true||Add a link to the title? “true” or “false”|
|max||10||The maximum number of entries to display or -1 for no limit.|
Tokens are surrounded with ‘@’. Ex: @title@
|@author@||Entry author’s nickname|
|@categories@||Generated using the category template and delimeter|
|@content@||Entry content, formatted with the content_max attribute|
|@time_ago@||@date@ formatted as “1 hour, 7 minutes ago”|
|@title@||Entry title. May contain link using @url@.|
|@url@||Link to entry.|
|@nicename@||Category’s short name|
it's possible for dotclear 2 to do the same ?
this is offline, can someone upload the file to somewhere else?