Hi m8s.
after import alot of content (about 4000 documents) directly to DB my documents have URLs like: www.site.com/123/124/543.html. (fields alias is empty right now)
howto rebuild all aliases to normal like this: www.site.com/catalog/auto/bmw.html at one click ?

snkz
can you find and share that script ?
On the fly idea : wouldn’t it be great to add this feature to the Doc Manager module ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
it`s a great idea but how to do that now :’(
The community will raise to the challenge as usual

In the meantime if GaneshXL finds the script you’ll have your quick fix
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
☆ A M B ☆
- 3,112 Posts
I’m just wondering, have you look at Tools > Configuration > Friendly URLs?
At the most bottom row is:
Automatically generate alias:
Select ’yes’ to have the system automatically generate an alias based on the document’s page title when saving.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
@goldsky: That option only works if you open the document and save it, when you save the document the alias get’s created. So it won’t work to generate them for all documents at once.
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
Quote from: MediaGuy at Apr 01, 2009, 04:41 AM
So it won’t work to generate them for all documents at once.
you right
-
☆ A M B ☆
- 3,112 Posts
Ahh... is that, so?
Well, my close idea is making a short php file (since it will be used only once) with the rough concept is copying the database: modx_site_content.pagetitle to modx_site_content.alias (with space / chars cleaning)
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.