Ideas

Give us your best ideas!

Limit selectable options in block selector and pointer fieldtype

Currently it is possible to add ANY block in any location in Litium. It would help if a block container on a page template could be limited to only allow blocks of a certain template. In this way it would be possible to design certain blocks that could only be used in the page footer and others that can only be used as main content of the startpage for example.


The same logic for the pointer fieldtype would allow limiting specific templates to be selected for different properties, for example connecting responsible persons to brands could be limited to only allow persons with the sales-template, or when linking to a checkout or searchresult page in a field it could be designed so that it was impossible to link to any other template type by mistake. A workaround for this is avaliable by adding a validation that checks the value when the user tries to save but the experience would be so much better if invalid values were not avaliable to select in the first place.

  • Mårten Wahlund
  • Nov 21 2019
  • Partly shipped
  • Attach files
  • Admin
    Ludvig Block commented
    05 Mar 14:45

    Hi,

    This ability was partly shipped in Litium 8.9, with "Set allowed block types for a block container" and the ability to define which block types that can be nested with each other.