Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Re: ... get mysite | sectionname | article name in the page title?
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