Hello Team,
I am exploring AEM CIF framework. Did the graphQL configuration. Once, I hit the URL:
http://localhost:4502/content/venia/us/en/products/category-page.html/venia-tops.html
I am getting all the details. Can someone tell me, how this URL displays the data.
Same case with: http://localhost:4502/content/venia/us/en/products/product-page.html/venia-tops/venia-sweaters/carin...
This displays that particular product details. But, I am not getting how, the component gets the product id/sku details??
Thanks in advance
cc : @Hemalatha @AMANATH_ULLAH
Solved! Go to Solution.
Views
Replies
Total Likes
The product page and category page gets the Product/category SKU or url_path based on the OSGI configuration com.adobe.cq.commerce.core.components.internal.services.UrlProviderImpl
CIF core components use the values from url based on this configuration
Refer the below sample configuration from Venia
{
"enableContextAwareProductUrls": true,
"productPageUrlFormat":"{{page}}.html/{{url_path}}.html#{{variant_sku}}",
"categoryPageUrlFormat":"{{page}}.html/{{url_path}}.html"
}
You can find more details on Advanced Url configurations from the below link
The product page and category page gets the Product/category SKU or url_path based on the OSGI configuration com.adobe.cq.commerce.core.components.internal.services.UrlProviderImpl
CIF core components use the values from url based on this configuration
Refer the below sample configuration from Venia
{
"enableContextAwareProductUrls": true,
"productPageUrlFormat":"{{page}}.html/{{url_path}}.html#{{variant_sku}}",
"categoryPageUrlFormat":"{{page}}.html/{{url_path}}.html"
}
You can find more details on Advanced Url configurations from the below link
Thanks a lot @AMANATH_ULLAH for your help.
Views
Likes
Replies