RE: How to display Channel entry page?
The accepted solution doesn't seem to work for me. My "products/index" template has something like this:
{exp:channel:entries channel="products" limit="10" orderby="date" sort="desc"}
<a href=/products/detail/{url_title}">{name}</a>
{/exp:channel:entries}
Then in "products/detail" template, I have something like this:
{exp:channel:entries channel="products" limit="1"}
<h2>{name}</h2>
<p>{description}</p>
{/exp:channel:entries}
The "products/detail" page always shows the same record (and when you look at the tag pair, it make sense I think). How is this template supposed to know which record specifically to access? What is it about {url_title} that hints to which entry to retrieve? Is there something I need to put in the tag pair to tell it to use the {url_title} segment?
{url_title}or{entry_id}in the{exp:channel:entries}tag, such as{exp:channel:entries channel="products" url_title="{segment_4}" dynamic="off" limit="1"}where segment would be whichever segment you are using, 2, 4, etc. Also, test with the{title}field it will provide a better idea of what's being pulled, if anything. – nonprofit_tech Dec 29 '12 at 18:13