Here is the code to easily have a CMS module to control the webpages TITLE, DESCRIPTION, and Keywords:
Add the following code to your CMS FILE (or in between the <template></template> tag on the page/template:
Take note: Google is currently ignoring the keywords tag(or so they say) but I bet it will make a comeback and is good for other search engines as well.
Add the following code in between the <head></head> tag of your webpage/template:
If NOT using clonable template page (clonable='0'):
If using clonable template page (clonable='1'):
I Hope that this useful
- Developernator
Add the following code to your CMS FILE (or in between the <template></template> tag on the page/template:
- Code: Select all
<cms:editable name='page_section_header' label='Homepage Meta/Head Details' type='group' />
<cms:editable name='page_title' type='text' label='Page Title' group='page_section_header' maxlength="55" desc='For SEO Please keep it under 55 Characters'>Please enter the page title here</cms:editable>
<cms:editable name='page_desc' type='text' label='Page Description' group='page_section_header' maxlength="160" desc='For SEO Please keep it under 160 Characters'>Please enter a short page description here</cms:editable>
<cms:editable name='page_keywords' type='text' label='Page Keywords' desc='Seperate key words with a comma' group='page_section_header' desc='For SEO Please keep it 10 keyword Phrases Seperated by Commas'>Please, enter, keywords, here, with, commas, separating, them</cms:editable>
Take note: Google is currently ignoring the keywords tag(or so they say) but I bet it will make a comeback and is good for other search engines as well.
Add the following code in between the <head></head> tag of your webpage/template:
If NOT using clonable template page (clonable='0'):
- Code: Select all
<title><cms:get_custom_field 'page_title' masterpage=k_template_name /></title>
<meta name="description" content="<cms:get_custom_field 'page_desc' masterpage=k_template_name />
<meta name="keywords" content="<cms:get_custom_field 'page_keywords' masterpage=k_template_name />
If using clonable template page (clonable='1'):
- Code: Select all
<title><cms:if k_is_list ><cms:get_custom_field 'page_title' masterpage=k_template_name /><cms:else /><cms:if k_is_page ><cms:show page_title /></cms:if><cms:if k_is_folder ><cms:show page_title /></cms:if><cms:if k_is_archive ><cms:show page_title /></cms:if><cms:if k_is_home ><cms:show page_title /></cms:if></cms:if></title>
<meta name="description" content="<cms:if k_is_list ><cms:get_custom_field 'page_desc' masterpage=k_template_name /><cms:else /><cms:if k_is_page ><cms:show page_desc /></cms:if><cms:if k_is_folder ><cms:show page_desc /></cms:if><cms:if k_is_archive ><cms:show page_desc /></cms:if><cms:if k_is_home ><cms:show page_title /></cms:if></cms:if>" />
<meta name="keywords" content="<cms:if k_is_list ><cms:get_custom_field 'page_keywords' masterpage=k_template_name /><cms:else /><cms:if k_is_page ><cms:show page_keywords /></cms:if><cms:if k_is_folder ><cms:show page_keywords /></cms:if><cms:if k_is_archive ><cms:show page_desc /></cms:if><cms:if k_is_home ><cms:show page_title /></cms:if></cms:if>" />
I Hope that this useful
- Developernator