Hi guys.
I’m having a hard time figuring something out. I want a weblog page on my site, so I created a template group called “blog”. Under blog my index is displaying the entries as excerpts and then there’s links to the post itself. I want comments to be available on the single-entry page.
See http://roskilde-open.dk/index.php/blog/ for a reference.
So, as of now I created the mentioned index page using the code below to desplay excerpts and link to the entries.
{exp:channel:entries channel="blog" limit="10"}
<h2><a href="http://{entry_id_path=blog/index}">{title}</a></h2>
<p> </p>
<p> Skrevet af <a href="http://roskilde-open.dk/index.php/member/1/">{author}</a> d. {entrydate} i kategorien <a href="http://{path=blog/index}">Blog</a><br />
</p>
<p> {exp:word_limit total="50"}<br />
{body}<br />
{/exp:word_limit}</p>
<p> Læs resten af indlægget <a href="http://{entry_id_path=blog/index}">her</a></p>
<p> </p>
<p> <hr><br />
</p>
<p> {exp:comment:preview}I also created a “comments” template containing this code:
{exp:comment:preview}
{comment}
{/exp:comment:preview}
{exp:comment:form channel="blog" preview="blog/index"} {if logged_out} <label for="name">Name:</label> <input type="text" name="name" value="{name}" size="50" /><br > <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br > <label for="location">Location:</label> <input type="text" name="location" value="{location}" size="50" /><br > <label for="url">URL:</label> <input type="text" name="url" value="{url}" size="50" /><br > {/if} <label for="comment">Comment:</label>
<textarea name="comment" cols="70" rows="10">{comment}</textarea> <label><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</label>
<label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label>
{if captcha} <label for="captcha">Please enter the word you see in the image below:</label>
{captcha}
<input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p> {/if} <input type="submit" name="submit" value="Submit" /> <input type="submit" name="preview" value="Preview" /> {/exp:comment:form}What do I need to do from here?
Thanks in advance