I want to do a reading list of my books, but i’m a noob and this, i don’t get it wher e is the error.
Table Autor as Autor, ("") as Cover, pages, category as genre, rating,
From "#Libros"
Where contains(status, "#📥/🟥")
< This is the cover
Estado: #/
Autor: [[Deepak Chopra]]
Título: Las siete leyes espirituales del éxito
Fecha: 2004
Categoría:
Descripción:
Tags: #Libros
Fecha de inicio de lectura: 05-mar.,2023
Número de páginas: 160
Bonus tip: How to present code properly in a forum post
If you want to showcase either markdown, or code blocks, or dataview queries properly in a forum post, be sure to add one line before and one life after what you want to present with four backticks, ````. This will ensure that any other backticks (like for code blocks) is properly shown.
Secondly, if you want to define fields in the normal text, you need to use two colons, as in:
Autor: [[Deepak Chopra]]
Título: Las siete leyes espirituales del éxito
Fecha: 2004
Only one colon is only for the frontmatter, that is the section at the very start of your file, surrounded by --- before and after.
The cover can causes issues, and if you do a search in this forum you’ll see various alternatives on how to solve that when defining it as a field.
---
Cover: https://books.google.com/books/content?id=nTHy6CShrl4C&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api
Estado: 📥/🟥
Autor: "[[Deepak Chopra]]"
Título: Las siete leyes espirituales del éxito
Fecha: 2004
Categoría: Literature
Descripción:
Tags: Libros
Fecha de inicio de lectura: 05-mar.,2023
Número de páginas: 160
Rating: 3
---
```dataview
TABLE WITHOUT ID
("") as Cover,
Estado,
Autor,
Fecha,
Categoría as Genre,
Rating
FROM
#Libros
WHERE
Estado = "📥/🟥"
```
Well, i have solved the problem with your code. I make test and more tests and get to the problem. I got this conclusion: i’m dumbass at YAML, i need to learn better dataview. THX for your time.
If the template it not in the Libros folder, you could change the FROM statement to harvest data from the Libros folder only and not from the hashtag.
FROM
"Libros"
Alternatively, if the template is in a dedicated folder, you could negate the template folder but keep the hashtag:
FROM
#Libros
AND
-"Templates"
Or to negate a named template:
FROM
#Libros
AND
-"folder name/template name"
All of the above needs to use syntax specific to terms used in your vault.
EDIT: If you don’t want some items in the Dataview table – such as Estado, – you can just remove them. I only added Estado, for local testing purposes.