|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Aaron5 Smarty n00b
Joined: 17 Oct 2011 Posts: 2
|
Posted: Mon Oct 17, 2011 8:04 am Post subject: using link rel canonical |
|
|
Hi everyone,
I am in charge of a website developed with smarty and I want to add a canonical link rel in my header.
Only some of my articles are duplicated and require the link. The url corresponding to each article is stored in the databse along with the other informations of the article.
My question is how should dynamically add the canonical link with the right url?
Thank you for your help! |
|
Back to top |
|
Saffa Smarty n00b
Joined: 20 Nov 2011 Posts: 1
|
Posted: Sun Nov 20, 2011 9:14 pm Post subject: |
|
|
Hi All
After not finding the solution I wanted, I wrote my own little function to handle the url in the browser window, it's written for a project that's still using smarty v2, so I don't know if it works for V3, but should do.
I've put it in my own blog for content and seo, view it here, Smarty 'this URL' function
I hope it is helpful to anyone, let me know if it is.
Cheers
Ron |
|
Back to top |
|
Mirko Smarty n00b
Joined: 26 Nov 2015 Posts: 1
|
Posted: Thu Nov 26, 2015 9:22 am Post subject: Adding canonical to smarty |
|
|
Hi the link not working,I have an arcade script and I want to add canonical to all my pages anyone know how?,thanks in advance. |
|
Back to top |
|
|
|
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
|