Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I try to change polish diacritic marks like: ą, ę, ś (https://pl.wikipedia.org/wiki/Znaki_diakrytyczne) to latin a,e,s in slug
now diacritic marks are removed
but i coudn't do it from code
it doesn't work during creating product form code:
// creating slug with changed diacritic marks
var slugUrl = NormalizeStringForUrl(Product.Name);
// set slug
var detachedContent = new ProductVariantDetachedContent( Product.ProductVariantKey, detachedContentType, "pl-PL", ddvc) { CanBeRendered = true, Slug = slugUrl };
// save
Product.DetachedContents.Add(detachedContent); productService.Save(Product, true);
but it doesn't work
so, I've created pull request https://github.com/Merchello/Merchello/pull/2020/commits/8b9f8a3a23e6d445f46330d7ab1bd3d7a78e3d41
which change chars by getting them from umbracoSettings.config in urlReplacing section
have you any other suggestions?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Changing diacritic marks to latin in product slug
Hi
I try to change polish diacritic marks like: ą, ę, ś (https://pl.wikipedia.org/wiki/Znaki_diakrytyczne) to latin a,e,s in slug
now diacritic marks are removed
but i coudn't do it from code
it doesn't work during creating product form code:
// creating slug with changed diacritic marks
var slugUrl = NormalizeStringForUrl(Product.Name);
// set slug
var detachedContent = new ProductVariantDetachedContent( Product.ProductVariantKey, detachedContentType, "pl-PL", ddvc) { CanBeRendered = true, Slug = slugUrl };
// save
Product.DetachedContents.Add(detachedContent); productService.Save(Product, true);
but it doesn't work
so, I've created pull request https://github.com/Merchello/Merchello/pull/2020/commits/8b9f8a3a23e6d445f46330d7ab1bd3d7a78e3d41
which change chars by getting them from umbracoSettings.config in urlReplacing section
have you any other suggestions?
is working on a reply...