Hi all,
First, thanks to Leevi for helping me sort out some initial problems with the installation.
I have a header template with this in it:
<head>
{if segment_2 == ''}
{!-- Override the page title and hide the default site title --}
{exp:lg_better_meta_pl:template
title="Gino Guarnere Photography | Event Photography, Sports, Weddings, Portraits, Chester County, PA"
hide_site_title = "y"
}
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=black/ginostyles}' />
<style type='text/css' media='screen'>@import "{stylesheet=black/ginostyles}";</style>
{if:else}
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=black/ginostyles}' />
<style type='text/css' media='screen'>@import "{stylesheet=black/ginostyles}";</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
{!-- better meta here we go --}
{exp:lg_better_meta_pl:template
entry_id="{embed:entry_id}"
weblog_id="{embed:weblog_id}"
url_title="{embed:url_title}"
title="{embed:title}"
title_suffix="{embed:title_suffix}"
title_prefix="{embed:title_prefix}"
hide_site_title="{embed:hide_site_title}"
description="{embed:description}"
keywords="{embed:keywords}"
author="{embed:author}"
publisher="{embed:publisher}"
rights="{embed:rights}"
date_created="{embed:date_created}"
date_modified="{embed:date_modified}"
date_valid="{embed:date_valid}"
identifier="{embed:identifier}"
robots_index="{embed:robots_index}"
robots_follow="{embed:robots_follow}"
robots_archive="{embed:robots_archive}"
canonical_url="{embed:canonical_url}"
region="{embed:region}"
placename="{embed:placename}"
latitude="{embed:latitude}"
longitude="{embed:longitude}"
}
{!-- end better meta --}
{/if}
</head>It seems to be working fine. I get a different output for my home page, and then the rest of the pages get the “standard” meta being called when the “if else” is met.
Now, I’d like to drill down one more layer, and get page-specific output, for example, on my “Galleries” page, which will feature photography.
I’m trying, therefore, to put this code into my gallery template:
{exp:weblog:entries weblog="galleries" limit="1"}
{embed="black/header" url_title="{segment_3}"
{/exp:weblog:entries}When I add that code to my gallery template, I get a blank page, with the source code below. The title, by the way, seems to be parsing correctly and showing up as I want it to. Perhaps it’s the conditional statement in my main embedded template?
Here’s the source of the blank page, which seems to be everything in the if/else statement, but nothing below it…it’s like it’s rendering ONLY the if/else, and then ignoring the body tag that would be right below…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<link rel='stylesheet' type='text/css' media='all' href='http://www.ginoguarnere.com/expression/index.php?css=black/ginostyles.v.1255407134' />
<style type='text/css' media='screen'>@import "http://www.ginoguarnere.com/expression/index.php?css=black/ginostyles.v.1255407134";</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>A man and his dog | Gino Guarnere Photography | ginoguarnere.com</title>
<meta name='description' content='Gino Guarnere (Principal, Pixeldust Films and Gino Guarnere.com) is an award winning photographer based in Chester County, PA, focusing on event photography including sports, weddings, as well as corporate and portraiture.' />
<meta name='keywords' content='chester county photography, action sports, portrait photography, wedding photography, pixeldustfilms' />
<meta name='robots' content='index,follow,archive' />
<meta name='geo.position' content=',' />
<meta name='geo.placename' content='' />
<meta name='geo.region' content='' />
<link rel='schema.DC' href='http://purl.org/dc/elements/1.1/' />
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
<meta name='DC.title' content='A man and his dog | Gino Guarnere Photography | ginoguarnere.com' />
<meta name='DC.creator' content='Gino' />
<meta name='DC.subject' content='chester county photography, action sports, portrait photography, wedding photography, pixeldustfilms' />
<meta name='DC.description' content='Gino Guarnere (Principal, Pixeldust Films and Gino Guarnere.com) is an award winning photographer based in Chester County, PA, focusing on event photography including sports, weddings, as well as corporate and portraiture.' />
<meta name='DC.publisher' content='Gino Guarnere' />
<meta name='DC.date.created' scheme='DCTERMS.W3CDTF' content='2009-10-09T18:34:33-0400' />
<meta name='DC.date.modified' scheme='DCTERMS.W3CDTF' content='2009-10-10T03:20:34-0400' />
<meta name='DC.date.valid' scheme='DCTERMS.W3CDTF' content='2009-10-19T17:16:28-0400' />
<meta name='DC.type' scheme='DCTERMS.DCMIType' content='Text' />
<meta name='DC.rights' scheme='DCTERMS.URI' content='All content copyright Gino Guarnere' />
<meta name='DC.format' content='text/html' />
<meta name='DC.identifier' scheme='DCTERMS.URI' content='http://www.ginoguarnere.com/expression/index.php/black/galleryfull/more_testsssss/' />
</head>And here’s the URL to the page that’s throwing the error…
Thanks!
GG
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.