Making sure my extended lists always show “current” data?

前端 未结 4 1840
我寻月下人不归
我寻月下人不归 2021-01-05 03:41

When you create a Data Extender for a CME list – for instance to add a column for the Schema as in this example – it all works fine and dandy whenever you do actions that fo

4条回答
  •  星月不相逢
    2021-01-05 04:37

    I think I would (attempt to) implement this by monitoring the items in a folder periodically and updating that list after this polling mechanism had detected a change in that folder.

    For example, I would write some javascript timeout or interval that runs in the background and checks the items in the current folder. If it detects a change, it triggers the update of the list.

    Alternatively, you could also try to intercept the action that changed your list (e.g. the creation of a new item), maybe by means of an event system, and as such update your list. I don't think this is much different than the first approach, as I think it still implies some level of polling from the GUI side.

提交回复
热议问题