I’m having an issue with one of my templates. The template in question uses an embeded template to pull some related entries from another weblog. Everything works fine until I add a URL Title to the URL string. With the addition of the URL title in the string the embeded template stops working. I’ve gone through the EE documentation regarding embeded templates and unless I missed something it doesn’t say anything about emebeded templates not working with a single entry.
I did use some custom PHP in the embeded template to accomplish one of my conditionals but I don’t believe that is the issue.
Here is the code for the main template:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Product Container and Listing test page</title>
</head>
{exp:weblog:entries weblog="prod_container" dynamic="on" orderby="date" sort="desc" limit="15"}
<h1>{title}</h1>
{if prod_container_tagline}
<h2>{prod_container_tagline}</h2>
<p> {/if}</p>
<p> {if prod_container_summary}<br />
<br />
{prod_container_summary}<br />
<br />
{/if}<br />
{embed="products/listings" issue="{related_entries id="prod_container_issue"}{entry_id}{/related_entries}" page="{prod_container_page}"}</p>
<p>{/exp:weblog:entries}</p>
<p></body><br />
</html>And here is the code for the embeded template:
{exp:weblog:entries weblog="prod_listing" dynamic="on" orderby="date" sort="asc"}
<?php
$listing_issue = "{related_entries id="prod_listing_issue"}{entry_id}{/related_entries}";
$container_issue = "{embed:issue}";
if ($listing_issue == $container_issue)
{
?>
{if prod_listing_page == "{embed:page}"}
<h3>{title}</h3>
<p>{prod_listing_des}<br />
{/if}</p>
<p><?php<br />
}<br />
?></p>
<p>{prod_listing_page}</p>
<p>{/exp:weblog:entries}I’ll take any help I can get. Thanks.