目录
Blog Plugin
—- plugin —-
description: Use DokuWiki as blogging tool
author : Dokufreaks (previous author: Michael Hamann, Gina Häußge, Michael Klier, Esther Brunner)
email : freaks@dokuwiki.org
type : syntax, action, helper
lastupdate : 2023-10-24
compatible : Librarian, Kaos, Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum
depends : include, pagelist
conflicts :
similar : blogtng, miniblog
tags : blog, news
downloadurl: https://github.com/dokufreaks/plugin-blog/archive/master.zip
bugtracker : https://github.com/dokufreaks/plugin-blog/issues
sourcerepo : https://github.com/dokufreaks/plugin-blog
Description
The Blog Plugin makes blogs in your wiki easily possible. The blog component shows the latest entries (pages) from a namespace in reverse chronological order. In this new version, the creation date is the sort key – no longer the date of the last non-minor modification as in previous versions. The archive component lists all entries that were written (created) in the given month.
Installation
| Download | plugin-blog.tgz |
|---|---|
| BundleHub | Configure your own DokuWiki blogsuite install package, consisting of all mandatory plugins plus any optional features you want to include: BlogSuite BundleHub Site seems to be down for sime time, here is the archived version if you want to see possible optional plugins & features. |
| Tips | If you intend to use this plugin be sure to take a look at the blogging tips page |
Syntax
Blog
| [namespace] | namespace for the blog; subspaces will be searched as well; * is the whole wiki, . is the same namespace as the page lies in | optional; default is the blog namespace set in the configuration |
|---|---|---|
| [number] | number of entries to show per page | optional; default is 5 |
| [flags] | flags are delimited by & | |
| all Include plugin flags are supported | optional | |
Form placement: topform/bottomform/noform | optional, default is topform |
|
Custom new-entry form title: newentrytitle=Custom title | optional, can also be set as a configuration option | |
Hide paging controls: nopagingcontrols | optional |
This includes a specified number of most recent blog entries from the given namespace into the current page. Below the entries a link to the page (permalink), the author, the creation date and the number of comments are shown. Link, author, date and comments info can be hidden. At the end of the blog a link to older entries lets you navigate in the history of the blog. At the very end, if you have enough rights to create new pages, a form for new blog entries is displayed.
Note that when the page with the blog syntax is in the specified namespace, content my be shown twice. At some point, the loop will be detected and stopped. You should therefore make sure that either the page with the listing is in a different namespace or use the excluded_pages-option to explicitly exclude the blog page from the blog listing.
Archive
| [namespace] | the namespace for which you want an archive list; * is the whole wiki, . is the same namespace as the page lies in | optional; default is the namespace specified in the configuration |
|---|---|---|
| [month] | the month for the archive list in YYYY-MM format; * for all pages | required |
| [flags] | pagelist flags delimited by &, see flags | optional |
| [username] | username of an author | optional |
Shows a table with all pages of the given namespace that were created in the specified month.
Creates an automatic archive.
Configuration and Settings
The blog plugin can be configured using the DokuWiki configuration manager available in the admin menu.
namespace | The default namespace which is used if no namespace was given in the syntax |
|---|---|
formposition | You can choose to display the new entry form either above or below the blog entries |
newentrytitle | Set a custom title for all new entry forms. This can also be set on individual blog forms. |
dateprefix | A date prefix that automatically gets added to pages created with the new entry form. You can use the options from the strftime PHP function; namespace separators work as well, e.g. %Y:%m%d |
sortkey | Defines how the blog entries are sorted. Available options are creation date, modification date, page name, page ID and page title (first headline) |
sortorder | Sort the blog entries ascending/descending |
excluded_pages | Exclude certain pages from the blog listing. Requires a regular expression. Use for example !(^|:)start$! in order to exclude start pages from all blog listings. To exclude both start and rightsidebar directly below :blog use !(^|:)blog:(start|rightsidebar)$! |
showhistogram | Display a histogram in normal archive mode (not for autoarchive) |
max_months | Maximum number of months to show in the histogram |
histogram_height | Height of the histogram (in pixels) |
Changes
* 2013-10-20: Translation updates, fix cache handling for empty blog listings
* 2013-03-27: Better cache handling for the archive syntax
- the syntax that lists everything till now correctly updates the cache now whenever a page is changed or a comment or linkback is added.
- the cache is not used anymore when it contains an archive listing with a page that the current user can't access. The excluded pages won't be included again automatically unless the cache expires for other reasons, the
~~NOCACHE~~macro can be used if this is needed.
Development
Change Log
- Merge pull request #126 from dokuwiki-translate/lang_update_848_17143… (2024/05/01 23:45)
- translation update (2024/04/29 14:20)
- Version upped (2023/10/25 05:50)
- Merge pull request #121 from fiwswe/fix_issue_120 (2023/10/25 01:51)
- Rename constructor (2023/10/24 18:10)
- Merge pull request #118 from dokuwiki-translate/lang_update_564_16764… (2023/02/17 03:25)
- translation update (2023/02/15 08:35)
- Merge pull request #117 from dokuwiki-translate/lang_update_551_16745… (2023/01/25 04:45)
Bugs / Feature Requests
Please report bugs or feature requests at the Bug tracker.
FAQ
Please also have a look at the blogging tips page!
My dates are shown wrong. What can I do?
Make sure you run the latest version of all required plugins and DokuWiki.
Is it possible to change the way the date is displayed?
Yes, the plugin uses the dformat option to format the date.
How can I alter the date of a blog post?
You can use the meta plugin to manually set the creation date (and modification date) in the page source, then select the modification date in the blog plugins order setting. An alternative solution would be to alter the timestamps of the created files.
Is it possible to show table of contents?
The table of contents is shown automatically (depending on the settings in DokuWiki itself) from version 2013-02-07 on.
The header is always a link to the page even though it's disabled in the include plugin settings
The blog plugin assumes that in the context of a blog the header should be a link. However from version 2013-02-26 on it is possible to disable this behavior by using the nolink-flag, the blog plugin now only sets a default without overriding the nolink flag.
Is it possible to show just the first lines of each post with a 'Read more' link to view the full post?
I think I solved myself.
In the blog mark, use the following flags
This will work if you add an H2 header (in the full post) where you want to make appear the 'Read more' link.
If you don't need or want an H2 header in your post, you can add a empty H2 header, just as a delimiter for the text you want to show in the Blog's headlines
the excluded_pages does not work
In the blog mark ,use the following flags
曹红婕:光华为炬 照见永恒——观《永恒的光华》有感
光华为炬 照见永恒——观《永恒的光华》有感 文 / 曹红婕
早年,婆婆常给我讲光华村的来历,这片土地因董光华烈士而得名。今年1月29日,我参加了乡宁县委老干部局组织的备受期待的本土影片《永恒的光华》内部放映,大厅内座无虚席。开映前,县委老干部局副局长、县政协退休领导、自费寻访烈士足迹的同志及制片人依次登台发言。制片人郑重宣布,影片将于2026年农历正月廿九——董光华烈士牺牲纪念日正式公映。
讲话完毕,灯光暗下,这部以董光华烈士为原型、本地取景、众多乡亲参演的影片徐徐展开,耳畔听过的故事与眼前鲜活的影像悄然交织,直抵心灵,带来深深的震撼与感动。
董光华,原名董贻光,改名光华,寓“光耀中华”之愿。他出身于运城万荣县一个书香门第,家境优渥,受父兄进步思想熏陶,自幼心系家国。从运城明日中学毕业后,经哥哥董贻度引荐,1937年冬远赴临汾参加山西新军集训。训练场上,他刻苦锤炼,磨砺意志;日记本里,他笔耕不辍,书写理想;报国之志,在知行合一中愈发纯粹坚定。年仅十七岁,他便宣誓加入中国共产党。
随后,他被派往乡宁县牛王庙担任二区区委书记,深入敌后开展革命工作。他走村入户宣传抗日主张,铁面无私惩治恶霸劣绅,将满腔热血倾注于救亡图存的伟大事业。1939年晋西事变爆发,阎锡山部队大肆搜捕地下党员,白色恐怖笼罩乡宁,董光华却毅然坚守阵地,在绝境中与敌人顽强周旋,从未有过半分退缩。1940年,因叛徒出卖,他为掩护小交通员不幸被捕。面对皮鞭、老虎凳、烙铁等酷刑,他受尽折磨、几度昏死,却始终守口如瓶、坚贞不屈,丝毫未泄露党的秘密。那年农历正月二十九,十九岁的董光华在蝉峪河前湾英勇就义,用年轻的生命兑现了“光耀中华”的誓言,以热血青春在乡宁大地上铸就了共产党人的铮铮铁骨。
为缅怀这位年轻英雄,1946年,政府将牛王庙更名为光华村,他牺牲的蝉峪河前湾改名烈士湾。“光华”二字从此深深烙印在这片土地上,成为一座不朽的精神丰碑。从前听婆婆讲述,只知是本地先烈,如今沉浸光影,才真切体会到信仰的千钧重量。十九岁本该是鲜衣怒马、畅享青春的年纪,董光华却舍弃安逸,为家国大义慨然赴死,用生命点亮了永恒的光华。这份赤诚与勇毅,穿越八十余载风雨,至今依旧滚烫炽热,叩击人心。
作为土生土长的乡宁人,我的人生早已与“光华”结下不解之缘:曾在光华中学就读一年,后又在光华中心小学执教十六载;婆家离光华村不过一公里,婆婆的娘家就是光华村。这份缘分并非偶然,而是融入血脉的使命与传承。董光华烈士以生命换来了今日的和平,他坚守信仰、宁死不屈的凛然气节,已成为乡宁人共同的精神底色,化作这片土地上生生不息的力量源泉。
以光为炬,照见永恒;以心传心,传承精神。董光华烈士留下的光华,是信仰之光、热血之光,更是希望之光。这光芒从未随时间流逝而黯淡,始终照亮我们前行的道路。作为乡宁儿女,我们当铭记历史,传颂英名,让英雄故事走进千家万户,让烈士精神浸润后人心田。愿我们都能在各自岗位上,将这份信仰淬炼的光芒,化作建设家乡、报效祖国的实际行动。从珍惜当下做起,以勤勉立身、以务实尽责,在平凡中践行不凡,在传承中续写新篇。
让这永恒的光华,在乡宁大地扎根,在华夏山河绵延,在岁月长河中熠熠生辉,永照来人!
作者简介:曹红婕,60后,东街小学退休教师,退休后乐于用文字记录生活点滴,感悟人生百态,愿与读者分享岁月沉淀下的故事与思考。
原文地址:https://mp.weixin.qq.com/s/9Vi1gtboaKvPmP8n7ampvA
2026-2-6 06:45:29
庆祝电视连续剧《乔家大院》开播二十周年文创门票设计大赛新闻发布会邀请函
举办单位:
全球设计师、艺术院校师生、文化创意爱好者以及所有热爱晋商文化、关注乔家大院的社会公众。我们不设局限,不立边框,期待每一位创作者用设计打破时光壁垒,用笔墨、用线条、用创意,将乔家的商道智慧、建筑美学等凝于方寸票券之上,让每一张门票都成为可观赏、可收藏、可传播的文化IP,让晋商精神、乔院文化在当代设计中焕发新生。 参赛对象
拟于2026年2月11日在乔家大院景区举行 “一部剧,一座院,二十年不变的晋商情怀” 庆祝电视连续剧《乔家大院》开播二十周年 乔家大院文化园区文创门票设计大赛新闻发布会 启动仪式
「大赛新闻发布会」报名链接
会议议程
2026年2月11日上午10:00正式开始。
第一项:中共祁县县委宣传部部长刘风燕致辞;
第二项:山西广播电视台编委、客户端和网台节目总监制徐文胜作“晋商精神传播的新时代必要性”主题致辞;
第三项:文化专家乔琰作“文艺创作中应该把握和突出哪些晋商精神和文化”主题致辞;
第四项:太原市文化产业协会常务副理事长范建彪就设计要求及评审标准进行说明;
第五项:太原师范学院设计系主任朱江对乔家大院设计元素进行阐述;
第六项:中共祁县县委宣传部部长刘风燕、祁县文化和旅游局党组书记、局长梁利斌、太原市文化产业协会常务副理事长范建彪等,共同按动启动球。
第七项:到会设计团队和企业代表入园采集设计元素。
#小程序:稿定H5/ebNr4GYxiEXWxoI
TabInclude Plugin
—- plugin —- description: Tab control for DokuWiki author : Ikuo Obataya email : I.Obataya@gmail.com type : syntax lastupdate : 2024-08-07 compatible : Kaos, “Jack Jackrum”, Weatherwax, Binky, “Ponder Stibbons”, Hrun, Greebo, Hogfather, Igor depends : conflicts : database2, hidden, tagfilter similar : include, displaywikipage, tabbox tags : navigation include ajax jQuery tabs
downloadurl: https://github.com/iobataya/dokuwiki-plugin-tabinclude/zipball/master bugtracker : https://github.com/iobataya/dokuwiki-plugin-tabinclude/issues sourcerepo : https://github.com/iobataya/dokuwiki-plugin-tabinclude/ donationurl:
screenshot_img: https://trello.com/1/cards/62f403603bede100bc15647e/attachments/62f4038a9b82b800b6280727/download/tabinclude-dokuwiki.jpg
Summary
This DokuWiki plugin creates a tab-control for selected wiki pages. By clicking a tab, a DokuWiki page appears on the site using AJAX.
Demonstration: http://symplus.edu-wiki.org/doku.php?id=tabinclude_plugin
Syntax
You can specify tab pages to show by listing separated by comma. There are three mode to display tabs.
{{tabinclude>page1,page2,page3, ...}}
| AJAX mode Selected tab is shown by using AJAX. No page transition. Some of Javascripts triggered by onLoad() doesn't work in tabs. |
{{tabembed>page1,page2,page3, ...}}
| Embedded mode All contents for tabs are embedded in the page. No page transition. Loading of the page may take long time. |
{{tablink>page1,page2,page3, ...}}
| Link mode Tabs are web links to navigate the page itself showing the selected tab page. This mode follows page transition. |
Alternative syntax
You can also specify tab pages by listing links. This syntax is available in only AJAX mode.
<tabbed> * page1 * page2 * ... </tabbed>
Initial page
Initial page just after loading is the first page of the list as default (page1 in the previous example). Also, the initial page can be defined with a prefix ' * ' (asterisk). The following example will show page2 at first.
{{tabinclude>page1,*page2,page3,..}}
Tab name
As default, a title of each tabs is the first heading of the page. If it is not found, page ID would be shown. You can also set a specific title in the tab by splitting with '|' (pipe). It is like a standard DokuWiki syntax to define a title of link.
{{tabinclude>page1|Top page,page2|Second page,page3,..}}
Appearance
The latest version is independent of jQuery tab UI. Combination of colors of text and background in the tab control are compliant with each template's colors written in lib/tpl/xxxx/style.ini. You can use this tab control in almost templates without destroying look & feel of them.
When you customize the style.ini file for entire style, then tab control follows the colors of it. For example, if you change __text__ color for both contents and the tab control. Further detailed styles are defined in lib/plugins/tabinclude/style.css.
The tab control showed good appearance with the following popular templates. :)
- dokuwiki/default
- monobook
- arctic
- arctic-mbo
- roundbox
- vector
Installation & setting
You can install this plugin with standard method in Admin→Manage Plugins. If you want to install manually, rename extracted zip folder to 'tabinclude' to place in lib/plugins/ directory.
You can configure settings in Admin→configuration to show/hide the followings.
- loading message
- initial page will be loaded by AJAX (only for AJAX mode)
- a link to the shown page at header
- a link to the shown page at footer
History
- (see further history in GitHub)
- 2013-02-05
- Tab control become independent on jQuery UI.
- Rewritten script.js converting from tw-sack to jQuery.
- CSS is compliant to each templates' color.
- localized to Japanese
- 2013-01-27
- Supported only recent version using jQuery UI. (Angua, Adolla Belle)
- 2008-10-13
- Vulnerability for XSS was fixed.
- ODT export has been supported.
Discussion
No Nesting
I didn't see it mentioned anywhere in the docs, I'll note here that { {tabinclude>}} syntax inside a page that also uses { {tabincluded>}} appears fine, but clicking tabs doesn't switch content.
with Authorlist Plugin problema
Tabinclude does not work correctly with the Authorlist plugin. It does not show the authors at all or shows them from the page on which the Tabinclude plug-in code is.
absolute addresses
Great tool! Hence there are still some possibilities to improve it, as
- only absolute addresses are supported
- “.” or “:” are not recognized
Possible solution: In file “syntax.php” replace…
$pages = explode(',',$match);
with…
$pages = explode(',',$match); for ($i=0;$i<count($pages);$i++) { $pages[$i] = trim($pages[$i]); if (strstr($match,".:")) { resolve_pageid(getNS($ID),$pages[$i],$exists); } }
Description: If you want to use relative addresses, there has to be a (leading) “.:”, so if you have a index.txt and a page1.txt in the same folder, you´d write: {{tabinclude>.:page1}} to load page1 as a tab. “.:..:” or “.:..:..:” should work either.
Notice: Spaces in the page list (e.g. {{tabinclude>.:page1 , .:page2 }} shouldn't be a problem.
Deshi
Thanks for practical suggestion. The latest archive has been patched at function 'render()'. (around line 56, syntax.php) — Ikuo Obataya 2008/07/09 13:58
Thanks for the nice plugin. Suggestion: It would be very handy to show currently selected tab with different background color and removed border-bottom line on tab. Second feature request: add ability to select first connecting page without changing order of tabs, something like this
{{tabinclude>playground:test1,playground:test2,wiki:syntax | S }}
where S is number (for example = 2) and define which page should be start on load.
| S}}
can be optional, then without it (| S) first page in list would start first.
Alex 2008/09/30 02:42
You should add, that it will only work for two languages: Japanese and English. And look out for additional spaces at the bottom of the files.
— Bernd M. Radowicz 2009/04/10 14:13
(Why is the security note still here? In the author's Download and details page it states: “2008-10-13 Vulnerability for XSS was fixed.” | HSD – 1-nov-2008)
security note was removed. — Ikuo Obataya 2008/11/26 14:05
—-
always showing full addresses
my tabs always show full addresses including the complete namespace-path - even when I use relative addressing with .: or without any :
any chance to get rid of this an make tabinclude only show the pagename without any namespace?
I'm running DokuWiki Release rc2009-01-26 with tabinclude 2008-10-13.
Any help appreciated.
Thomas Springer 2009/07/11
How about using the first heading ? This plugin pick up the first heading for each tab name.
Anyway I'll add some options for settings of tab appearance someday.
2009/11/26 I.Obataya
It doesn't show the pages
I'm trying to use the editformhelppage plugin for my DokuWiki installation with monobook template. I also installed this plugin because I want to have several help pages but I realized that this plugin doesn't work for me. I see the tabs but when I click on them I only see “connecting…” for a second.
Any idea?
Maialen Otaegi 2009/09/14
Exporting to ODT doesn't work as expected
Exporting to ODT was claimed in changelog, but when I tried to do it, it failed for the first try (there was some PHP warnings, I haven't saved them and don't see them again), and rendered includes pages out of style for the second try (as “plain text” instead of paragraphs, tables, etc., producing a mess of all text from that page).
Versions: DokuWiki 2009-12-25, ODT 2009-07-02.
How can I make it to render pages properly?
Nikita Kipriyanov 2010/01/08
Appears to have issues with Edit page buttons
It appears that there may be a problem with the ti_initpage variable which causes the buttons above the text area in the Edit page to not appear. Disabling the plugin appeared to fix the problem.
Tony Sutherland 14th February 2010
I can confirm the problem. - By turning off tab-include, buttons are back. Mrma
Can be confirmed here. Turned off all other plugins. As soon as tabinclude is activated, toolbar buttons are gone.
Download
I cannot download it, it seems the domain is no more avaible. Is it avaible somewhere else?
Yes, I found an alternate at http://symplus.edu-wiki.org/en/tabinclude_plugin. — Rik Blok 2011/02/25 07:48
Update http://symplus.edu-wiki.org/doku.php?id=en:tabinclude_plugin 2013-01-29, Joe
Add a cache
Hi I would like to add a cache of the pages.. this makes the load faster on second load: Simply change the code in script.js to
var tabincludeCache = new Array();
var tabincludePage = "null";
function pl_ti_onTabClicked(page){
if(page){
document.getElementById('ti_content').style.visibility='hidden';
document.getElementById('ti_loading').style.display='block';
tabincludePage = page;
if(tabincludeCache[page]) {
document.getElementById('ti_content').innerHTML = tabincludeCache[page];
document.getElementById('ti_loading').style.display ='none';
document.getElementById('ti_content').style.visibility = 'visible';
}else{
pl_ti.sack.onCompletion = plugin_ti_refreshcontent;
pl_ti.sack.URLString = '';
pl_ti.sack.runAJAX('call=content&page='+encodeURI(page));
}
}
}
function plugin_ti_refreshcontent(){
data = this.response;
document.getElementById('ti_content').innerHTML = data;
document.getElementById('ti_loading').style.display='none';
document.getElementById('ti_content').style.visibility='visible';
tabincludeCache[tabincludePage] = data;
}
best Simon-Shlomo Poil
jquery problem
When I include jquery javascript, it causes tabinclude to not load the initial page. Clicking on the tabs works properly, it's just the initial display when the page is first loaded. — serenewaffles 2012/01/20 04:32
This problem is unavoidable under angua because it includes jQuery by default. — serenewaffles 2012/01/28 21:19
Angua: first Tab won't open on load
Since installing Angua I have also a serious problem that the first tab on our primary page is not shown, i.e. remains unopened unless you actively click on it. It either stops me migrating to Angua or I will have to find another concept for the 6-Tab primary page. This behaviour happens not only with Monobook but also Default and Vector templates. I have tried temporarily disabling/re-enabling tabinclude to no avail. I'm not aware that I am using jQuery elsewhere on these pages? I do use the Box plugin on them but have also tried disabling this without any improvement. Pity, great plugin, hope someone posts a fix one day. — grockle 2012/02/09 17:00
It works for me under Angua + Arctic1) template. Demo. The first tab is shown on page load. — Rik Blok 2012/02/11 20:24How is your template “slightly modified”? What modifications were made? Did those modifications affect tabinclude? After modifying my template, I got the plugin to work, but that doesn't make this behavior any less of a bug. — serenewaffles 2012/02/17 21:09
Angua with jQuery
I added new version of tabinclude plugin using jQuery tab UI for Angua (or later) users.
Please choose tabinclude-jquery.zip at the top of this page instead of using 'Download' button.
— iobataya 2012/07/11 13:07
TIPS for tabinclude-jquery version
It will not work well except default template because it can not find html of the page to be shown in tab. A quick solution for other template user, please try to modify your jscript.js of this plugin as follows:
- jscript.js
jQuery(function(){ jQuery('#jquery-tabs').tabs( { ajaxOptions: {dataFilter:function(data){ //prevent call find() before the ajax request receives a response? jQuery(data).append('<br /><p>tabinclude</p>'); var bd = jQuery(data).find('.page'); // for template arctic-mbo and actic if (bd..length == 0){bd = jQuery(data).find('.right_page');} if (bd..length == 0){bd = jQuery(data).find('.left_page');} // for template monobook or vecter if (bd..length == 0){bd = jQuery(data).find('#bodyContent');} // nm replacement likely not work except default template? //var nm = jQuery(data).find(".pagename").html().replace('do=backlink','').replace(/title=".*"/,'title="Open this tab"'); return bd.html();} }, cache: true } ) });
This worked at least my DokuWiki installation. — s.sahara 2012-07-25
Thanks for checking and improving. The problem was that java script couldn't find id of element of page contents for various templates. — iobataya
Works with Weatherwax
Since I upgraded to Weatherwax a few days ago this plugin hasn't been working. It displays the tabs but they're non-functional. Presumably a Javascript error? I've tried updating but it didn't help. Is it just me? Thanks. — Rik Blok 2013/07/03 02:26
Sorry, my mistake. Tabinclude works fine under Weatherwax. The problem was another plugin using deprecated Javascript. (One of edittable, refnotes, or svgedit – I'm not sure which one yet.) — Rik Blok 2013/07/04 23:52
“…or svgedit. I'm not sure which one yet.” The plugin will not work with “Cell Background plugin (cellbg)” too.
NOT WORKING I added this plugin after I upgraded to Weatherwax. It has NEVER worked. It displays the tabs but they're non-functional. I do not have any of the above referenced plugins installed. I am also trying to use this with another plugin for discussions. Is it just me? What am I missing? Thanks. — Jeff K 2013/11/21 16:45
CONFIRMED
For me I just see random links bulleted. Doesn't work. Don't have conflicting plugins installed. Never been able to make this work
CONFIRMED AGAIN**
I test the plugin on the test wiki and I also can't switch the tabs. The default tab is shown correctly.
2014/04/11 09:28
2026-2-5 19:16:44
Include Plugin
—- plugin —- description: Include another wiki page into the current one author : Dokufreaks (previous authors: Michael Hamann, Gina Häußge, Michael Klier, Esther Brunner) email : freaks@dokuwiki.org type : syntax, helper lastupdate : 2025-07-22 updatemessage: Since the release of June 2025, minimal PHP 8 is required. compatible : Greebo, Frusterick Manners, Hogfather, Igor, Jack Jackrum, Kaos, Librarian depends : conflicts : mediasyntax, PhotoGallery similar : wst tags : include, embed
downloadurl: https://github.com/dokufreaks/plugin-include/tarball/master bugtracker : https://github.com/dokufreaks/plugin-include/issues sourcerepo : https://github.com/dokufreaks/plugin-include/ donationurl:
The 2018-11-29 release fixes a security issue where ACLs were ignored for pages in namespace includes with DokuWiki version Greebo. If you rely on ACL checks in namespace includes or allow edits from users who must not see all pages, please upgrade ASAP!
This is a handy plugin with which you can include another wiki page into the current one. Just including certain sections of a page or even whole namespaces is supported, too.
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
If you need support for older version of DokuWiki you can try the 2009-11-27 version of the include plugin, but please note that this old version has known bugs. If you need support for older versions of DokuWiki in the current include plugin version please open a feature request in the issue tracker.
Examples
{{page>wiki:syntax#Tables}} will include the section about tables of the syntax page.
{{namespace>project_foo}} will include all pages in the project_foo namespace.
{{page>blog:mypage&tags&comments}} will include the page blog:mypage and show the tags from the tag plugin and the number of comments from the discussion plugin. Both plugins need to be installed for this example.
{{tagtopic>testtag}} will include all pages with the tag testtag, the tag plugin needs to be installed for this example.
Syntax
The plugin offers four syntaxes, {{page>...}} , {{section>...}} , {{namespace>...}} and {{tagtopic>...}}.
Section is aimed more at including sections, page at including whole pages and namespace at including whole namespaces. Tagtopic includes all pages with a tagtopic tag.
{{page>[id]&[flags]}}
{{section>[id]#[section]&[flags]}}
{{namespace>[namespace]#[section]&[flags]}}
{{tagtopic>[tag]&[flags]}}
| [id] | page ID of the page to include; some macros are possible; shortcuts are resolved (:, ., ..) | required |
|---|---|---|
| [section] | limits the included page to a specific section and its subsections | optional; default is the whole page , this can be used with namespace (if matches) |
| [tag] | include pages with tag topic tag, requires tag | required |
| [flags] | flags delimited by &, see flags | optional |
Configuration and Flags
The plugin can be configured in the DokuWiki configuration manager available in the admin menu. These settings also affect the blog plugin which uses the include plugin to generate the blog page. For most settings there are flags that allow to override the setting. Some features are only available as flag.
| Configuration option | Flags | Description |
|---|---|---|
noheader | noheader/ (show)header | Don't display the header of the inserted section |
firstseconly | firstsec(tion)only/ fullpage | Display only the first section of the included page |
readmore | readmore/noreadmore | Show “read more” link in case of firstsection only |
showtaglogos | - | Show/hide an image for the first tag (if the page has tags) |
showfooter | footer/nofooter | Show/hide page footer below the included page |
showlink | link/nolink | Makes the first headline of a included page/section a link to the included page/section |
showpermalink | permalink/ nopermalink | Show/hide a permalink to the included page in the page footer |
showdate | date/nodate | Show/hide creation date of the page in the page footer |
showmdate | mdate/nomdate | Show/hide modification date of the page in the page footer |
showuser | user/nouser | Show/hide user name of the page creator in the page footer |
showcomments | comments/nocomments | Show/hide number of comments in the page footer (requires the discussion plugin) |
showlinkbacks | linkbacks/nolinkbacks | Show/hide number of linkbacks in the page footer (requires the linkback or backlinks plugin) |
showtags | tags/notags | Show/hide tags in the page footer (requires the tag plugin) |
showeditbtn | editbtn or editbutton/noeditbtn or noeditbutton | Show/hide edit buttons (section edit buttons, edit button below the included page) |
doredirect | redirect/noredirect | Redirect back to original page after an edit |
usernamespace | - | Namespace for user pages (see showuser configuration) (default user) |
doindent | indent/noindent | Indent included pages relative to the section of the page they get included in |
linkonly | linkonly/nolinkonly or include_content | Display only a link instead of the whole page content |
title | title/notitle | Show the title instead of the page id |
pageexists | pageexists/ nopageexists | Only list page ids of existing pages (see existlink) |
| - | existlink | Display a link and do so only if page page-id exists (combination of linkonly and pageexists) |
parlink | parlink/noparlink | (Don't) put the link into a paragraph environment (for inline lists) |
order | order=OPTION | Ordering criteria for namespace includes, possible options: page ID (id), title (title), date created (created), date modified (modified), indexmenu sort order (indexmenu), custom sort order using the {{include_n>[number]}} on the pages that are included similar to the indexmenu tags (custom). |
rsort | rsort/sort | Reverse the sort order in namespace includes. |
depth | depth=DEPTH | The maximum depth of subnamespaces of which pages are included in namespace includes, default is 1 for only the specified namespace, 0 is for unlimited depth. |
| - | inline | Don't close/open sections when including a page. This flag should be used when the include syntax is used inside other syntax elements like lists or tables or inside other plugin syntax. |
| - | beforeeach=ENTITY/ aftereach=ENTITY | Display an entity before/after each included page. The entity is printed outside the section/include environment, this is mainly for adding custom HTML code (when the text isn't recognized as entity it is directly displayed but escaped so you can't directly use HTML code here). |
safeindex | - | Don't index metadata of included pages that are non-public. This can cause problems with other plugins that use the metadata index and can be safely disabled in wikis where the permissions of the included pages match the permissions of the parent pages. |
| - | exclude=/REGEX/ | Regular expression to exclude certain pages, will match on full page ID. E.g. to exclude ns:page_name use /ns:page_name/ as value. Use a regex tester to debug complicated patterns. |
Examples:
{{page>concept&firstseconly&footer}}
{{page>mypage&noindent}}
{{namespace>myns&order=modified}}
{{namespace>myns&exclude=/myns:subns:.+|myns:page/}}
Macros
Simple macros are possible to serve a page on a per user or per date base. These are:
| @USER@ | username |
|---|---|
| @NAME@ | full name of user |
| @GROUP@ | first group the user belongs to |
| @YEAR@ | 4-digit year |
| @MONTH@ | 2-digit month |
| @WEEK@ | 2-digit ISO week number |
| @DAY@ | 2-digit day |
| @DATE<expr>@ | use a calculated date instead of today in date macros |
<expr> in @DATE<expr>@ can be one of:
| PYEAR | previous year |
|---|---|
| NYEAR | next year |
| PMONTH | previous month |
| NMONTH | next month |
| PWEEK | previous week |
| NWEEK | next week |
| YESTERDAY | yesterday's date |
| TOMORROW | tomorrow's date |
Examples:
{{page>@MONTH@:@DAY@:birthdays}}
includes the page birthdays in namespace <month>:<day>: eg. 10:15: birthdays for the 15th of october.
{{page>@USER@:message}}
includes the page message from the namespace <user> of the logged in user
{{page>foo@DATENWEEK@@YEAR@:@WEEK@}}
includes the page <weekno> from the namespace foo<year> with next week's date e.g. foo2012:01 for the 27th of december 2011
Demo
There is currently no demo site available.
Use of the plugin is shown in this video here: https://www.youtube.com/watch?v=6RO8TSZBedU&t=8m47s
Video not available (2021-03-20)
Development
Change Log
- Version 2026-11-19 released (2026/11/19 17:58)
- Fix escaping and warnings in footer (2026/11/19 17:56)
- Version upped (2026/10/28 16:54)
- Merge pull request #416 from annda/fix-metadata-reset (2026/10/28 16:27)
- Fix metadata reset (2026/10/28 00:53)
- Merge pull request #365 from dokufreaks/styles (2026/10/27 17:25)
- Merge pull request #413 from dokuwiki-translate/lang_update_1335_1780… (2026/06/04 03:33)
- Translation update (sk) (2026/06/04 00:35)
Bugs / Feature Requests
Please report bugs or feature requests at the Bug tracker.
Known Bugs and Issues
There are currently no known bugs and issues for which no workarounds exist (see FAQ).
FAQ
The include plugin breaks the wrap and folded (and similar) plugins when used inside them
This can be solved by using the inline flag of the include plugin. This mode strips all section from the included page and should solve issues with invalid HTML and thus no longer working wrap and folded plugins. This also solves problems with invalid HTML code when the include plugin is used inside tables or other syntax environments. When the page contains headers this might look strange depending on the template.
Addendum
If you are using the Wrap Plugin on both the page you are using the {{section>target&inline}} from and the page target, you need to make sure any pair of WRAP tags on target are either entirely within the included section or entirely outside of the section. For instance, including the FOO section into another page might break the other page:
<WRAP right 35%> ==== FOO ==== Content goes here </WRAP> ==== BAR ====
FOO contains the </WRAP> end-tag, but not a corresponding start-tag. Thus, if the use of include is within a WRAPed block, that WRAP block will be ended early.
The simplest solution is to never use WRAP on both pages, only on included pages or only on pages that include others – however, that's not very realistic or useful. The other (somewhat brittle) solution is to make the section on target end before the WRAP close tag. You can do this by inserting a dokuwiki section header (at the same level) before the close tag, but after the section's content. However, I've not been able to determine if this is an intended behavior of dokuwiki, or if this is undocumented behavior and therefore subject to change at any time.
So, to make the above example work correctly, it should look like this:
<WRAP right 35%> ==== BAZ ==== Content goes here ==== ==== </WRAP> ==== QUX ====
Now {{section>whatever#BAZ}} will work fine.
Is it possible to include the same page twice?
Yes, this is possible since the 2011-01-01 version and hasn't been possible before. But you can't include the same page again inside a page in order to avoid endless recursion (and things like page1 > page2 > page1 doesn't work, too).
Does the include plugin respect ACLs of the included pages?
The include plugin tries its best to respect ACLs and it should work under normal circumstances. Whenever the view permissions of included pages change the cache is purged and the included pages are adapted according to the current permissions. Due to limitations in the caching system this might fail if a page is accessed very frequently with changing permissions. If this is an issue for you you can disable caching of the affected pages using the ~~NOCACHE~~ syntax. As always there is no guarantee that everything works as expected, please test if everything works and report a bug if you should notice anything unexpected.
As of version 2012-11-24, there is a new security feature called safeindex that is turned on by default, it's purpose is to prevent the indexer from indexing metadata of included pages that aren't public. That way links that are in protected pages won't be visible as link of a public page in the backlinks list.
Why does the include plugin first close the previous section and opens it again afterwards?
This is done because if there are headers in the included page they will close the current section. As the include plugin has its own container div this would produce strange results and possibly invalid HTML. You can use the inline flag in order to avoid this (but then also all sections of the included page are removed).
Has the include plugin feature XYZ/when will you implement XYZ?
The include plugin has many feature and is very flexible and I'm willing to add more features if they fit in the general purpose of the include plugin. However there is no guarantee that I will implement a certain feature at a certain time, this depends completely on my available time and my mood. You can add your wishes to the issue tracker.
How to avoid inclusion of whole page content if section does not exist?
Adding the flag firstsectiononly could be one solution. At least in regard to avoiding very large content being displayed. Adding a header at the source page and using tools like the hiddenheader might solve things at the source page, but in this case seems to conflict and break certain include flag-tasks.
Discussion
Please don't report any bugs or feature requests here but instead use the bug tracker!
If you miss a comment you've created please have a look at the FAQ section and the issue tracker, I might have moved them there, if you can't find a bug report anymore that bug should be solved, please try the current version and report it again if it still doesn't work.
Discussions in DW-forum
- include plugin: development in direction to use it as a kind database tool, feature inspirations.
User comments
footer.php:
// author if ($flags['user']) { $author = $meta['creator']; if ($author) { $userpage = cleanID($this->getConf('usernamespace').':'.$author);
replaced to include the real user name in the link:
// author if ($flags['user']) { $author = $meta['creator']; $login = $meta["last_change"]['user']; if ($author) { $userpage = cleanID($this->getConf('usernamespace').':'.$login);
User Namespace
Hi, I'm using userpagecreate plugin's to create user's namespace instead of user's page. Then, to link correctly the include's page with his last member who edit it, i rewrite the previous lines like this :
if ($flags['user']) { $login = $meta['last_change']['user']; $author = $auth->getUserData($login); $author = $author['name']; if ($author && $login) { if (strstr($this->getConf('usernamespace'), '@USER@')) { $userpage = cleanID(str_replace('@USER@', $login, $this->getConf('usernamespace'))); } else { $userpage = cleanID($this->getConf('usernamespace').':'.$login); } resolve_pageid(getNS($ID), $userpage, $exists); $class = ($exists ? 'wikilink1' : 'wikilink2'); $link = array( 'url' => wl($userpage), 'title' => $userpage, 'name' => hsc($author), 'target' => $conf['target']['wiki'], 'class' => $class.' url fn', 'pre' => '<span class="vcard author">', 'suf' => '</span>', ); $xhtml[] = $renderer->_formatLink($link); } }
and change my conf into :
$conf['plugin']['include']['usernamespace'] = 'user:@USER@:start';
standard configuration still works.
$conf['plugin']['include']['usernamespace'] = 'user:';
If the @USER@ wildcard is using, replace it by the login name, otherwise, use the standard include's plugin rule.
— garlik 2011/10/24 14:10
— garlik 2011/11/07 11:32 - Summmary : Update the code. will display the right modif author.
showlink vs link flag
When including a page, the flag to make the first heading a link is link, not showlink. This confused me at first because I assumed the flags would have the same names as the configuration options. Example (displays the first section of a product page, with the page heading as a link):
{{page>products:sample&firstseconly&link}}
Controlling header size in included pages
By default, the headers in included pages start one level lower than the last header in the current page. For example, if the section before the include is a level-three header, then a level-6 header in the included page will become a wimply little level-2.
If you want higher-level headers, you can trick the plugin by putting an empty header above the include. In the following example, a level-6 header in the included page will show up as level-5:
=== Some Section ===
Stuff
====== ======
{{page>somepage}}
- Zioth
Including a paragraph or excerpt from a page
See the Hidden Header plugin. -Zioth
2012-01-25 "Angua"
Just tested with the current version and it works for me. — renux 2012/02/10 12:44
Include from same page?
Using it on my knowledge wiki and it works well. However, I'd like to be able to include a section from the current page - for use with the ItemTable Plugin (along with something to hide the inline text of course. — Julian Knight 2012-03-23
Does it still work? Can't make it on my wiki page.
— Piotr 2017-10-04
Align Feature
It'll be great to be able to align included pages. Because a lot of people are using this feature for infobox purposes and some would love to be able to control the alignment of the
{{page>people:obama}}
using the core syntax by adding spaces before of after the syntax.
— James 2014-05-13 20:38
Exclude Feature
It would be nice, if there would be an “exclude” option. When we use the namespace feature, we don't want certain pages in the included in the resulting page: for example exclude “sidebar” or “start”.
— Manuel 2014-10-30 02:42
I would appreciate that feature too.
— Florian 2015-07-18 18:43
Same here, the possibility of the exclusion of listed namespaces would be much appreciated.
— Tommy 2016-2-19 21:18
I totally agree.
—- Chris 2016-2-21 09:12
blog plugin supports Exclude Feature
— HsinTang 2016-07-26
I created a PR for an exclude option! Testing or adding tests would be appreciated.
— sleeping 2020-04-11 07:57
The exclude flag has been merged!
— sleeping 2020-04-16 19:28
Empty Section
We are using the plugin a lot for technical documentation. If we include a named section (#title), and that section doesn't exist, the plugin includes the whole page. This really annoying. Would it be possible to change the behavior so that if a section doesn't exist it doesn't include anything (the same as when a page doesn't exist), please?
— Simon 2015-02-02 14:50
Just thought of asking about this issue. Is there any possibility to avoid that? — Samana Johann 2018-08-20 19:45
No Other data
I love this plugin but I have a question. How do I completely remove all other data included, such as user, mdate, etc.? If I do them as individual flags I still see the grey bar under the included content. There must be a flag that just excludes all the content, right? Am I just missing it somehow?
Thanks!
— Max 2017.03.21
Hi there, I think you are looking for
{{page>ID&nouser&nodate&nofooter}}
Namespace lists using &linkonly and &beforeeach/&aftereach
I've been trying to format a list of pages generated using namespace> with &linkonly - ideally as a simple unordered list. I'm adding this paragraph to help others searching for help because it took me several hours to find out that it is not possible and this is a known issue logged as a feature request.
— vt306 2017.03.29
Thanks to Michael Hamann for the advice. The pagequery plugin is the solution for this.
— vt306 2017.04.06
Option to pass revision of main page to includes pages
We are currently using DokuWiki for technical documentation. Within DokuWiki we use the 'date_at' function to go back to an old revision to see which version of the page a customer recieved. It would be very usefull if the included pages would honour the revision of the main page. To clarify: if the main page is shown at a specific revision, the included pages should also be shown at the last revision before the date of the main page. Would something like that be possible to incorporate?
Thanks in advance! Ruud
Translations
If it is of use, a paticular Translation of the Plugin's info page into German can be taken from here. — Samana Johann 2018-08-20 12:11
Display search results on a page?
Hi, I was wondering if it is possible to display the search result of a term or phrase on a page?
- OYMYO
Passing parameters/arguments
I think it would be cool if this plugin supported options/arguments like in MediaWiki.
Something like this:
- page1.txt
Test by {{{1}}}
- page2.txt
{{page>:page1|Me}}
And page2 would be parsed into:
Test by Me
— hasha2982 2020-08-19 17:12
Sorry, didn't know about the Templater Plugin — hasha2982 2020-08-19 17:25
2026-2-5 19:15:53
Imagelink Plugin
—- plugin —- description: Create nice navigation links with image and title author : peterfromearth email : coder@peterfromearth.de type : syntax lastupdate : 2020-02-29 compatible : depends : conflicts : similar : tags : link image navigation
downloadurl: https://github.com/peterfromearth/dokuwiki-plugin-imagelink/zipball/master bugtracker : https://github.com/peterfromearth/dokuwiki-plugin-imagelink/issues sourcerepo : https://github.com/peterfromearth/dokuwiki-plugin-imagelink/ donationurl:
screenshot_img : https://raw.githubusercontent.com/peterfromearth/dokuwiki-plugin-imagelink/master/example/screenshot.png
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples/Usage
See the plugin in action here.
<imagelink?title=Impressionen>
[[:impressionen|{{ :intro:links:getreide.jpg?linkonly |}}]]
</imagelink>
Syntax
<imagelink?title="TITLE NAME">
[[...|{{...}}]]
</imagelink>
Use image with links see image_links
Configuration and Settings
Development
Change Log
- version 2020-02-29 (2020/03/01 01:59)
- Initial commit (2020/03/01 01:56)
Known Bugs and Issues
ToDo/Wish List
FAQ
Discussion
2026-2-5 19:15:08
曹红婕:光华为炬 照见永恒——观《永恒的光华》有感
光华为炬 照见永恒——观《永恒的光华》有感 文 / 曹红婕
早年,婆婆常给我讲光华村的来历,这片土地因董光华烈士而得名。今年1月29日,我参加了乡宁县委老干部局组织的备受期待的本土影片《永恒的光华》内部放映,大厅内座无虚席。开映前,县委老干部局副局长、县政协退休领导、自费寻访烈士足迹的同志及制片人依次登台发言。制片人郑重宣布,影片将于2026年农历正月廿九——董光华烈士牺牲纪念日正式公映。
讲话完毕,灯光暗下,这部以董光华烈士为原型、本地取景、众多乡亲参演的影片徐徐展开,耳畔听过的故事与眼前鲜活的影像悄然交织,直抵心灵,带来深深的震撼与感动。
董光华,原名董贻光,改名光华,寓“光耀中华”之愿。他出身于运城万荣县一个书香门第,家境优渥,受父兄进步思想熏陶,自幼心系家国。从运城明日中学毕业后,经哥哥董贻度引荐,1937年冬远赴临汾参加山西新军集训。训练场上,他刻苦锤炼,磨砺意志;日记本里,他笔耕不辍,书写理想;报国之志,在知行合一中愈发纯粹坚定。年仅十七岁,他便宣誓加入中国共产党。
随后,他被派往乡宁县牛王庙担任二区区委书记,深入敌后开展革命工作。他走村入户宣传抗日主张,铁面无私惩治恶霸劣绅,将满腔热血倾注于救亡图存的伟大事业。1939年晋西事变爆发,阎锡山部队大肆搜捕地下党员,白色恐怖笼罩乡宁,董光华却毅然坚守阵地,在绝境中与敌人顽强周旋,从未有过半分退缩。1940年,因叛徒出卖,他为掩护小交通员不幸被捕。面对皮鞭、老虎凳、烙铁等酷刑,他受尽折磨、几度昏死,却始终守口如瓶、坚贞不屈,丝毫未泄露党的秘密。那年农历正月二十九,十九岁的董光华在蝉峪河前湾英勇就义,用年轻的生命兑现了“光耀中华”的誓言,以热血青春在乡宁大地上铸就了共产党人的铮铮铁骨。
为缅怀这位年轻英雄,1946年,政府将牛王庙更名为光华村,他牺牲的蝉峪河前湾改名烈士湾。“光华”二字从此深深烙印在这片土地上,成为一座不朽的精神丰碑。从前听婆婆讲述,只知是本地先烈,如今沉浸光影,才真切体会到信仰的千钧重量。十九岁本该是鲜衣怒马、畅享青春的年纪,董光华却舍弃安逸,为家国大义慨然赴死,用生命点亮了永恒的光华。这份赤诚与勇毅,穿越八十余载风雨,至今依旧滚烫炽热,叩击人心。
作为土生土长的乡宁人,我的人生早已与“光华”结下不解之缘:曾在光华中学就读一年,后又在光华中心小学执教十六载;婆家离光华村不过一公里,婆婆的娘家就是光华村。这份缘分并非偶然,而是融入血脉的使命与传承。董光华烈士以生命换来了今日的和平,他坚守信仰、宁死不屈的凛然气节,已成为乡宁人共同的精神底色,化作这片土地上生生不息的力量源泉。
以光为炬,照见永恒;以心传心,传承精神。董光华烈士留下的光华,是信仰之光、热血之光,更是希望之光。这光芒从未随时间流逝而黯淡,始终照亮我们前行的道路。作为乡宁儿女,我们当铭记历史,传颂英名,让英雄故事走进千家万户,让烈士精神浸润后人心田。愿我们都能在各自岗位上,将这份信仰淬炼的光芒,化作建设家乡、报效祖国的实际行动。从珍惜当下做起,以勤勉立身、以务实尽责,在平凡中践行不凡,在传承中续写新篇。
让这永恒的光华,在乡宁大地扎根,在华夏山河绵延,在岁月长河中熠熠生辉,永照来人!
作者简介:曹红婕,60后,东街小学退休教师,退休后乐于用文字记录生活点滴,感悟人生百态,愿与读者分享岁月沉淀下的故事与思考。
原文地址:https://mp.weixin.qq.com/s/9Vi1gtboaKvPmP8n7ampvA
2026-2-6 06:45:29
庆祝电视连续剧《乔家大院》开播二十周年文创门票设计大赛新闻发布会邀请函
举办单位:
全球设计师、艺术院校师生、文化创意爱好者以及所有热爱晋商文化、关注乔家大院的社会公众。我们不设局限,不立边框,期待每一位创作者用设计打破时光壁垒,用笔墨、用线条、用创意,将乔家的商道智慧、建筑美学等凝于方寸票券之上,让每一张门票都成为可观赏、可收藏、可传播的文化IP,让晋商精神、乔院文化在当代设计中焕发新生。 参赛对象
拟于2026年2月11日在乔家大院景区举行 “一部剧,一座院,二十年不变的晋商情怀” 庆祝电视连续剧《乔家大院》开播二十周年 乔家大院文化园区文创门票设计大赛新闻发布会 启动仪式
「大赛新闻发布会」报名链接
会议议程
2026年2月11日上午10:00正式开始。
第一项:中共祁县县委宣传部部长刘风燕致辞;
第二项:山西广播电视台编委、客户端和网台节目总监制徐文胜作“晋商精神传播的新时代必要性”主题致辞;
第三项:文化专家乔琰作“文艺创作中应该把握和突出哪些晋商精神和文化”主题致辞;
第四项:太原市文化产业协会常务副理事长范建彪就设计要求及评审标准进行说明;
第五项:太原师范学院设计系主任朱江对乔家大院设计元素进行阐述;
第六项:中共祁县县委宣传部部长刘风燕、祁县文化和旅游局党组书记、局长梁利斌、太原市文化产业协会常务副理事长范建彪等,共同按动启动球。
第七项:到会设计团队和企业代表入园采集设计元素。
#小程序:稿定H5/ebNr4GYxiEXWxoI
TabInclude Plugin
—- plugin —- description: Tab control for DokuWiki author : Ikuo Obataya email : I.Obataya@gmail.com type : syntax lastupdate : 2024-08-07 compatible : Kaos, “Jack Jackrum”, Weatherwax, Binky, “Ponder Stibbons”, Hrun, Greebo, Hogfather, Igor depends : conflicts : database2, hidden, tagfilter similar : include, displaywikipage, tabbox tags : navigation include ajax jQuery tabs
downloadurl: https://github.com/iobataya/dokuwiki-plugin-tabinclude/zipball/master bugtracker : https://github.com/iobataya/dokuwiki-plugin-tabinclude/issues sourcerepo : https://github.com/iobataya/dokuwiki-plugin-tabinclude/ donationurl:
screenshot_img: https://trello.com/1/cards/62f403603bede100bc15647e/attachments/62f4038a9b82b800b6280727/download/tabinclude-dokuwiki.jpg
Summary
This DokuWiki plugin creates a tab-control for selected wiki pages. By clicking a tab, a DokuWiki page appears on the site using AJAX.
Demonstration: http://symplus.edu-wiki.org/doku.php?id=tabinclude_plugin
Syntax
You can specify tab pages to show by listing separated by comma. There are three mode to display tabs.
{{tabinclude>page1,page2,page3, ...}}
| AJAX mode Selected tab is shown by using AJAX. No page transition. Some of Javascripts triggered by onLoad() doesn't work in tabs. |
{{tabembed>page1,page2,page3, ...}}
| Embedded mode All contents for tabs are embedded in the page. No page transition. Loading of the page may take long time. |
{{tablink>page1,page2,page3, ...}}
| Link mode Tabs are web links to navigate the page itself showing the selected tab page. This mode follows page transition. |
Alternative syntax
You can also specify tab pages by listing links. This syntax is available in only AJAX mode.
<tabbed> * page1 * page2 * ... </tabbed>
Initial page
Initial page just after loading is the first page of the list as default (page1 in the previous example). Also, the initial page can be defined with a prefix ' * ' (asterisk). The following example will show page2 at first.
{{tabinclude>page1,*page2,page3,..}}
Tab name
As default, a title of each tabs is the first heading of the page. If it is not found, page ID would be shown. You can also set a specific title in the tab by splitting with '|' (pipe). It is like a standard DokuWiki syntax to define a title of link.
{{tabinclude>page1|Top page,page2|Second page,page3,..}}
Appearance
The latest version is independent of jQuery tab UI. Combination of colors of text and background in the tab control are compliant with each template's colors written in lib/tpl/xxxx/style.ini. You can use this tab control in almost templates without destroying look & feel of them.
When you customize the style.ini file for entire style, then tab control follows the colors of it. For example, if you change __text__ color for both contents and the tab control. Further detailed styles are defined in lib/plugins/tabinclude/style.css.
The tab control showed good appearance with the following popular templates. :)
- dokuwiki/default
- monobook
- arctic
- arctic-mbo
- roundbox
- vector
Installation & setting
You can install this plugin with standard method in Admin→Manage Plugins. If you want to install manually, rename extracted zip folder to 'tabinclude' to place in lib/plugins/ directory.
You can configure settings in Admin→configuration to show/hide the followings.
- loading message
- initial page will be loaded by AJAX (only for AJAX mode)
- a link to the shown page at header
- a link to the shown page at footer
History
- (see further history in GitHub)
- 2013-02-05
- Tab control become independent on jQuery UI.
- Rewritten script.js converting from tw-sack to jQuery.
- CSS is compliant to each templates' color.
- localized to Japanese
- 2013-01-27
- Supported only recent version using jQuery UI. (Angua, Adolla Belle)
- 2008-10-13
- Vulnerability for XSS was fixed.
- ODT export has been supported.
Discussion
No Nesting
I didn't see it mentioned anywhere in the docs, I'll note here that { {tabinclude>}} syntax inside a page that also uses { {tabincluded>}} appears fine, but clicking tabs doesn't switch content.
with Authorlist Plugin problema
Tabinclude does not work correctly with the Authorlist plugin. It does not show the authors at all or shows them from the page on which the Tabinclude plug-in code is.
absolute addresses
Great tool! Hence there are still some possibilities to improve it, as
- only absolute addresses are supported
- “.” or “:” are not recognized
Possible solution: In file “syntax.php” replace…
$pages = explode(',',$match);
with…
$pages = explode(',',$match); for ($i=0;$i<count($pages);$i++) { $pages[$i] = trim($pages[$i]); if (strstr($match,".:")) { resolve_pageid(getNS($ID),$pages[$i],$exists); } }
Description: If you want to use relative addresses, there has to be a (leading) “.:”, so if you have a index.txt and a page1.txt in the same folder, you´d write: {{tabinclude>.:page1}} to load page1 as a tab. “.:..:” or “.:..:..:” should work either.
Notice: Spaces in the page list (e.g. {{tabinclude>.:page1 , .:page2 }} shouldn't be a problem.
Deshi
Thanks for practical suggestion. The latest archive has been patched at function 'render()'. (around line 56, syntax.php) — Ikuo Obataya 2008/07/09 13:58
Thanks for the nice plugin. Suggestion: It would be very handy to show currently selected tab with different background color and removed border-bottom line on tab. Second feature request: add ability to select first connecting page without changing order of tabs, something like this
{{tabinclude>playground:test1,playground:test2,wiki:syntax | S }}
where S is number (for example = 2) and define which page should be start on load.
| S}}
can be optional, then without it (| S) first page in list would start first.
Alex 2008/09/30 02:42
You should add, that it will only work for two languages: Japanese and English. And look out for additional spaces at the bottom of the files.
— Bernd M. Radowicz 2009/04/10 14:13
(Why is the security note still here? In the author's Download and details page it states: “2008-10-13 Vulnerability for XSS was fixed.” | HSD – 1-nov-2008)
security note was removed. — Ikuo Obataya 2008/11/26 14:05
—-
always showing full addresses
my tabs always show full addresses including the complete namespace-path - even when I use relative addressing with .: or without any :
any chance to get rid of this an make tabinclude only show the pagename without any namespace?
I'm running DokuWiki Release rc2009-01-26 with tabinclude 2008-10-13.
Any help appreciated.
Thomas Springer 2009/07/11
How about using the first heading ? This plugin pick up the first heading for each tab name.
Anyway I'll add some options for settings of tab appearance someday.
2009/11/26 I.Obataya
It doesn't show the pages
I'm trying to use the editformhelppage plugin for my DokuWiki installation with monobook template. I also installed this plugin because I want to have several help pages but I realized that this plugin doesn't work for me. I see the tabs but when I click on them I only see “connecting…” for a second.
Any idea?
Maialen Otaegi 2009/09/14
Exporting to ODT doesn't work as expected
Exporting to ODT was claimed in changelog, but when I tried to do it, it failed for the first try (there was some PHP warnings, I haven't saved them and don't see them again), and rendered includes pages out of style for the second try (as “plain text” instead of paragraphs, tables, etc., producing a mess of all text from that page).
Versions: DokuWiki 2009-12-25, ODT 2009-07-02.
How can I make it to render pages properly?
Nikita Kipriyanov 2010/01/08
Appears to have issues with Edit page buttons
It appears that there may be a problem with the ti_initpage variable which causes the buttons above the text area in the Edit page to not appear. Disabling the plugin appeared to fix the problem.
Tony Sutherland 14th February 2010
I can confirm the problem. - By turning off tab-include, buttons are back. Mrma
Can be confirmed here. Turned off all other plugins. As soon as tabinclude is activated, toolbar buttons are gone.
Download
I cannot download it, it seems the domain is no more avaible. Is it avaible somewhere else?
Yes, I found an alternate at http://symplus.edu-wiki.org/en/tabinclude_plugin. — Rik Blok 2011/02/25 07:48
Update http://symplus.edu-wiki.org/doku.php?id=en:tabinclude_plugin 2013-01-29, Joe
Add a cache
Hi I would like to add a cache of the pages.. this makes the load faster on second load: Simply change the code in script.js to
var tabincludeCache = new Array();
var tabincludePage = "null";
function pl_ti_onTabClicked(page){
if(page){
document.getElementById('ti_content').style.visibility='hidden';
document.getElementById('ti_loading').style.display='block';
tabincludePage = page;
if(tabincludeCache[page]) {
document.getElementById('ti_content').innerHTML = tabincludeCache[page];
document.getElementById('ti_loading').style.display ='none';
document.getElementById('ti_content').style.visibility = 'visible';
}else{
pl_ti.sack.onCompletion = plugin_ti_refreshcontent;
pl_ti.sack.URLString = '';
pl_ti.sack.runAJAX('call=content&page='+encodeURI(page));
}
}
}
function plugin_ti_refreshcontent(){
data = this.response;
document.getElementById('ti_content').innerHTML = data;
document.getElementById('ti_loading').style.display='none';
document.getElementById('ti_content').style.visibility='visible';
tabincludeCache[tabincludePage] = data;
}
best Simon-Shlomo Poil
jquery problem
When I include jquery javascript, it causes tabinclude to not load the initial page. Clicking on the tabs works properly, it's just the initial display when the page is first loaded. — serenewaffles 2012/01/20 04:32
This problem is unavoidable under angua because it includes jQuery by default. — serenewaffles 2012/01/28 21:19
Angua: first Tab won't open on load
Since installing Angua I have also a serious problem that the first tab on our primary page is not shown, i.e. remains unopened unless you actively click on it. It either stops me migrating to Angua or I will have to find another concept for the 6-Tab primary page. This behaviour happens not only with Monobook but also Default and Vector templates. I have tried temporarily disabling/re-enabling tabinclude to no avail. I'm not aware that I am using jQuery elsewhere on these pages? I do use the Box plugin on them but have also tried disabling this without any improvement. Pity, great plugin, hope someone posts a fix one day. — grockle 2012/02/09 17:00
It works for me under Angua + Arctic2) template. Demo. The first tab is shown on page load. — Rik Blok 2012/02/11 20:24How is your template “slightly modified”? What modifications were made? Did those modifications affect tabinclude? After modifying my template, I got the plugin to work, but that doesn't make this behavior any less of a bug. — serenewaffles 2012/02/17 21:09
Angua with jQuery
I added new version of tabinclude plugin using jQuery tab UI for Angua (or later) users.
Please choose tabinclude-jquery.zip at the top of this page instead of using 'Download' button.
— iobataya 2012/07/11 13:07
TIPS for tabinclude-jquery version
It will not work well except default template because it can not find html of the page to be shown in tab. A quick solution for other template user, please try to modify your jscript.js of this plugin as follows:
- jscript.js
jQuery(function(){ jQuery('#jquery-tabs').tabs( { ajaxOptions: {dataFilter:function(data){ //prevent call find() before the ajax request receives a response? jQuery(data).append('<br /><p>tabinclude</p>'); var bd = jQuery(data).find('.page'); // for template arctic-mbo and actic if (bd..length == 0){bd = jQuery(data).find('.right_page');} if (bd..length == 0){bd = jQuery(data).find('.left_page');} // for template monobook or vecter if (bd..length == 0){bd = jQuery(data).find('#bodyContent');} // nm replacement likely not work except default template? //var nm = jQuery(data).find(".pagename").html().replace('do=backlink','').replace(/title=".*"/,'title="Open this tab"'); return bd.html();} }, cache: true } ) });
This worked at least my DokuWiki installation. — s.sahara 2012-07-25
Thanks for checking and improving. The problem was that java script couldn't find id of element of page contents for various templates. — iobataya
Works with Weatherwax
Since I upgraded to Weatherwax a few days ago this plugin hasn't been working. It displays the tabs but they're non-functional. Presumably a Javascript error? I've tried updating but it didn't help. Is it just me? Thanks. — Rik Blok 2013/07/03 02:26
Sorry, my mistake. Tabinclude works fine under Weatherwax. The problem was another plugin using deprecated Javascript. (One of edittable, refnotes, or svgedit – I'm not sure which one yet.) — Rik Blok 2013/07/04 23:52
“…or svgedit. I'm not sure which one yet.” The plugin will not work with “Cell Background plugin (cellbg)” too.
NOT WORKING I added this plugin after I upgraded to Weatherwax. It has NEVER worked. It displays the tabs but they're non-functional. I do not have any of the above referenced plugins installed. I am also trying to use this with another plugin for discussions. Is it just me? What am I missing? Thanks. — Jeff K 2013/11/21 16:45
CONFIRMED
For me I just see random links bulleted. Doesn't work. Don't have conflicting plugins installed. Never been able to make this work
CONFIRMED AGAIN**
I test the plugin on the test wiki and I also can't switch the tabs. The default tab is shown correctly.
2014/04/11 09:28
2026-2-5 19:16:44
Include Plugin
—- plugin —- description: Include another wiki page into the current one author : Dokufreaks (previous authors: Michael Hamann, Gina Häußge, Michael Klier, Esther Brunner) email : freaks@dokuwiki.org type : syntax, helper lastupdate : 2025-07-22 updatemessage: Since the release of June 2025, minimal PHP 8 is required. compatible : Greebo, Frusterick Manners, Hogfather, Igor, Jack Jackrum, Kaos, Librarian depends : conflicts : mediasyntax, PhotoGallery similar : wst tags : include, embed
downloadurl: https://github.com/dokufreaks/plugin-include/tarball/master bugtracker : https://github.com/dokufreaks/plugin-include/issues sourcerepo : https://github.com/dokufreaks/plugin-include/ donationurl:
The 2018-11-29 release fixes a security issue where ACLs were ignored for pages in namespace includes with DokuWiki version Greebo. If you rely on ACL checks in namespace includes or allow edits from users who must not see all pages, please upgrade ASAP!
This is a handy plugin with which you can include another wiki page into the current one. Just including certain sections of a page or even whole namespaces is supported, too.
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
If you need support for older version of DokuWiki you can try the 2009-11-27 version of the include plugin, but please note that this old version has known bugs. If you need support for older versions of DokuWiki in the current include plugin version please open a feature request in the issue tracker.
Examples
{{page>wiki:syntax#Tables}} will include the section about tables of the syntax page.
{{namespace>project_foo}} will include all pages in the project_foo namespace.
{{page>blog:mypage&tags&comments}} will include the page blog:mypage and show the tags from the tag plugin and the number of comments from the discussion plugin. Both plugins need to be installed for this example.
{{tagtopic>testtag}} will include all pages with the tag testtag, the tag plugin needs to be installed for this example.
Syntax
The plugin offers four syntaxes, {{page>...}} , {{section>...}} , {{namespace>...}} and {{tagtopic>...}}.
Section is aimed more at including sections, page at including whole pages and namespace at including whole namespaces. Tagtopic includes all pages with a tagtopic tag.
{{page>[id]&[flags]}}
{{section>[id]#[section]&[flags]}}
{{namespace>[namespace]#[section]&[flags]}}
{{tagtopic>[tag]&[flags]}}
| [id] | page ID of the page to include; some macros are possible; shortcuts are resolved (:, ., ..) | required |
|---|---|---|
| [section] | limits the included page to a specific section and its subsections | optional; default is the whole page , this can be used with namespace (if matches) |
| [tag] | include pages with tag topic tag, requires tag | required |
| [flags] | flags delimited by &, see flags | optional |
Configuration and Flags
The plugin can be configured in the DokuWiki configuration manager available in the admin menu. These settings also affect the blog plugin which uses the include plugin to generate the blog page. For most settings there are flags that allow to override the setting. Some features are only available as flag.
| Configuration option | Flags | Description |
|---|---|---|
noheader | noheader/ (show)header | Don't display the header of the inserted section |
firstseconly | firstsec(tion)only/ fullpage | Display only the first section of the included page |
readmore | readmore/noreadmore | Show “read more” link in case of firstsection only |
showtaglogos | - | Show/hide an image for the first tag (if the page has tags) |
showfooter | footer/nofooter | Show/hide page footer below the included page |
showlink | link/nolink | Makes the first headline of a included page/section a link to the included page/section |
showpermalink | permalink/ nopermalink | Show/hide a permalink to the included page in the page footer |
showdate | date/nodate | Show/hide creation date of the page in the page footer |
showmdate | mdate/nomdate | Show/hide modification date of the page in the page footer |
showuser | user/nouser | Show/hide user name of the page creator in the page footer |
showcomments | comments/nocomments | Show/hide number of comments in the page footer (requires the discussion plugin) |
showlinkbacks | linkbacks/nolinkbacks | Show/hide number of linkbacks in the page footer (requires the linkback or backlinks plugin) |
showtags | tags/notags | Show/hide tags in the page footer (requires the tag plugin) |
showeditbtn | editbtn or editbutton/noeditbtn or noeditbutton | Show/hide edit buttons (section edit buttons, edit button below the included page) |
doredirect | redirect/noredirect | Redirect back to original page after an edit |
usernamespace | - | Namespace for user pages (see showuser configuration) (default user) |
doindent | indent/noindent | Indent included pages relative to the section of the page they get included in |
linkonly | linkonly/nolinkonly or include_content | Display only a link instead of the whole page content |
title | title/notitle | Show the title instead of the page id |
pageexists | pageexists/ nopageexists | Only list page ids of existing pages (see existlink) |
| - | existlink | Display a link and do so only if page page-id exists (combination of linkonly and pageexists) |
parlink | parlink/noparlink | (Don't) put the link into a paragraph environment (for inline lists) |
order | order=OPTION | Ordering criteria for namespace includes, possible options: page ID (id), title (title), date created (created), date modified (modified), indexmenu sort order (indexmenu), custom sort order using the {{include_n>[number]}} on the pages that are included similar to the indexmenu tags (custom). |
rsort | rsort/sort | Reverse the sort order in namespace includes. |
depth | depth=DEPTH | The maximum depth of subnamespaces of which pages are included in namespace includes, default is 1 for only the specified namespace, 0 is for unlimited depth. |
| - | inline | Don't close/open sections when including a page. This flag should be used when the include syntax is used inside other syntax elements like lists or tables or inside other plugin syntax. |
| - | beforeeach=ENTITY/ aftereach=ENTITY | Display an entity before/after each included page. The entity is printed outside the section/include environment, this is mainly for adding custom HTML code (when the text isn't recognized as entity it is directly displayed but escaped so you can't directly use HTML code here). |
safeindex | - | Don't index metadata of included pages that are non-public. This can cause problems with other plugins that use the metadata index and can be safely disabled in wikis where the permissions of the included pages match the permissions of the parent pages. |
| - | exclude=/REGEX/ | Regular expression to exclude certain pages, will match on full page ID. E.g. to exclude ns:page_name use /ns:page_name/ as value. Use a regex tester to debug complicated patterns. |
Examples:
{{page>concept&firstseconly&footer}}
{{page>mypage&noindent}}
{{namespace>myns&order=modified}}
{{namespace>myns&exclude=/myns:subns:.+|myns:page/}}
Macros
Simple macros are possible to serve a page on a per user or per date base. These are:
| @USER@ | username |
|---|---|
| @NAME@ | full name of user |
| @GROUP@ | first group the user belongs to |
| @YEAR@ | 4-digit year |
| @MONTH@ | 2-digit month |
| @WEEK@ | 2-digit ISO week number |
| @DAY@ | 2-digit day |
| @DATE<expr>@ | use a calculated date instead of today in date macros |
<expr> in @DATE<expr>@ can be one of:
| PYEAR | previous year |
|---|---|
| NYEAR | next year |
| PMONTH | previous month |
| NMONTH | next month |
| PWEEK | previous week |
| NWEEK | next week |
| YESTERDAY | yesterday's date |
| TOMORROW | tomorrow's date |
Examples:
{{page>@MONTH@:@DAY@:birthdays}}
includes the page birthdays in namespace <month>:<day>: eg. 10:15: birthdays for the 15th of october.
{{page>@USER@:message}}
includes the page message from the namespace <user> of the logged in user
{{page>foo@DATENWEEK@@YEAR@:@WEEK@}}
includes the page <weekno> from the namespace foo<year> with next week's date e.g. foo2012:01 for the 27th of december 2011
Demo
There is currently no demo site available.
Use of the plugin is shown in this video here: https://www.youtube.com/watch?v=6RO8TSZBedU&t=8m47s
Video not available (2021-03-20)
Development
Change Log
- Version 2026-11-19 released (2026/11/19 17:58)
- Fix escaping and warnings in footer (2026/11/19 17:56)
- Version upped (2026/10/28 16:54)
- Merge pull request #416 from annda/fix-metadata-reset (2026/10/28 16:27)
- Fix metadata reset (2026/10/28 00:53)
- Merge pull request #365 from dokufreaks/styles (2026/10/27 17:25)
- Merge pull request #413 from dokuwiki-translate/lang_update_1335_1780… (2026/06/04 03:33)
- Translation update (sk) (2026/06/04 00:35)
Bugs / Feature Requests
Please report bugs or feature requests at the Bug tracker.
Known Bugs and Issues
There are currently no known bugs and issues for which no workarounds exist (see FAQ).
FAQ
The include plugin breaks the wrap and folded (and similar) plugins when used inside them
This can be solved by using the inline flag of the include plugin. This mode strips all section from the included page and should solve issues with invalid HTML and thus no longer working wrap and folded plugins. This also solves problems with invalid HTML code when the include plugin is used inside tables or other syntax environments. When the page contains headers this might look strange depending on the template.
Addendum
If you are using the Wrap Plugin on both the page you are using the {{section>target&inline}} from and the page target, you need to make sure any pair of WRAP tags on target are either entirely within the included section or entirely outside of the section. For instance, including the FOO section into another page might break the other page:
<WRAP right 35%> ==== FOO ==== Content goes here </WRAP> ==== BAR ====
FOO contains the </WRAP> end-tag, but not a corresponding start-tag. Thus, if the use of include is within a WRAPed block, that WRAP block will be ended early.
The simplest solution is to never use WRAP on both pages, only on included pages or only on pages that include others – however, that's not very realistic or useful. The other (somewhat brittle) solution is to make the section on target end before the WRAP close tag. You can do this by inserting a dokuwiki section header (at the same level) before the close tag, but after the section's content. However, I've not been able to determine if this is an intended behavior of dokuwiki, or if this is undocumented behavior and therefore subject to change at any time.
So, to make the above example work correctly, it should look like this:
<WRAP right 35%> ==== BAZ ==== Content goes here ==== ==== </WRAP> ==== QUX ====
Now {{section>whatever#BAZ}} will work fine.
Is it possible to include the same page twice?
Yes, this is possible since the 2011-01-01 version and hasn't been possible before. But you can't include the same page again inside a page in order to avoid endless recursion (and things like page1 > page2 > page1 doesn't work, too).
Does the include plugin respect ACLs of the included pages?
The include plugin tries its best to respect ACLs and it should work under normal circumstances. Whenever the view permissions of included pages change the cache is purged and the included pages are adapted according to the current permissions. Due to limitations in the caching system this might fail if a page is accessed very frequently with changing permissions. If this is an issue for you you can disable caching of the affected pages using the ~~NOCACHE~~ syntax. As always there is no guarantee that everything works as expected, please test if everything works and report a bug if you should notice anything unexpected.
As of version 2012-11-24, there is a new security feature called safeindex that is turned on by default, it's purpose is to prevent the indexer from indexing metadata of included pages that aren't public. That way links that are in protected pages won't be visible as link of a public page in the backlinks list.
Why does the include plugin first close the previous section and opens it again afterwards?
This is done because if there are headers in the included page they will close the current section. As the include plugin has its own container div this would produce strange results and possibly invalid HTML. You can use the inline flag in order to avoid this (but then also all sections of the included page are removed).
Has the include plugin feature XYZ/when will you implement XYZ?
The include plugin has many feature and is very flexible and I'm willing to add more features if they fit in the general purpose of the include plugin. However there is no guarantee that I will implement a certain feature at a certain time, this depends completely on my available time and my mood. You can add your wishes to the issue tracker.
How to avoid inclusion of whole page content if section does not exist?
Adding the flag firstsectiononly could be one solution. At least in regard to avoiding very large content being displayed. Adding a header at the source page and using tools like the hiddenheader might solve things at the source page, but in this case seems to conflict and break certain include flag-tasks.
Discussion
Please don't report any bugs or feature requests here but instead use the bug tracker!
If you miss a comment you've created please have a look at the FAQ section and the issue tracker, I might have moved them there, if you can't find a bug report anymore that bug should be solved, please try the current version and report it again if it still doesn't work.
Discussions in DW-forum
- include plugin: development in direction to use it as a kind database tool, feature inspirations.
User comments
footer.php:
// author if ($flags['user']) { $author = $meta['creator']; if ($author) { $userpage = cleanID($this->getConf('usernamespace').':'.$author);
replaced to include the real user name in the link:
// author if ($flags['user']) { $author = $meta['creator']; $login = $meta["last_change"]['user']; if ($author) { $userpage = cleanID($this->getConf('usernamespace').':'.$login);
User Namespace
Hi, I'm using userpagecreate plugin's to create user's namespace instead of user's page. Then, to link correctly the include's page with his last member who edit it, i rewrite the previous lines like this :
if ($flags['user']) { $login = $meta['last_change']['user']; $author = $auth->getUserData($login); $author = $author['name']; if ($author && $login) { if (strstr($this->getConf('usernamespace'), '@USER@')) { $userpage = cleanID(str_replace('@USER@', $login, $this->getConf('usernamespace'))); } else { $userpage = cleanID($this->getConf('usernamespace').':'.$login); } resolve_pageid(getNS($ID), $userpage, $exists); $class = ($exists ? 'wikilink1' : 'wikilink2'); $link = array( 'url' => wl($userpage), 'title' => $userpage, 'name' => hsc($author), 'target' => $conf['target']['wiki'], 'class' => $class.' url fn', 'pre' => '<span class="vcard author">', 'suf' => '</span>', ); $xhtml[] = $renderer->_formatLink($link); } }
and change my conf into :
$conf['plugin']['include']['usernamespace'] = 'user:@USER@:start';
standard configuration still works.
$conf['plugin']['include']['usernamespace'] = 'user:';
If the @USER@ wildcard is using, replace it by the login name, otherwise, use the standard include's plugin rule.
— garlik 2011/10/24 14:10
— garlik 2011/11/07 11:32 - Summmary : Update the code. will display the right modif author.
showlink vs link flag
When including a page, the flag to make the first heading a link is link, not showlink. This confused me at first because I assumed the flags would have the same names as the configuration options. Example (displays the first section of a product page, with the page heading as a link):
{{page>products:sample&firstseconly&link}}
Controlling header size in included pages
By default, the headers in included pages start one level lower than the last header in the current page. For example, if the section before the include is a level-three header, then a level-6 header in the included page will become a wimply little level-2.
If you want higher-level headers, you can trick the plugin by putting an empty header above the include. In the following example, a level-6 header in the included page will show up as level-5:
=== Some Section ===
Stuff
====== ======
{{page>somepage}}
- Zioth
Including a paragraph or excerpt from a page
See the Hidden Header plugin. -Zioth
2012-01-25 "Angua"
Just tested with the current version and it works for me. — renux 2012/02/10 12:44
Include from same page?
Using it on my knowledge wiki and it works well. However, I'd like to be able to include a section from the current page - for use with the ItemTable Plugin (along with something to hide the inline text of course. — Julian Knight 2012-03-23
Does it still work? Can't make it on my wiki page.
— Piotr 2017-10-04
Align Feature
It'll be great to be able to align included pages. Because a lot of people are using this feature for infobox purposes and some would love to be able to control the alignment of the
{{page>people:obama}}
using the core syntax by adding spaces before of after the syntax.
— James 2014-05-13 20:38
Exclude Feature
It would be nice, if there would be an “exclude” option. When we use the namespace feature, we don't want certain pages in the included in the resulting page: for example exclude “sidebar” or “start”.
— Manuel 2014-10-30 02:42
I would appreciate that feature too.
— Florian 2015-07-18 18:43
Same here, the possibility of the exclusion of listed namespaces would be much appreciated.
— Tommy 2016-2-19 21:18
I totally agree.
—- Chris 2016-2-21 09:12
blog plugin supports Exclude Feature
— HsinTang 2016-07-26
I created a PR for an exclude option! Testing or adding tests would be appreciated.
— sleeping 2020-04-11 07:57
The exclude flag has been merged!
— sleeping 2020-04-16 19:28
Empty Section
We are using the plugin a lot for technical documentation. If we include a named section (#title), and that section doesn't exist, the plugin includes the whole page. This really annoying. Would it be possible to change the behavior so that if a section doesn't exist it doesn't include anything (the same as when a page doesn't exist), please?
— Simon 2015-02-02 14:50
Just thought of asking about this issue. Is there any possibility to avoid that? — Samana Johann 2018-08-20 19:45
No Other data
I love this plugin but I have a question. How do I completely remove all other data included, such as user, mdate, etc.? If I do them as individual flags I still see the grey bar under the included content. There must be a flag that just excludes all the content, right? Am I just missing it somehow?
Thanks!
— Max 2017.03.21
Hi there, I think you are looking for
{{page>ID&nouser&nodate&nofooter}}
Namespace lists using &linkonly and &beforeeach/&aftereach
I've been trying to format a list of pages generated using namespace> with &linkonly - ideally as a simple unordered list. I'm adding this paragraph to help others searching for help because it took me several hours to find out that it is not possible and this is a known issue logged as a feature request.
— vt306 2017.03.29
Thanks to Michael Hamann for the advice. The pagequery plugin is the solution for this.
— vt306 2017.04.06
Option to pass revision of main page to includes pages
We are currently using DokuWiki for technical documentation. Within DokuWiki we use the 'date_at' function to go back to an old revision to see which version of the page a customer recieved. It would be very usefull if the included pages would honour the revision of the main page. To clarify: if the main page is shown at a specific revision, the included pages should also be shown at the last revision before the date of the main page. Would something like that be possible to incorporate?
Thanks in advance! Ruud
Translations
If it is of use, a paticular Translation of the Plugin's info page into German can be taken from here. — Samana Johann 2018-08-20 12:11
Display search results on a page?
Hi, I was wondering if it is possible to display the search result of a term or phrase on a page?
- OYMYO
Passing parameters/arguments
I think it would be cool if this plugin supported options/arguments like in MediaWiki.
Something like this:
- page1.txt
Test by {{{1}}}
- page2.txt
{{page>:page1|Me}}
And page2 would be parsed into:
Test by Me
— hasha2982 2020-08-19 17:12
Sorry, didn't know about the Templater Plugin — hasha2982 2020-08-19 17:25
2026-2-5 19:15:53
Imagelink Plugin
—- plugin —- description: Create nice navigation links with image and title author : peterfromearth email : coder@peterfromearth.de type : syntax lastupdate : 2020-02-29 compatible : depends : conflicts : similar : tags : link image navigation
downloadurl: https://github.com/peterfromearth/dokuwiki-plugin-imagelink/zipball/master bugtracker : https://github.com/peterfromearth/dokuwiki-plugin-imagelink/issues sourcerepo : https://github.com/peterfromearth/dokuwiki-plugin-imagelink/ donationurl:
screenshot_img : https://raw.githubusercontent.com/peterfromearth/dokuwiki-plugin-imagelink/master/example/screenshot.png
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples/Usage
See the plugin in action here.
<imagelink?title=Impressionen>
[[:impressionen|{{ :intro:links:getreide.jpg?linkonly |}}]]
</imagelink>
Syntax
<imagelink?title="TITLE NAME">
[[...|{{...}}]]
</imagelink>
Use image with links see image_links
Configuration and Settings
Development
Change Log
- version 2020-02-29 (2020/03/01 01:59)
- Initial commit (2020/03/01 01:56)
Known Bugs and Issues
ToDo/Wish List
FAQ
Discussion
2026-2-5 19:15:08
all above flags does not work, the index pages in sub namespace is still included .
This is global configuration, you should configure it inConfiguration Manager. — Siyuan Liu 2023-08-17
Discussion
Please report bugs or feature requests at the Bug tracker.
Is it possible to make a blog in one namespace be in ascending order, and a blog in a different namespace to be in descending order?
2026-2-5 15:55:33

