Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-28-2012, 05:43 PM   PM User | #1
KSFilm
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
KSFilm is an unknown quantity at this point
Question PHP/XML Template Meta Tag Issue

Hello,

My website uses an XML document to transfer data to a PHP file, as well as an index.php file, in order to display everything. I am having an issue with duplicate title and meta tags. Each page on the site has the same title and meta description and I do not have a way to change it on the XML file before uploading it. So, what is happening, is that the file is not registering a title when posted elsewhere, it just says the name of my site but not the title of the page. The header template holds the meta information and cannot be changed with each new post. Is there a way to add meta tags to the XML document so they can be changed according to the post I write?

For example, if I write a review of Taken 2 I want the title of the page to be "Taken 2 Movie Review", and the description to say "Taken 2 Movie Review, Trailer, Images". Right now all I get is the name of the site. You can see at filmfracture.com for yourself if you want to have a look.

I'm familiar with basic programming but this exceeds my knowledge. I thought I would see if anyone out there knows a solution before I try and find a new programmer who can fix it.

Thanks for any help you can give.
KSFilm is offline   Reply With Quote
Old 09-29-2012, 02:11 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,366
Thanks: 18
Thanked 348 Times in 347 Posts
sunfighter is on a distinguished road
What ever programs that write your main page and the review pages use the same code for the header. This is where the page title and meta tags exisit. It is probably a require or include type tag that is doing this in the page PHP. This is what needs to be changed.

The way I understand you is that http://www.filmfracture.com/films/looper_movie_review page is generated by a xml/php combo file. The php needs to be altered, The include header file needs to be altered. We would need to see the xml file, the php used to generate the looper page.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Tags
meta, php, xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:34 AM.


Advertisement
Log in to turn off these ads.