Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-08-11 10:22:50
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
How do i modify the <title> of a page ?
I’ll eplaing better: i’m working for a friend that has a site made with Textpattern. I wish do a little SEO on it (i just installed rah plugin) and now i wish modify just <title> and <description> of every page.
With rah_metas i’ll change the description (how ? i read the manual, but WHERE i must put the <txp:rah_metas /> ? In the source of file taken via ftp ? Via web interface ? Where in the web interface ?)
And how can i modify the <title> of the every page ?
thanks
Offline
Re: How do i modify the <title> of a page ?
Place your rah_metas tag in the head of the site’s TXP page or in a TXP form called at the appropriate point in the page. Save it, as normal, in the TXP interface, no need for FTP.
To get an appropriate title you can use the TXP tag <txp:page_title/>
, check it out here. You might also want to read Stuart’s article here that details a more comprehensive way to get an appropriate title on each page using TXP tags.
Offline
#3 2009-08-11 13:01:22
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
Re: How do i modify the <title> of a page ?
Thanks for the answer joebaich, but i’m explaining better:
when i click on “html” the resul is this:
http://img25.imageshack.us/i/txp1.jpg
http://img194.imageshack.us/i/txp2.jpg
So, as you can see i can modify only a part of source of the page. Where’s the complete source (<head></head> where i can put rah’s tag and <txp:page_title/> ?
thanks again for the support !
Offline
#4 2009-08-11 15:11:29
- zeusdidit
- Member
- Registered: 2007-10-16
- Posts: 111
Re: How do i modify the <title> of a page ?
This is how I did my SEO optimization for me blog:
Using the fabtastic plugin from : ob1_title So get the ob1_title plugin from http://textpattern.org/plugins/183/ob1_title
Please understand I am only using ONE page template but I do have numerous other ways to build SEO with TXP using FORMS as well:
So here’s the code if you like for all the head of the document ::) and be well.
Also I’ve added some commenting in there. Replace the content with yours. Any question or comments blast (post) them here.:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<txp:if_individual_article> <!-- check if we are on an individual article page, if so use the code below -->
<meta name="keywords" content=" <txp:keywords /> "> <!-- find keywords for this article if any were added -->
<txp:else /><!-- ok, now let's find the other types of pages like sections that don't have keywords or other arbitrary section i may have missed -->
<meta name="Keywords" content="zeusdidit,Zeus blog, zeus did it, zeus perez, zeus, zeus miami, zeus design, design, web design, multimedia miami, multimedia fort lauderdale, miami art, miami multimedia designer, designer fort lauderdale, design coral springs, multimedia coral springs, artist coral springs, coral springs artist, coral spring designer, coral springs web design, coral springs web designer, fort lauderdale commercial art, florida art, design portfolio, advertising miami, advertising fort lauderdale, fusion artist" >
</txp:if_individual_article><!-- end the first part of checking article stuff , on to the goodies of Styling and Title optimization -->
<!-- 3_column page for zeus perez @ zeusdidit.com --><!-- you should always give yourself props with comments ::) -->
<link rel="stylesheet" href="<txp:css />" type="text/css" /> <!-- this is adds the stylesheet being used in the 'section' portion -->
<txp:if_individual_article> <!-- ok check again if this is an individual article -->
<title><txp:ob1_title order="article , sitename" separator=" " /></title><!-- if this is an individual article, put the article name first, then the sitename cuz it's sooo sexy :) -->
<txp:else /> <!-- else if this is some other random section let's just rewrite the stuff again because I don't want to miss any sections Doh. -->
<title><txp:ob1_title order="article, section, sitename" separator=" -" /></title>
</txp:if_individual_article><!--we're done-->
</head>
<body>
http://blog.zeusdidit.com Cheers ::)
Added code tags, linked the link -Gocom
Last edited by Gocom (2009-08-11 23:30:04)
Offline
#5 2009-08-12 08:23:06
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
Re: How do i modify the <title> of a page ?
hello zeusdidit, thanks for the help, i’ve installed the plugin, but i’m at the same point of before….where i can do the various modify ?
Where i can find the source code of entire pages (where i’ll put the various tag for seo) ?
thanks
Offline
#6 2009-08-13 14:36:21
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
Re: How do i modify the <title> of a page ?
UP !!!! PLEASE anyone help me !!!! i think that this is a simply question…really, peraphs i’m stupid but i can’t find WHERE i can modify the meta tags for every page in TXP !!!!
Offline
Re: How do i modify the <title> of a page ?
Hi ienabellamy
you can find the titles of the individual articles whilst editing individual articles in the “write” tab. You can find all articles in the “articles” tab.
Txp offers keywords on a per article basis and you can find them in the aforementioned tabs. Check the txp:keywords and txp:if_keywords tags which should be placed in presentation>section tabs (or in the forms if there is an output form for the head)
Txp is very flexible so unfortunately there can be no easy answer as in go there but I hope that the above will be of help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#8 2009-08-13 15:23:01
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
Re: How do i modify the <title> of a page ?
Hello colak, and thanks for the reply, but again i can’t modify the meta tags, such <title>
i’ll show you:
http://img517.imageshack.us/img517/6962/txpfinal.jpg
please see this image and explain me ;)
very very thanks for the help, this is a site for a fundation no profit (Abruzzo people)
Offline
Re: How do i modify the <title> of a page ?
Hello Again,
The basic x(html) and TXP tag combination to make the page title appear in your browser frame is <title><txp:page_title/></title>
but, as Colak suggests when he explains that TXP is flexible and that there is rarely only one answer, you should do more than that:
- to include the name of the web site in the title.
- to take account of pages that carry a list of articles rather than a single one. Search results, section lists (e.g. at the url http://www.fondazionemenegaz.it/pubblicazioni) and category lists (e.g. at the url http://www.fondazionemenegaz.it/?c=2009) are examples of pages that carry a list of articles.
One way to do this is to put this combination of tags in the head of the TXP page that calls up your articles:
<title><txp:if_individual_article>
<txp:section title="1" />: <txp:page_title />
<txp:else />
<txp:section title="1" />: <txp:site_name />
</txp:if_individual_article></title>
It should make something like the following appear in the head of your browser:
Fondazione Menegaz : Alberto Burri.
Again, I suggest that you read Stuart Butcher’s article here that explains more about that sequence of tags and will help you come up with a complete answer to your question.
Last edited by joebaich (2009-08-13 17:11:49)
Offline
#10 2009-08-13 17:48:50
- zeusdidit
- Member
- Registered: 2007-10-16
- Posts: 111
Re: How do i modify the <title> of a page ?
Ok, i think I understand your issue. Do you know where to actually change the title information? There’s two “main” places you can change this. The Presentation/Page tab. and the Admin/Basic Tab. Images below.
You can modify the Title in the Presentation/Page section located in the section listed below:
You can format how it looks here as well using the Admin/Basic “Permanent Link Mode” set to “section/title”
You will see on this page code or areas to modify how your pages will render SEO.
I’ve used ob1_title because I wanted my Titles first, then the site name except if I’m just on a section, hence my crazy code..
The most simplistic form for the title can be: <txp:title/> : your site name </a>. Go to the Presentation Tab and you will see this code there. The Admin Tab has the settings for how the “URL” will show such as, http://www.fondazionemenegaz.it/castelbasso/13 or http://www.fondazionemenegaz.it/castelbasso/page-title I believe. Someone correct me if I’m wrong.
The problem I came across with some of my sites was that the Site’s name was being used in the navigation as “home”, and not as the site’s name. I’m doing things differently now with different sites.
Hope this helps…
Offline
#11 2009-08-13 17:53:59
- zeusdidit
- Member
- Registered: 2007-10-16
- Posts: 111
Offline
#12 2009-08-24 09:22:31
- ienabellamy
- New Member
- Registered: 2009-08-11
- Posts: 6
Re: How do i modify the <title> of a page ?
@zeusdidit: oh thanks, now it all more clear ;)
again thanks all and for all precious advice ;)
Offline