Domanda

Is there a possibility to configure/create views in an installation profile? I have been searching on the internet for quite some time now but I can't find any info about this.

È stato utile?

Soluzione

Yes. I think the best option would be manage your View in code (represented as a custom module). See this blogpost for an example.

Altri suggerimenti

Yes. You can use Features module to export your view In a module and just enable this module in installation profile, or you can rather implement hook_views_default_views and have a default view exported in code.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top