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

marc gmane at auxbuss.com
Thu Oct 2 17:06:20 CDT 2008

Hans said...
> Monday, September 29, 2008, 10:28:40 PM, marc wrote:
> > I want to display a variable from the markup on each displayed page via
> > the skin template.

Hi Hans.

> what exactly should happen to the user-editable text
> you wish to insert in the skin template?
> Where in the HTML should it appear, and in what form (tags)?
> I am  sure  a custom markup can be created, if we know for what.

It goes like this:

<div id="wrap">
	<div id="top">
        <div id="headertext"><!--function:header_text--></div>
    	<img src="$SkinDirUrl/img/Blah_Logo.jpg" alt="blah" 
title="blah" />
    	<div id="menu">

Currently, I have:

  function header_text($pagename) {echo 'some text';}

in each page.php, but this isn't user editable.

I'm sure we can write some custom markup, but I convinced myself that 
what I wanted to do - which is simple enough in theory; passing a text 
string from the page to the template - should be achievable. But after 
looking at it for a while, I couldn't figure it out, so thought I'd ask 
for help.

Thanks for looking at it.


More information about the pmwiki-users mailing list