2012-07-13 10:51:13

txp
New Member
alpha

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

 

2012-07-13 11:52:05

uli
Moderator
omega
Real name: Uli
From: Cologne/Köln
Known languages: de > en

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

 

2012-07-14 03:50:50

txp
New Member
alpha

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

 

2012-07-14 04:53:24

Gocom
Developer
omega
Real name: Jukka Svahn
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

 

2012-07-16 04:09:29

txp
New Member
alpha

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

 

2012-07-16 05:32:14

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: newbie question: title is not ..

in presentation > pages

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

Offline

 

2012-07-16 15:01:46

txp
New Member
alpha

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

 

2012-07-16 15:08:43

txp
New Member
alpha

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

 

2012-07-16 16:52:49

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: newbie question: title is not ..

txp wrote:

how to achieve that goal?please.

Please check this post which answers your question

Offline

 

2012-07-17 04:26:14

txp
New Member
alpha

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

 

Powered by FluxBB