Jump to content

Recommended Posts

  • Moderators
Posted

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 :lol:

  • Administrators
Posted

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

B)

  • Like 1
Guest Brian
Posted

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

  • Administrators
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...