Posted on: 05/17/05 12:46am
By: adydas
Is there any way to only display the featured article on the home page and then have like 10 articles per page on the subsequent pages.
I limited the stories to 1, but on the subsequent pages only one article will show.
If you go to my site then click on articles in the top meny you will see what im trying to do.
http://www.lawresearchgroup.com/index.php
Limiting stories on home but not rest of site
Posted on: 05/17/05 03:18am
By: machinari
first--when you create a topic you have the ability to assign a number of stories per page for that topic.
second--when you submit articles under those topics, you have the option to display on the front page or not--choose not, except for the featured article of course.
leave the "stories per page" setting in config.php as default. All done.
Limiting stories on home but not rest of site
Posted on: 05/17/05 03:23am
By: RickW
I had to do something similar, but what I ended up doing is adding additional template files so my topic pages looked different from the home page.
Limiting stories on home but not rest of site
Posted on: 05/20/05 02:48pm
By: adydas
Well this still doesn't really help because i am using the second page of the index to display all my articles.
http://www.lawresearchgroup.com/index.php?page=2
I would have to dump all the articles into on category for this to work and change my link to the acticles section. Any more ideas?
Limiting stories on home but not rest of site
Posted on: 05/20/05 03:19pm
By: machinari
yes you're right... I see what you're doing now and gl isn't setup to do that naturally so you'll have to add an if/else statement to check whether page=1 or not. off the top of my head (around line 205ish in index.php):
// get reamaining stories
if ($page != 1){//added this line
while ( $A = DB_fetchArray($result) ) {
$display .= STORY_renderArticle ($A, 'y');
}
}//added this line
no guarantees
Limiting stories on home but not rest of site
Posted on: 05/20/05 03:41pm
By: RickW
Limiting stories on home but not rest of site
Posted on: 05/20/05 04:57pm
By: machinari
my previous post does what you want, sortof, but after testing it I realize that the page nav will cause a problem. so it is an answer, though an incomplete one.