سؤال

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.

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top