Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Meta Descriptions for Each .php page

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Scoopsthedog
Smarty n00b


Joined: 10 Sep 2013
Posts: 2

PostPosted: Tue Sep 10, 2013 12:16 am    Post subject: Meta Descriptions for Each .php page Reply with quote

I am new to the Smarty template and am unclear how to have a unique meta description for each page. I have added [code]<meta name="description" content={$description}">[/code] to my header.html file and have tried to assign a value to this in each pages php file, but it is not working, the meta description is reading as {$description}. This is very important for our site SEO and I don't understand why this isn't well documented in the smarty documentation as it is an integral part to any website. Please advise, I have searched all over the web for suggestions.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Sep 10, 2013 2:28 pm    Post subject: Reply with quote

If the browser source is showing literally {$description}, then that template/file is not being interpreted as a template. We'll have to see some php source code and template source to figure out why. How is this template loaded?
Back to top
View user's profile Send private message Visit poster's website
Scoopsthedog
Smarty n00b


Joined: 10 Sep 2013
Posts: 2

PostPosted: Tue Sep 10, 2013 5:45 pm    Post subject: Reply with quote

Since I am super new to smarty, what specifically do you want me to show you?
In my root I have docroot/ with all the .php files in it and owr/ with classes/ includes/ and templates/
In templates/ is where the .html file for each page template are.
Which php source do you need to see?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP