DATAVIEW: Aggeregate bigger chunks of text, more than one line

Hi all,

at the moment I know how to add some one-liners but I would love to have entire paragraphs inside, for example:

some_entry: " ddfdf fdfd dfdf fdf
fdfdf fdf fdfd df fdf fdggg
sdddddddddddds ddddddd"

in this case only first line will be added.

adding lists, for example:

some_entry:
- item 1
- item 2
- item 3

also, is it possible to use dataivew for aggregating everything what goes under a title, let’s say:

Title one

some text I want to be aggregated

Title two

Some other text I want to be in a table


I think this way writing experience is much smoother.

Thank you for any help!

1 Like
  1. First, you are talking about “yaml frontmatter fields” or “inlines fields”? In frontmatter (format name: value) and in inline-field (format name:: value) you can write a long paragraph (multiple lines) without problem. A paragraph is a group of a continuous sentences, without line breaks (your example isn’t a paragraph!).
  2. Add a value as a list is possible in frontmatter fields using one of these syntax:
example: [item 1, item 2, item3]

or (attention for the two spaces before “-”)

example:
  - item 1
  - item 2
  - item 3
  1. Dataview can “read” an element in your text if you use an inline field. In your example you need to identify the wanted element (a sentence or a paragraph):
## Title one
summary:: Some text I want to be aggregated with multiple sentences. This is the second sentence.

## Title two
summary:: Some other text I want to be in a table.

EDIT (one extra tip):
You can ‘simulate’ multiple paragraphs if you write in continuous mode using the html tag <br> to separate paragraphs.

In this way, this…

Lorem ipsum dolor sit amet, consectetur adipiscing elit. [[Curabitur]] eu magna id est interdum euismod id at lectus. Aliquam aliquam, lectus at cursus volutpat, mi libero malesuada enim, in iaculis augue elit ut tellus. <br>Aenean dignissim lorem non urna tempus sollicitudin. Donec a est urna. <br>Ut luctus, ex non semper ultrices, justo ante malesuada diam, et `pretium` lorem augue vitae elit. *Morbi* ut bibendum **mauris**, gravida sollicitudin dolor. Nulla suscipit eget arcu sed placerat.

results in this:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. [[Curabitur]] eu magna id est interdum euismod id at lectus. Aliquam aliquam, lectus at cursus volutpat, mi libero malesuada enim, in iaculis augue elit ut tellus.
Aenean dignissim lorem non urna tempus sollicitudin. Donec a est urna.
Ut luctus, ex non semper ultrices, justo ante malesuada diam, et pretium lorem augue vitae elit. Morbi ut bibendum mauris, gravida sollicitudin dolor. Nulla suscipit eget arcu sed placerat.


2 Likes

Thank you good stranger. It helps a lot!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.