• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SEOTools2 with groups of keywords
PostPosted: Fri Jun 15, 2012 9:15 am 
Offline
Power Poster
Power Poster

Joined: Sat Jan 22, 2005 11:19 am
Posts: 287
SEOTools is designed to filter out duplicated keywords to prevent keyword spamming. There are occasions (and quite a few requests) to allow the input of grouped keywords.

Rather than change the module, the solution can be achieve easily in the templates.

Firstly, on the page edit keywords screen, choose a character that you know will never be used in the meta section. In the example below, I've chosen the tilde character (~).

In your template, capture the SEOTools2 module and assign it to a var. Then put the var in the template with the replace modifier. Replace the ~ with a space.

Example:

Keyword edit screen:
Code:
rubbish garbage keywords these~keywords~should~be~grouped


In the page template:
Code:
{capture assign=seo2}{SEOTools2 showbase=1}{/capture}
{$seo2|replace:'~':' '}


The end result is that none of the words separated by a ~ are removed and the grouped words appear together without being separated by commas.

HTML output:
Code:
<meta name='description' content='This page covers the topics rubbish, garbage, keywords, and these keywords should be grouped' />
<meta name='keywords' content='rubbish, garbage, keywords, these keywords should be grouped' />


hth
psy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
cron
Arvixe - A CMSMS Partner