Go to main content

Textpattern CMS support 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
Registered: 2006-08-15
Posts: 4,304

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 Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
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)

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: 9,011
Website GitHub Mastodon Twitter

Re: newbie question: title is not ..

in presentation > pages

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


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

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: 9,011
Website GitHub Mastodon Twitter

Re: newbie question: title is not ..

txp wrote:

how to achieve that goal?please.

Please check this post which answers your question


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

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

#11 2012-07-17 05:48:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: newbie question: title is not ..

Opps, apologies.

Check out
Presentation > Forms > Search results


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2012-07-17 07:54:29

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: newbie question: title is not ..

txp wrote:

I want this format
post name: site name

Please take a look at the Tag Reference. if_search detects whether you are on a search page and search_term returns the searched term.

There are number of existing topics, provided tips and snippets you can find and use. To include few, please see:

Last edited by Gocom (2012-07-17 07:56:00)

Offline

Board footer

Powered by FluxBB