I'm trying to create a reusable section of HTML that is not drag-and-drop. Partials should work for this. According to this page in the developer docs, it sounds like the template type exists ("templateType: partial"), but the CLI is throwing an error:
The design manager shows the same error. I successfully used templateType: global_partial elsewhere (not in a DND context), but I don't want this section to be global.
Is this an error? Maybe templateType: partial was removed and the docs weren't updated? Or are partials only intended for DND areas and global_partial doesn't count?
Yea, I think the documentation needs to be updated. When you create a standard partial in the design manager it uses templateType: page for the annotation so it seems partial is no longer the annotation to use. You're instead basically making a page template. The only difference is that isAvailableForNewContent MUST be set to false to be able to use it as a partial.
If this answer solved your question, please mark it as the solution.
Yea, I think the documentation needs to be updated. When you create a standard partial in the design manager it uses templateType: page for the annotation so it seems partial is no longer the annotation to use. You're instead basically making a page template. The only difference is that isAvailableForNewContent MUST be set to false to be able to use it as a partial.
If this answer solved your question, please mark it as the solution.
Jan 25, 202310:59 AM - edited Jan 25, 202311:02 AM
Participant
Non-DND Partials
SOLVE
Sure enough, templateType: page worked and the section behaved as a partial with isAvailableForNewContent set to false. I left this value off and it seemed to work the same, though. They must have forgotten to update the docs.