[pmwiki-users] using h1 tag as your title
Ben Wilson
dausha at gmail.com
Sat May 13 22:30:09 CDT 2006
Since your other email indicates you have the EditTitle working, then
just add the following to your Template (along with any other text you
need):
<title>$Titlespaced</Title>
Also, here's what I put in my template to have the title be the only
H1 on the page:
<h1 id='title'>$Titlespaced</h1>
<!--PageText-->
And, here's the part of my config that "turns off" H1 in the markup:
#--------------------------------
# Disable <H1>
#--------------------------------
Markup('^!', 'block', '/^(!{2,6})\\s?(.*)$/e',
"'<:block,1><h'.strlen('$1').PSS('>$2</h').strlen('$1').'>'");
Regards,
Ben Wilson
On 5/13/06, BrianB <brianrgr at hotmail.com> wrote:
> I mean #1, the <title> text. I would like <title> text to match the 1st
> <h1> in the page.
>
> ----- Original Message -----
> From: "Patrick R. Michaud" <pmichaud at pobox.com>
> To: "BrianB" <brianrgr at hotmail.com>
> Cc: <pmwiki-users at pmichaud.com>
> Sent: Saturday, May 13, 2006 10:01 PM
> Subject: Re: [pmwiki-users] using h1 tag as your title
>
>
> > On Sat, May 13, 2006 at 09:53:28PM -0400, BrianB wrote:
> >> Is it possible to set up pmwiki to use the first H1 tag in a page as
> >> your
> >> pages title? Currently it uses the default title and the name of the
> >> page
> >> only.
> >
> > What do you mean by "title"? Do you mean
> > 1. the text that appears in the browser window title bar
> > (i.e., the HTML <title> tag),
> > 2. the text that appears where the page name generally goes, or
> > 3. both of the above?
> >
> > Pm
> >
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
--
Ben Wilson
" Mundus vult decipi, ergo decipiatur"
More information about the pmwiki-users
mailing list