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 Showing headlines
1 2 3
Chris
Posted on 02 Apr 2012, 08:33:57

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

Try adding $static = true before your news headlines on the left side, that will make sure that the system only shows the headlines in that section even when viewing a full article. So the code would look something like this

<?php
$static = 'true';
$template = 'Headlines';
include 'news/index.php';
?>
#3819
nootkan
Posted on 02 Apr 2012, 17:36:36

Access: Member
Total Posts: 16
Joined: 2012-03-05

Thanks that fixed my comments issue. Now how do I get the headline link to go to the actual article and not the fullstory page? Here is the link to the site in case you want to see for yourself: FNF Sportsfishing

<p><h3>News</h3></p>
<?php
$static = 'true';
$npage = '3';
$template = 'Headlines';
include 'news/index.php';
?><br />

Also as you can see I have $npage = '3'; and I'm seeing four headlines not three.

#3821
Last edited by nootkan at 2012-04-02 17:43:52 Reason: reformat
Chris
Posted on 02 Apr 2012, 20:13:33

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

Because you're using friendly URLs, you need to edit your Headlines template so that the headline links it generates are friendly as well, instead of this

<a href="fullstory.php?id={id}">{title}</a>

Do something like this

<a href="/news/{id}-0-{friendlytitle}#comments">{title}</a>

As for the incorrect number of headlines showing, use $nppage not $npage

#3822
nootkan
Posted on 02 Apr 2012, 20:52:38

Access: Member
Total Posts: 16
Joined: 2012-03-05

Awesome Chris, it worked perfectly. Once more question...I can't figure out how to have a breadcrumb link on the article page that links back to the full story page or to the previous/next article. I have looked inside the default and Headlines templates and both have the

[prev-link]Previous [/prev-link] {pages} [next-link]Next[/next-link] 

inside the news pagination and comments pagination. For now I added a text link named "News Frontpage" using html and css inside my fullstory.php page just above the include call and below the title, but was hoping to use php somehow to show a breadcrumb trail. Is there a way to do this inside the include call?

#3823
Last edited by nootkan at 2012-04-02 22:47:06 Reason: update
Chris
Posted on 03 Apr 2012, 21:36:03

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

I'm not sure what you mean exactly with regards to breadcrumbs. Breadcrumbs to me are what you see at the top of this forum above the thread

Forums - Help & Support - Showing headlines

Is what what you're trying to achieve or something else?

On this page - http://www.fnfsportsfishing.com/fullstory.php you're showing all your news articles, the system will automatically show next/previous links as well as number links if there are more news articles that the value of $nppage

If this isn't happening then the template you're using may need to edited slightly so that {pagintation} is added to the News Structure section.

#3824
nootkan
Posted on 04 Apr 2012, 00:10:56

Access: Member
Total Posts: 16
Joined: 2012-03-05

Yeah that is what I mean by breadcrumbs. If you go to one of the articles from the fullstory page you'll see what I mean. I had to add a link at the top of the article to go back to the fullstory page to see the other articles. I was wondering if there were a way to show the breadcrumbs for each of the articles in print on each of the pages they are shown (4.0 Ajax default template?) Am I making any sense? Also {pagination}is already in the news structure in both of my ( 4.0 Ajax and Headlines) templates. I assume this is done by default as I haven't added it. There is only 4 articles on the fullstory page so far, maybe that is why the breadcrumbs aren't showing on it, but is there a way the actual page the individual article is shown on, has links to the other three articles or at least the fullstory page?

#3825
Last edited by nootkan at 2012-04-04 00:21:49 Reason: updated
Chris
Posted on 04 Apr 2012, 09:06:45

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

So something like this is what you're after

Front page - The Barn Door Dilemma ?

The only way to get the article title to show like this would be to use an additional include that only shows the title of the currently viewed article. For example something like this

<p>Front Page - 
<?php
$template = 'Title';
$static = true;
include 'news/index.php';
?>
</p>

You'll need to create a new template which shows only the title of the articles.

#3826
nootkan
Posted on 04 Apr 2012, 15:41:37

Access: Member
Total Posts: 16
Joined: 2012-03-05

That is closer. Is this possible?

Frontpage-->Barn Door Dilemma-->previous post-->next post

Now if this isn't possible and I use your suggestion I am assuming that I replace the second include

<h1>FNF Sportsfishing Blog and News</h1>
<a href="http://www.fnfsportsfishing.com/fullstory.php" class="newsfrontpage">News Frontpage</a><br /><br />
<?php
include 'news/index.php';
?><br /><br />
<a href="http://www.fnfsportsfishing.com/fullstory.php" class="newsfrontpage">News Frontpage</a><br /><br />

in fullstory.php with the new include you suggested in the previous post correct?

<p>Front Page - 
<?php
$template = 'Title';
$static = true;
include 'news/index.php';
?>
</p>
#3827
Last edited by nootkan at 2012-04-04 15:49:43 Reason: updated
Chris
Posted on 06 Apr 2012, 20:36:01

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

You've hit the limit of the functionality the system provides in terms of the pagination functionality. This behavior could be implemented if it were custom coded but for now it's not something the system can do unfortunately.

#3829
nootkan
Posted on 10 Apr 2012, 04:53:21

Access: Member
Total Posts: 16
Joined: 2012-03-05

Ah that explains it. I couldn't get your previous suggestion to work either. Oh well I will keep the simple html fix as it at least gives a link back to the news home page. Thanks for your help.

#3837
Last edited by nootkan at 2012-04-10 04:54:27 Reason: updated
1 2 3
Network-13.com © 2013