When i put the {metadata} tag in the template it will display meta data without any meta tags. Ok, that's fine i just put the meta data tags around the output.
But now that i'm using the pretty hierarchy URL's i need the "base" tags. So i say "{metadata showbase="true"}" We'll... then it displays the meta stuff in the meta tags, along with the base stuff in the meta tag.
So here is my template:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>{title}</title>
{stylesheet}
<meta name="description" content="{metadata showbase="true"}">
</head>
</__body>
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Visitor's Guide - First Lutheran Church and School, Elkhorn, WI (WELS)</title>
<link rel="stylesheet" type="text/css" href="http://www.firstatthecross.com/stylesheet.php?templateid=5" />
<meta name="description" content="First Lutheran Church and School, Elkhorn, WI (WELS) - The continuing purpose of this congregation, as a gathering of Christians, is to serve all people in God’s world with the gospel of Jesus Christ on the basis of the Holy Scriptures. 415 South Devendorf Street Elkhorn, Wisconsin 53121, Church (262)723-4191 / School (262)723-1091
<base href="http://www.firstatthecross.com/" />">
</head>
Code: Select all
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';