Replies: 3 comments 3 replies
-
One idea has occurred to me. To make this a homepage, it might be useful to have a plugin that redirects to that month's page immediately when a temporary page is accessed! |
Beta Was this translation helpful? Give feedback.
-
hi @stdword i'm trying to implement the monthly and yearly pages but the side calendar doesn't show and the generateByWeekBlock is not executed |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use simple queries and use the variables? For example, I use the smartblocks plugin to create monthly page and my query looks like this:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
inspired by this Obsidian video and @inzagi1's question
demo.mp4
Steps
Setup «Weekly Pages» with this manual.
Install
Side Block
plugin to create side views.Let's prepare the queries. Create anywhere in Logseq (ex: in «Queries» page) the following queries. I'll use 2 queries for #podcast and #diary records and the one for . But you can setup your own ones:
Fill the body of queries with the same one code. Insert it between
#+BEGIN_QUERY
and#+END_QUERY
with replacing the «…» (use copy button in the top right corner):Restriction: currently there is no way in Logseq to avoid copying of query body. Please vote for this feature here and like this comment.
Create the query for getting #weekly records from Weekly Pages (use copy button in the top right corner):
Create
🏛template
anywhere in Logseq (ex: in «Templates» page). (Use copy button in the top right corner):Copy reference to every created before query via right clicking on corresponding bullet and selecting «Copy block embed»:

…and insert them replacing line with «INSERT HERE» text in the template (there are three lines). It should look like:
Now, let's install and setup
Default Template
plugin to automatically insert🏛️template
. Create another template:And add

\d{4}-\d{2}::.monthly page inserter
text toDefault Template
plugin's setting/advancedRegex
:Additionally you can setup
Awesome Links
plugin to have colored references to Monthly Pages (according totype:: month
):t s
) → Awesome Links and set theinheritFromProp
setting totype
:[[month]]
page and add page propertycolor:: mediumseagreen
(choose any value you want via this service).❤️ Enjoy the full automatic monthly page creation!
FAQ
Why are queries embedded instead of being written directly in the template?
Because if you want to change the query, you would only need to modify it in one place - and the changes will be immediately visible on all already created weekly pages. This is very handy. But if you don't need this - you can do without embed and each time "enclose" the query inside the weekly page. Then, when changing the query in the template, only new pages will see its new look.
Why is the property
reference::
with the value#podcast
displayed in the query block?#podcast
to something else (for example, to#youtube-video
).podcast
page. This is handy if you want to rename thepodcast
page (e.g. to🎙️
). The block with the query will be renamed automatically. If it is not in Linked References, you will have to a) remember that the block with the query on the pages requires manual modification b) carry out this manual modification.custom.css
:See also
Additional info
Beta Was this translation helpful? Give feedback.
All reactions