RafaelGB / obsidian-db-folder

Obsidian Plugin to Allow Notion like database based on folders
MIT License
1.25k stars 61 forks source link

Can't populate Nested YAML #1068

Open LynetteCullens opened 3 months ago

LynetteCullens commented 3 months ago
          > First of all you're not supposed to have spaces in your properties' names

I tested it myself and created test test with value test image

In the DB plugin when adding existing properties i get following recommendations: image

When choosing test-test the corresponding testvalue gets displayed correctly in the DB view test test however would not show anything. image

So even with spaces it's working

How would I go about getting the plugin to read a "-' in the column ID? I'm not allowed to change the ID itself because a plugin is depending on that particular format. Edit: Specifically the nested columns under the column with a "-" in the title.

Originally posted by @LynetteCullens in https://github.com/RafaelGB/obsidian-db-folder/issues/1025#issuecomment-2062023378

### The following does not work:

The above are syntax from various plugins that uses dataview.

When using: [\"mathLink-blocks\"]MKS I get:

<p>TypeError: e.trim is not a function
    at ol (plugin:dbfolder:208:4025)
    at zFr (plugin:dbfolder:485:61919)
    at bq (plugin:dbfolder:173:19608)
    at Nxe (plugin:dbfolder:175:44301)
    at Oxe (plugin:dbfolder:175:39992)
    at tQt (plugin:dbfolder:175:39915)
    at GR (plugin:dbfolder:175:39764)
    at z3 (plugin:dbfolder:175:36108)
    at Dxe (plugin:dbfolder:175:35054)
    at D4 (plugin:dbfolder:168:59003)
    at Immediate.w4 [as _onImmediate] (plugin:dbfolder:168:59403)
    at process.processImmediate (node:internal/timers:476:21)</p>
LynetteCullens commented 3 months ago

Update: After using [\"mathLink-blocks\"]MKS, it reverted back automatically to mathLink-blocks.MKS. I manually changed the configuration in markdown to

 mathLink-blocks.MKS:
    input: text
    accessorKey: mathLink-blocks
    label: MKS
    position: 100
    skipPersist: false
    isHidden: false
    sortIndex: -1
    nestedKey: MKS
    key: mathLink-blocks
    config:
      enable_media_view: true
      link_alias_enabled: true
      media_width: 100
      media_height: 100
      isInline: false
      task_hide_completed: true
      footer_type: none
      persist_changes: false

The above works Adding a nested column using the modal produces this format:

mathLink-blocks.FPS:
    input: text
    accessorKey: mathLink-blocks.FPS
    key: mathLink-blocks.FPS
    id: mathLink-blocks.FPS
    label: mathLink-blocks.FPS
    position: 100
    skipPersist: false
    isHidden: false
    sortIndex: -1
    config:
      enable_media_view: true
      link_alias_enabled: true
      media_width: 100
      media_height: 100
      isInline: false
      task_hide_completed: true
      footer_type: none
      persist_changes: false

Which does not work.