phpmady Posted May 30, 2010 Share Posted May 30, 2010 Hi, I am using the smarty template, where i have home.html as the main template and calling the news, articles as sub-templates. for example: inside the main.html am calling the news.html, my question is where to insert the meta tags keyword, description etc. Thanks Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/ Share on other sites More sharing options...
Mchl Posted May 30, 2010 Share Posted May 30, 2010 Between <head> and </head> just like usual. Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/#findComment-1065404 Share on other sites More sharing options...
phpmady Posted May 30, 2010 Author Share Posted May 30, 2010 Between <head> and </head> just like usual. hi, thanks for your reply, my question is whether to make in home.html or news.html suppose if am navigating to the news, i willbe calling the news.html template, that is inside the home.html, so now my question is keyword to apply in news.html or home.html I hope this time you understand me Thanks Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/#findComment-1065410 Share on other sites More sharing options...
Mchl Posted May 30, 2010 Share Posted May 30, 2010 I would create separate template for that, and fill it with proper variables as needed. So your home.html would now include two templates: headers.html and news.html Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/#findComment-1065424 Share on other sites More sharing options...
phpmady Posted May 31, 2010 Author Share Posted May 31, 2010 I would create separate template for that, and fill it with proper variables as needed. So your home.html would now include two templates: headers.html and news.html You mean, in headers.html there will be header.html <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Language" content="ar-sa"> <META name="author" content="{author}"> <META name="copyright" content=""> <META name="keywords" content="{keywords}"> <META name="description" content="{description}"> <META name="date" content="21-11-2009"> thanks Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/#findComment-1065679 Share on other sites More sharing options...
Mchl Posted May 31, 2010 Share Posted May 31, 2010 pretty much, yeah. This way you can have different meta tags on each page, but still use one tamplate. Link to comment https://forums.phpfreaks.com/topic/203363-seo-in-smarty-template/#findComment-1065685 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.