Hi,

I can't seem to figure out where to edit to reduce the amount of news posts that shows up. Where do I edit something like this?

http://www.chinatownicecreamfactory.com/drupal

Thanks,
Pat

Keywords: latest posts news blog limiwt reduce display

Comments

netranger’s picture

Try, Administer>Content management>Post Settings?

patoshi’s picture

Thanks... any idea of of code i need if i want to show only something specific on the frontpage.... In my page.tpl.php file i have if($node == "0") , but that's not it. What variable does it have to be?

Or can i just create an entire new tpl page, but what does it have to be called? page-frontpage.tpl.php?

thanks

inforeto’s picture

You don't need to code the theme templates for that.

Go to "admin/settings/site-information" and change the default frontpage from "node" to some other page.

Views module is a good option for custom frontpages, it already has a sample page you can edit.

markhope’s picture

I'd look at using the Views module.

Are you trying to do something like the news list on this homepage?
http://www.harrisoncaravansales.com

With Views you can generate sophisticated queries without having to do any code. You can setup the 'view' to list the last X Story articles with or without teasers in a block (and much more). Then just show the block on the homepage using 'block visibility settings'.

Is this what you are looking to do?

patoshi’s picture

Yep thats what i want to do.... basically teh front page will just have the top 5 news posts displayed and everything else on the front page would be static. How should I put in the static content just for the front page? Should i add it to the template or create a new page content and add it in? If so how?

thanks

markhope’s picture

No you shouldn't need to add content to your template. That would defeat the point of having a template!

Just create a static page using Create Content > Page.

Make a note of the node/url or path alias if you assign one (eg node/10).

Then go to admin/settings/site-information and enter the url as your default page. Your homepage has now changed.

If you use views to create the 'latest news' block you can then set it to appear in the sidebar or the content area and then set it to show on only listed pages. Enter <front> to only show on the homepage.

M