Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Short Story Issues
1 2
William
Posted on 24 Jun 2010, 02:21:45

Access: Member
Total Posts: 38
Joined: 2010-02-12

I checked the forums on this but didn't have any luck. Im having issues with my short story and story displaying. Im sure its a relatively simple solution, just have to find it. Okay here's what's going on...On the HOMEPAGE I want to (and have succeeded) display the "short story" version of the full story blog. It works great on the home page. But when I go over to the BLOG PAGE everything displays BUT the story.

I've checked and checked my back end. I have each page with its' own template. HOMEPAGE with a "teaser" template that displays the short story with the same css as the BLOG PAGE. Everything works on the blog page but the story. I don't understand.
#2542
Chris
Posted on 25 Jun 2010, 16:50:39

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Could you post the code you're using for each page, your homepage and blog page. I can't really suggest anything without seeing the code.
#2545
William
Posted on 26 Jun 2010, 04:54:40

Access: Member
Total Posts: 38
Joined: 2010-02-12

This is the code I was using for the short story on the HOMEPAGE...

Code:
<?php 
$cat
[] = 'Blog';
    
$nppage = '10';
    
$image_maxheight = 300;
        
$image_maxwidth = 500;
    
$image_clickable = false;
    
$template = 'teaser';
    
$nppage = '15';
    include 
'news/index.php';
?>


This is the include that I am using for the BLOG page...

Code:
<?php 
$cat
[] = 'Blog';
    
$nppage = '10';
    
$image_maxheight = 300;
    
$image_maxwidth = 500;
    
$template = 'blog';
    
$image_clickable = false;
    include 
'news/index.php';
?>


#2552
Chris
Posted on 26 Jun 2010, 14:55:58

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Check the "blog" template to make sure that it has both the {shortstory} & {story} tags.
#2553
William
Posted on 27 Jun 2010, 19:18:59

Access: Member
Total Posts: 38
Joined: 2010-02-12

So the TEASER template should have... (only)

{shortstory}

And the BLOG template should have...

{story} as well as {shortstory}

???



for it to display the entire story, it needs the "shortstory" tag in there with the story tag?
#2566
Chris
Posted on 27 Jun 2010, 22:39:42

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Here's how the templates work

Code:
{title}
{summary}
{article}


When not viewing a single news article the {article} section will be displayed for all news posts unless they also have a {summary}, if they have a summary then the summary will be displayed.

When viewing a single news article both the article and summary will be displayed assuming you have both the {article} & {summary} tags.

Side note: short->article, shortstory->summary in 3.7
#2569
William
Posted on 05 Jul 2010, 17:16:24

Access: Member
Total Posts: 38
Joined: 2010-02-12

Okay, Got the short story working a while back, however when I click the "read more" button it take the reader to a blank page...dangit!

Ideas?

heres the link... http://virginiarivers.me/home.php
#2611
Last edited by William at 2010-07-05 17:20:30 Reason: forgot the link
Chris
Posted on 05 Jul 2010, 19:12:56

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

the home.php file, can you show me the include code you're using for it?

I tested a similar setup here

http://dev.network-13.com/testlayout/

It basically has 2 posts that both have a summary, it displays only the summary, once you click the read more link the same page refreshes then the summary + article shows for that post.

The code I'm using to do that is just

Code:
<?php    
    $template 
= 'Short';
    
$cat[] = "Blog";
    include 
'../news/index.php';
?>


the "Short" template has both the {summary} and {article} tags within it.
#2612
William
Posted on 05 Jul 2010, 21:41:07

Access: Member
Total Posts: 38
Joined: 2010-02-12

Yeah, yours works great. Probably because your no noob @ this lol...like myself.

heres my include...
Code:
<?php 
$template 
= 'home';
$cat[] = 'blog';
$nppage = '5';
include 
'news/index.php';
?>


I have both the {summary} and the {article} tags inside the template.
#2617
Chris
Posted on 05 Jul 2010, 22:10:33

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I am such an idiot. I logged into your server with the info you gave me previously to try debug this, inserted break points throughout the entire news/index.php to see where the problem was coming from and just couldn't find it.

Then realised something...

Options > Templates > home template > Comments Structure > ...

This is empty, it shouldn't be! ha!

I entered the code that was in that box by default

Code:
{news}
<a name="comments"></a>
{comments}
{commentspagintation}
[loggedin]Welcome, {username}[/loggedin]
{commentsform}
{loginform}


And it now works fine! wooooot

I had to manually create myself an account within the news system, feel free to delete it.
#2618
Last edited by Chris at 2010-07-05 22:14:18 Reason:
1 2
Network-13.com © 2013