Adding the ability to use a different url

v1.18.x
Сергей Савельев 10 years ago
parent 6d03f5c9e8
commit 3831cd0e71

@ -13,7 +13,7 @@ module.exports = function(Categories) {
return callback(err);
}
var slug = cid + '/' + utils.slugify(data.name),
var slug = data.slug ? cid + '/' + data.slug : cid + '/' + utils.slugify(data.name),
order = data.order || cid; // If no order provided, place it at the end
var category = {

Loading…
Cancel
Save