I'm having difficulty again. When I think I've solved one thing, another one comes up. Right now, I cannot seem to get the full article to show after clicking a headline. Let me explain how I would like the news to flow:
I've created two templates so far:
"Headlines"
<div class="headlines">
<div class="hldate">
{date}
</div>
<div class="hlcontent">
<a href="fullstory.html?id{id}" title="{title}">{title}</a><br />
{summary}<br />
</div>
</div>
"fullstory"
<h1>{title}</h1>
<p class="smaller">{author} Posted on {date} in {categories}<br /><br /></p>
{article}
The include for all the pages I wish to show the headlines is:
<?php
$static = 'true';
$template = 'Headlines';
$nppage = '4';
$newstimeformat = '%h<br />%d';
include 'news/index.php';
?>
The include for the full article is:
<?php
include 'news/index.php';
?>
This is on http://mhnaz.org/fullstory.html.
The "fullstory" template is the default template at the moment. But in any case I cannot get the full article to appear with one click from the headlines.
Sorry for the bother. I'm a former CuteNews user using similar techniques.
Thanks in advance,
Duane
Your headlines
template needs changed slightly, change
<a href="fullstory.html?id{id}" title="{title}">{title}</a>
to
<a href="fullstory.html?id={id}" title="{title}">{title}</a>
I'm guessing you've created new templates from scratch and have possibly left out the Comments Structure
section of the template. It should look something like this
{news}
<a name="comments"></a>
{comments}
{commentspagintation}
[loggedin]Welcome, {username}[/loggedin]
{commentsform}
{loginform}
Chris, you have been a tremendous help. I'm not sure how I missed that from the different posts that I've read. Sorry, I'm usually a detail person.
BTW, I purposely leave out the comments due the extra policing that a church would have to do to keep up.
Thank you again for the script.
Just put in the following code:
<a href="fullstory.html?id={id}" title="{title}">{title}</a>
Nothing is appearing on the page now. Not sure what happened. I even copied and pasted.
Something isn't right with your template. I can't really figured out what's causing it without seeing it for myself. Would you be able to give me access to the site/server so that I can take a look myself?
No problem. How do you wish me to give you the information?
Send me a private message on here with the details and I'll take a look.
Seems to be working now http://mhnaz.org/index-template.html - Problem was your full story template was missing the Comments Structure
section.
Chris wrote at 2012-06-02 11:26:47
Seems to be working now http://mhnaz.org/index-template.html - Problem was your full story template was missing the
Comments Structure
section.
Perfect. Thank you again. For future reference, when creating a template, I shouldn't clear everything out. Besides the "Comments Structure," is there any other sections that I should leave alone?
Duane
When creating a template the best thing to do is create a copy of a default template and begin editing that. You can make a copy my selecting the checkbox next to a template and selecting Create Copy
from the dropdown box.