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 Display Full articles on new page
lloydcodrington
Posted on 13 Aug 2012, 23:08:14

Access: Member
Total Posts: 3
Joined: 2012-08-13

I have a site with three columns and display the summary in the middle section which is 360px wide so want to display the full article on a new page. Is there a way that this can be achieved?

Regards, Lloyd

#3935
Chris
Posted on 14 Aug 2012, 13:52:51

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

The section of your site where you want to display the summary do the following.

Create a new template called Summary, for the News section of that template, use the following code

{title}<br />
{summary}
<a href="newpage.php?id={id}">Read more</a>

Then on your site where you want to display the summary add the following code

<?php
$template = 'Summary';
include 'news/index.php';
?>

This will display the articles with the summary only and display a "Read more" link beneath each one, that when clicked, will send the user to newpage.php, you then need to create that newpage.php and inside it add the following code where you want the full article to display

<?php
include 'news/index.php';
?>
#3936
Last edited by Chris at 2012-08-14 18:28:08 Reason: Forgot to add the {title} tag to the summary.
lloydcodrington
Posted on 14 Aug 2012, 14:19:15

Access: Member
Total Posts: 3
Joined: 2012-08-13

Hi Chris, Well that was so precise I don't even have to implement it to know I owe you thanks and a donation. First part sent in this reply and second to follow when client say yeahhhhh, which after the trouble we have been through I know they will do.

Chris many thanks and respect for your contribution to the Internet. Valuable, it really is.

Lloyd

#3937
ado88
Posted on 25 Jan 2013, 12:11:26

Access: Member
Total Posts: 1
Joined: 2013-01-25

Does Friendly URLs works with this kind of display articles?

#4004
Network-13.com © 2013