i tried to make a new entity based on this module, the first step i did was replace the word "model" to another module name like "showbox" in file name & code. i enabled the new module and add some "showbox_types" and "showbox", but the issue is, that the entities "showbox" were not listed, i can not see the "showboxs" that i just created.

Comments

camdarley’s picture

I have exactly the same problem.
admin/content/my_entity is empty and show admin/content/comment menu item...
I replaced carefully all "model" by my custom entity name in each module files.
I can add entity types without issue.
screenshot

camdarley’s picture

Ok, I juste understand why it wasn't working: I renamed "model_handler_model_operations_field.inc" in "myentity_handler_model_operations_field.inc" instead of renaming it "myentity_handler_myentity_operations_field.inc". This prevented the view to install on the module activation.
@euroba : check if your entity view is present in your view list.

oribi’s picture

Issue summary: View changes

Similar problem but it only happens when I create multiple entities. Works fine when only enabling one entity. Everytime I enable another custom entity, the previously enabled entities view gets removed/replaced by the new one.
I other words when enabling multiple entities using the model module file-renaming and text-replacement method, only the last installed entity has a view. There seems to be a duplicate identifier issue...

Anyone else experienced something similar?

vegantriathlete’s picture

@oribi I think you are talking about an issue that is different from the OP's -- #2566811: MODULENAME.views.inc should be renamed to MODULENAME.views_default.inc