1

I have a schema which has a field (lets take title) as a multi valued. and I am getting only one XPATH for all the title values. Is there a way to excess all the values because as I have only 1 XPATH , I am unable to edit the field through XPM. Has someone encounter that problem ?

Title -ABC, DEF, GHI But for all three titles I am getting just one XPATH.

Thanks

3
  • Is this in template code? Jun 9, 2016 at 14:39
  • Can you please add code snippet on how you are accessing xpath?
    – Hiren Kaku
    Jun 9, 2016 at 16:41
  • Hi Dhruva. Welcome to tridion.stackexchange. I'm fairly sure someone here can help you, but we'll need the question to be clearer. Please could you update it to show exactly what you've tried so far, what results you expected and what you got instead? Jun 10, 2016 at 7:02

1 Answer 1

3

You likely need to use position, as the XML will use the same name for all instances of field X

So assuming your content is like:

<Content>
   <title>Title 1</title>
   <title>Title 2</title>
   <title>Title 3</title>
</Content>

In XPath you would address them

//title[1]
//title[2]
//title[3]

note - xpath uses a 1 based, not zero based array

1
  • It is very standard xpath, nothing to-do with SDL :) I've removed word SDL Jun 10, 2016 at 16:50

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.