@rthrash,
You can force removal of www by removing all references to www in the example htaccess code:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example\.com [NC]
RewriteRule (.*)
http://example.com/$1 [R=301,L]
I suppose this could be done in the plugin itself, but you might as well use htaccess if it’s required for FURLs to work.
I’m actually testing in Lighttpd, not sure if anyone here uses it heh.
@Geo88,
Great, glad it’s workin. The getChildIds() call is necessary because it is what determines whether a document is a container or not. I’ve looked through the API, including the $documentMap identifier, but am unable to find any other way for doing this short of a using at least one additional db query. Although I haven’t tested it, I guess the best way to do this would be to add the following lines somewhere outside of the loop:
$isfolder_arr = array();
$result = $modx->db->select(’id, isfolder’, $modx->getFullTableName(’content’), ’published > 0’);
while ($row = $modx->db->getRow($result))
{
$isfolder_arr[$row[’id’]] = $row[’isfolder’];
}
And then in the foreach loop set: $isfolder = $isfolder_arr[$id];
Insted of: $isfolder = count(...
Perhaps I should add an option to either perform this query or use the API to derive the count?
As a side note: The core patch I have and may release a patch for avoids a lot of the inconsistencies and inefficiencies of the plugin but the plugin works in a pinch and should be pretty efficient for smaller to medium sized sites.