#And just to make sure you’ve registered
1 messages · Page 1 of 1 (latest)
no luck 😦 it is a module by the way. I can't make the entry appear, no matter what. The registration seems fine, if I switch to type "Text" it works fine (when I choose Text), but not to have my own type added there.
DocumentSheetConfig.registerSheet(JournalEntryPage, "excalidraw-journals", ExcalidrawJournalPage, {
types: ["excalidraw-sheet"],
makeDefault: true,
label: 'Excalidraw'
})
class ExcalidrawJournalPage extends JournalPageSheet {
static get defaultOptions() {
const options = foundry.utils.mergeObject(super.defaultOptions, {
width: canvas.screenDimensions[0] * 0.50,
height: canvas.screenDimensions[1] * 0.75,
resizable: true
});
options.classes.push("excalidraw-sheet");
return options;
}
async getData() {
const _default = super.getData();
_excaAssignRoom(this.document);
return {
..._default,
roomCode: this.document.roomCode,
roomCypher: this.document.roomCypher
};
}
get template() {
return `modules/excalidraw-journals/excalidraw-sheet.hbs`;
}
}
document types still the same old 4
Could it be that modules load templates differently than systems?
Modules cannot register their own custom page types (yet, coming in v11). You can register a new sheet for an existing page if you want (so change how text pages are displayed), but if you want your own page type you’ll need to wait
Ahh, thanks for confirming it. Was banging my head