https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • a

    alexis<3

    04/21/2022, 8:52 PM
    schemas * not templates
  • a

    alexis<3

    04/21/2022, 8:53 PM
    unfortunately i don't know how i did that so i can't open a meaningful ticket
  • k

    kevins8

    04/21/2022, 8:55 PM
    hmm, can you keep track of when that happens next?
  • k

    kevins8

    04/21/2022, 8:55 PM
    feel free to DM me the output of diagnostics report when it occurs
  • a

    alexis<3

    04/21/2022, 8:55 PM
    yeah
  • a

    alexis<3

    04/21/2022, 8:56 PM
    it was something along the lines of 'no vault for note this should never happen'
  • a

    alexis<3

    04/21/2022, 8:59 PM
    i don't know how to get back to a template yaml if i closed it goto not doesn't work do i just need to find it in the file explorer?
  • s

    SeriousBug

    04/21/2022, 9:00 PM
    There's a "lookup schema" command, separate from the note lookup
  • a

    alexis<3

    04/21/2022, 9:00 PM
    ohh ok
  • a

    alexis<3

    04/21/2022, 9:02 PM
    thank you! is a shcema auto applied if its working?
  • s

    SeriousBug

    04/21/2022, 9:03 PM
    If the schema is working, and it matches the note, then it should automatically apply the template. Also feel free to share the schema if it doesn't have anything confidential in it, we can help fix it if something is wrong
  • s

    SeriousBug

    04/21/2022, 9:03 PM
    (that is, it will apply to new notes)
  • a

    alexis<3

    04/21/2022, 9:04 PM
    awesome i will share the basics i have one second
  • a

    alexis<3

    04/21/2022, 9:08 PM
    Copy code
    version: 1
    scehmas:
        - id: monolith
          title: monolith-ticket
          parent: root
          children:
            - pattern: tickets
              children:
                - pattern: '*'
                  template: templates.ticket
                  children: []
  • a

    alexis<3

    04/21/2022, 9:08 PM
    i create a note at
    monolith.tickets.<submodule>.<jira-number>
  • s

    SeriousBug

    04/21/2022, 9:09 PM
    Looks like
    scehmas
    is misspelled, it should be
    schemas
    . I think this would work if you set
    namespace: true
    for the
    patter: '*'
    one. But you could also make it more specific, give me a second and I'll come up with something
  • a

    alexis<3

    04/21/2022, 9:10 PM
    ok let me fix that 😔
  • a

    alexis<3

    04/21/2022, 9:10 PM
    same result still
  • a

    alexis<3

    04/21/2022, 9:10 PM
    sorry you had a second note - reading that
  • a

    alexis<3

    04/21/2022, 9:11 PM
    my ultimate goal is to also apply frontmatter to it i saw there is also replacement variables so maybe setup some links to the ticket in jira based on teh title's ticket id
  • a

    alexis<3

    04/21/2022, 9:12 PM
    idk if thats possible or not but thats what im trying to work towards
  • s

    SeriousBug

    04/21/2022, 9:13 PM
    Okay, this works for me:
    Copy code
    version: 1
    imports: []
    schemas:
      - id: monolith
        title: monolith
        parent: root
        children:
          - id: tickets
            title: tickets
            namespace: true
            children:
              - pattern: '*'
                template: templates.ticket
    I was able to create
    monolith.tickets.foo.123
    and it applied the template
  • s

    SeriousBug

    04/21/2022, 9:14 PM
    Right now you can only apply some variables like dates. If you want to do something more comprehensive, you could use note hooks to do anything you want: https://wiki.dendron.so/notes/12551d19-04c2-4d26-ac1e-d23ff3181a9c/
  • a

    alexis<3

    04/21/2022, 9:15 PM
    ok that namespace part worked perfectly for me too
  • a

    alexis<3

    04/21/2022, 9:15 PM
    awesome thanks!
  • a

    alexis<3

    04/21/2022, 9:16 PM
    i didn't understand what the difference between namespace: true and having a child with pattern: * is
  • a

    alexis<3

    04/21/2022, 9:17 PM
    i used the 'create schema from note' interaction to start with and it put the * in the right spot (though it hardcoded a ton of patterns that were just ticket names)
  • a

    alexis<3

    04/21/2022, 9:17 PM
    should the level above the * pattern always contain namespace true?
  • s

    SeriousBug

    04/21/2022, 9:19 PM
    namespace: true
    is basically the same as
    Copy code
    - id: tickets
      children:
        - id: submodule
          pattern: '*'
          children:
            - pattern: '*'
              template: templates.ticket
    Namespace: true inserts a dummy level with a
    *
    pattern. Each
    *
    matches only one level, so you need two here.
  • a

    alexis<3

    04/21/2022, 9:20 PM
    ohh ok
1...614615616...757Latest