A new site I've been working on had the need for a Mango plugin that surprisingly didn't already exist, so I wrote it. Recent Entries adds a pod that shows... you guessed it: recent entries.
You configure it with the number of entries you want displayed, the pod title, and the length of the post-content preview you want. Setting it to zero completely removes the preview.
The plugin does not attempt to style the output at all; you should style it to match your theme. The emitted HTML resembles:
<div id="RecentEntries">
<ul>
<li>
<a href="http://yourblog.com/post/post-title">Post Title</a>
<span>Post Excerpt...</span>
</li>
</ul>
</div>
Enjoy!
Update: There was a small bug with the URL's that it would use for the posts. That has been fixed, and the version number has been increased to 1.0.1 so that auto-install will work, if you need to update.
- Plugin:
- Recent Entries
- Version:
- 1.0.1
- Requires:
- Mango Blog 1.5+
- Auto-install URL:
- http://fusiongrokker.com/get/RecentEntries
in
Mango |
My projects |
2 Responses
Posted 2012-04-09 08:05
With IIS7, Microsoft has finally baked URL Rewriting into the core. Actually, that's a lie -- one I believed to be true until I tried to use it myself, in fact -- but at least the extra install is provided by Microsoft, so most development shops and hosting providers can be persuaded into installing it.
For me, it wasn't plainly obvious how to use it; and finding the details required more digging than I would have if I were using Apache and mod_rewrite, so It thought I would share what I found.
First, you obviously need to be running IIS7 and a modern version of the .Net framework. Then, you need to install the plugin that handles the rewriting. Make sure you get the right version -- there's one for x86 and one for x64.
Next add a web.config file to your application. In the case of Mango Blog, that would either be the folder that contains it, or the web root. I haven't tested it exhaustively, but it should work in a sub-folder.
If you didn't already have a web.config file, this is all you need. If you already had one, just copy in the relevant sections.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule>
<match url="^search/(.*)$" />
<action type="Rewrite" url="archives.cfm/search/{R:1}" />
</rule>
<rule>
<match url="^post/(.*)$" />
<action type="Rewrite" url="post.cfm/{R:1}" />
</rule>
<rule>
<match url="^author/(.*)$" />
<action type="Rewrite" url="author.cfm/{R:1}" />
</rule>
<rule>
<match url="^archives/(.*)$" />
<action type="Rewrite" url="archives.cfm/{R:1}" />
</rule>
<rule>
<match url="^archives/category/(.*)$" />
<action type="Rewrite" url="archives.cfm/category/{R:1}" />
</rule>
<rule>
<match url="^page/(.*)$" />
<action type="Rewrite" url="page.cfm/{R:1}" />
</rule>
<rule>
<match url="^feeds/rss$" />
<action type="Rewrite" url="feeds/rss.cfm" />
</rule>
<rule>
<match url="^feeds/atom$" />
<action type="Rewrite" url="feeds/atom.cfm" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
You can customize the URLs a bit to your liking, just be sure to update the setting table in your Mango database so that it generates links that will match your rewrite rules.
I hope that helps you.
in
Mango |
1 Response
Posted 2012-03-14 08:01
Just as with PowerMail, the Mango 1.6 update broke part of my Related Entries plugin. And just as with PowerMail, I've finally made some time to fix it. Version 1.2 of Related Entries should be used for Mango 1.6 and later, and if you're still on an older version of Mango, use an earlier version of Related Entries (downloadable from Github). Enjoy!
- Plugin version:
- 1.2
- Last Updated:
- 2011-06-26
- Requires:
- Mango Blog 1.6+
- Auto-install URL:
- http://fusiongrokker.com/get/relatedentries
in
Mango |
My projects |
No Responses Yet
Posted 2011-06-27 11:45
An update to the Mango core API, in Mango 1.6, broke my PowerMail plugin. Now that I'm sitting in an airport terminal working on updates for my open source projects again (in terms of commits-per-hour, I think I get the most done on my projects in airports!), I've finally got the update to fix it. Here you go!
- Plugin version:
- 1.1
- Last Updated:
- 2011-06-26
- Requires:
- Mango Blog 1.6+
- Auto-install URL:
- http://fusiongrokker.com/get/powermail
Of course, the source is always available on Github, and project details are on RIAForge.
in
Mango |
My projects |
1 Response
Posted 2011-06-26 02:59
In the last few days I've received community-provided updates for both my LogViewer and Scribe plugins for Mango Blog.
First, thank you to James Harvey for adding a dashboard pod to LogViewer. You can grab the latest update here:
- Plugin:
- LogViewer
- Version:
- 1.3
- Requires:
- Mango Blog 1.4.3+
- Auto-install URL:
- http://fusiongrokker.com/get/LogViewer
And second, thank you to Mike Schierberl for fixing a bug in Scribe when sending emails from ColdFusion 8 or Railo 3.1. The latest version is here:
- Plugin:
- Scribe
- Version:
- 1.4.3.1
- Requires:
- Mango Blog 1.4.3+
- Auto-install URL:
- http://fusiongrokker.com/get/Scribe
I really appreciate the community contributions.
in
Mango |
My projects |
No Responses Yet
Posted 2011-02-14 07:45