thezey Posted June 14, 2014 Share Posted June 14, 2014 Hello. I write articles under CMS and would like to include some code so that Google and Bing can add associated links, recognize authorship (Google +), image, category, and published date when people search the article. The thing is that I just want specific pages to show up that way. Does Anybody know what code and how to implement it into specific cms pages? Thank you in advance Link to comment Share on other sites More sharing options...
thezey Posted June 15, 2014 Author Share Posted June 15, 2014 It would be great to know how to add rich snippets to some cms pages. If anybody could help giving some pointers, i'd be grateful. Link to comment Share on other sites More sharing options...
vekia Posted June 15, 2014 Share Posted June 15, 2014 hello you can edit cms.tpl file located in your theme directory add there code like {if $smarty.get.id_cms==3} GOOGLE SNIPPETS HERE {/if} code above will show GOOGLE SNIPPETS HERE only for cms page with id: 3 you can add as many if conditions as you want :-) 1 Link to comment Share on other sites More sharing options...
thezey Posted June 16, 2014 Author Share Posted June 16, 2014 hello you can edit cms.tpl file located in your theme directory add there code like {if $smarty.get.id_cms==3} GOOGLE SNIPPETS HERE {/if} code above will show GOOGLE SNIPPETS HERE only for cms page with id: 3 you can add as many if conditions as you want :-) Thank you, Vekia! I'm starting to understand, but not quite sure though. For example, what would be the code for an associated link regarding a specific CMS page? Link to comment Share on other sites More sharing options...
thezey Posted June 16, 2014 Author Share Posted June 16, 2014 I was looking for the google snippet for datePublished and mini search links, but I couldnt find them. Where do we find those codes? Link to comment Share on other sites More sharing options...
thezey Posted June 17, 2014 Author Share Posted June 17, 2014 Could I use the following code? <span itemprop="datePublished" content="2014-03-20"></span> But, the problem is that I don't know to what cms page to add this code too. Should I add this code to each cms page? Link to comment Share on other sites More sharing options...
thezey Posted June 19, 2014 Author Share Posted June 19, 2014 Vekia, could you give me a hand on this? I'm kind of struggling Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2014 Share Posted June 19, 2014 hello i pasted example of code that allows to display contents only on defined cms page. i have no idea what kind of contents you want to display there so instead o "GOOGLE SNIPPETS HERE" add own content (snippet code) then this snippet will appear only on {if $smarty.get.id_cms==3} page Link to comment Share on other sites More sharing options...
thezey Posted June 19, 2014 Author Share Posted June 19, 2014 The context is text like an article. I got the defined code you just kindly gave. However, I can't find the right snippet code used to display the date published nor the link associated. Do you know what the code is for DatePublished and/or "mini search link"? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts