Hi,
I have been doing Ryan Ireland’s {great} EE tutorials and I wanted to try a tweak on one of the lessons. This is not a support question for them but what should be a common help request I hope.
Having created a Sand Alone Entry Form, the post, once approved, displays on the home page at the bottom of the page in the “Letters To The Editor” section, link to the site here. What’s not covered in the tut are two real world situations: if someone writes a lengthy article it would break the design, and the typesize is smaller so it should have a link to display the entire letter on its own page. So I limited the word count and put a Read More link to fix the design prob but one problem - the link doesn’t load the specific letter, only the latest entry.
I thought the solution might be entry_id but I can’t seem to find any support on how that’s implemented in this code block. Do I need to generate a number at the entry and then call it somehow?
This is the code from the page you’re viewing (through above link):
{exp:weblog:entries weblog="letters_to_editor" limit="3" disable="comments|trackbacks"}
<div id="{switch="lcol|mcol|rcol"}">
<h4>{title}</h4>
<p> </p><h5><span class="by">From</span> {author}</h5>
<p> {exp:word_limit total="20"}<br />
{letter_body}<br />
{/exp:word_limit}<br />
<a href="http://{path=news_articles/letter_view}">Read more</a><br />
</div><br />
{/exp:weblog:entries}Grateful for any help.
Pete