Login!
Lost password?
 

MODx Bug/Feature Tracker and Feature Requests

Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!

FS#817 — core function for alias creation

Attached to Project — MODx
Opened by Andraz Kozelj (andrazk) - Friday, 16 March 2007, 08:54AM
Task Type Feature Request
Category Core Distribution
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.9.5
Due in Version Undecided
Due Date Undecided
Percent Complete 0%

Details

Why not create a core function for alias creation? So even users can use it in their own snippets.

Take a parameter, transform it according to the "rules" (remove unwanted chars, change non-ascii chars with their substitutes, remove spaces, replace punctuation), check the existence of the same alias (add index if duplicate)...
If there's no parameter, take a timestamp.

Also, when switching off "allow duplicate alias", check for duplicate aliases and reindex, if the user confirms, or give him the option to edit them in a list...

I've made some tests leaving duplicate aliases in the database and the solution was not trivial for an average user. Well, finding the problem was not trivial.
This task depends upon

This task blocks these from closing