Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-23 16:09:17

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Get section titles without side effect or a huge amount of effort?

There must be a plug in to do this?

The last one I tried removed other titles.

Offline

#2 2005-12-23 16:17:38

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Get section titles without side effect or a huge amount of effort?

<code><txp:section title=“1” /></code>.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-23 16:53:59

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Get section titles without side effect or a huge amount of effort?

I’m talking about within the title tag in the head of the document.

Where whould I put that tags.

Btw, you’re always the first one to give me help. Thanks thebombsite, it’s much appreciated :-)

Offline

#4 2005-12-23 17:01:54

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Get section titles without side effect or a huge amount of effort?

You could use a structure like this:

bc..<head>
[…]
<txp:if_article_list>
<title><txp:sitename /> &raquo; <txp:section title=“1” /></title>
<txp:else />
<title><txp:page_title separator=” &raquo; “ /></title>
</txp:if_article_list>
[…]
</head>

hth

Last edited by wet (2005-12-23 17:02:54)

Offline

#5 2005-12-23 17:25:28

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Get section titles without side effect or a huge amount of effort?

I spend too much time here. :grin: Wet’s suggestion should work. I use something very similar myself:-

<code>
<txp:if_individual_article>
<title><txp:section title=“1” />: <txp:page_title /></title>
</txp:if_individual_article>
<txp:if_article_list>
<title><txp:section title=“1” />: <txp:sitename /></title>
</txp:if_article_list></code>
<br />

It really just depends on what you want to display there.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-12-23 17:54:54

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Get section titles without side effect or a huge amount of effort?

Thanks that worked.

Offline

Board footer

Powered by FluxBB