This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Is there a way...Channels & Story sections.


avatar
ReviewStud 135
From: -
Is there a way...Channels & Story sections.

1. Is there a way to limit which news channels are displayed as content on the index page? I want to use all of them except for my "News" channel feed.

2. Is there a way to remove the "story" and "news link" section on the main and alt pages? I don't need to show the content or URL in those fields on the index or channels page, but I want them to only show only on the article's specific page.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Is there a way...Channels & Story sections.
avatar
OP 135
From: -
That did the trick.
1 Re: Is there a way...Channels & Story sections.
avatar
Editor
0
From: -
Removing the following HTML code from the template news_story should do the trick:

<div class="content">{$insert['newsstory_teaserimage']}{$insert['newsstory_story']}{$insert['newsstory_tags']}</div><br />
1 Re: Is there a way...Channels & Story sections.
avatar
OP 135
From: -
1. Great!! That did the trick. I'm getting every channel except for my "news" channel. WOO HOO!!

2. I removed the code three times, but the "story" text is still being displayed. It did remove the "News Link" and the space between it & "story" text. I went ahead and added a new article, but the "story" text is there on that one too.
1 Re: Is there a way...Channels & Story sections.
avatar
Editor
0
From: -
1. Is there a way to limit which news channels are displayed as content on the index page? I want to use all of them except for my "News" channel feed.

No, at least not without a small modification. In the default configuration you can only exclude single stories from the front page.

A modification for the news channels would look like this. Open modules/news/news.php in an editor and add after the following:

       else

{
$newsstory_status = "(newsstory_status = '0' OR newsstory_status = '3')";
}


this:

$newsstory_status .= " AND NOT(newsstory_channels LIKE '%CHANNEL_KEY%')";

You need to replace CHANNEL_KEY with the channel key of your news channel feed.

2. Is there a way to remove the "story" and "news link" section on the main and alt pages? I don't need to show the content or URL in those fields on the index or channels page, but I want them to only show only on the article's specific page.

This requires a code modification in the same file. You need to remove the following code (three times):

                              elseif( $insert[ 'newsstory_link' ] )

{
$insert[ 'newsstory_story' ] .= $templates -> exectemplate( $main_templates[ 'news_story_link_html' ], $main_templates[ 'news_story_link_php' ], $insert );
}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.