Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-06-13 05:17:12

alivato
Member
Registered: 2011-03-31
Posts: 151

Another title

how to realize this

If we are in the main (site.com | Main)
If the open section (site.com | Name section)
If the open an article (site.com | name (title) of the article)

Offline

#2 2013-06-13 11:55:20

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Another title

Four links that might help you along:
Generally it’s a good thing to learn about the possibilities TXP’s conditional tags are offering.
A post (actually the whole topic) and a TXP Tips article on meta titles. And finally something more sophisticated for section titles.

But there are more topics about page titles in this forum, just waiting to be found, these here are just some I collected a while back on the go.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2013-06-13 11:59:05

BKawalec
Member
From: Poland
Registered: 2011-04-11
Posts: 23
Website

Re: Another title

Check if this works for you:

site.com (or <txp:site_url />)
<txp:if_section name="default">
 | Main
<txp:else />
<txp:if_article_list>
 |  <txp:section title="1" />
<txp:else />
<txp:article>| <txp:title /></txp:article>
</txp:if_article_list>
</txp:if_section>

You could also add different titles for error pages with <txp:if_status>

{Edited to add Textile’s bc. for straight quotes. – Uli}

Last edited by uli (2013-06-13 12:22:59)

Offline

Board footer

Powered by FluxBB