Hi Greg,
So, I’ve changed it so that the title is now
The search result still doesn’t find it. But if I look at the source produced for the page, I’m using {title} in 3 different places, and only the actual <title> has been properly encoded - the :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head profile="http://gmpg.org/xfn/11">
<title>P&O | Spaces | Brandspace</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body id="brandspace-co.uk" class="spaces">
<div id="container">
<div id="branding">
<h1><a href="http://brandspace.co.uk/" title="Home page">Brandspace</a></h1>
<ul>
<li><a href="http://brandspace.co.uk/about_us/">About us</a></li>
<li><a href="http://brandspace.co.uk/news/">News</a></li>
<li><a href="http://brandspace.co.uk/contact_us/">Contact us</a></li>
<li><form method="post" action="http://brandspace.co.uk/" >
<div class="simple-search"><label for="keywords">Search:</label><input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" />
<input type="submit" value="search" class="submit" />
</div></form></li>
</ul>
</div>
<div id="nav_main">
<ul>
<li><a href="http://brandspace.co.uk/spaces/">Looking for Venues?</a></li>
<li><a href="http://brandspace.co.uk/case_studies/">Case Studies</a></li>
<li><a href="http://brandspace.co.uk/our_services/">Our Services</a></li>
<li><a href="http://brandspace.co.uk/our_services/promotional_space_management/property_owners/">Property Owner?</a></li>
</ul>
</div>
<div id="content">
<div id="content_main">
<ul id="breadcrumb">
<li><a href="http://brandspace.co.uk/">Home ></a></li>
<li><a href="http://brandspace.co.uk/spaces/">Search for spaces ></a> </li>
<li>P&O</li>
</ul>
<h2>P&O</h2>
<p>P&O Ferries boasts the largest fleet of ships offering a wide range of services and facilities, the most comprehensive route network and the most frequent passenger and freight services to the Continent.</p>
<p>
That li in the breadcrumb and the following h2 are both being derived from the {title}, but they aren’t encoded correctly. Here’s the code for the template:
<?
session_start();
?>
{embed=includes/head title="{exp:weblog:entries limit="1"}{title}{/exp:weblog:entries} | Spaces | Brandspace" bodyclass="spaces" quote=""}
<div id="content">
<div id="content_main">
{exp:weblog:entries weblog="spaces"}
<ul id="breadcrumb">
<li><a href="http://{homepage}">Home ></a></li>
<li><a href="http://{path=spaces}">Search for spaces ></a> </li>
<li>{title}</li>
</ul>
<h2>{title}</h2>
<p>{intro}
That’s why I originally put in the full version - so it got encoded everywhere I used {title}. Any ideas?
Cheers,
Jake.