Background
I have a global module for my nav bar. It is currently published on the site and used on all pages. I’m wanting to add some additional features to the nav bar that will utilize fields. In order to do this without effecting the live version of my nav bar, I want to use the Preview function like I do for all of my other modules.
When I select preview I see the following message in the fields section: “The creator of this template prevented editing this module in the content editors.”
I’m assuming because this is a global module, but I would expect to be able to develop this feature in a safe environment before having to publish any of my changes.
I could perhaps use the “is_in_module_previewer” property and hardcode content but this seems inefficient. Is there something I’m missing or is this yet another unintuitive design manager feature?
Global modules are designed to be used across multiple pages, so edits to them often affect every instance of the module. You can create a clone of the global module and work on that version. Once you’re happy with the changes, you can replace the original global module with the updated version. This ensures you don’t impact the live version during development.
“Global modules are designed to be used across multiple pages, so edits to them often affect every instance of the module.” Yeah…that was the whole reason for my question. Non-global modules allow me to play with content and style settings in the preview window.
My is_in_module_previewer solution works. I set the content by creating some vars within a conditional that matches with the content fields I have but it’s a ton of extra work. I would much rather Hubspot allow you to preview content changes in module development so I don’t have to publish changes then go to the global module live preview to QA code changes I commited to production.