I am writing my very own component for Joomla 1.5. I am trying to puzzle out how you can generate an "alias" (friendly URL slug) for that content I add. Quite simply, when the title is "The content title", Joomla would use the-article-title automatically (you are able to edit it if you want).

It is possible to built-in Joomla function that is going to do this for me personally?

Line 123 of libraries/joomla/database/table/content.php implements JFilterOutput::stringURLSafe(). Pass within the string you need to make "alias friendly" and it'll return the thing you need.

If you're attempting to generate an alias for the produced component it's very simple. Suppose you've click on save or apply button inside your produced component or suppose you need to make alias using your tile, then make use of this function:


You can now place it into database.