Sei qui:   Software > XsltDb > EasyWiki
Registrazione   |  Login

EasyWiki - Extensions

Table Of Contents:



Markup


Extensions


DNN integration


Powered by XsltDb


Download

Install

Print as PDF



EasyWiki Extensions

EasyWiki Extensions allow you to extend EasyWiki markup syntax with custom tags, that are automatically and dynamically associated with implementation sources in the form of XSLT resource files.

In other words: each extension is represented by a macro (a custom tag) and implemented in a correspoding EasyWiki plugin, where plugins consist of XSLT files. EasyWiki plugins support XsltDb mdo extensions in main xslt template only.

Placeholder

Extensions have a special markup tag: three angle less-than signs followed by the extension name, a blank and optional extension parameters followed by three greater-than signs.
<<<extension param1="value" ... paramN="value">>>

Special Extensions

Special extensions are built-in extensions, that is extensions whose code is nested within EasyWiki - there's no external xslt file.

Extension Description Syntax
includeIncludes another page in current one<<<include page="IncludedPage">>>
layoutallows to use another page as the layout frame for impaginating current page; layout page must include the special tag $page$ to be replaced with current page content<<<layout page="LayoutPage">>>

XSLT Extensions

EasyWiki extensions consist of XSLT files you can publish at two different levels:
  • shared, module-level, extensions are placed under EasyWiki module folder and shared between all EasyWiki instances
  • local, wiki-level, extensions are placed under the specific wiki root folder and are only valid for that specific wiki.

Local extensions have priority, that is if a local extension exists with the same name of a shared extensions, the local one will be used.

Extension Description Syntax
sql2tableExecutes an SQL query showing results as a wiki table <<<sql2table select="">>>
sql2htmltableExecutes an SQL query showing results as an Html table <<<sql2htmltable select="">>>
sql2radgridExecutes an SQL query showing results within a Telerik RadGrid <<<sql2radgrid select="[SQL]" skin="[SKIN]" filter="[true|false]">>>
swfobjectEmbeds a video with SWFObject and JWPlayer<<<swfobjectid="video1" url="url-to-video" autostart="false">>>
embedEmbeds a video with JWPlayer<<<embed id="video1" url="url-to-video" autostart="false">>>
fileInserts a link to the specified file, with an icon depending on file type<<<file url="/files/pippo.pdf" title="Pippo!">>>
filelistInserts a list of files from the specified portal folder.<<<filelist folder="[FOLDER]" mode="[table|ul]">>>
bqGenerates blockquote styled element<<<bq text="content of blockquote" class="style1">>>
tocGenerates Topic Of Contents<<<toc level="n">>>
allpagesGenerates index of all pages in Wiki<<<allpages mode="listmenu">>>
codeAdds SyntaxHighlighter to page<<<code lang="all">>>
page2pdfConvert page to PDF<<<page2pdf>>>
xmenuEmbed a DDRMenu in a wiki page<<<xmenu ProviderName="[ProviderName]" MenuStyle="[MenuStyle]" NodeSelector="[NodeSelector]" IncludeNodes="[IncludeNodes]" ExcludeNodes="[ExcludeNodes]">>>
thumbsEmbed a simple image gallery in a wiki page<<<thumbs folder="[FOLDER]">>>

Developing

Developing custom EasyWiki Extensions is quick and easy: an extension consist of just an xsl file. See How to develop custom EasyWiki extensions.


Page: Extensions Version: 5
Created: 12/03/2011 00.06 Updated: 21/11/2011 15.52
By: AL's Superuser By: AL's Superuser

Rating And Comments

Total votes: 0
Average: -

Current page rating and comments:


Rate this page:


Post a comment:

Name:
E-Mail:
Web Site: