Creating an Alias in Joomla Component

He’s a quick way to create an Alias in a Joomla Component

More information will follow, but simply drop this in your Joomla table file during save.

Hope you understand until the tutorial is fully written.

function check()
{
    jimport( 'joomla.filter.output' );
    if(empty($this->alias)) {
	    $this->alias = $this->title;
    }
    $this->alias = JFilterOutput::stringURLSafe($this->alias);
 
    /* All your other checks */
    return true;
}

B4uCode

I am a passionate PHP user with a love for Open Source systems. With a few years of programming these technologies, I am fortunate to be able to share my thoughts. Joomla and WordPress are my favorite systems to develop. That's enough for now.

You may also like...

1 Response

Leave a Reply

Your email address will not be published.