/content/update/:id isn't updating "alias" field

More
7 years 5 months ago #69 by dbode
...but it should :)

I'm used to the fact, that the alias is "updating" while saving, when the alias string is deleted (in backend editor).

To use Joomla's own url safe string function (instead of making our own) I added this line in ./plugins/services/joomla/joomla/content.php (around line 440)

if(!$app->request->params('alias') && $app->request->params('title')){
$article->alias = JFilterOutput::stringURLSafe($app->request->params('title'));
}

It says "If "alias" is not given but "title" is, convert the title into a url safe string and puit it into alias field. Works good for me and is closer to Joomla's behaviour.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #70 by steve.tsiopanos
Replied by steve.tsiopanos on topic /content/update/:id isn't updating "alias" field
I have included your recommendation in development for cAPI v1.2.7.

Thanks for the suggestion!
The following user(s) said Thank You: dbode

Please Log in or Create an account to join the conversation.

Cron Job Starts