How to make a template that will create a few objects within it every time

What do you need help with?

So I need to make a template for a week diary. I need it to create 7 objects with “day” type inside it every time, but as I can see I can only add existing objects into a template and they’ll just link every time.

OS

Win 11

Anytype Version

v0.44.0

Network Mode

AnySync

Technical Information

(Desktop) > Help > Templates

I honestly do not know of a way, or even a hack to accomplish this.
The behaviour you describe is indeed what we currently have in anyType. Most other similar applications also do not do this yet.

Would it be desirable? Of course!
I know the anyType team is listening quite attentively to all the chatter on the forums; but there are many requests and some of them it is hard to predict when such and such feature will be released.

I know there is much talk about bidirectional automatic linking, parent-child relationships etc and all of those things underpin what you - and the rest of us would want as features.

Perhaps others will suggest some hack I may not have thought so

Cheers

I think it’s the wrong approach.

Make a Collection for your daily Objects.
To click each day on the “New” button shouldn’t be too much work, isn’t it?

Also make a Template for your Weekly-Objects.
Insert an Inline Collection in that Template. Configure the View an it’s filter so that it points to a range in Date of seven days.

I you later create a new Weekly-Object from this Template, you need only to adjust the date range in the Inline-Collection’s filter.

You can store the daily Objects, as well as the weekly Objects, in the Collection you made.
Give them different Tags, or use different Types, so that you can filter for them in two different Views:
– One for the daily Objects.
– One for the weekly Objects.

And a last tipp: don’t use the Creation Date for sorting and filtering. You can’t change it and we have also had fatal bugs with it (I suffer under that) - it isn’t reliable.
Better create your own sorting date relation.


Not fully true, you could display Links as Cards with some content preview in it, see my video in this post:

Yes, that’s basically how I used it.

But I prefer to have week as an object with days as links to “days” objects, rather than using collections. But with that every month I have to create a “month” object, then 4 “week” objects and then 31 more of a “day” objects inside a week ones. So that takes time and I thought I might be just able to create a template that will create 35 objects inside it.

For example, how you can create a folder template in New+ in powertoys with few subfolders and files inside em.

Thank you so much for answering tho!

How did you do it?
– The way with the inline-Collection?
– Or the way you see in my video?

I’ve done it with just links to objects that are call outs. So pretty much as your video

But this way your Link is indeed only text. – A point about you complained.
As you see in my video, the Cards I use show much more content:
– The full Name.
– A lot text from the Description.

Isn’t it better?

But I believe we will have solutions (plural) relatively soon.
AI is on the way. And the API maybe a bit later, that will give programmers the opportunity to write extensions.

Off course you could also use a macro recorder, like AutoIt on Windows PCs.
But there is always the risk that the next update will cause unwanted things for such a macro recorder.

It’s not currently possible to create new objects trough templates.