#And just to make sure you’ve registered

1 messages · Page 1 of 1 (latest)

warm badger
#

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

warm badger
#

Could it be that modules load templates differently than systems?

fervent hornet
warm badger
#

Ahh, thanks for confirming it. Was banging my head