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

marc gmane at auxbuss.com
Thu Oct 2 17:12:52 CDT 2008


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.

Hi Patrick,
 
> 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".

Let me know if you need help testing anything you come up with.

-- 
Cheers,
Marc




More information about the pmwiki-users mailing list