Non-DND Partials

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:

ellimccale_0-1674600398455.png

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?

Thanks!

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.

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.

Thank you!