1

We have created and implemented a TBB which modifies the published Page's url. We managed to modify the Page url in the Package, but the Broker database it still shows the unmodified page url.

  • original: /hotel/{test}
  • modified: /hotel/testing

We have 2 items in the Package:

enter image description here

3

I'm assuming you are altering the Page Package item and not the Output JSON... but in any case, what you are trying to achieve is not possible using templating.

You can however override the Page publish url using a Deployer extension, but why do you want to do that in the first place? I have the feeling that that's asking for trouble, ie. you will be breaking the 'View on Site' functionality, not to mention you will cause confusion for the content editors, just two counter arguments from the top of my head.

| improve this answer | |
  • Basically we are trying to insert keyword key in page url in Tridion just by instering the keyword key in structure group directory and it will create page with url: /hotelA/{test} where test will be the keyword key and when it is published we want to replace with keyword description. We are doing this process because want to have control over the url path name. we are sending the keyword for language translation and for different languages just by changing the keyword description we will have control over all the structure group directory value which means it will change the url. – Binod May 6 at 15:30
  • how can we use deploy extension to overide page url? do you have any documentation about deploy extension . im a bit new to deployer extension . – Binod May 7 at 15:20
  • @Binod The official docs (docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20Sites-v2/…) is a good starting point and there are a lot of blogs/resources out there also, so you should manage. I see that you have asked a specific question here: tridion.stackexchange.com/questions/20926/… so as far as this one is concerned, consider accepting the answer so the question "becomes closed". – Atila Sos May 10 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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