Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-07-13 10:51:13

txp
New Member
Registered: 2012-07-13
Posts: 7

newbie question: title is not ..

Hello, could you tell me how to creat the format like that:

[this is the article page]

post name : homepage name

but the default style is:

homepage name: post name

someone help me please, thanks so much…..

Offline

#2 2012-07-13 11:52:05

uli
Moderator
From: Cologne/Köln
Registered: 2006-08-15
Posts: 3,043

Re: newbie question: title is not ..

Welcome to the forum, txp. (Weird that the name was still available.)

The order you see is created by the page_title tag. It covers several situations, see “Results appear as follows” on the tag’s page in the Docs.

You can however assemble TXP tags to your very own liking, adding some conditional tags to the soup. Please do a quick forum search for “page title” (pressed for time ATM, sorry), there are several collections of such sets drifting around.


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

Offline

#3 2012-07-14 03:50:50

txp
New Member
Registered: 2012-07-13
Posts: 7

Re: newbie question: title is not ..

uli, thanks for your reply, I can modify them, but I cannot reverse the order. Sitename on the front by default setting, but I want the post name on the front in the title.

Offline

#4 2012-07-14 04:53:24

Gocom
Developer
Registered: 2006-07-14
Posts: 4,471
Website

Re: newbie question: title is not ..

Please see Tag Reference. Bookmark it while you are at it. If certain baked things as page_title do not fill your needs, you can build your own using any of those tags, including title, site_name, if_individual_article and others.

For instance, this would get the reversed order on individual article pages:

<title>
	<txp:if_individual_article>
		<txp:title /> : <txp:site_name />
	<txp:else />
		<txp:page_title />
	</txp:if_individual_article>
</title>

Last edited by Gocom (2012-07-14 04:53:43)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#5 2012-07-16 04:09:29

txp
New Member
Registered: 2012-07-13
Posts: 7

Re: newbie question: title is not ..

I’m sorry, where is the area of head, please?

head title

<head>single article name : site name</head>

Last edited by txp (2012-07-16 04:11:56)

Offline

#6 2012-07-16 05:32:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,933
Website

Re: newbie question: title is not ..

in presentation > pages

You can find the head in the default and the archives templates


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#7 2012-07-16 15:01:46

txp
New Member
Registered: 2012-07-13
Posts: 7

Re: newbie question: title is not ..

the pages <head> which display default like that:

<txp:page_title> default is site name : single article name

I cannot modify to this one:
single article name : site name

Offline

#8 2012-07-16 15:08:43

txp
New Member
Registered: 2012-07-13
Posts: 7

Re: newbie question: title is not ..

search engine result pages display site name: post name

the correct thing is
post name: site name

how to achieve that goal?please.

Offline

#9 2012-07-16 16:52:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,933
Website

Re: newbie question: title is not ..

txp wrote:

how to achieve that goal?please.

Please check this post which answers your question


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#10 2012-07-17 04:26:14

txp
New Member
Registered: 2012-07-13
Posts: 7

Re: newbie question: title is not ..

my question is

search engine result pages display
site name: post name

I want this format
post name: site name

Offline

Board footer

Powered by FluxBB