Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-29 19:04:47

papalozarou
Member
Registered: 2004-07-05
Posts: 43

... get mysite | sectionname | article name in the page title?

I am trying to refit my portfolio into textpattern, and have managed to conquer most of the issues I have had, but one of the few remaining is how to get the section name between mysite and the article name in the actual <title> tag in the head of the page.

Is this possible automatically? I am sure I am missing something simple.

Ta.

Offline

#2 2005-12-30 00:37:41

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: ... get mysite | sectionname | article name in the page title?

Can you be more specific? Are you talking about URl or something else?

Offline

#3 2005-12-30 01:56:41

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: ... get mysite | sectionname | article name in the page title?

papalozarou,

At this time, due to issues with the title tag, you can only do that with the ob1_title plugin. After you install and activate it, try this:

<title><txp:ob1_title order="%sitename,%section,%article" separator=" | " /></title>

You should get the results you are looking for.

Offline

#4 2005-12-30 14:00:54

bancroft
Member
Registered: 2005-09-30
Posts: 39

Re: ... get mysite | sectionname | article name in the page title?

This is working for me but you do have to have to create a form (article-title) containing the title tag.

<title><txp:if_section name=""><txp:sitename /><txp:else />
<txp:if_article_list>
<txp:sitename /> :: <txp:section title="y" />
</txp:if_article_list>
<txp:if_individual_article>
<txp:sitename /> :: <txp:section title="y" /> :: <txp:article form="article-title" />
</txp:if_individual_article>
</txp:if_section>
</title>

Last edited by Mary (2005-12-30 14:57:43)

Offline

Board footer

Powered by FluxBB