SEO Convention for passing title, keywords, description to theme from modules

Description

Currently, in the default theme we have this code
It accounts for the site tagline, or the currentpage, but there isn't a convention for setting it from the module.
I think this is vital, and Andrew Davis confirmed he needs this to launch his first app.

This will be vital with Mapigator too.
Lets establish a convention for setting the title, keyword, description and maybe even additional meta tags, so the theme can handle it simply.

Maybe have a theme method to get the title, and it will look in the request(orwhatever we store them in) for those settings, else pull from the page, else the site.

1 2 3 4 5 6 <!--- Site Title ---> <cfif cb.isPageView()> #cb.getCurrentPage().getTitle()# <cfelse> #cb.siteName()# - #cb.siteTagLine()# </cfif>

This will allow the following:

1 2 3 4 5 6 7 function index(event,rc,prc){ cbhelper.setMetaTitle( 'Gavins cool module' ); cbhelper.setMetaKeywords( 'Gavins cool keywords' ); cbhelper.setMetaDescription( 'Gavins cool description' ); cbhelper.prepareUIRequest( "pages" ); event.setView( "home/index" ); }

Status

Assignee

Unassigned

Reporter

Gavin Pickin

Labels

None

Components

Fix versions

Affects versions

3.0.0 Beta

Priority

Major