• Not Answered

Placeholder disappeared ?

We have experienced a weird problem that we were hoping that you might be able to help us with.

We recently experienced that the placeholder (we only use one, for all components – ‘main’) disappeared on one of our components(a controller rendering named ‘content’ which just renders a datasource (just simple texts)). And only when it was the first component on a page.

No other components were affected, and only when it was the first component on a page.

We have no code that changes placeholders or any pipelines or anything that to my knowledge could potentially be responsible.

And we’ve concluded it couldn’t be the editors. It’s simply happened on to many pages.

Any ideas 

5 Replies

  • A placeholder is defined in code. Do you mean your code files have been changed to remove it? That would be weird.

    The layers involved without any personalization rules involved are:
    1.) placeholder, (in .aspx or .ascx file)
    2.) layout, (in /sitecore/layouts)
    3.) sublayout, (optional, in /sitecore/layouts)
    4.) template -> standard values -> presentation details -> device -> layout
    5.) template -> standard values -> presentation details -> device -> controls
    6.) template -> standard values -> presentation details -> device -> controls -> controls within controls, (optional)
    7.) item -> standard values -> presentation details -> device -> layout
    8.) item -> standard values -> presentation details -> device -> controls
    9.) item -> standard values -> presentation details -> device -> controls -> controls within controls, (optional)

    What layer is losing it's value?

    Do you use personalization rules?

    If all of the sitecore layers still seem to have values, and the placeholder exists, but doesn't have any content it might be because you have another placeholder with the same name defined in another .aspx or .ascx file referenced in the layouts/sublayouts your item uses.

  • In reply to Brian Heward:

    Hi Brian

     

    I don’t think that any of the above fits.

     

    The problem isn’t in the code, or in the standard values.

     

    When you go to a component, lets say, Home > News > News element X and hit the presentation details (see below), the placeholder has simply disappeared on some renderings..

     

    Intended setup:

     

     

     The one that we experienced:

  • In reply to Christian Frederiksen:

    Have you checked the standard values of your component that's causing you issues? Make sure the placeholder is "main" and publish the standard values
  • In reply to Christian Frederiksen:

    Ok, so looks like the problem is either in my #8 or #5.

    Check the standard values for the template these items use. Is the placeholder field blank in there too? (If so, put it in there and it should flow through to all the items using that template.)

    If that isn't the problem, I don't remember the solution, but this issue has come up before in these forums
  • Thanks, we've already fixed it. No problem.

    There have never been a default placeholder on the element.

    But what bothers us, is that we can't figure our how it came to be..