Hey Lisa, I was wondering if you could help me out a little. I tried to create a bus detail page that would be accessed via some of the templates in the tutorial. But I’m having trouble passing on the {entry_id} variable needed from my bug_tracker/index template over to my newly-created bug_tracker/bug_detail template.
Here is the code that I’m using from my bug_tracker/index page (which I’m sure is missing something really simple but ultimately lost on me):
{exp:weblog:entries weblog="{bug_tracker_weblog}" limit="30" status="Open|New|Closed|Fixed"}
{if count == "1"}
<table>
<tr>
<th>ID</th>
<th>Status</th>
<th>Version</th>
<th>Description</th>
</tr>
{/if}
<tr>
<td><a href="http://{path=bug_tracker/bug_detail}">{entry_id}</a></td>
<td>{status}</td>
<td>{bug_tracker_version}</td>
<td>{bug_tracker_details}</td>
</tr>
{if count == total_results}
</table>
{/if}
{/exp:weblog:entries}
And here is my receiving template (bug_tracker/bug_detail) code:
{html_begin}
{embed="inc/.head" title="Bug Tracker"}
<body>
<div id="container">
{embed="inc/.banner"}
{embed="inc/.leftnav"}
<div id="content">
{exp:weblog:entries weblog="{bug_tracker_weblog}" limit="1" status="Open|New|Closed|Fixed"}
<h2>{title}</h2>
<p><strong>ID:</strong> {entry_id}</p>
<p><strong>Reported By:</strong> {screen_name}</p>
<p><strong>Status:</strong> {status}</p>
<p><strong>Version:</strong> {bug_tracker_version}</p>
<p><strong>Severity:</strong> {bug_tracker_severity}</p>
<p><strong>Assigned To:</strong> {bug_tracker_assignment}</p>
<p><strong>Bug Description:</strong><br />
{bug_tracker_details}<br />
{/exp:weblog:entries}</p>
<p><br />
</div><br />
{embed="inc/.footer"}<br />
</div></p>
<p>{html_end}
I’m guessing the solution is something very simple but I’ve looked in the documentation and can’t wrap my head around what it could be. Can you please help?