I have several sites on an ezpublish instance.
I have one class <i>Document</i> with an attribute <i>theme</i> (datatype : selection). Each site needs to have its own themes but they are declared once in the class.
Is there a way to override the options of a selection datatype attribute of a class ? Or should I create a class per site only to change the options of an attribute ?
This is as previous said not best done with selection, you could solve it in several ways.
1. having the filed as a object relations with drop down and restrict the related themes each site can select with read rights. So you need to create a theme class, and place all the theme objects in a specific subtree.
2. use a ezstring filed and override the template to show a drop down box instead of string input. The values in the drop down can then be generated by some ini setting and what site the object is placed in. Downside is that the a specific selection will still be stored in the object even if you delete it from the ini file, so they need to re edit the objects if they use a option you need to remove.
if you use multiple sites, you have different siteaccesses, dont't you? Do they need to share the same database? If not, there should be no problem. Or did I miss the point?