Copied to clipboard

Flag this post as spam?

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


  • Marco Graziotti 15 posts 89 karma points
    20 days ago
    Marco Graziotti
    0

    How to hide a property from the BO, that comes from a Document Type used in multiple pages

    Hi,

    I have a Document Type (MyPage) that is used to represent two different graphic parts in the frontend, but the "Text" property is used in the "First Page", and it's unused in the "Second Page".

    So, to avoid confusion for the final user that will use the backoffice, and also to apply the reusability of a Document Type, I'm trying to understand if it's possible to hide a property in the BO only for a single page, where this property it's not needed.

    So, the question is... Is there a way to hide in the backoffice the unused property "text" only for the "Second Page"?

    Here an image that better explain what I'm trying to do: enter image description here

    Thank you

  • Alex Skrypnyk 5978 posts 22689 karma points MVP 4x admin c-trib
    19 days ago
    Alex Skrypnyk
    0

    Hi Marco

    Maybe it makes sense to use another doctype and do not add this property to the second page?

    Thanks,

    Alex

  • Marco Graziotti 15 posts 89 karma points
    19 days ago
    Marco Graziotti
    0

    Hi Alex,

    the idea is to reuse the same Document Type to avoid the creation of another Document Type, to achieve the code reuse.

    The only difference between the two views it's about the "text" property. So, is there a way to hide in the backoffice the unused property "text" only for the "Second Page"?

    Thank you

  • Huw Reddick 419 posts 1156 karma points
    19 days ago
    Huw Reddick
    1

    Hi Marco,

    unfortunately not, In one of our sites I have used the conditional display package to show/hide certain content although it doesn't work in the way you require exactly, so you would probably be better off using a second doctype for page 'Second Page' as Alex suggested

  • Alex Skrypnyk 5978 posts 22689 karma points MVP 4x admin c-trib
    19 days ago
    Alex Skrypnyk
    1

    You can do it with some custom js or css code. But it sounds like not a great way to do it.

  • Marco Graziotti 15 posts 89 karma points
    19 days ago
    Marco Graziotti
    0

    Thank you for your answer guys. I will create a new DT :)

Please Sign in or register to post replies

Write your reply to:

Draft