[pmwiki-users] Displaying a markup variable via a skin template

marc gmane at auxbuss.com
Sun Oct 19 11:19:53 CDT 2008


marc said...
> Patrick R. Michaud said...
> > On Mon, Sep 29, 2008 at 11:28:40PM +0200, marc wrote:
> > > Hi,
> > > 
> > > I want to display a variable from the markup on each displayed page via 
> > > the skin template.
> > > 
> > > I thought I would be able to use a PTV directly. Thus, in markup:
> > > 
> > >   (:something: marctest:)
> > > 
> > > and in the template file, something like this:
> > > 
> > >   {$:something}
> > > 
> > > But this just displays {$:something} on the page.
> > > 
> > > I get close with
> > > 
> > >   <!--markup:{$:something}-->
> > > 
> > > but this puts a <p></p> around the result and breaks the <div> it's in.
> > 
> > I've been thinking that <!--markup:...--> should somehow be
> > smart enough to avoid putting the text in a <p>...</p> unless there's
> > a newline in the markup somehow.
> > 
> > I haven't quite figured out how to do that yet, though -- it'll
> > require some adjustments to the core markup function, or an additional
> > markup that says "don't turn this into a paragraph".
> > 
> > Pm
> > 
> 
> Had any more thoughts on this, Patrick?

Not meaning to be a pain...

-- 
Cheers,
Marc




More information about the pmwiki-users mailing list