1
votes

Could any one help me out.

  1. I have a created a custom button in the tridion ribbon.(Item View)

  2. In a given page we will be having the 'Component Presentation' and 'Target Group'

Now I need to get the tcm-id of the Component Presentation and the selected Target Group on click of the Button(created in step1).

1
If you selected the component presentation before clicking the button, you may have it in the selection parameter. Have you tried that? - Nuno Linhares
And if it's urgent, you may consider hiring someone that knows how to do it. - Nuno Linhares
Thanks for your reply Nuno. I got what you mean. Actually i am new to tridion. Could you please tell me the way how to retrieve tcmid using selection parameter ? - user1518281
selection is an array[] of whatever the user has currently selected. Check what's inside of it, and you'll figure out how to get it. - Nuno Linhares
removed the SDL tag, it is not pointing to SDL the company which delivers SDL Tridion - Bart Koopman

1 Answers

1
votes

I think I've answered this question here: restrict user to insert same component and template

Thanks

John