2

enter image description hereSiteEdit 2009 SP3 has been installed and configured for our website. We have followed the instructions provided in chapter 2, Implementing and configuring SiteEdit in VBScript templates.

SiteEdit is enabled on the Page, but Components are not editable?

We have: Windows Server 2008 R2, IIS, SDL Tridin 2011 SP1 and SiteEdit 2009 SP3; and I'm using the following code in the PT:

[% 
    For Each lObjCP In Page.ComponentPresentations
        WriteOut "<div>"
        WriteOut SiteEdit2.MarkComponentPresentation(lObjCP.ComponentID, lObjCP.Component.Info.Version, lObjCP.ComponentTemplateID, "",true)
        WriteOut lObjCP.Content
        WriteOut "</div>"
    Next

    SiteEdit2.PageID = Page.ID
    SiteEdit2.PageVersion = Page.Info.Version
    WriteOut SiteEdit2.Finalize()                                     
%]

And in the CT:

[%
    WriteOut SiteEdit2.MarkComponentField(Component.Fields.item("Text").XPath) 
    WriteOut Replace(EscapeXMLCharacters(Component.Fields.item("Text").value(1)), vbCrLf, "<br>")
%]

this is part of the source of the published page:

<div>
    <!-- Start SiteEdit Component Presentation: {"ID":"cp_1", "ComponentID":"tcm:7-474335", "ComponentVersion":4, "ComponentTemplateID":"tcm:7-648169-32", "IsQueryBased":true} -->
    <span>
        <!-- Start SiteEdit Component Field: {"ID": "cf_1", "XPath": "tcm:Content/custom:enlace/custom:texto", "IsMultiValued": false} -->
        This is a segund reportage
    </span>
</div>
<!-- SiteEdit Settings: {"PageID":"tcm:7-647740-64", "PageVersion":14, "ComponentPresentationLocation":1} -->

Could you give me any ideas or solutions for this?

I solved the problem by installing all the hotfixes.Thank you all for your colabroacion!

  • Can you add a sample of how the HTML of the published Page looks like, with the SiteEdit markup around your Component Presentation? Also you mention your Components are not editable, do you see a border appearing around the Component Presentation and the field, or is there nothing at all? – Bart Koopman Jul 17 '13 at 9:43
  • I added the source code above,the border doesn't appear, is there nothing at all. – Jawad Jul 17 '13 at 10:18
  • This way it is not readable what the source of your Page is, could you edit the question again and indent the source with 4 spaces (see how I formatted your template code already), that way stack exchange will leave all HTML intact there, it is very useful for us to see what HTML is around the SiteEdit markup and where the SiteEdit markup is placed in the page, without that it will be impossible to help you. – Bart Koopman Jul 17 '13 at 10:25
  • by the way, if this is still the same issue as in tridion.stackexchange.com/questions/1871/… you should have updated that question rather than to make a new (duplicate) question – Bart Koopman Jul 17 '13 at 10:31
  • 1
    Have you installed siteedit patch. – Tanzil Khan Jul 24 '13 at 7:42
3

Click on “border view” to see if the borders appear. It could be that the elements have a higher Z index than the borders and floating over it or somehow the border is not wrapping correctly. Check to see if a faint grey border appears anywhere on the screen. That would mean its a shared item and you can not edit it without either localizing or clicking in "edit in parent" in the toolbar.

Also the html you provided is not consistent with what I see on the page. You have a field with text "This is a segund reportage". I don't see that text anywhere on that page. Are you editing the right page?

| improve this answer | |
  • 2
    I solved the problem by installing all the hotfixes. – Jawad Sep 3 '13 at 9:12

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.