New Message: Never mind, I found it!

webmaster at userland.com webmaster at userland.com
Sat Apr 14 20:20:19 CDT 2007


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$2618

By: Matt Deatherage (frontier at gcsf.com)

It is a bug, in manilaSuite.rpcHandlers.newsItem.create, just where Lawrence was fixing the other bug. His bug was to make sure that a post gets on the home page if you've enabled multiple departments but haven't added any of them to the post.

This bug, as noted, is that posting with the "home page" category set doesn't do any good; it gets cleared and the item doesn't show up on the home page. And Lawrence probably never saw it because his home page category is probably named "homepage". Mine is named "home page", with a space.

In the multiple-departments bundle in that script, most places that check for the home page department check for either "homepage" or "home page". But not in the loop:

for i = ct downto 1 {
 if flMultipleDepartmentsEnabled {
 if string.lower (department[i]) == "homepage" {
 delete (@department[i]);
 flOnHomePage = true;
 continue}};
 if system.environment.isMac {
 department[i] = latinToMac.convert (department[i])}}

Changing the comparison to:

 if string.lower (department[i]) == "homepage" or string.lower (department[i]) == "home page"

..fixes it, and now posts show up immediately on my home page if they have the "Home Page" category set.

This is a Manila site... http://manila.userland.com/.




More information about the Manila-Users mailing list