Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sjaak van der Heide 11 posts 32 karma points
    Apr 23, 2015 @ 11:56
    Sjaak van der Heide
    0

    Child Item tab displaying properties from other tabs

    Hey Folks,

    I'm running into a bug I haven't seen on here before (or I just don't know the right terms for finding it). 

    I have a News page which is set to ListView. Amongst other tabs it inherits a Content tab (With a Summary and a Body on it, nothing fancy). 

    Now when I open any newspage in the backend it will open the childitems tab since that's the first tab, but below the ListView that should be there. It also shows the properties from the content tab directly below it. 

    Furthermore, if I click to the Content tab after that, it will only show the listview belonging to the child items tab. No content properties there at all. 

    If I return to the child items tab after that, that will also only show the listview. So eventually the properties on my Content tab have just disappeared. 

    I'm using Umbraco version 7.2.1 assembly: 1.0.5462.37503


  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 23, 2015 @ 12:36
    Dave Woestenborghs
    0

    Hi Sjaak,

    Can you show us the your doctype definitions. And how properties and tabs are defined there ?

    Dave

  • Sjaak van der Heide 11 posts 32 karma points
    Apr 23, 2015 @ 12:44
    Sjaak van der Heide
    0

     

    Here is an overview of the tabs and properties, I've already tries moving around the tabs a bit. But that didn't fix it.  

     

     

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 23, 2015 @ 12:46
    Dave Woestenborghs
    0

    This looks okay. On your content page doctype the properties are displayed on the correct tab ?

     

  • Sjaak van der Heide 11 posts 32 karma points
    Apr 23, 2015 @ 13:19
    Sjaak van der Heide
    0

    Yes, all other pages work as expected, just the ones in ListView that are acting up. 

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 23, 2015 @ 13:22
    Dave Woestenborghs
    0

    Did you add the list view as property or did you enable it on the doctype ?

     

    Dave

  • Sjaak van der Heide 11 posts 32 karma points
    Apr 23, 2015 @ 13:25
    Sjaak van der Heide
    0

    I just ticked the checkbox in the structure tab. 

    Tried it with both the standard and a custom view. Both give the same result. 

  • Sjaak van der Heide 11 posts 32 karma points
    Apr 23, 2015 @ 13:48
    Sjaak van der Heide
    1

    I've been looking at it with a colleage of mine, we managed to find the anwser! 

     

    Here:
    http://issues.umbraco.org/issue/U4-5672

    apperantly the listviewtab always gets ID 25. In our project we use more then 25 tabs and the I guess the Content tab also has ID 25.

    Adding this:

                   for (tab in data.tabs) {

                        if (data.tabs[tab].alias == "umbContainerView" && data.tabs[tab].id == 25) { data.tabs[tab].id = 110432; }

                    } 
    piece of script to the umbraco.controllers.js within contentResource.getScaffold and contentResource.getById blocks has fixed it for now

    Proper fix would be to set the id to something similar.



  • Al Nicholl 15 posts 97 karma points
    Jan 16, 2018 @ 13:05
    Al Nicholl
    0

    Hey Sjaak,

    Thanks for posting this on here. I just had the exact same problem with a list view Content tab and another tab with ID 25.

    Instead of implementing your code fix, I created a new tab, dragged the properties of tab 25 into the new one, deleted the old tab 25 and renamed the new one. This removed the conflicting tab 25 and the backoffice showed the correct properties.

    Thanks for the tip for solving this.

    Al

Please Sign in or register to post replies

Write your reply to:

Draft