Release 20050620

I just made a new release that includes the cool new SmartDropdown I mentioned in my previous posts. I don't normally make a new release only 2 days after the previous release but this feature did not require any changes to the structure of the database so its an easy upgrade from 20050618. As always be sure and back up both your web site and your db if you are using the site. Update all the web files. If upgrading from previous versions run the appropriate upgrade scripts first and if using MS SQL or PostgreSQL run the stored procedure script again to update all the procedures.  Of course if you are fairly new to mojoPortal a clean install of the latest version is the easy way to go.

I also wanted to go ahead and roll out this feature because the next things I'm going to work on are fairly significant features and I didn't want to delay the current feature too long.

Next on my list are Site Search which I'm going to try and implement with Lucene.NET and logging which I plan to implement with Log4Net

Woa! I just went to the Lucene.NET site to get the link for this post and it says they have stopped open source development. Looks like they've gone commercial. Wonder if I can use the version of Lucene.NET I already have in mojoPortal without getting into any trouble? I hadn't been to the site in a while, looks like they made the decision last September.

Any license gurus out there? If they previously released it under Apache License, Version 2.0 can I continue to use that version in mojoPortal or can they retroactively change the license? I could use some advice before I invest my time trying to get it working.

Update: Thanks Michel, I was confused, it is DotLucene that I planned to use all along and it is still open source. I went to the the Lucene.NET page by accident and got confused.

New Feature implemented using an Ajax technique

I just commited the new feature to svn that allows you to give a single user edit permission on any module without creating a special role. If you need to give more than 1 user permission on a module, you should use a role. The new feature utilizes a SmartDropDown control that I implemented using Sarissa for the Ajax magic.  You can start typing a user name or email into the dropdown and the dropdown will suggest matching users from the database. You can either click or arrow down to select the user.

The feature is particularly useful if you want to give a user a blog in your site without creating a new role just for that user. It does work with any module though, not just blogs.

I will probably make another release with this feature in a day or so.

If you are using MS SQL or PostgreSQL, you will need to run the stored procedure script.

Release 20050618

A new release is available on the download page. This version includes the new Friendly Url Mapper, Blog Category and Calendar Navigation and other micellaneous improvements.

As always, if you have any problems please post in the forums.

Blog Calendar Navigation

I just commited the Blog calendar navigation feature to svn. I also added some new module settings to the upgrade script. One of the settings is whether to show or hide the calendar in the blog.

This will also be in the next release.

Coming next Category Navigation for the blog.

Friendly Url Mapping

I just commited a new feature to svn, it will be in the next release.

It allows you to setup mappings between friendly urls and pages in the site.

For example
http://www.mojoportal.com/forums.aspx

maps to

http://www.mojoportal.com/Default.aspx?pageid=5

Try it and see

The feature works better under mono/apache than it does under IIS because of the way IIS uses file extensions to determine which isapi handler processes the request.

In IIS to use a friendly url like http://www.mojoportal.com/Forums, you have to actually create a Forums directory and put an empty text file in there named Default.aspx otherwise the request will not be handled by asp.net and you end up with a 404 error. You can use something like http://www.mojoportal.com/Forums.aspx as a friendly url in IIS without having to actually create a folder or file. Using apache/mod_mono this is not needed as long as mod_mono is set as the handler for the site directory.

Some uses of this feature include:

  • Making it easy to migrate to mojoportal without breaking urls that google may have indexed from your old site.
  • Creating friendly urls for print ads or other communications
  • Giving users who have their own blog within your site a friendly url like http://www.yoursite.com/someblogger


For those of you who are working with the source code from svn, feel free to try it out. There is an upgrade script in the folder for each data layer to create the new table and add the Feature