tokenshift / obsidian-page-gallery

Generates a gallery based on selected page contents.
MIT License
64 stars 2 forks source link

[Bug] Parameters not included in Fields Showing Up as Fields #29

Closed Bluemoondragon07 closed 1 year ago

Bluemoondragon07 commented 1 year ago

Hi. I noticed that due to a recent update values other than those in fields:, such as values in from:,groupBy:, and sortBy:, show up as fields in the generated page gallery.

From: Field

Screenshot 2023-02-26 142845 Screenshot 2023-02-26 142820 The only field that is expected to appear is the file name, but the file path appears as well.

sortBy: Field

Screenshot 2023-02-26 142933 Screenshot 2023-02-26 142908 Here again, the only expected field is the file name. The file path does not show anymore, but is instead replaced by the values that the notes are being sorted by.

groupBy: Field

Screenshot 2023-02-26 143121 Screenshot 2023-02-26 143104 Here, I want to show the file name, sort the files by creation date, and group them by the subfolder they are in, rendered as a link. This all works, but now both the sortBy and groupBy values are both showing up as their own fields on each page gallery tile as well.


It seems like after the update other fields show up on the page gallery tiles rather than just those specified in the fields: field.

tokenshift commented 1 year ago

Thank you for the bug report! This should be fixed now in v0.4.2.