Task #10765
a patch: So you get the <nowiki> tag working
| Status: | New | Start date: | 2010-11-12 | ||
|---|---|---|---|---|---|
| Priority: | Should have | Due date: | |||
| Assignee: | - | % Done: | 50% |
||
| Category: | Wiki Rendering | Spent time: | - | ||
| Target version: | dr_wiki 1.x | ||||
| Sprint: | |||||
| Votes: | 0 |
Description
The <nowiki> tag is needed, when you e.g. write a plugin what outputs HTML-code having links inside. Normally the wiki would render every http://something.com as an own a-Tag. With the <nowiki> around the HTML-output of your plugin will rendered so like you have want.
So you get it working:
- Open an editor e.g. Eclipse
- Open the main class-file of this extension: pi1/class.tx_drwiki_pi1.php
Search for this¶
// load allowedHTML $this->allowedHTML = $this->allowedHTML ? $this->allowedHTML : $this->cObj->stdWrap($this->conf["allowedHTML"],$this->conf["allowedHTML."]);
and add these two lines after it¶
// load allowedWIKI $this->allowedWIKI = $this->allowedWIKI ? $this->allowedWIKI : $this->cObj->stdWrap($this->conf['allowedWIKI'],$this->conf['allowedWIKI.']);
From now on¶
you can use the TypoScript-configuration in the SETUP on that pages where you need it:
plugin.tx_drwiki_pi1.allowedWIKI = <nowiki><ref><noinclude><references2col><references>
Greets
Daniel