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 How To Integrate N-13 News fully with website.
Hhawk
Posted on 07 Jan 2011, 12:43:49

Access: Member
Total Posts: 94
Joined: 2010-03-01

Is it possible to display the latest newsitem in a particular section of my website?
...and only when possible with the picture posted in that newsitem?

Probably it ain't possible, but it would be very nice if it's possible...

Take a look at the website I am rebuilding: website
Now I want the latest article to be displayed at "Artikel 1".

I think it's possible to display the latest article there, however displaying the image from the article would be somewhat more difficult...?
#3109
Hhawk
Posted on 07 Jan 2011, 13:20:19

Access: Member
Total Posts: 94
Joined: 2010-03-01

Okay I managed to get the title being displayed at that location, along with the {shortstory}, however I am having a problem...

How can I make the "Lees meer" (= read more) link working correctly? Instead of expanding to full story, it should open to a completely (new) page. Similar like it normally works.

Here is the old version of the website, along with the news page: old website with newsitems
When you click on one of those links you are being redirected to a new page with the full story.
#3110
Chris
Posted on 07 Jan 2011, 14:12:11

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

Have a look at the wiki - http://code.google.com/p/n-13news/wiki/Integration

Code:
Formats how the datae is displayed when viewing the full article/read more page. See here http://uk.php.net/strtotime

<?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';
#3116
Hhawk
Posted on 07 Jan 2011, 14:32:32

Access: Member
Total Posts: 94
Joined: 2010-03-01

Yeah I already checked that website, but when I add do the following:

Code:
<?php 
$news_layout 
= '1';
$template = 'Hoofdpagina';
$cat[] = 'Hoofdpagina';
include 
'nieuws/index.php'; 
?>


It still doesn't work like I want it to. It still only shows the summary (which is good), but when people click on the read more (Lees meer) link it will still expand, instead of forwarding them to a new page with the full article.

See it here... Check the "Rotterdamse subsidie elektrische auto" summary and click on "Lees meer".

#3117
Chris
Posted on 07 Jan 2011, 14:38:08

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

Solution would be to create your own custom readmore links, instead of using [readmore]asdas[/readmore] do something like this

Code:
<a href="newpage.php?id={id}">Read more</a>
#3119
Network-13.com © 2013