Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-12 02:04:48

scdoody
Member
Registered: 2006-10-18
Posts: 129

Editing <head> content

If I want to edit <head> information – such as adding a favicon or keywords or titles – where would I do this?

Offline

#2 2007-05-12 06:22:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Editing <head> content

In the presentation tab

<txp:meta_keywords /> re keywords

Last edited by colak (2007-05-12 06:22:25)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-05-12 17:50:29

agovella
Member
From: Houston, TX
Registered: 2005-05-01
Posts: 66
Website Twitter

Re: Editing <head> content

And you can put common head elements in a form (or forms).

I have my dtd in one form, and global style and script links in another.

Offline

#4 2007-05-13 06:31:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Editing <head> content

it is up to you how you structure your code.
in my case my default page looks a bit like this

<txp:output_form form="head" />
...
<txp:output_form form="menu" />
...
etc

In the ‘head form’ I have all that i want to have in the head element

which includes

<txp:if_individual_article>
<txp:meta_keywords />
<txp:else />
<meta name="keywords" content="some, keywords, here, as, the, above, txp keywords tag only returns, words entered from the individual articles" />
</txp:if_individual_article>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB