CMS Development

BGoosen
投稿者

Which folder in Design Manager can have modules? (newbie question)

解決

Hi, I'm just getting started with HubSpot CMS, and am working on an existing site where they've got a lot of custom modules, and were wondering if they could get rid of some of them. I'd like to recommend that they just move them to some sort of "Archive" folder so they can get back to them later if needed, but I'm not finding documentation on where all HubSpot looks when a designer is selecting modules.

 

Can anyone point me to any helpful documentation on this?

0 いいね!
1件の承認済みベストアンサー
Brownstephen101
解決策
トップ投稿者 | Elite Partner
トップ投稿者 | Elite Partner

Which folder in Design Manager can have modules? (newbie question)

解決

If they are using a theme, then in the page editor's it will show the modules inside of the theme first, and you wont be able to access theme modules from outside of that theme, so just make sure an modules you want to use are inside of the theme folder.

If they are not using a theme, then you can really place the modules anywhere an they will be available as long as the page type on the module is the same as the type of page you are putting it (normally website pages). 

You should be good to "archive" any modules that aren't being used by moving it into an "archive" folder, but they will still be available unless you disable editing in the content editor. When you do this, you'll probably want to "check dependencies" on any modules that you are moving incase they are being referenced in templates, which could break the path if you move them.

You can check dependencies by right clicking on modules in the left hand side of the design manager and then clicking "Show Dependents".

Hope that helps.

元の投稿で解決策を見る

3件の返信
Brownstephen101
解決策
トップ投稿者 | Elite Partner
トップ投稿者 | Elite Partner

Which folder in Design Manager can have modules? (newbie question)

解決

If they are using a theme, then in the page editor's it will show the modules inside of the theme first, and you wont be able to access theme modules from outside of that theme, so just make sure an modules you want to use are inside of the theme folder.

If they are not using a theme, then you can really place the modules anywhere an they will be available as long as the page type on the module is the same as the type of page you are putting it (normally website pages). 

You should be good to "archive" any modules that aren't being used by moving it into an "archive" folder, but they will still be available unless you disable editing in the content editor. When you do this, you'll probably want to "check dependencies" on any modules that you are moving incase they are being referenced in templates, which could break the path if you move them.

You can check dependencies by right clicking on modules in the left hand side of the design manager and then clicking "Show Dependents".

Hope that helps.

dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Which folder in Design Manager can have modules? (newbie question)

解決

If you are working with the CLI, each of the modules will have a meta.json folder.  Within that, you can change is_available_for_new_content from true to false.

 

BGoosen
投稿者

Which folder in Design Manager can have modules? (newbie question)

解決

Maybe that was a dumb question? It looks like the way to disable but not delete modules is the "Make available in templates and pages" toggle switch up next to the publish button on each individual module.

 

I'm not sure this is the only or best way, so if anyone knows otherwise, I'd appreciate any tips!

0 いいね!