Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
Re: newbie question: title is not ..
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
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
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:
- TXP and SEO
- Nice, Custom Page Titles
- … prevent the site name from appearing in the page title
- How Do I Create a Page Title Without the Site Name
- A nice way to format your title using Textpattern tags
- How to put page number in the title of a page
- Another title problem
- Context-sensitive title without page_title
- Best practices with custom meta information
Last edited by Gocom (2012-07-17 07:56:00)
Offline