开发者

Where is cck "number of values" data stored?

I have a cck field that needs to allow a different number of values depending on the role of the currently logged in user.

I'd like to find where the "number of values" data is s开发者_如何学编程tored for a cck field so that it can be dynamically changed when the node edit form is displayed.


From memory, if you change the number of values you may lose any additional - if you allow 5, then change to 2 you lose the other 3.

Is this not more of a UI concern? The CCK field itself can allow the max number of values that you want it to hold, and the widget that is used to allow these values to be entered / selected is customised based on the user role.

Changing the definition of an object based on the users role seems a bit excessive

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜