# New page for the news

**URL:** <https://forum.phpvms.net/t/new-page-for-the-news/2211>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 13, 2010, 9:54pm UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211 "2010-03-13T21:54:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 13, 2010, 9:54pm UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211/1 "2010-03-13T21:54:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [March 13, 2010, 10:05pm UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211/2 "2010-03-13T22:05:28Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 13, 2010, 10:09pm UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211/3 "2010-03-13T22:09:04Z")

</div>

Thanks again Simpilot

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 14, 2010, 2:46am UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211/4 "2010-03-14T02:46:32Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 14, 2010, 9:35am UTC](https://forum.phpvms.net/t/new-page-for-the-news/2211/5 "2010-03-14T09:35:54Z")

</div>

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.
