1

I am facing an issue in site edit functionality.

Whenever I try to edit the content using site edit, I am only given an option to edit the metadata of the Component not the content of the Component.

Kindly provide any inputs if anybody faced the similar issues?

  • Your question is pretty light on detail. If you can, please try and add a bit more to support your question. Have you followed the manual on how to implement Experience Manager? It sounds like you are missing an installation, configuration or implementation step from there. – Rob Stevenson-Leggett Sep 24 '14 at 15:35
2

You will only be able to modify component content via Experience Manager (XPM), if you add them in your Dreamweaver template in a specific way. If you just add the field like this :

@@fieldname@@

the value of your field will be inserted in the page, but you won't be able to edit the field via XPM.

If you output a field like this, Tridion will output the necessary XPM code for you:

@@RenderComponentField("fieldname", 0)@@

As from Tridion 2013 the previous syntax is deprecated and the following should be used:

@@FieldStartMarker("fieldname")@@
  @@FieldValueStartMarker()@@
    @@GetFieldValue("fieldname", 0)@@
  @@FieldValueEndMarker()@@
@@FieldEndMarker()@@

These XPM tags are needed, so XPM knows which piece of content corresponds to which field in your component.

More examples can be found in the Tridion documentation : http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20full%20documentation-v1/GUID-99143B2A-5B69-4EED-B470-DD70559AE616

I am not sure if you are using regular Tridion templating, or DD4T, but if you wish to add XPM in your DD4T implementation, there are some helper functions in the dd4t framework to support XPM as well. You can read more about that here http://albertromkes.com/2013/03/18/domain-drive-development-with-dd4t-and-xpm/

| improve this answer | |
  • Edited the answer to add the 2011 syntax; now waiting for a peer review?! – Jeroen Suurd Sep 25 '14 at 5:29

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.