2

We are working hybrid headless SSR approach.

The pages have a header and footer from Sitecore with wrapper angular components as shown in the image.

We should pass the id of the article from the wrapper component to another through a custom route using node SSR.

Any thoughts?

Article Landing page

Article Detail page

1 Answer 1

3

I achieved this using wildcard-item in sitecore.

I created like below,

enter image description here

Below list of working urls.

http://a-custom-route.com/articledetail/id1

enter image description here

http://a-custom-route.com/articledetail/id2

enter image description here

Note:

4
  • Thanks for your answer. I should create a custom pipeline processor to override the Item resolver. Considering this is an angular JSS application, should i also place dll for this override? Commented Jul 27, 2021 at 1:56
  • @GayathriSriram You don't need to create any pipeline for resolve. This is Sitecore OTB. Above my answer is a JSS application. Its working.
    – Andi AR
    Commented Jul 27, 2021 at 16:26
  • Seems interesting. Since I'm new to jss wanted to know if they are any mapping logic you did for wild card items that would be helpful. All our items will be the bucketed items Commented Jul 27, 2021 at 17:32
  • No mapping logic, Its OTB. Check Sitecore documentation here doc.sitecore.com/en/users/100/sitecore-experience-platform/…
    – Andi AR
    Commented Jul 27, 2021 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.