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

Category not showing all articles


avatar
BorisB 0
From: -
Category not showing all articles

Hi,

I have Storyteller v1.8.

I have some news sub-categories with hundreds of articles in them, but the category.php?id=[category id] page only displays the last 20 news items. There's no link at the bottom of the page for "Next" results or anything.

Am I missing something or is this the way it is supposed to be.

Notice

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

Responses to this topic


1 Re: Category not showing all articles
avatar
Administrator
1340
From: Vienna, Austria
Category not showing all articles

Yes, I mean Google or Yahoo. The main problem is that the stories are rotating quite often from one page to another, which makes it nearly impossible to get it properly indexed on websites with many new stories each day.

The main difference between a forum and the category page is that the category pages have actually the content on it while the forums pages are only linking to the threads pages.
1 Re: Category not showing all articles
avatar
OP 0
From: -
Category not showing all articles

Philipp,

Thanks for the clarification.

I am, however, not sure I understand how having a "Next Page" link isn't search engine friendly. My forums have subforums with Next Page links that go on for 200+ pages. Perhaps you talking about the built-in Storyteller search engine? or search engines like Google and Yahoo?

I do appreciate the code for increasing the number of stories on the one page, but that's not what I had hoped for. I just wanted to allow users to click a "Next Page" link that would give them another 20 results in backward chronological order (most recent at the top).

Not a big deal if it can't be done.

Thanks again.
1 Re: Category not showing all articles
avatar
Administrator
1340
From: Vienna, Austria
Category not showing all articles

It is the way supposed to be. The category pages are mainly there to get an overview of the last news stories in each category. One of the disadvantages of the multiple page method is that it is not very search engine friendly.

You can increase the number of news stories on each category page by changing the LIMIT in the following SQL query in category.php:

$result = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_category = '$id' AND story_website = '$website' AND story_hook = '0' AND story_time < ('$currentdate') OR story_category = '$id' AND story_website = '0' AND story_hook = '0' AND story_time < ('$currentdate') ORDER BY story_time DESC LIMIT 20");

Notice

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