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 Problem with Shortstory and Story
stephane
Posted on 12 Feb 2012, 21:45:52

Access: Member
Total Posts: 2
Joined: 2012-02-12

Hi,

The article shows up in its entirety if the text is in the "Article" section and there is nothing in the "Summary" section. But, if I write something in the "Summary" section, only this text appears on the web site (http://network-13.com/news/). The template is set to show both: {shortstory} {story}

What am I doing wrong?

Stephane

#3707
stephane
Posted on 12 Feb 2012, 23:44:19

Access: Member
Total Posts: 2
Joined: 2012-02-12

Thread 3453 got the answer to the problem.

Thanks to Gebeer!

#3708
Chris
Posted on 13 Feb 2012, 13:04:59

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

No need to edit any files to make this work. If you have a look at this page http://code.google.com/p/n-13news/wiki/Integration which shows all the variables you can use when displaying your news.

<?php
$news_layout = '0';
// How the articles are shown when not viewing a single post
// 0 = default, shows article, if post has a summary shows it instead
// 1 = Show summary only
// 2 = Show article only
// 3 = Show summary and article

$comments_layout = '0';
// How the articles are shown when viewing a single post
// 0 = Show both article and summary
// 1 = Show summary only
// 2 = Show article only

include 'news/index.php';
?>
#3709
Network-13.com © 2013