I need to be able to have the headline link point to a inline frame with the full article

Asked by Lannie

I have a site that uses frames. The frame on the left, on the homepage should show the article title and summary.
When they click on the title, it should populate the mainframe with the full article. How do I modify the code to do this?

The frame on the left would say for example:

Oursite hosting vistitor day
We would like you to join us....

When they click on the headline, it should fill the main frame in the center of the page with the full article.

I have no idea how to create this html code to reference frames.

Lannie

Question information

Language:
English Edit question
Status:
Solved
For:
phpns Edit question
Assignee:
No assignee Edit question
Solved by:
Lannie
Solved:
Last query:
Last reply:
Revision history for this message
alecwh (alecwh) said :
#1

The following link may help you modify the phpns template to suit your
needs:

http://www.ironspider.ca/frames/frameslinks.htm

Revision history for this message
Lannie (lannie) said :
#2

Your link is a tutorial on hyperlinks and frames. It does not however tell me where this can be done in your software.

Lannie

Revision history for this message
alecwh (alecwh) said :
#3

You can modify templates by logging in, clicking "preferences" at the
top, clicking "template management" and then editing the template
selected.

Revision history for this message
Lannie (lannie) said :
#4

This allowed me to get the link to go to the main frame, however it displays the same page as the left frame instead of the full article.

I want the Subject line and the Sub Title on the left.

When they click on the Subject it shoudl fill the main frame with the Title and full article.

Lannie

Revision history for this message
Lannie (lannie) said :
#5

I am very close:
I created a main_article.php file for the main screen and added the following to it:

<?php
     $phpns['template'] = '10';

    //include the phpns shownews.php
    include("news/shownews.php");
?>

The href in the title link now points to the main_article.php file.

The remaining problem is the main window displays all articles instead of just the one. Is there a article number variable I have to pass to get it to only display the one article?

Thanks!

Lannie

Revision history for this message
Lannie (lannie) said :
#6

I SOLVED IT!

Here is my left_news.php file for the headlines/titles only:

<?php
    $phpns['limit'] = '5';
    $phpns['script_link'] = 'http://www.orisplc.com/main_article.php';
    //include the phpns shownews.php
    include("news/shownews.php");
?>
The template shows the title and the subtitle only. The title href points to {article_href). I had it hard coded to the main_article.php before but the script_link now points to the correct file and the {article_href} inserts the correct article number in the url.

The main_article.php file contains:

<?php
    $phpns['template'] = '10';

    //include the phpns shownews.php
    include("news/shownews.php");
?>

This simply uses the template I have setup to display the title and the full article only. No links or comments or pagination.

THIS WORKS wonderfully!!!!

thank you for writing such a terrific application. It just took my newbie brain a while to let it all sink in.

Lannie