NewsBoy

Newsboy is a plugin that adds a portal and news manager to your site. While simple in nature, a portal can be an invaluable tool that keeps users up to date with what's going on in your site's world.

Optionally, if you also install Feed me, Newsboy will hook into it and add an additional RSS feed containing the latest news items.

Installing NewsBoy

  1. Download Newsboy for Enano 1.0 or 1.1/1.2.
  2. Unzip it, and upload NewsBoy.php to the plugins/ folder in your Enano installation.
  3. Go to Administration -> General Configuration -> Plugins, and click Enable in the Newsboy entry.

Custom layout

You can edit the files newsboy-portal-pre.tpl and newsboy-portal-post.tpl in your theme's directory to add globs of HTML to insert before and/or after the news items. This can be used, for example, to sit the news posts next to another column, as can be seen on the main Enano project home page.

It is also possible to edit newsboy-post.tpl, which is the template for individual news posts. This is the default:

<div class="tblholder news">
  <table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
    <tr>
      <th><a href="{LINK}" style="color: inherit;">{TITLE}</a></th>
    </tr>
    <tr>
      <td class="row3">
        {CONTENT}
      </td>
    </tr>
    <tr>
      <th class="subhead" style="font-weight: normal; font-size: 67%;">
        Posted by {USER_LINK} on {DATE}<br />
        [ {NUM_COMMENTS} comment{COMMENT_S} | {COMMENT_LINK} ]
      </th>
    </tr>
  </table>
</div>

Note that the div surrounding all news posts has the class "news", giving theme designers the ability to style specifically for Newsboy in themes.

Version history

0.2

  • Changed URLs around a bit, they are more SEO-friendly now. Unfortunately this broke compatibility with Enano 1.0.x (Banshee and family). This doesn't break old URLs.

0.1.1

  • Fixed double-escaping of page name and corrected a few bugs visible in newer Enano releases.

0.1

  • Initial release.