7

I want to get the item(Page,CT,PT) by its title and path.Since there may be more than one item matching the search criteria if we search only by title so I want to search the item by its name and path.

Thanks

1 Answer 1

8

the core service supports both regular tcm id's and webdav urls when reading from the CM. So, instead of

client.Read("tcm:1-123", new ReadOptions())

you can also do something like

client.Read("/webdav/publication%20name/folder%20names/component%20name.xml", new ReadOptions())

Do note that the webdav path should be url encoded (spaces, accents,...) Also don't forget that tridion items have specific extensions (component has .xml, page has .tpg, page template has .tptcmp and component template has .tctcmp)

1
  • @Haraid is the webdav path is case sensitive? Dec 10, 2017 at 9:38

Your Answer

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

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