How do I allow more then one new post show on the front page? Right now it only allows me to show one news post. Can I change that any where?
Thanks
I can't get to any eFic site at the moment, but you could probably define a number in the admin->blocks->news or use your skins variables.php. I don't know the exact variable, but it'll have "block" "news" "num" in it. π You might want to look at some of the premade skins variables.php and steal the code. :3
archive:
site:
Available for skin/mod commission! π
She's right. You can define "number of news items" in Admin > Blocks, then "Options" next to News. If that doesn't work, check the skin's variables.php for something that looks like this:
$blocks["news"]["num"] = 3;
That's actually a guess since I don't have a skin that limits it. It would say either "num" or "items" (not status though; that's different). Most Recent uses "num" so it's probably that. Change the number and it will change the number of items.
$blocks["news"]["num"] = 3;
Thanks for this code, I had to the the box to num, it was in status.
Did you change status to num? (There's a word missing in what you typed, so I think that's what you mean.) If so you should re-add the status line, as it's important. 'Status' is same as when you view Admin > Blocks, and you see the drop down with Inactive, Active, and Index Only - that's the status. You want make sure the status still being defined in variables.php. If nothing's changed it's because you got lucky and the status in Admin > Blocks is the same as in variables.php, but you should probably put it in there anyway.
How this works is that a skin's variables.php overrides what is selected in Admin > Blocks for the given skin. This is so that some skins can be customized (ie. your skin that was only showing one news post) while not affecting the others, especially if they don't have a variables.php file or it's not got anything related to the change in question. So in other words, Admin > Blocks changes things for all skins, but can be overridden by a variables.php file.
See this article: https://efiction.org/wiki/index.php5?title=Variables.php
