群组信息 私有

Moderators

创作者

最新发布
发布在 PHP

Bootstrap3是一个高度可定制的基于Bootstrap的DokuWiki模板,具有响应性,适用于所有设备(移动设备,平板电脑,台式机等)。

功能和特点

  • HTML5和CSS3
  • 基于Bootstrap 3.x
  • Glyphicons 和 FontAwesome图标
  • AnchorJS支持
  • 可高度定制
  • 丰富的HTML和DokuWiki钩子
  • 侧边栏支持(左侧和右侧)
  • 主题切换器

插件统合

  • Bootstrap Wrapper Plugin
  • Diagram Plugin
  • Discussion Plugin
  • Edittable Plugin
  • Explain Plugin
  • Inlinetoc Plugin
  • Linkback Plugin
  • Move Plugin
  • Overlay Plugin
  • Publish Plugin
  • Rack Plugin
  • Tagging Plugin
  • Tags Plugin
  • Translation Plugin
  • User Home-Page Plugin
  • Wrap Plugin - Tabs
  • TplInc Plugin

设定

主题

项目名项目说明值类型缺省值可选值
bootstrapThemeBootstrap主题multichoicedefaultdefault
optional
custom
bootswatch
bootswatchTheme从Bootswatch.com选择主题multichoiceyeticerulean
cosmo
cyborg
darkly
flatly
journal
lumen
paper
readable
sandstone
simplex
solar
slate
spacelab
superhero
united
yeti
customTheme插入自定义主题的URLstringnull
showThemeSwitcher在导航栏中显示Bootswatch.com主题切换器onoff0
hideInThemeSwitcher在主题切换器中隐藏主题multicheckboxnullcerulean
cosmo
cyborg
darkly
flatly
journal
lumen
paper
readable
sandstone
simplex
solar
slate
spacelab
superhero
united
yeti
themeByNamespace按名字空间指定主题onoff0
项目名项目说明值类型缺省值
sidebarPositionDokuWiki Sidebar position (left or right)multichoiceleftleft
right
rightSidebarThe Right Sidebar page name, empty field disables the right sidebar.
The Right Sidebar is displayed only when the default DokuWiki sidebar is enabled and is on the left position (see the sidebarPosition configuration). If do you want only the DokuWiki sidebar on right position, set the sidebarPosition configuration with right value
stringrightsidebar
leftSidebarGridLeft sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation)stringcol-sm-3 col-md-2
rightSidebarGridRight sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation)stringcol-sm-3 col-md-2
sidebarOnNavbarDisplay the sidebar contents inside the navbar (useful on mobile/tablet devices)onoff0
sidebarShowPageTitleDisplay Sidebar page titleonoff1
项目名项目说明值类型缺省值
inverseNavbarInverse navbaronoff0
fixedTopNavbarFix navbar to toponoff0
showTranslationDisplay translation toolbar (require Translation Plugin)onoff0
showToolsDisplay Tools in navbarmultichoicealwaysnever
logged
always
showHomePageLinkDisplay Home-Page link in navbaronoff0
homePageURLUse custom URL for home-page linksstringnull
showUserHomeLinkDisplay User Home-Page link in navbaronoff1
hideLoginLinkHide the login button in navbar. This option is useful in “read-only” DokuWiki installations (eg. blog, personal website)onoff0
showEditBtnDisplay edit button in navbarmultichoicenevernever
logged
always
individualToolsSplit the Tools in individual menu in navbaronoff0
showIndividualToolEnable/Disable individual tool in navbarmulticheckboxsite,pageuser
site
page
showSearchFormDisplay Search form in navbarmultichoicealwaysnever
logged
always
showAdminMenuDisplay Administration menuonoff0
useLegacyNavbarUse legacy and deprecated navbar.html hook (consider in the future to use the :navbar hook)onoff0
showNavbarDisplay navbar hookmultichoicealwayslogged
always
navbarLabelsShow/Hide individual labelmulticheckboxlogin,registerlogin
register
admin
tools
user
site
page
themes
expand
profile
showAddNewPageEnable the Add New Page plugin in navbar (require Add New Page Plugin)multichoicenevernever
logged
always
notifyExtensionsUpdateNotify extensions update (for Admin users)onoff0

Semantic

项目名项目说明值类型缺省值
semanticEnable semantic dataonoff1
schemaOrgTypeSchema.org type (ArticleNewsArticleTechArticleBlogPostingRecipe)multichoiceArticleArticle
NewsArticle
TechArticle
BlogPosting
Recipe
showSemanticPopupDisplay a popup with an extract of the page when the user hover on wikilink (require Semantic Plugin)onoff0

布局

项目名项目说明值类型Default Value
fluidContainerEnable the fluid container (full-width of page)onoff0
fluidContainerBtnDisplay a button in navbar to expand containeronoff0
pageOnPanelEnable the panel around the pageonoff1
tableFullWidthEnable 100% full table width (Bootstrap default)onoff1
tableStyleTable stylemulticheckboxstriped,condensed,responsivestriped
bordered
hover
condensed
responsive
showLandingPageEnable the landing page (without a sidebar and the panel around the page)onoff0
landingPagesLanding page name (insert a regex)regex(intro)
showPageToolsEnable the DokuWiki-style Page Toolsmultichoicealwaysnever
logged
always
showPageIdDisplay the DokuWiki page name (pageId) on toponoff1
showBadgesShow badge buttons (DokuWiki, Donate, etc)onoff1
showLoginOnFooterDisplay a “little” login link on footer. This option is useful when hideLoginLink is ononoff0
showWikiInfoDisplay DokuWiki name, logo and tagline on footeronoff1

文章目录

项目名项目说明值类型缺省值
tocAffixAffix the TOC during page scrollingonoff1
tocCollapseSubSectionsCollapse all sub-sections in TOC to save spaceonoff1
tocCollapseOnScrollCollapse TOC during page scrollingonoff1
tocCollapsedCollapse TOC on every pagesonoff0
tocLayoutTOC layoutmultichoicedefaultdefault
navbarg

钩子

HTML钩子

所有文件必须位于模板目录(lib / tpl / bootstrap3 /)或conf /目录中。

文件名插入到页面HTML中的位置
meta.html <head>和</head>之间
topheader.html紧接着<body>标签之后
header.htmlAbove the upper blue bar, below the pagename and wiki title
navbar.htmlDEPRECATED (see the note below) - Inside the navbar, use this to add additional links (e.g. <li><a href=“/foo”>Foo</a></li>)
pageheader.htmlbreadcrumbs下面,页面实际内容的上方
pagefooter.htmlAbove the lower blue bar, below the last changed Date
footer.html在页面的最后,位于</ body>标记之前
sidebarheader.html边侧栏上方
sidebarfooter.html边侧栏下方
social.htmlBelow the header.html, use this to add a social buttons (eg. Google+, Twitter, LinkedIn, etc)
rightsidebarheader.html右边侧栏上方
rightsidebarfooter.html
右边侧栏下方

Dokuwiki钩子

可以通过创建简单的DokuWiki“钩子”页面来自定义页面的各个部分。 bootstrap3模板会将这些钩子页面内容插入到页面的总体布局中。

钩子页面名说明名字空间单位
:sidebarThe sidebarYES
:rightsidebarThe right-sidebarYES
:navbarNavbar with sub-menusYES
:pageheaderHeader of the Wiki articleYES
:pagefooterFooter of the Wiki articleYES
:footerFooter of the pageYES
:cookie:bannerCookie-Law bannerNO
:cookie:policyCookie-Law policyNO
:helpHelp page for “Help Page Icon”YES
:headerHeader of page below the navbarYES
:topheaderTop Header of page (on top of navbar if fixedTopNavbar is off)YES

发布在 网站说明

1.点击自己的头像,选择自己的用户名

2.点击“...”下拉菜单,选择【粉丝】即可查看自己的粉丝

发布在 网站说明

群聊是2人以的聊天会话,慧总网群聊首先需要知道对方的用户名,然后再开启一个2人聊天窗口,开启后添加其他用户进入聊天,开启群聊。

1.点击右上角的聊天图标,在弹出的下拉菜单中选择【查看所以对话】

2.在搜索框中输入需要加入的用户名,点击用户确认。

3.点击聊天配置,选择【管理聊天室】

4.输入第三人用户名,即可开启3人以上群聊




发布在 网站说明

假如看到一篇好的文章,需要和作者单独沟通,那么这里就我们可以使用私聊功能。

1.找到要私聊的作者或者用户,点击名字

2.在作者详情也,点击“...”菜单,在下拉菜单中,【开始与某某新会话】

3.在弹出的聊天对话框中输入自己想要说的话就可以了



发布在 PHP

CSS文件

DokuWiki本体的CSS文件位于lib / styles目录中,不过DokuWiki本体仅定义了一些最基础的CSS,更多的CSS存在于模板和各个插件里面。
所有CSS文件都是通过lib/exe /css.php程序获取的。该程序还处理缓存,模式替换,LESS预处理和优化,由tpl_metaheaders()函数调用。

加载CSS的顺序如下: 在CSS中,如果为同一属性指定了不同的值,并且样式冲突,则稍后加载的样式将优先,并且属性值将被覆盖,因此首选样式是从后面开始。

  • 基本样式:lib /styles/*.css
  • 插件样式:lib / plugins / <插件名称> / *。css
  • 模板样式:在lib / tpl / <模板名称> /style.ini中定义
  • 用户样式:conf / user * .css

如果要通过自定义CSS添加样式,则基本上应将其添加到用户样式(conf / user * .css)中。

媒体类型

样式表支持五种媒体类型:

  • screen:用于显示器
  • print:用于打印
  • all:用于所有的媒体设备
  • rtl:
  • feed:

外部链接

发布在 PHP

JavaScript文件

DokuWiki本体的JavaScript文件在lib/scripts目录中,jQuery库文件也在里面。
像CSS一样,有一个PHP程序lib/exe/js.php,它把相关的JavaScript文件(例如模板和插件)打包到一起,并由tpl_metaheaders()函数调用。

加载以下JavaScript。

  • DokuWiki自动生成的JavaScript:
    编辑屏幕工具栏等。
  • DokuWiki本体的JavaScript文件:
    lib/scripts/*.js
  • 插件的JavaScript文件:
    lib/plugins/<插件名称>/script.js
  • 模板的JavaScript文件:
    lib/tpl/<模板名称>/script.js
  • 包含用户自定义代码的JavaScript文件:
    conf/userscript.js

如果要自定义JavaScript并添加处理,则基本上应将其添加到用户脚本conf / userscript.js)。

Include语法

DokuWiki的JavaScript调度程序允许您使用特殊的JavaScript注释来包含其他脚本文件。 这在通常只解析单个JavaScript文件的情况下很有用,例如 在模板或插件中。

include

/* DOKUWIKI:include somefile.js */

include_once

/* DOKUWIKI:include_once common_library.js */

全局变量

DokuWiki提供了可在JavaScript中使用的预定义全局变量,下面时较常用的一些:

  • DOKU_BASE:根目录路径(ex:/)
  • DOKU_TPL: 模板路径(ex:/lib/tpl/<模板名称>/)
  • LANG:一组语言依存文本值
  • JSINFO
    • ACT:  当前动作模式(ex:show)
    • id:当前页面ID(ex:products:pen)
    • isadmin:表示是否时管理员
    • isauth:表示是否时作者
    • namespace:当前名称空间(ex:products)
    • useHeadingNavigation :表示是否对导航链接使用第一个标题
    • useHeadingContent:表示是否对内容链接使用第一个标题

外部链接

发布在 PHP

Struct插件是一个真正意义上的数据库插件,它可以用来创建和管理数据库表,结合表单等其他插件,为页面提供各种应用功能。

Schema定义

Schema(模式)用于管理可以分配给页面的结构化数据,我们可以将它们视为表定义。模式定义哪些字段将可用以及它们具有什么类型。

要创建新模式,请以管理员身份登录并访问“管理员”页面。从“附加插件”中选择Struct Schema Editor(结构模式编辑器)。使用表单创建新的模式。

有两种模式:Page Schema(页面模式)和Lookup Schema(查找模式)。

  • Page Schema(页面模式)
    页面模式定义可以分配给页面的数据结构。每组数据仅用于输入的一页,与Data插件相似。
  • Lookup Schema(查找模式)
    查找模式不绑定页面,它们存储独立于任何页面的任意数量的数据集(行),我们可以将“查找模式”视为页面中的表格,可以在页面中任意引用其值。

可以在目录中选择现有模式,并在此处进行编辑。

重要提示:不能删除字段,只能将其禁用!

数据编辑

Page Schema

如下图所示,Page Schema的数据行直接与页面关联。

当在管理控制台中将Page Schema分配给所有匹配的页面(分配可以在页面或命名空间的基础上进行,也可以使用 正则表达式)后,数据将会自动添加到对应的页面。

页面(/demo/products/003):

Lookup Schema

Lookup Schema存储未绑定到任何页面的任意数据。 要创建此类数据,需要通过特殊语法创建编辑器:

---- struct lookup ----
schema: someschema
----

这将创建一个显示Lookup Schema表中所有数据的列表。 当前数据行可以通过内联编辑进行编辑,也可以通过删除按钮删除。 可以通过列表下方的表单添加新的数据行。

数据查询

通过简单的语法即可完成数据的查询的,该语法将生成一个动态表,其中列出了所有页面以及与某些条件匹配的关联数据。

---- struct table ----
schema: schema_name
cols: %pageid%, other, cols
----


选项

  • schema/from
    必须。列出要查询哪些schema表里的数据。
  • cols/select
    必须。要显示的项目。 使用与“Data Entry”中相同的名称。 
  • head/header/headers
    可选。如果指定,这些名称将在表标题中使用。
  • max/limit
    可选。指定显示的最大行数,超过最大行数的数据将自动分页显示。 如果未给出,则显示所有匹配的行
  • sort/order
    可选。指定用于排序的项目,前面添加^表示反转排序
  • filter/where/filterand/and
    可选。指定过滤条件。 多次指定时各个过滤条件将进行“与”操作。
  • filteror/or
    可选。 类似于filter,但多次指定时各个过滤条件将进行“或”操作。
  • dynfilters
    可选。 Set to 1 to enable a row of input fields for dynamically filtering the table
  • summarize
    可选。 设成1表示对列进行合计。
  • align
    可选。 列对齐列表。 对齐方式可以是左(l),中(c)或右(r)
  • rownumbers
    可选。设成1表示显示行号。
  • width/widths
    可选。指定列的显示宽度。
  • csv
    可选。设置为则不显示CSV导出按钮

别名

从包含相同字段名的多个Schema中选择数据时,必须在它们之前加上Schema名称:

---- struct table ----
schema: schema1, schema2
cols: %pageid%, schema1.name, schema2.name
----

可以为Schema定义别名, 别名与Schema名称之间用空格分隔:

---- struct table ----
schema: schema1 A, schema2 B
cols: %pageid%, A.name, B.name
----

特殊列名

  • %pageid%
  • %title%
  • %lastupdate%
  • %lasteditor%
  • %lastsummary%

外部链接

发布在 PHP

Bootswrapper插件结合Bootstrap3模板,用于为wiki页面插入各类Bootstrap组件:

  • Jumbotron
  • Buttons
  • Alerts
  • Text
  • Tooltips
  • Grids
  • Thumbnails
  • Panels
  • Wells
  • Labels
  • Nav & Tabs (with dropdown)
  • Page heading
  • Lead
  • Badges
  • List Group
  • Progress Bars
  • Affix
  • Carousel
  • Accordion
  • Callouts
  • Modal (with remote attribute)
  • Popover

语法

Jumbotron

<jumbotron>
===== Hello, world! =====
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featuredcontent or information.
</jumbotron>

Panel

<panel type="default" title="Title of Panel" subtitle="Subtitle" icon="fa fa-house">
Panel content
</panel>

Alert

<alert type="success" icon="glyphicon glyphicon-user" dismiss="true">
**Well done!** You successfully read this important alert message.
</alert>

Text

  * <text type="muted">muted</text>
  * <text type="primary">primary</text>
  * <text type="success">success</text>
  * <text type="info">info</text>
  * <text type="warning">warning</text>
  * <text type="danger">danger</text>

Tooltip

<tooltip title="Sample Text" location="bottom">Lorem ipsum</tooltip> dolor sit amet...

Grids

<grid>
<col sm="6">.col-sm-6</col>
<col sm="6">.col-sm-6</col>
</grid>
<grid>
<col xs="12" sm="6" lg="8">.col-xs-12 .col-sm-6 .col-lg-8</col>
<col xs="6" lg="4">.col-xs-6 .col-lg-4</col>
</grid>

Thumbnail

<grid>
...
<col xs="6" md="3">
<thumbnail>
{{ wiki:dokuwiki-128.png }}
</thumbnail>
</col>
...
</grid>
<grid>
...
<col xs="6" md="3">
<thumbnail>
{{ wiki:dokuwiki-128.png }}
<caption>
=== DokuWiki ===
//DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database. It is loved by users for its clean and readable syntax. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in access controls and authentication connectors make DokuWiki especially useful in the enterprise context and the large number of plugins contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki.//
</caption>
</thumbnail>
...
</col>
</grid>

Well

<well>Look, I'm in a well!</well>

Button

<button type="success" size="lg" icon="glyphicon glyphicon-edit">[[:wiki:welcome]]</button>

Navigation

<nav>
  * [[:start]]
  * [[:plugin:bootswrapper|Plugin]]
  * [[playground:playground]]
  * DokuWiki
    * [[:wiki:welcome]]
    * [[:wiki:syntax]]
</nav>

Accordion

<accordion>
<panel title="First panel">
First panel content
</panel>
<panel title="Second panel">
Second panel content
</panel>
</accordion>

发布在 PHP

函数参考 ¶