[pmwiki-users] Stop (:include:) wrapping content in <pre>

Patrick R. Michaud pmichaud at pobox.com
Thu Apr 19 23:04:59 CDT 2007


On Fri, Apr 20, 2007 at 12:03:54PM +1000, Garth.J.McMillan at transport.qld.gov.au wrote:
> Hi,
> 
> When using (:include:) on the html template, for example in the following 
> case:
> 
> <!--markup:(:if exists {$Group}.sidebar:) (:include {$Group}.SideBar 
> :)(:if:)-->
> 
> It wraps the content of Group.Sidebar in preformatted text (<pre></pre>) 
> tags, which loses any html within the content.
> 
> Is there a way to stop the include wrapping it in <pre> tags?

Eliminate the space before (:include:) -- the leading space
causes it to be treated as preformatted text.

> Ideally, I'd like to be able to do something like:
> 
> <!--markup:(:if exists {$Group}.sidebar:)<h2><img src="my_image.gif">My 
> Title</h2> (:include {$Group}.SideBar :)(:if:)-->

<!--markup:(:if exists {$Group}.SideBar:)!! Path:my_image.gif My Title-->

Pm



More information about the pmwiki-users mailing list