New page for the news

OK so here is what i thought, add a page from the admin and add the following code,

<?php



// Show the News module, call the function ShowNewsFront

//	This is in the modules/Frontpage folder



News::ShowNewsFront(1000);

?>

But no, it doesn’t seem to like it

Clearly im having an off day, could some one put me right please

Close

<?php
MainController::Run('News', 'ShowNewsFront', 1000);
?>

Edit - I am not sure it will work at all through the add page option in the admin side… I do not use that feature, I do know it will work in a regular template…

1 Like

Thanks again Simpilot

Since im not the Object Oriented Nerd, Does 1000 mean, 1000 characters to be shown?

It’s nothing OO, it’s just a function call. The 1000 is how many items to show.

Basically i wanted to limit the items on my homepage but i wanted a page that would show all news entries as well Works a treat.