l have recently decided to try out MangBlog for the new cfmldeveloper.com site and I have to say I really like it much better than BlogCFC (sorry Ray).
Because MangoBlog allows you to add custom pages you can pretty much use it to create your entire web site with a basic CMS as long you don't need to do anything complex on your pages, at which point you may find the tinyMCE editor too restrictive.
When you add a custom page to MangoBlog the "title" is used not only on the page but also on the navigation menu, which I didn't find too useful as I did not want the menu text and page title to be the same. So I was instantly thrown in at the deep end with a requirement to customise MangoBlog, which thankfully turned out to be very easy as it is very well written and easy to understand.
MangoBlog is written in classic CFML style using imported tag libraries and <mango: mytag attributes> syntax as apposed to using the OO style frameworks that are popular these days.
Adding a custom page title is a snip.
When adding a new page, simply add a new custom field like this
label: page title
key: pagetitle
Value: My Page Title
Now edit the page.cfm file in your skin folder and edit the code that displays the <mango:Blog title />, it will look something like this depending on your skin.
<h1 id="banner-header"><a href="<mango:Blog url />" accesskey="1"><mango:Blog title /></a></h1>
and change it to this
<mango:PageProperty ifHasCustomField="pageTitle" customField="pageTitle" />
<mango:PageProperty ifNOTHasCustomField="pageTitle"><mango:PageProperty title />
</mango:PageProperty>
This checks for the existance of the "pageTitle" custom field on each page, it is exists then it will display that value, otherwise it will display the title.
You can use the same method to insert any custom field values on any page.
May 20, 2010 at 9:09 PM I've got a lot of respect for Mango - but you are aware that BlogCFC has supported custom pages for a while now, right? You can even put a pod on your site with all the pages listed automatically. I also set it up so that you can run a page with no layout. This allows you to put up plain text files, or use a radically different layout if you want.
May 20, 2010 at 9:37 PM Gee Ray I didn't know you read my blog :-)
To be fair I am using a very old version of blogCFC here so no i'm not really comparing it, just saying I prefer Mango to the version I use here. I need to upgrade this blog anyway, so i'll give the latest version of blogCFC a try, hopefully upgrading will be less painfull than mihrating.
Jun 16, 2010 at 6:45 AM Custom Fields are awesome arn't they? I use custom tags all the time. So much so, that I am in the process of building a plugin that allows you add any number of custom fields without having to save between each new custom field.
I use custom fields for a multitude of reasons including page titles, meta-data, special navigation features, custom css, special search previews... The possibilities are endless really.
Hope you enjoy working in Mango Blog!