Here's a utility snippet that should create standard aliases for them, though any hard-coded links, links creates in code without using $modx->makeUrl(), or off-site links still won't work:
Just create the snippet, put that tag on a page, a preview the page (just once). Then clear the cache and delete the snippet and page.
<?php
/* FixAliases snippet */
$resources = $modx->getCollection('modResource');
$count = 0;
foreach ($resources as $resource ) {
$alias = $resource->get('alias');
if (empty($alias) ) {
$count++
$pageTitle = $resource->get('pagetitle');
$newAlias = $resource->cleanAlias($pageTitle);
$resource->set('alias', $newAlias);
}
$resource->save();
}
return 'Created new aliases for ' . $count . 'resources';
That will give you aliases that are lowercase versions of the pagetitle with any spaces converted to hyphens.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html
[ed. note: BobRay last edited this post 12 years, 1 month ago.]