Loading...
 
Skip to main content

History: PluginArticle

Source of version: 19 (current)

Copy to clipboard
            ! Plugin Article
This ((wiki plugin)), available since Tiki1, includes an article field in a wiki page. To include many, use ((PluginArticles)) instead.

!! Parameters
{pluginmanager plugin="article"}

!! Available Fields
The plugin now supports displaying any of the following article fields:

* __Title__ - Article title
* __Heading__ - Article heading/subtitle  
* __Body__ - Main article content
* __Topline__ - Top line text
* __Subtitle__ - Article subtitle
* __Author Name__ - Author's display name
* __Author__ - Author's username
* __Publication Date__ - When the article was published
* __Rating__ - Article rating
* __Topic Name__ - The topic/category name
* __Type__ - Article type
* __Language__ - Article language

!! Examples
Let's say you wish to display the contents of an article with the Id of 10 from your site ([http://doc.tiki.org/art10] taken as example) inside a Wiki page. Simply, include this type of code in your page:

!!! Title
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="title"}
{CODE}
''would produce on this site:''

{article Id="10" Field="title"}

!!! Heading
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="heading"}
{CODE}
''would produce on this site:''

{article Id="10" Field="heading"}

!!! Body
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="body"}
{CODE}
''would produce on this site:''

{article Id="10" Field="body"}

!!! Author Name
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="authorName"}
{CODE}
''would produce on this site:''

{article Id="10" Field="authorName"}

!!! Publication Date
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="publishDate"}
{CODE}
''would produce on this site:''

{article Id="10" Field="publishDate"}

!!! Topic Name
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="topicName"}
{CODE}
''would produce on this site:''

{article Id="10" Field="topicName"}

!!! Rating
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="rating"}
{CODE}
''would produce on this site:''

{article Id="10" Field="rating"}

!!! Language
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="lang"}
{CODE}
''would produce on this site:''

{article Id="10" Field="lang"}

!!! Type
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="type"}
{CODE}
''would produce on this site:''

{article Id="10" Field="type"}

!!! Topline
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="topline"}
{CODE}
''would produce on this site:''

{article Id="10" Field="topline"}

!!! Subtitle
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="subtitle"}
{CODE}
''would produce on this site:''

{article Id="10" Field="subtitle"}

!!! Author
''This code:''
{CODE(colors="tiki")}
{article Id="10" Field="author"}
{CODE}
''would produce on this site:''

{article Id="10" Field="author"}
        
Collapse/expand modules below