Jump to content

[SOLVED] News in sidebar


STALKER

Recommended Posts

Hi all!

I would like place the last 5 news in sidebar (only date and new's title), so I have modified frontpage_main.tpl, and it works, but I don't know how make that news body does't appear... can you help me please?

<div id="mainbox">

<?php

// Show the News module, call the function ShowNewsFront

// This is in the modules/Frontpage folder

MainController::Run('News', 'ShowNewsFront', 5);

?>

</div>

<div id="sidebar">

<h3>News</h3>

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

<h3>Recent Reports</h3>

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

<h3>Newest Pilots</h3>

<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>

.

.

.

.

.

Link to comment
Share on other sites

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