Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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 /> » <txp:section title=“1” /></title>
<txp:else />
<title><txp:page_title separator=” » “ /></title>
</txp:if_article_list>
[…]
</head>
hth
Last edited by wet (2005-12-23 17:02:54)
Offline
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