type:: [[Feature]]
platforms:: [[All Platforms]]
description:: Annotates any block or page with multiple pairs of values e.g. rating:: 8
or name:: foo
. Building block for organizing graphs
-
- Property naming rules:
collapsed:: true
-
- Properties are valid for alphanumeric characters and some special characters. When a property is invalid, it is not saved as a valid property and an error message explains what is a valid property name:
Property name begins with a non-numeric character and can contain alphanumeric characters and . * + ! - _ ? $ % & = < >. If -, + or . are the first character, the second character (if any) must be non-numeric.
-
- Properties are case insensitive and lower cased. For example, property names
platform
,Platform
orPLATFORM
are all the same asplatform
.
- Properties are case insensitive and lower cased. For example, property names
-
- Properties with a
_
character are renamed to-
e.g.done_at
is renamed todone-at
. This rename is done so that users don't have to think about the difference between_
and-
.
- Properties with a
-
- To enter a property, type
::
to autocomplete a property name. After entering a property name, autocomplete a property value that is specific to that property. To see this in action, see this demo. - Markdown: {{embed ((60ab6f5b-4bdc-4ef0-a0f8-6cad9dcad2b2))}}
- org-mode: {{embed ((60ab7357-2744-42bc-a8fd-a9c8db3051df))}}
- Property naming rules:
collapsed:: true
-
- Page properties are defined by putting them into the first block of the page (frontmatter).
- Block properties are defined by putting them into any other block.
- Any page or block can have multiple pairs of properties.
- Properties with no value are not visible or queryable e.g.
property::
-
id:: 6356e902-3b7b-4cb2-8c3e-6a904c813c40
-
Property values can be a mix of almost any text, links, page links and tags. This means you can write like anywhere else in Logseq: collapsed:: true
description:: [[Logseq]] is the fastest #triples #[[text editor]]
The pages
Logseq,
,triples
andtext editor
are all linked property values through thedescription
property.- The exception to "any text" is that properties are currently embedded in their block and delimited by newlines. Since their delimiter is a newline, a property value can't have newlines.
-
Built-in properties
alias
andtags
also have an additional way of recognizing pages through comma separation:tags:: motor, steering wheel
motor
andsteering wheel
are automatically treated as page references. If there is no comma, the single value is also treated as a page ref. See the configuration section below to enable this behavior for specific properties. -
To prevent a property value from having any links, wrap it within quotes (
"
): collapsed:: truedescription:: "[[Logseq]] is the fastest #triples #[[text editor]]"
-
-
:property-pages/enabled?
- Boolean which determines if properties have their own pages. This is enabled by default:property-pages/exclude-list
- Specific properties to exclude from having property pages:property/separated-by-commas
- Properties that also identify page references with comma separated values like:tags
e.g.tags:: foo, bar
:ignored-page-references-keywords
- Properties that do not allow page referencing. Avoids the need to have to quote the property values with""
every time
-
- Example data for this section
collapsed:: true
- [[How to take smart notes]] updated-at:: 1609337624066 created-at:: 1609233078964 type:: [[book]] author:: [[sönke ahrens]] publication_date:: [[february 21, 2017]] price:: 10 qty:: 1
- [[How to solve it]] updated-at:: 1609337985298 created-at:: 1609233053383 type:: [[book]] author:: [[george polya]] price:: 20 qty:: 2
- This example data is also used elsewhere.
- Properties have multiple use cases including:
- Selecting (querying) specific pages/blocks:
- For example, let's query all the blocks with the property
type
and the valuebook
: {{query (property type book)}}
- For example, let's query all the blocks with the property
- TODO Finish explaining use cases #docs
- Selecting (querying) specific pages/blocks:
- Example data for this section
collapsed:: true
-
- [[Built-in Properties]]