Hi folks,
I’m still using 1.3.1 for a charity site that I’m doing.
Been following Travis’ tutorial on http://jambor-ee.com/tutorials/structure/ which has been great.
I have the sample working on http://stage.findlayfamilynetwork.org/ - however I’m having trouble with the ‘news’.
The main news page shows fine but won’t list any news stories. The template I’ve copied from the examples provided
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<title>Structure Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=site/site_css}' />
</head>
<body class="home">
<div id="container">
<h1>Structure Demo</h1>
<ul id="nav">
<li{if segment_1 == ""} class="here"{/if}><a href="/">Home</a></li>
<li{if segment_1 == "services"} class="here"{/if}><a href="/services">Services</a></li>
<li{if segment_1 == "about"} class="here"{/if}><a href="/about">About Us</a></li>
<li{if segment_1 == "news"} class="here"{/if}><a href="/news">News</a></li>
<li{if segment_1 == "contact"} class="here"{/if}><a href="/contact">Contact Us</a></li>
</ul>
<div id="content">
{exp:structure:nav_sub}
<div id="content_main">
<p>{exp:structure:breadcrumb}</p>
{exp:weblog:entries}
<h2>{title}</h2>
{content}
{/exp:weblog:entries}
{exp:weblog:entries weblog="news" dynamic="off"}
<div class="item">
<h3><a href="{page_url}">{title}</a></h3>
<p class="date">{entry_date format="%d/%m/%Y"}</p>
</div>
{/exp:weblog:entries}
</div> <!-- close #content_main -->
<div> <!-- close #content -->
<div id="foot">
<p>Copyright © nGen Works 2008</p>
<div> <!-- close #foot -->
</div> <!-- close #container -->
</body>
</html>
I created http://stage.findlayfamilynetwork.org/index.php/site/test to make sure the entries loop was working and it is.
Any ideas?
Thanks,
S
