Class ProductUrlQueryStringProvider
- Namespace
- Dynamicweb.Ecommerce.Frontend.UrlHandling
- Assembly
- Dynamicweb.Ecommerce.dll
public class ProductUrlQueryStringProvider : UrlQueryStringProvider
- Inheritance
-
ProductUrlQueryStringProvider
- Inherited Members
Methods
TryResolvePath(string, string, out UrlResolveResult?)
Tries to resolve a path into a querstring.
public override bool TryResolvePath(string path, string languageId, out UrlResolveResult? resolveResult)
Parameters
pathstringThe path, i.e. /mypage/my-awesome-product-prod12.
languageIdstringThe language the resolution should happen in.
resolveResultUrlResolveResultThe UrlResolveResult contains ResolvedQuerystring and RemainingPartOfPath.
Returns
TryResolveQueryString(NameValueCollection, string, out UrlNode?)
Tries the resolve a query string to a url path for a specific language.
public override bool TryResolveQueryString(NameValueCollection queryString, string languageId, out UrlNode? resolvedPath)
Parameters
queryStringNameValueCollectionThe query string - i.e. 'id=123&productid=prod12'.
languageIdstringThe language the resolution should happen in. Typically the EcomLanguageId of the requested area.
resolvedPathUrlNodeThe resolved path as a urlnode resulting in /my-awesome-product-prod12.